Started by
Cole Snapper
on
Topic category: Help with Minecraft modding (Java Edition)
I'm using 2024.4 for forge, I have a GUI for a block that has inventory slots but slot 2 doesn't work. I can't put anything in it, manually or with a procedure, nothing happens. I can do it with any slot with any other ID but not slot ID 2 specifically. The only thing I can think of is that I originally had a slot 2 with itemstack pickup disabled, then re-enabled itemstack pickup but, I don't see why that would affect itemstack placement. I'm not sure what's going on or how to fix it.
Edited by Cole Snapper on Mon, 06/02/2025 - 01:39
how many inventory slots does the block have in total? if it has 2 slots, they are going to be slots 0 and 1. the maximum number of slots allowed in the blocks setting should always be 1 higher than the largest slot id.
That wasn't the problem, the sections where it says disable taking and disable inserting in the block entity tab were the problem. The block was a copy of a different block and I simply needed to change those two sections to get it working again. I'm embarrassed to say that I discovered this fix shortly after posting this issue. I was busy with other things since fixing the problem so I guess I somehow forgot to update this post as solved.