Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author
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.

  • Author
24 minutes ago, diesieben07 said:

How does it change? How does that affect the recipe? 

So, look mod Customs npc, he have function for adding recipes in game.

  • Author
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.

  • Author
1 minute ago, diesieben07 said:

Even in earlier versions it is a bad idea to do it.

I need a realization, but it's bad or good without a difference.

  • Author
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.

  • Author
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.

  • Author
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?

  • Author
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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.