Skip to content

how to execute commands using on_equip? #338

Discussion options

You must be logged in to vote

You'd probably be better off using a behavior animation in the player behavior file. You could run this animation with the MoLang query query.get_equipped_item_name == 'banana_split' (if your item is something like bridge:banana_split), and have the animation run the /enchant command.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by solvedDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants