Topic category: Help with modding (Java Edition)
Hello! Im searching how to get a inventory's max number of slot from a tile entity !
What i'm trying to do is to make a entity that can grab/deposit from containers, and for that i need to check each slot of any given chest,hopper,container,modded,vanilla, .... and try to grab a item if there is one, or deposit one if there is space/a slot that fit the item the entity is holding
So far i'm trying to use custom code snippets, but as always, making them work is such a pain in the ass, i'm trying to make use of the getSizeInventory(), but so far, can't make it work at all
This is the code i had so far, but doesnt work
I would really like any help if possible !!!!