#How can I check for player having no item in hand?
1 messages · Page 1 of 1 (latest)
You can do this using commands as well
/effect @e[type=player,hasitem={item=apple,quantity=0,location=slot.weapon.mainhand}] resistance 1 255 true
That will just check whether or not you have an apple in ur hand, not if you have “no item” in ur main hand, checking for “no item” with cmds would be possible too but then you will to have specify every item
Luckily, someone has done that
The man the myth the legend himself !!
@frozen arrow
yea i need to update the pack since the update today changed some block identifiers.
I should probably just swap it over to script, but it's kinda a fun function project that shows why they need to add air as a block identifier in hasitem.
I thought I covered that with you in the other post you made.
#1279144726494445749 message
This is also behavior pack animation controller. A simple hasitem command does the same thing.