Posted June 29, 201312 yr How would I create a recipe for making a wood block from my mod use a tool for the middle but only takes away durability from the tool. This being Wood/Stone/Iron/Gold/Diamond Axe's as I can make the recipe but it takes away the tool, which I don't want to happen I only want the tool to be depleted on making the blocks.
June 29, 201312 yr For that you need and crafting handler. That basicly a class that implements ICraftingHandler. Add the unimplemented methods and you'll need some for loops to check if the item in the crafting grid. If it is, you need to add a new itemstack with the same item to your inventory, but with a lower durabillity. Than in your main class you'll need to register your crafting handler 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/
June 29, 201312 yr You could try out this tutorial http://www.youtube.com/watch?v=nEuTvNts9x4 But I don't know if it works in 1.5.2. Just try it out. http://i.imgur.com/kPfhwnJ.png[/img] ↑↑↑↑↑↑↑↑↑↑ Click it please? :3 ↑↑↑↑↑↑↑↑↑↑
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.