Jump to content

[1.18.1] Need help figuring out how to implement "crafting damage" onto an item


Recommended Posts

Posted

I want one of my items to take damage when crafted with (like the Forge Hammer or Cutters from IC2, for example). I was under the impression that this would be relatively simple considering how often it seems to appear in mods but apparently I am mistaken. I thought it would just involve making a custom class of items that would stay in the grid and take a set amount of damage when crafted with, but I've been told by a member of a modding community I am in that I need to deal with something called a recipe serializer. I wouldn't normally post here, but I haven't been able to find any modern documentation about it.

Posted (edited)

You can simply override hasContainerItem and return a damaged item in getContainerItem, the names probably had changed.

If you can't figure out yourself look for the previous posts in the forum, there is a lot of them.

Edited by poopoodice

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.