How do I get Recipes

Started by Th3Eye on

Topic category: Help with modding (Java Edition)

Last seen on 03:45, 8. Jan 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I get Recipes
Wed, 10/10/2018 - 18:45 (edited)

I want to get the recipe of an item available in Minecraft, ie. what is required in the recipe when given what is made. I haven't found anything like this in the blocky procedures, so how can I do this in code? Thanks in advance!

Edited by Th3Eye on Wed, 10/10/2018 - 18:45
Last seen on 22:48, 26. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
AFAIK, you can't do this…
Mon, 10/22/2018 - 04:57

AFAIK, you can't do this with blocks, or with code for that matter, don't quote me. There are, however, two ways of getting recipes easily:

1. Typing in the command /recipe give @a *
What this command does is self-explanatory - It will give you every recipe for every item, including modded items. You can change the * for minecraft:* or <modname>:* to get recipes.

 

2. Using a mod that shows recipes, like JEI (Just Enough Items)
Just Enough Items, along with any other inventory-type mod that has this feature, allows you to see the recipes for certain items.

Last seen on 03:45, 8. Jan 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That is not at all what I…
Mon, 10/22/2018 - 05:30

That is not at all what I meant. I want to get the recipes for items to use in the mod, not get the recipes to give the player.

Last seen on 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cant edit Vanilla…
Mon, 10/22/2018 - 21:22

You cant edit Vanilla recipes they are hardcoded by MCreator

 

Last seen on 03:45, 8. Jan 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not edit, access.
Tue, 10/23/2018 - 21:37

Not edit, access.

Last seen on 22:48, 26. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All internal Minecraft…
Tue, 10/23/2018 - 22:26

All internal Minecraft recipes are located in their respective .JAR files in the .minecraft/versions folder. So if you wanted to get the recipes for a version of Minecraft, lets say 1.12, you need to have downloaded the 1.12 version from the launcher, then go to .minecraft/versions/1.12/1.12.jar and open via WinRAR/7Zip. The recipes are in JSON format and can be found in assets/minecraft/recipes.

Last seen on 03:45, 8. Jan 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But how do I access them in…
Tue, 10/23/2018 - 23:50

But how do I access them in MCreator? I need them for a custom crafter block.

Last seen on 22:48, 26. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cannot access the…
Tue, 10/23/2018 - 23:56

You cannot access the crafting recipes that are built in Minecraft, i.e. Bows and Swords, in custom crafting blocks using MCreator, as MCreator does not use the same crafting mechanics as Minecraft's internal MATTIS system. You have to make recipes through the "Recipe" elements, which do work with the vanilla MATTIS Crafting Table, or through Procedures/coding, which only work with custom Crafting Blocks with inventory.

 

Last seen on 03:45, 8. Jan 2020
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you. That's all I…
Wed, 10/24/2018 - 00:00

Thank you. That's all I needed to know.