Stop player from picking up items in inventories
cooperuser opened this issue ยท 1 comments
I have plans to make it so that the player cannot pick up items in inventories (i.e. clicking on the iron in a furnace to bring it to your inventory). I looked through minecraftforge's event list but did not find any event that is called when the user clicks on an ItemStack in a Container.
Possible ways around this:
- Fork MinecraftForge/MinecraftForge and implement this manually, then make a pull request
- Find some hacky way to stop the user from obtaining unwanted items, maybe checking every slot in their inventory every once in a while and depositing them
Update: I just submitted a pull request to MinecraftForge/MinecraftForge implementing a new hook labeled ItemTakeEvent
that gets called whenever the player tries to grab an item from a Container
. It sends the EntityPlayer
and the ItemStack
, so should now be really easy to implement the filter. This issue should close soon.