#give effect if player hold a item
1 messages · Page 1 of 1 (latest)
You can do this using the hasitem in commands
like this :
effect @a[hasitem={item=diamond,location=slot.weapon.mainhand}] jump_boost 1 1 true
And just add
On_not_hurt_entity```
This components called minecraft:weapon
hmm
it doesnt works for me
U guys have any template about this?
Just use a command with the one I sent before
with functions and tick.json
ok
if i remove tick.json
Function will run thourgh game without addon
but if i install another addon has file tick.json with it
does it still run?
how can i remove all effect if that item not in main hand
make it only last for 1 second