Jump to content

Recommended Posts

Posted
4 minutes ago, diesieben07 said:

Indeed, you cannot. Add recipes using JSON.

Hmm, but if I use 1.11 addRecipe? Especially in 1.12 no json recipes melting and boiling foul potions.

Posted
2 hours ago, diesieben07 said:

That functionality is not going to work in 1.12.x then.

I say that I want not only to 1.12. I want to see the implementation in early versions, 1.12 accidentally ordered, I'm sorry.

Posted
5 minutes ago, diesieben07 said:

Why? You talked about custom NPCs, but clearly that is not your mod, is it? Please explain your exact use-case.

Yes, it's not my mod. I need it because I already have the object, which is registered once and I do a lot of different, to change NBT data, tooltips, etc. Now I am faced with the problem of recipes for these items and the substitution of the textures, depending on NBT data. The substitution of the textures and icons should occur for the specific item with a specific nbt data, with recipes as well. I will be glad if you can help me in this matter.

Posted
11 minutes ago, diesieben07 said:

You have said nothing.

Please describe the recipes from an end-user perspective, not how you intend to code it.

Hrm, the player puts things in slots(3 x 3 in the bench) and puts it in the slot results in a single object. In the menu, the player clicks "save" and the recipe is saved in my data file, which is stored in the world. Then if the player opens the menu "library", he can choose the item you created earlier, click "to" and then the mod takes the stack and puts to him all that was stated previously and adds to the world the recipe for this item.

Posted
4 minutes ago, diesieben07 said:

You will have to write a custom recipe implementation which manages all stored patterns.

This is understandable, but how to make the recipes available in the workbench without restarting? And how can you make the implementation with textures and icons, about which I wrote above?

Posted
4 minutes ago, diesieben07 said:

You don't make new recipes. You have one recipe which represents whatever "custom recipes" the user created. This recipe is registered once at startup.

 

You need a normal container GUI with inventory, etc.

You do not understand, I mean, how can I change the texture of the object directly in the game? See, before 1.7.10 was setTexture method and getIcon(or something similar) and it was possible to prescribe a different texture, and all would have worked, but how to do it on 1.8++ I have no idea.

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.