When i do a command it removes an item but when i right click a stick( the use the same code) it does not remove the item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Entity

New Member
Aug 16, 2023
7
1
3
Im trying to learn a bit more on skript because i just started. So in this code when i do /test its removes the iron nugget named uhh but when i right click with a stick and with an iron nugget it does not remove it if somone can help me that would be very nice




on right click:
if player is holding stick:
if player has iron nugget named "uhh":
summon fireball at player:
remove iron nugget named "uhh" from player's inventory



command /test:
trigger:
remove iron nugget named "uhh" from player's inventory
 
Im trying to learn a bit more on skript because i just started. So in this code when i do /test its removes the iron nugget named uhh but when i right click with a stick and with an iron nugget it does not remove it if somone can help me that would be very nice




on right click:
if player is holding stick:
if player has iron nugget named "uhh":
summon fireball at player:
remove iron nugget named "uhh" from player's inventory



command /test:
trigger:
remove iron nugget named "uhh" from player's inventory
Your fourth line has a :