Hello,
I'm trying to make an item in where it is right click from the player's hotbar, and will execute a command. The only problem I have is executing the command from a named item.
Here's my skript that doesn't seem to be working:
Basically, i'm trying to make a player execute the command "/magicbowspell" (already predefined, works without name parameter) upon right clicking with a bow named "&bMagic Bow", and no other bows.
Thanks!
I'm trying to make an item in where it is right click from the player's hotbar, and will execute a command. The only problem I have is executing the command from a named item.
Here's my skript that doesn't seem to be working:
code_language.skript:
on right click:
if player's tool is a bow:
if name of tool of player is "&bMagic Bow":
make player execute command "/magicbowspell"
Basically, i'm trying to make a player execute the command "/magicbowspell" (already predefined, works without name parameter) upon right clicking with a bow named "&bMagic Bow", and no other bows.
Thanks!