Started by
kwii
on
Topic category: Troubleshooting, bugs, and solutions
Whenever I try to access my custom entity's inventory with a procedure (by use of the "get a copy of item from slot [item] of [entity] if it has inventory" block), the game just crashes with this error:
java.lang.RuntimeException: Slot 0 not in valid range - [0,0)
does anyone know why this might be happening?
See https://mcreator.net/wiki/minecraft-crashes-when-i-open-my-gui
Looking at this, there appears to be no discrepancies. I have 17 slots in my gui, IDs from 0-16, and I am trying to access the 16th slot. The entity also has its inventory size set to 17 slots.
In this case, please provide full crash log as link to e.g. pastebin
here it is: https://pastebin.com/NkLkkbVq
Seems the location you are checking for item in slot does not have a block with inventory from the log
I am trying to access a custom entity's inventory, not a block's inventory
Same thing, but with entity. Entity you are accessing does not have big enough inventory
i checked, and i made sure it was definitely larger.