Posted May 21, 20178 yr I want to make a chest that once you drop items in it, it deletes it. I know how to make a chest, but i want to prevent it to store the inventory and it should delete everything it gets. Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
May 21, 20178 yr One way to do this would be to create your own Slot implementation, overriding any methods which refer to an inventory so that they do nothing but return empty stacks where needed.
May 21, 20178 yr Author i have added this to the tileentity's update method: for (int slot = 0; slot < this.getSizeInventory(); slot++) { ItemStack stack = getStackInSlot(slot); if (stack != null) { decrStackSize(slot, 1); } It deletes really fast. Not that i bother personally, but does this has any negative effects ont he gameplay? maybe lagg or something? Should i make it slower? Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.