Posted April 29, 20232 yr Who knows how I can check if an item is in the inventory? forge 1.19.... Edited April 29, 20232 yr by gitipi
April 30, 20232 yr Iterate through player.getInventory and check the items list and see if the itemstack is there or if you specifically want an item then do ItemStack$getItem().equals() or ItemStack$getItem() instance of
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.