1. 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 comminuty!

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


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

On Consume Repeats When Canceled

Discussion in 'Skript' started by CUrrUpt Enxo, Oct 22, 2020.

Thread Status:
Not open for further replies.
  1. CUrrUpt Enxo

    CUrrUpt Enxo Member

    Jul 26, 2019
    Likes Received:
    Code (Text):
    1. on consume:
    2.     if tag "CustomItem" of nbt of event-item is "Worm":
    3.         send "test"
    4.         cancel event
    5.         remove 1 of event-item from player's inventory
    6.         add 1 to player's food bar
    7.         stop
    This for some reason repeats the event if you eat it and have full food and hold the food item it repeats.
    I don't know what to do to fix this thats why I did not report it as a bug but I will do that after this but I need some solutions
    --- Double Post Merged, Oct 22, 2020, Original Post Date: Oct 22, 2020 ---
    I reported on github but i wanna see if anyone can make a solution
Thread Status:
Not open for further replies.

Share This Page