Hey, there are no errors when I do this but it's not working when I right click on the item can someone please help me. Thanks.
code_language.skript:
on rightclick:
if "%player's tool%" is "melon_seed":
make console execute command "replaceitem entity %player% slot.weapon.mainhand pumpkin_seeds 1 0"