From 9fa12c054c06ab6875a59e042c520cf7cae9e9c4 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Fri, 22 Dec 2023 11:39:16 +0100 Subject: [PATCH] feat: polonium tweaks --- .../ntx4core/recipes/InputReplacements.java | 19 ++++++++++++++++++- .../ntx4core/recipes/ShapedRecipes.java | 12 ++++++++++++ .../data/ntx4core/recipes/animatter_ftb.json | 2 +- .../ntx4core/recipes/antimatter_creation.json | 16 ---------------- .../data/ntx4core/recipes/polonium.json | 12 ++++++++++++ 5 files changed, 43 insertions(+), 18 deletions(-) delete mode 100644 src/main/resources/data/ntx4core/recipes/antimatter_creation.json create mode 100644 src/main/resources/data/ntx4core/recipes/polonium.json diff --git a/src/main/java/net/anvilcraft/ntx4core/recipes/InputReplacements.java b/src/main/java/net/anvilcraft/ntx4core/recipes/InputReplacements.java index b6ec944..d03b1a9 100644 --- a/src/main/java/net/anvilcraft/ntx4core/recipes/InputReplacements.java +++ b/src/main/java/net/anvilcraft/ntx4core/recipes/InputReplacements.java @@ -14,7 +14,7 @@ public class InputReplacements implements IEventBusRegisterable { ev.mapRecipeID( new Identifier("draconicevolution", "components/draconium_core"), - new InputReplaceRecipeMapper().replace("#forge:ingots/draconium", darkMatter) + new InputReplaceRecipeMapper().replace("#forge:ingots/gold", "#forge:pellets/polonium") ); ev.mapRecipeID( @@ -22,6 +22,11 @@ public class InputReplacements implements IEventBusRegisterable { new InputReplaceRecipeMapper().replace("#forge:ingots/draconium", darkMatter) ); + ev.mapRecipeID( + new Identifier("draconicevolution", "wyvern_relay_crystal"), + new InputReplaceRecipeMapper().replace("draconicevolution:draconium_core", "draconicevolution:wyvern_core") + ); + ev.mapRecipeID( new Identifier("projecte", "relay_mk1"), new InputReplaceRecipeMapper().replace( @@ -64,6 +69,18 @@ public class InputReplacements implements IEventBusRegisterable { ) ); + ev.mapRecipeID( + new Identifier("mekanism", "antiprotonic_nucleosynthesizer"), + new InputReplaceRecipeMapper().replace( + "#forge:pellets/antimatter", + "draconicevolution:wyvern_core" + ) + ); + + ev.mapRecipes(new InputReplaceRecipeMapper().replace( + "mekanism:pellet_polonium", "#forge:pellets/polonium" + )); + var philosopherStoneMapper = new InputReplaceRecipeMapper() .replace("#forge:gems/diamond", "ae2:singularity") diff --git a/src/main/java/net/anvilcraft/ntx4core/recipes/ShapedRecipes.java b/src/main/java/net/anvilcraft/ntx4core/recipes/ShapedRecipes.java index e9c87ae..3ec0b40 100644 --- a/src/main/java/net/anvilcraft/ntx4core/recipes/ShapedRecipes.java +++ b/src/main/java/net/anvilcraft/ntx4core/recipes/ShapedRecipes.java @@ -40,6 +40,18 @@ public class ShapedRecipes implements IEventBusRegisterable { .build() ); + ev.registerRecipe( + new ShapedRecipeBuilder( + Ntx4Core.id("antimatter"), + Util.stackFromRegistry(new Identifier("ftbic", "antimatter")) + ) + .pattern("FPF", "PMP", "FPF") + .ingredient('P', "#forge:pellets/antimatter") + .ingredient('F', "#forge:dusts/fluix") + .ingredient('M', "ae2:matter_ball") + .build() + ); + ev.registerRecipe(new ShapedRecipeBuilder( Ntx4Core.id("inscriber"), Util.stackFromRegistry(new Identifier("ae2", "inscriber")) diff --git a/src/main/resources/data/ntx4core/recipes/animatter_ftb.json b/src/main/resources/data/ntx4core/recipes/animatter_ftb.json index 748c07e..5cac2ea 100644 --- a/src/main/resources/data/ntx4core/recipes/animatter_ftb.json +++ b/src/main/resources/data/ntx4core/recipes/animatter_ftb.json @@ -7,6 +7,6 @@ }, "output": { "gas": "mekanism:antimatter", - "amount": 50 + "amount": 40 } } \ No newline at end of file diff --git a/src/main/resources/data/ntx4core/recipes/antimatter_creation.json b/src/main/resources/data/ntx4core/recipes/antimatter_creation.json deleted file mode 100644 index 4bca0b5..0000000 --- a/src/main/resources/data/ntx4core/recipes/antimatter_creation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "mekanism:nucleosynthesizing", - "itemInput": { - "ingredient": { - "item": "ae2:matter_ball" - } - }, - "gasInput": { - "amount": 50, - "gas": "mekanism:antimatter" - }, - "output": { - "item": "ftbic:antimatter" - }, - "duration": 20 -} diff --git a/src/main/resources/data/ntx4core/recipes/polonium.json b/src/main/resources/data/ntx4core/recipes/polonium.json new file mode 100644 index 0000000..bdd8ea9 --- /dev/null +++ b/src/main/resources/data/ntx4core/recipes/polonium.json @@ -0,0 +1,12 @@ +{ + "type": "mekanism:oxidizing", + "input": { + "ingredient": { + "item": "chemlib:polonium_dust" + } + }, + "output": { + "gas": "mekanism:polonium", + "amount": 50 + } +} \ No newline at end of file