Started by
Luigi999999
on
Topic category: Help with Minecraft modding (Java Edition)
I made a gui linked to an item that if you click a button (the GUI button), it checks for the item you have to pay, and then gives you diamonds in exchange for that item but when I click it , it gives me diamonds but then they disappear and it gives me back the first item (the item I have to pay, in this case the golden coin).
This is the procedure linked to the GUI button: https://imgur.com/gallery/o92HFJG
Thank you in advance!
You can find example on how to do similar thing in this tutorial: https://www.youtube.com/watch?v=qdGJY7ljujM
Thanks a lot for the answer. But why does not my procedure work? Did I do something wrong?
Which is the Event Trigger?
Sometimes, if you edit a lot one Procedure, it doesn't work anymore. Try to delete the procedure and create it again.
If you edit the procedure, you might need to open the element that is triggering the procedure and simply save it again so the dependencies get refreshed.