Started by
MarkkMirror
on
Topic category: Help with Minecraft modding (Java Edition)
So, I made this procedure in order to use it on a button, that when you click it, if you have enough items, it converts them with another item. The procedure should be right, I applied it on the GUI button but when I test it on Minecraft the button doesn't do anything. Is the procedure wrong in some ways or what could be the problem?
(The two orange items are two separate items but I didn't have enough time to make the textures.)
Edited by MarkkMirror on Tue, 07/11/2023 - 09:32
I think you want to replace the "logic equals" block with "logic AND".
I tried but nothing changed, the button on the GUI doesn't work. (I saved the changes and made sure I did so it's not that)
Pretty sure it's because you put Event/target entity = 100, and you might need to put if equal if you know what I mean.
Try replacing the "has event/that entity in inventory" block with "(Get item in main hand) is the same block as (your item).
i think you should remove the thing that checks for the items in the off-hand of the player, and just replace it by a number (100 like in your script)