#give effect if player hold a item

1 messages · Page 1 of 1 (latest)

dusty magnet
#

h

woven kindle
#

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

grave condor
#

This components called minecraft:weapon

dusty magnet
#

hmm

#

it doesnt works for me

#

U guys have any template about this?

woven kindle
#

with functions and tick.json

dusty magnet
#

Function will run thourgh game without addon

#

but if i install another addon has file tick.json with it

#

does it still run?

woven kindle
#

It should still run

#

And if it didn't, use a repeat command block for the command

dusty magnet
woven kindle
#

make it only last for 1 second