Open MoriTanosuke opened 7 years ago
As of 1.12.x this recipes could be provided by providing custom JSON recipe files, I think. Need to try it.
The recipes can also be provided via a data pack, see https://minecraft.gamepedia.com/Data_pack. Information about recipe JSON at https://minecraft.gamepedia.com/Recipe
Here are more recipes to be provided via JSON recipe files:
I think it's possible to define JSON files outside the mod, so they can be provided by a resource pack (or manually by copying them somewhere into the minecraft folder).
Zombie egg is done:
Here is the JSON:
{
"type": "minecraft:crafting_shaped",
"pattern": [
"AAA",
"AAA",
"AAA"
],
"key": {
"A": {
"item": "minecraft:rotten_flesh"
}
},
"result": {
"item": "minecraft:spawn_egg",
"nbt": {
"EntityTag": {
"id": "minecraft:zombie"
}
},
"count": 1
}
}
Spawners are still an issue, I can't figure out how to create a spawner with an entity...
Zombie/Skeleton spawners are available. Spider Spawner is using a spider spawn egg. I still don't know how to create a wither skeleton skull though... 😢
The code for recipes is actually in the mod, but they are not showing up in JEI and they are not craftable:
https://github.com/MoriTanosuke/nadiamiona/blob/f372ea0feedceadd88ac7679000ad4248f83ec77/src/main/java/kalle/recipes/Recipes.java#L188-L209
I suspect this is an issue with the NBT data, but I'm not sure.