fix: register config and update recipe formats for 1.21.1

- Registered ModConfigs.SPEC in CustomOreGenMod to avoid IllegalStateException
- Updated all recipe JSONs to use 'id' instead of 'item' in result fields
- Renamed mekanism recipes folder to match 1.21.1 conventions
This commit is contained in:
feldenr
2026-02-02 23:20:17 +01:00
parent bca6034dd7
commit 0fa495474b
13 changed files with 45 additions and 28 deletions
@@ -20,6 +20,9 @@ import net.mcreator.customoregen.init.CustomOreGenModTabs;
import net.mcreator.customoregen.init.CustomOreGenModItems;
import net.mcreator.customoregen.init.CustomOreGenModBlocks;
import net.mcreator.customoregen.item.ShardDiamondArmorMaterial;
import net.mcreator.customoregen.config.ModConfigs;
import net.neoforged.fml.config.ModConfig;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.List;
@@ -34,7 +37,9 @@ public class CustomOreGenMod {
public CustomOreGenMod(IEventBus modEventBus, ModContainer container) {
// Start of user code block mod constructor
container.registerConfig(ModConfig.Type.COMMON, ModConfigs.SPEC);
// End of user code block mod constructor
NeoForge.EVENT_BUS.register(this);
CustomOreGenModBlocks.REGISTRY.register(modEventBus);
@@ -15,7 +15,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondaxe",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondaxe"
}
}
@@ -12,7 +12,7 @@
}
},
"result": {
"item": "minecraft:diamond",
"count": 1
"count": 1,
"id": "minecraft:diamond"
}
}
@@ -14,7 +14,7 @@
}
},
"result": {
"item": "custom_ore_gen:ore_biome_finder",
"count": 1
"count": 1,
"id": "custom_ore_gen:ore_biome_finder"
}
}
}
@@ -15,7 +15,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondpickaxe",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondpickaxe"
}
}
@@ -18,7 +18,7 @@
}
},
"result": {
"item": "minecraft:sculk_catalyst",
"count": 1
"count": 1,
"id": "minecraft:sculk_catalyst"
}
}
}
@@ -11,7 +11,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondboots",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondboots"
}
}
@@ -15,7 +15,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondchestplate",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondchestplate"
}
}
}
@@ -12,7 +12,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondhelmet",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondhelmet"
}
}
}
@@ -15,7 +15,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondleggings",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondleggings"
}
}
}
@@ -21,7 +21,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondpaxel",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondpaxel"
}
}
}
@@ -15,7 +15,7 @@
}
},
"result": {
"item": "custom_ore_gen:sharddiamondshovel",
"count": 1
"count": 1,
"id": "custom_ore_gen:sharddiamondshovel"
}
}
@@ -0,0 +1,12 @@
{
"type": "mekanism:enriching",
"input": {
"ingredient": {
"tag": "forge:ores/shard_diamond"
}
},
"output": {
"count": 2,
"id": "custom_ore_gen:diamondshard"
}
}