On Consume Repeats When Canceled

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

CUrrUpt Enxo

Member
Jul 26, 2019
21
0
1
27
Code:
on consume:
    if tag "CustomItem" of nbt of event-item is "Worm":
        send "test"
        cancel event
        remove 1 of event-item from player's inventory
        add 1 to player's food bar
        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
[doublepost=1603378092,1603377709][/doublepost]I reported on github but i wanna see if anyone can make a solution
 
Status
Not open for further replies.