From ff3f3eec73c6fdaa01d22d4aaf55d0ec3a655e9e Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 1 Sep 2024 01:47:41 +0300 Subject: first commit --- groovy/postInit/disabled-items.groovy | 136 ++++++++++++++++++++++++++++++++++ groovy/postInit/main.groovy | 2 + groovy/postInit/oreDicts.groovy | 23 ++++++ groovy/postInit/oredicts.groovy | 33 +++++++++ groovy/postInit/test.groovy | 1 + groovy/preInit/gregtech-gears.groovy | 4 + groovy/runConfig.json | 23 ++++++ 7 files changed, 222 insertions(+) create mode 100644 groovy/postInit/disabled-items.groovy create mode 100644 groovy/postInit/main.groovy create mode 100644 groovy/postInit/oreDicts.groovy create mode 100644 groovy/postInit/oredicts.groovy create mode 100644 groovy/postInit/test.groovy create mode 100644 groovy/preInit/gregtech-gears.groovy create mode 100644 groovy/runConfig.json (limited to 'groovy') diff --git a/groovy/postInit/disabled-items.groovy b/groovy/postInit/disabled-items.groovy new file mode 100644 index 0000000..c7bca4e --- /dev/null +++ b/groovy/postInit/disabled-items.groovy @@ -0,0 +1,136 @@ + +//Disable duplicate items from JEI +for (i in [ + //Copper ingot + item('forestry:ingot_copper'), + item('nuclearcraft:ingot'), + item('projectred-core:resource_item', 100), + item('mekanism:ingot', 5), + + //Copper nugget + item('mekanism:nugget', 5), + + //Copper block + item('forestry:resource_storage', 1), + item('nuclearcraft:ingot_block'), + item('mekanism:basicblock', 12), + + //Copper dust + item('nuclearcraft:dust'), + item('mekanism:dust', 3), + item('mekanism:dirtydust', 3), + item('enderio:item_material', 26), + + //Copper gear + item('forestry:gear_copper'), + + //Tin ingot + item('forestry:ingot_tin'), + item('nuclearcraft:ingot', 1), + item('projectred-core:resource_item', 101), + item('mekanism:ingot', 6), + + //Tin nugget + item('mekanism:nugget', 6), + + //Tin block + item('forestry:resource_storage', 2), + item('nuclearcraft:ingot_block', 1), + item('mekanism:basicblock', 13), + + //Tin dust + item('nuclearcraft:dust', 1), + item('mekanism:dust', 4), + item('mekanism:dirtydust', 4), + item('enderio:item_material', 27), + + //Tin gear + item('forestry:gear_tin'), + + //Bronze ingot + item('forestry:ingot_bronze'), + item('nuclearcraft:alloy'), + item('mekanism:ingot', 2), + + //Bronze nugget + item('mekanism:nugget', 2), + + //Bronze block + item('forestry:resource_storage', 3), + item('mekanism:basicblock', 1), + + //Bronze gear + item('forestry:gear_bronze'), + + //Steel ingot + item('nuclearcraft:alloy', 5), + item('mekanism:ingot', 4), + + //Steel block + item('mekanism:basicblock', 5), + + //Lead ingot + item('nuclearcraft:ingot', 2), + item('mekanism:ingot', 7), + + //Lead nugget + item('mekanism:nugget', 7), + + //Lead block + item('nuclearcraft:ingot_block', 2), + item('mekanism:basicblock2', 11), + + //Aluminium ingot + item('nuclearcraft:ingot', 12), + + //Aluminium block + item('nuclearcraft:ingot_block', 12), + + //Silver ingot + item('nuclearcraft:ingot', 13), + item('projectred-core:resource_item', 102), + + //Silver block + item('nuclearcraft:ingot_block', 13), + + //Platinum ingot + item('qmd:ingot', 10), + + //Uranium ingot + item('mekanism:ingot', 8), + + //Uranium block + item('mekanism:basicblock2', 10), + + //Stainless steel ingot + item('qmd:ingot_alloy', 2), + + //Beryllium ingot + item('nuclearcraft:ingot', 9), + + //Manganese ingot + item('nuclearcraft:ingot', 11), + + //Magnesium-diboride ingot + item('nuclearcraft:alloy', 3), + + //Osmiridium ingot + item('qmd:ingot_alloy', 4), + + //Red alloy ingot + item('projectred-core:resource_item', 103), + + //Niobium-titanium ingot + item('qmd:ingot_alloy', 3), + + //Nichrome ingot + item('qmd:ingot_alloy', 5), + + //Iridium ingot + item('qmd:ingot', 9), + + //Titanium ingot + item('qmd:ingot', 3) +]) { + mods.jei.ingredient.yeet(i); +} diff --git a/groovy/postInit/main.groovy b/groovy/postInit/main.groovy new file mode 100644 index 0000000..9f52718 --- /dev/null +++ b/groovy/postInit/main.groovy @@ -0,0 +1,2 @@ + +println('Hello World!') diff --git a/groovy/postInit/oreDicts.groovy b/groovy/postInit/oreDicts.groovy new file mode 100644 index 0000000..9bcbed9 --- /dev/null +++ b/groovy/postInit/oreDicts.groovy @@ -0,0 +1,23 @@ +for (i in [ + "ingotBronze", + "nuggetBronze", + "gearBronze", + "plateBronze", + + "ingotCopper", + "nuggetCopper", + "gearCopper", + "plateCopper", + + "ingotTin", + "nuggetTin", + "gearTin", + "plateTin", + + "ingotSilver" +]) { + oreDict.removeAll(i); + oreDict.add(i, metaitem(i)); +} + +crafting.removeByOutput(item("gregtech:pickaxe")); diff --git a/groovy/postInit/oredicts.groovy b/groovy/postInit/oredicts.groovy new file mode 100644 index 0000000..cb34797 --- /dev/null +++ b/groovy/postInit/oredicts.groovy @@ -0,0 +1,33 @@ +for (i in [ + "ingotBronze", + "nuggetBronze", + "blockBronze", + "gearBronze", + "plateBronze", + + "ingotCopper", + "nuggetCopper", + "blockCopper", + "gearCopper", + "plateCopper", + + "ingotTin", + "nuggetTin", + "blockTin", + "gearTin", + "plateTin", + + "ingotLead", + "nuggetLead", + "blockLead", + + "ingotSilver", + "blockSilver", + + "ingotRedAlloy" +]) { + oreDict.removeAll(i); + oreDict.add(i, metaitem(i)); +} + +crafting.removeByOutput(item("gregtech:pickaxe")); diff --git a/groovy/postInit/test.groovy b/groovy/postInit/test.groovy new file mode 100644 index 0000000..66efd30 --- /dev/null +++ b/groovy/postInit/test.groovy @@ -0,0 +1 @@ +crafting.addShapeless(item('minecraft:diamond'),[item('minecraft:dirt')]); diff --git a/groovy/preInit/gregtech-gears.groovy b/groovy/preInit/gregtech-gears.groovy new file mode 100644 index 0000000..d037895 --- /dev/null +++ b/groovy/preInit/gregtech-gears.groovy @@ -0,0 +1,4 @@ +mods.gregtech.lateMaterialEvent { + material("copper").addFlags("generate_gear") + material("tin").addFlags("generate_gear") +} diff --git a/groovy/runConfig.json b/groovy/runConfig.json new file mode 100644 index 0000000..da10c5b --- /dev/null +++ b/groovy/runConfig.json @@ -0,0 +1,23 @@ +{ + "packName": "PlaceHolder name", + "packId": "placeholdername", + "version": "1.0.0", + "debug": false, + "classes": { + "preInit": [] + }, + "loaders": { + "preInit": [ + "preInit/" + ], + "postInit": [ + "postInit/" + ] + }, + "packmode": { + "values": [], + "default": "", + "_comment": "By default the packmode is not synced with the packmode mod. You can enable integration, but you can no longer change packmode on the fly.", + "integratePackmodeMod": false + } +} \ No newline at end of file -- cgit v1.2.3