Main Hand Item Detector
Sometimes you might want to give player an armor when they hold a sword, or you might want to give them fireworks when their hand is empty. But you are unable to do this. Don’t worry this addon adds brings commands for detecting what the player is holding in main hand.
By using this pack you get the functionality of detecting items in main hand.
Currently It supports detection of swords and empty hand.
You can see the video to see how it works. If you like the pack let me know I will add more items in it.
This addon is for mapmakers, command block experts, etc.
Watch the video to see how to use the pack.
By using this pack you get the functionality of detecting items in main hand.
Currently It supports detection of swords and empty hand.
You can see the video to see how it works. If you like the pack let me know I will add more items in it.
Example:-
Suppose You might want to kill a player whose hand is empty. Just place a command block. Make it repeating and always active. and enter the command kill @a[tag=air]
Just make sure you have the behavior pack is active and everything will go fine.
If you have any issues you can ask in comments.
Added the following things.
A detailed description
Example on how to use.
Installation
Just open the file. It will be imported.
Next open the settings of the world. Go to behavior pack option. And activate detector pack and then open the world
creator: TinedPakgamer