Jump to content

A problem on adding recipes to my mod on 1.16.5


Soling

Recommended Posts

I'm developing a mod named "solingg". I am trying to add recipes to my mod, but my program doesn't work. I was able to obtain my item in-game, so I think it is recipes that cause problem. How should I resolve the problem?

Here shows my JSON file (in src\main\resources\assets\solingg\recipes). "onigiri" is my original item, which means "riceball with seaweed" in Japanese. (Don't mind ingredients and result because it's just an experiment.)

 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "AAA",
    "ABA",
    "AAA"
  ],

  "key": {
    "A": {
      "item": "minecraft:dirt"
    },
    "B": {
      "item": "solingg:onigiri"
    }
  },

  "result": {
    "item": "minecraft:diamond_block",
    "count": 5
  }

}

 

(Sorry for my grammatical awkwardness or errors, I'm not a native English speaker)

Edited by Soling
Link to comment
Share on other sites

  • Soling changed the title to A problem on adding recipes to my mod on 1.16.5
9 minutes ago, Soling said:

I moved to recipes to that directory, but still don't work...

Post logs and a screenshot of the file in the directory tree of your IDE.

9 minutes ago, Soling said:

What is data generation? Is it a kind of programs for people who make mods?

Data generation is the system that Mojang uses to generate their JSON files. Forge exposes it for use in mods. See the docs:
https://mcforge.readthedocs.io/en/latest/datagen/intro/
https://forge.gemwire.uk/wiki/Category:Data_Generation

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

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