Posted December 10, 20186 yr Hey, I'm trying to figure out how to add a recipe for an item that has subitems (throw stick and throw bone). Each item have its own state, dry and drooled on. The issue I'm running into is that whenever I place either item into the crafting table, I end up getting a different one instead (i.e. if I placed the drool bone, I end up getting a dry stick instead of a dry bone). The damage ids are 0 (throw bone dry), 1 (throw bone wet), 2 (throw stick wet), 3 (throw stick wet). Just to warn, I did not make the code myself, I'm merely contributing to the current project. The issue: https://github.com/percivalalb/DoggyTalents/issues/114 The recipes: From wet stick to dry stick: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/assets/doggytalents/recipes/throw_stick_dry.json create throw stick: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/assets/doggytalents/recipes/throw_stick.json from wet bone to dry bone: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/assets/doggytalents/recipes/throw_bone_dry.json create throw bone: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/assets/doggytalents/recipes/throw_bone.json Item Registery: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/doggytalents/ModItems.java Edited December 11, 20186 yr by NovaViper Got it solved Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
December 11, 20186 yr Author 18 hours ago, diesieben07 said: Items that use metadata in this way must be marked as such by calling Item#setHasSubtypes. --Edit-- Oh nvm, I forgot to change a number in the json file. The flag made it all work. Thanks! Edited December 11, 20186 yr by NovaViper Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
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.