gitipi Posted April 29, 2023 Posted April 29, 2023 (edited) Who knows how I can check if an item is in the inventory? forge 1.19.... Edited April 29, 2023 by gitipi Quote
sFXprt Posted April 30, 2023 Posted April 30, 2023 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 1 Quote
Recommended Posts
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.