Jump to content

Need help with Crafting Handlers


AppliedOnce

Recommended Posts

This turns out to be a better way than using a CraftingHandler, which is what I had also been doing and advising others to do. I worked it out from someone else's code, somewhere, and it worked, so I had no reason to suspect it was not the "right" way to do ti.

What's wrong with using the CraftingHandler, anyway?

 

There really needs to be a "Best Practices" guide for Forge, because one really has no way of knowing if someone else's code that one is learning from is good code or not.  Or is modding like Perl: "There's more than one way to do it"?

 

Now, on to a related problem: if a tool is not consumed by a recipe (because of hasContainerItem()/getContainerItemStack()), how do you keep the repair function of the crafting table from turning into a tool duping machine?

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.



×
×
  • Create New...

Important Information

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