Files
monke/tools/metblock.py

94 lines
3.3 KiB
Python
Raw Permalink Normal View History

2025-09-27 05:50:43 +02:00
nuggets = [
"<minecraft:iron_nugget>",
"<minecraft:gold_nugget>",
"<thermalfoundation:material:192>",
"<thermalfoundation:material:193>",
"<thermalfoundation:material:194>",
"<thermalfoundation:material:195>",
"<thermalfoundation:material:196>",
"<thermalfoundation:material:197>",
"<thermalfoundation:material:198>",
"<thermalfoundation:material:199>",
"<thermalfoundation:material:200>",
"<thermalfoundation:material:224>",
"<thermalfoundation:material:225>",
"<thermalfoundation:material:226>",
"<thermalfoundation:material:227>",
"<thermalfoundation:material:228>",
"<thermalfoundation:material:229>",
"<thermalfoundation:material:230>",
"<thermalfoundation:material:231>",
"<tconstruct:nuggets>",
"<tconstruct:nuggets:1>",
"<tconstruct:nuggets:2>",
"<tconstruct:nuggets:3>",
"<tconstruct:nuggets:4>",
"<tconstruct:nuggets:5>",
"<tcomplement:materials:20>",
]
ingots = [
"<minecraft:iron_ingot>",
"<minecraft:gold_ingot>",
"<thermalfoundation:material:128>",
"<thermalfoundation:material:129>",
"<thermalfoundation:material:130>",
"<thermalfoundation:material:131>",
"<thermalfoundation:material:132>",
"<thermalfoundation:material:133>",
"<thermalfoundation:material:134>",
"<thermalfoundation:material:135>",
"<thermalfoundation:material:136>",
"<thermalfoundation:material:160>",
"<thermalfoundation:material:161>",
"<thermalfoundation:material:162>",
"<thermalfoundation:material:163>",
"<thermalfoundation:material:164>",
"<thermalfoundation:material:165>",
"<thermalfoundation:material:166>",
"<thermalfoundation:material:167>",
"<tconstruct:ingots>",
"<tconstruct:ingots:1>",
"<tconstruct:ingots:2>",
"<tconstruct:ingots:3>",
"<tconstruct:ingots:4>",
"<tconstruct:ingots:5>",
"<tcomplement:materials:10>",
]
blocks = [
"<minecraft:iron_block>",
"<minecraft:gold_block>",
"<thermalfoundation:storage>",
"<thermalfoundation:storage:1>",
"<thermalfoundation:storage:2>",
"<thermalfoundation:storage:3>",
"<thermalfoundation:storage:4>",
"<thermalfoundation:storage:5>",
"<thermalfoundation:storage:6>",
"<thermalfoundation:storage:7>",
"<thermalfoundation:storage:8>",
"<thermalfoundation:storage_alloy>",
"<thermalfoundation:storage_alloy:1>",
"<thermalfoundation:storage_alloy:2>",
"<thermalfoundation:storage_alloy:3>",
"<thermalfoundation:storage_alloy:4>",
"<thermalfoundation:storage_alloy:5>",
"<thermalfoundation:storage_alloy:6>",
"<thermalfoundation:storage_alloy:7>",
"<tconstruct:metal>",
"<tconstruct:metal:1>",
"<tconstruct:metal:2>",
"<tconstruct:metal:3>",
"<tconstruct:metal:4>",
"<tconstruct:metal:5>",
"<tcomplement:storage:1>",
]
with open("metal-ban.zs", "w") as file:
for nug, ing, blk in zip(nuggets, ingots, blocks):
file.write(f"recipes.removeShaped({ing}, [[{nug},{nug},{nug}],[{nug},{nug},{nug}],[{nug},{nug},{nug}]]);\n")
file.write(f"recipes.removeShaped({blk}, [[{ing},{ing},{ing}],[{ing},{ing},{ing}],[{ing},{ing},{ing}]]);\n")
file.write(f"recipes.removeShapeless({nug}*9, [{ing}]);\n")
file.write(f"recipes.removeShapeless({ing}*9, [{blk}]);\n")