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:
@@ -20,6 +20,9 @@ import net.mcreator.customoregen.init.CustomOreGenModTabs;
|
|||||||
import net.mcreator.customoregen.init.CustomOreGenModItems;
|
import net.mcreator.customoregen.init.CustomOreGenModItems;
|
||||||
import net.mcreator.customoregen.init.CustomOreGenModBlocks;
|
import net.mcreator.customoregen.init.CustomOreGenModBlocks;
|
||||||
import net.mcreator.customoregen.item.ShardDiamondArmorMaterial;
|
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.concurrent.ConcurrentLinkedQueue;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -34,7 +37,9 @@ public class CustomOreGenMod {
|
|||||||
|
|
||||||
public CustomOreGenMod(IEventBus modEventBus, ModContainer container) {
|
public CustomOreGenMod(IEventBus modEventBus, ModContainer container) {
|
||||||
// Start of user code block mod constructor
|
// Start of user code block mod constructor
|
||||||
|
container.registerConfig(ModConfig.Type.COMMON, ModConfigs.SPEC);
|
||||||
// End of user code block mod constructor
|
// End of user code block mod constructor
|
||||||
|
|
||||||
NeoForge.EVENT_BUS.register(this);
|
NeoForge.EVENT_BUS.register(this);
|
||||||
|
|
||||||
CustomOreGenModBlocks.REGISTRY.register(modEventBus);
|
CustomOreGenModBlocks.REGISTRY.register(modEventBus);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondaxe",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondaxe"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "minecraft:diamond",
|
"count": 1,
|
||||||
"count": 1
|
"id": "minecraft:diamond"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:ore_biome_finder",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:ore_biome_finder"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondpickaxe",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondpickaxe"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "minecraft:sculk_catalyst",
|
"count": 1,
|
||||||
"count": 1
|
"id": "minecraft:sculk_catalyst"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondboots",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondboots"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondchestplate",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondchestplate"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondhelmet",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondhelmet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondleggings",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondleggings"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"item": "custom_ore_gen:sharddiamondpaxel",
|
"count": 1,
|
||||||
"count": 1
|
"id": "custom_ore_gen:sharddiamondpaxel"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"result": {
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user