From 2d3bd212e7998aa42ee5b8c1b1a1a9723174c11d Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 9 Jan 2022 22:52:59 -0600 Subject: [PATCH] Clean up .py scripts --- .../recipes/woodcutting/corail/compat/gen.py | 77 ------------------- .../cleanup.py | 0 .../scan_structures.py | 0 3 files changed, 77 deletions(-) delete mode 100644 global_data_packs/Harmonious Engineering/data/harmeng/recipes/woodcutting/corail/compat/gen.py rename {global_data_packs/Harmonious Engineering => scripts}/cleanup.py (100%) rename scan_structures.py => scripts/scan_structures.py (100%) diff --git a/global_data_packs/Harmonious Engineering/data/harmeng/recipes/woodcutting/corail/compat/gen.py b/global_data_packs/Harmonious Engineering/data/harmeng/recipes/woodcutting/corail/compat/gen.py deleted file mode 100644 index ee5e19d..0000000 --- a/global_data_packs/Harmonious Engineering/data/harmeng/recipes/woodcutting/corail/compat/gen.py +++ /dev/null @@ -1,77 +0,0 @@ -import json - -DATA = [{ - "modid": "atmospheric", - "name": "morado", - "tag": "morado_logs", - "plank": "morado_planks" -}, { - "modid": "atmospheric", - "name": "rosewood", - "tag": "rosewood_logs", - "plank": "rosewood_planks" -}, { - "modid": "atmospheric", - "name": "yucca", - "tag": "yucca_logs", - "plank": "yucca_planks" -}, { - "modid": "upgrade_aquatic", - "name": "river", - "tag": "river_logs", - "plank": "river_planks" -}, { - "modid": "upgrade_aquatic", - "name": "driftwood", - "tag": "driftwood_logs", - "plank": "driftwood_planks" -}, { - "modid": "autumnity", - "name": "maple", - "tag": "maple_logs", - "plank": "maple_planks" -}, { - "modid": "enhanced_mushrooms", - "name": "red_mushroom", - "tag": "red_mushroom_stems", - "plank": "red_mushroom_planks" -}, { - "modid": "enhanced_mushrooms", - "name": "brown_mushroom", - "tag": "brown_mushroom_stems", - "plank": "brown_mushroom_planks" -}] - -BLOCK_TYPES = [{ - "name": "palisade", - "requires": "tag", - "creates": 4 -}, { - "name": "beam", - "requires": "tag", - "creates": 1 -}, { - "name": "seat", - "requires": "plank", - "creates": 1 -}, { - "name": "support", - "requires": "plank", - "creates": 1 -}] - -for d in DATA: - for b in BLOCK_TYPES: - datapack = { - "type": "corail_woodcutter:woodcutting", - "ingredient": { - "tag": f"{d['modid']}:{d['tag']}" - } if b["requires"] == "tag" else { - "item": f"{d['modid']}:{d['plank']}" - }, - "result": f"decorative_blocks_abnormals:{d['name']}_{b['name']}", - "count": b["creates"] - } - - with open(f"{d['name']}_{b['name']}.json", "w") as fh: - fh.write(json.dumps(datapack)) \ No newline at end of file diff --git a/global_data_packs/Harmonious Engineering/cleanup.py b/scripts/cleanup.py similarity index 100% rename from global_data_packs/Harmonious Engineering/cleanup.py rename to scripts/cleanup.py diff --git a/scan_structures.py b/scripts/scan_structures.py similarity index 100% rename from scan_structures.py rename to scripts/scan_structures.py