Jump to content

Recommended Posts

Posted

Hello my first question is if can i use custom recipe type in Crafting Table, my goal is to create crafting table recipes with require more than one item in the same slot of crafting grid.

I achieved this in half way, i would say. I created custom Crafting Recipe and serializer with store count of items needed to craft. I made so it check if there is enough items in slot with are needed for craft and it is working just fine, but the issue with that is when i craft it removes only one item per slot instead of required amount and i don't know how can i achieve so it removes the correct number of items.

  • Confused 1
Posted

The method ResultSlot.onTake() hardwires the value 1 in its call to CraftingContainer.removeItem()

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted (edited)

That's what I saw. But there must be a way to do that I can see that one mod already doing that and i know i could easly do this by adding custom crafting table but i would prefear to do it in standard crafting table.

Edited by Maciej916
Posted

Then look at how that mod does it.

I would bet it either;

* changes the crafting table recipe to output its own implementation of the crafting table

* uses mixins or some other byte code manipulation

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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.