summaryrefslogtreecommitdiff
path: root/groovy/postInit
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2024-09-01 01:47:41 +0300
committerDrNuget <drnuget@outlook.com>2024-09-01 01:47:41 +0300
commitff3f3eec73c6fdaa01d22d4aaf55d0ec3a655e9e (patch)
treec33e0cc839e4c654239dc2ee62e831860f07f6f7 /groovy/postInit
first commit
Diffstat (limited to 'groovy/postInit')
-rw-r--r--groovy/postInit/disabled-items.groovy136
-rw-r--r--groovy/postInit/main.groovy2
-rw-r--r--groovy/postInit/oreDicts.groovy23
-rw-r--r--groovy/postInit/oredicts.groovy33
-rw-r--r--groovy/postInit/test.groovy1
5 files changed, 195 insertions, 0 deletions
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')]);