Started by
TDO
on
Topic category: Help with Minecraft modding (Java Edition)
I want to do a shop block, and everything is done, except the part that stores the collected items in the block GUI and takes items from it. Idk how to check for the whole GUI except two slots.
I need first to check if in the whole GUI there is enough if the specified item; then substract them from the GUI, but I also need to check for slots with enough room for the coins collected from the clients.
If someone knows how to do this, tell me i would be so greateful 🙏
Use loop to iterate through all slots and accumulate sum in local variable