Right click on a block while holding food

  • 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!

lwgy

New Member
Jul 8, 2024
6
2
3
I need help with a script, i am making a prison server and a part of it includes working in a kitchen. There i want a player to wash a poisonous potato in a sink. So he needs to right click with that potato on a tripwire and it will give him a normal potato.

I have tried things like:

Code:
on eat of poisonous potato:
    cancel event
    
 or

on right click:
    if player's held item is poisonous potato:
        cancel event

but nothing works,

thanks for a reply.