RoCoKo Posted December 4, 2018 Share Posted December 4, 2018 We have a knife in our mod. I want to make it loses 1 durability after using in crafting recipe and needs to go to inventory after craft. How can i make it? Quote Link to comment Share on other sites More sharing options...
larsgerrits Posted December 4, 2018 Share Posted December 4, 2018 Override Item#hasContainerItem and Item#getContainerItem. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/ Link to comment Share on other sites More sharing options...
Animefan8888 Posted December 4, 2018 Share Posted December 4, 2018 31 minutes ago, RoCoKo said: How can i make it? As stated above, but use the Item#getContainerItem(ItemStack) version. And return a cloned ItemStack with its damage increased. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
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.