Started by
greyifer
on
Topic category: Help with Minecraft modding (Java Edition)
So basically I have a procedure here that is supposed to check every slot of the enderchest for this specific item, if there is then it deletes it.
Doesn't seem to work. I've tried a bunch of things and it just doesn't want to work. I could use some help ngl.
https://imgur.com/a/FWJkGYx
Edited by greyifer on Fri, 01/10/2025 - 17:14
you can use "clear slot <number> of the current open GUI" instead of "remove 1 item...> and "get item from slot <number> of the current open GUI" instead of "get a copy of item from slot..."
So I changed the things you told me to do and I did some debugging, for some reason at the end (Mind you, removed the two blocks that set it back to 0) the slot variable still = 0
Found out, the +1 onto the variable itself and then getting that and doing plus 1 again doesn't work for some reason
I might just use NBT tags