Posted December 30, 20186 yr I know that "addItemStackToInventory" adds specific items to the inventory. Conversely, how do I remove certain items from my inventory? (version 1.12.2)
December 30, 20186 yr You can get the stack you want to remove and use the shrink method to remove the itemstack from inventory. Or you can use InventoryPlayer#clearMatchingItems.
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.