Jump to content

[Solved] How to add recipes for item with different damage data


NovaViper

Recommended Posts

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:

Item Registery: https://github.com/percivalalb/DoggyTalents/blob/master/src-mc-1.12.2/doggytalents/ModItems.java

Edited 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!

Link to comment
Share on other sites

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 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!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.