try this:
/tag @a[nbt={Inventory:{id:"minecraft:written_book",Count:1b}}] add adv_publish
A great thing about 1.13 is that you can now test for nbt tags in every target selector now, instead of having a separate slot for it in some command.
Also note that damage no longer exists for blocks or for items that don't actually damage, but rather now is specified by various other nbt tags such as map:# on filled_maps
1
I'm not sure which item you want, and what enchantment you want, so use this website: www.mcstacker.net
EDIT: This generator will only work in Minecraft 1.13
1
Thanks for responding, but I went into the /assets/ folder and there was not /minecraft/ folder. I'm not sure if I did something wrong but it isn't showing up. Any chance you know why this is?
1
Here is a video that explains the command blocks in depth:
Here is a map that could help you with commands:http://www.minecraftmaps.com/educational-maps/command-school
Learning commands and being good at it takes a while, espically if you haven't messed with them since 1.7 or 1.8. If you are ahead of this skill level then I would recommend just creating a world where you can mess with command blocks, think of something you want to create, and they try until you can achieve it. Check out this channel for some more advanced stuff, and his website.
Channel:https://www.youtube.com/channel/UC_LBXGLs8Sa0opJHFVDVBqA
Website:http://jragoncommands.weebly.com/
Hope I could help, DM me if you have anymore questions.
1
Glad I could help!
1
Here is your new command:
/setblock[/b] ~ ~1 ~ mob_spawner 0 replace {SpawnCount:2,MaxNearbyEntities:5,SpawnRange:10,Delay:20,MinSpawnDelay:440,MaxSpawnDelay:720,RequiredPlayerRange:10,SpawnData:{id:CaveSpider,CustomName:"Cave Dweller",CustomNameVisible:1,PersistenceRequired:1b,CanPickUpLoot:0b,Health:4,Attributes:[{Name:"generic.followRange",Base:8},{Name:"generic.knockbackResistance",Base:0.04f},{Name:"generic.movementSpeed",Base:0.9f},{Name:"generic.attackDamage",Base:10}],HandDropChances:[2F,2F],HandItems:[{id:"minecraft:web",tag:{display:{Name:"Sticky Silk",Lore:["Dropped by Cave Dwellers..."]}},Count:8},{}],ArmorDropChances:[0.3F,2F,2F,2F],ArmorItems:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:poison"},Count:20},{},{},{}],ActiveEffects:[{Id:1,Amplifier:1,Duration:2147483647}]}}
All you had to do was remove the /'s from "{Potion:\"minecraft:poison\}"
However, you have it so that every time this Cave Dweller dies it drops 20 Poison Potions. You also have them as armor on the spiders. I'm not sure why that is but I won't question it. I also changed the name from "Cave Dwellers" to "Cave Dweller" because of grammer, and that wouldn't look good in a map.
Anyways, just DM me if you have anymore questions.
1
Currently, there is no way for you to use a cylindrical region, (That I am aware of.)
Sorry I could not help.
1
I really like both of your applications! I'm going to wait a few more days to see if anyone else responds but if not consdier yourselves in! Thank you for your application
-Mr_Moose