Jump to content

[1.12.2] How do you return a item from crafting table with damage?


Recommended Posts

Posted (edited)

saddleToLeather.json

Hello! I'm new, I just joined, I started modding a week ago or so and I don't have a good understanding of java but I'm working on that.

 

I'm trying to make a recipe so the player can craft 3 leather from one saddle and a pair of shears, returning the shears with 4 damage and consuming the saddle.

The recipe needs to be able to use shears with any damage. I have read about wild cards and item containers but all those threads were old.

 

I made a mod pack once and use CraftTweaker to make my own custom recipes using scripts and I loved it and wanted to try my hand at modding. I really don't know what I'm doing though; I don't want to just copy and paste code but I'm sure if I saw it I could figure it out. 

Edited by StoneHammers
Posted

You won't be able to accomplish this without writing some Java. Water buckets (milk buckets, lava buckets) all return a "container item" when used in crafting because that's already been coded in. Vanilla has not applied the same logic to tool-like items in order to make them take damage. Any mod you've seen that does that has added that functionality themselves in the Java code.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.