I am creating a map, and have retextured some items to look like magic books. I'm trying to have a mechanic whenever a player holds the book in their hand it gives them, and everyone around them the poison status effect. But if i put this in a repeating command they wont lose health because of the Minecraft status effect mechanic. Please help!
I'm currently using this:
scoreboard players tag @a add poisoned {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:diamond_sword", Damage:191s, tag:{Unbreakable:1b}}]}
I am creating a map, and have retextured some items to look like magic books. I'm trying to have a mechanic whenever a player holds the book in their hand it gives them, and everyone around them the poison status effect. But if i put this in a repeating command they wont lose health because of the Minecraft status effect mechanic. Please help!
I'm currently using this:
scoreboard players tag @a add poisoned {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:diamond_sword", Damage:191s, tag:{Unbreakable:1b}}]}
execute @a[tag=poisoned] ~ ~ ~ /effect @a[r=5] minecraft:poison 1 2 true
(the diamond sword has a damage value of 191, is unbreakable, and is always in the first slot)
Can you just give it a slower clock? An RCB is just an ICB with a really fast clock. (I think like 30tics in one game tick or something like that)