Update readme, init useful script

This commit is contained in:
oitsjustjose 2022-01-03 20:49:01 -06:00
commit 17c90be9d4
3 changed files with 191 additions and 0 deletions

141
loot_tables.md Normal file
View file

@ -0,0 +1,141 @@
### Mod `atmospheric-1.16.5-3.1.1.jar` contained 1 matches for your scanned items:
- [ ] `data/atmospheric/loot_tables/chests/arid_shrine.json`
### Mod `autumnity-1.16.5-2.1.2.jar` contained 1 matches for your scanned items:
- [ ] `data/autumnity/loot_tables/chests/maple_witch_hut.json`
### Mod `betternether_reforged-1.2.jar` contained 1 matches for your scanned items:
- [ ] `data/betternether/loot_tables/chests/ghast_hive.json`
### Mod `BetterStrongholds-1.16.4-1.2.1.jar` contained 7 matches for your scanned items:
- [ ] `data/betterstrongholds/loot_tables/chests/armoury.json`
- [ ] `data/betterstrongholds/loot_tables/chests/cmd_yung.json`
- [ ] `data/betterstrongholds/loot_tables/chests/common.json`
- [ ] `data/betterstrongholds/loot_tables/chests/crypt.json`
- [ ] `data/betterstrongholds/loot_tables/chests/prison_lg.json`
- [ ] `data/betterstrongholds/loot_tables/chests/trap.json`
- [ ] `data/betterstrongholds/loot_tables/chests/treasure.json`
### Mod `ImmersiveEngineering-1.16.5-5.0.7-143.jar` contained 1 matches for your scanned items:
- [ ] `data/immersiveengineering/loot_tables/chests/engineers_house.json`
### Mod `infernal-expansion-1.16.5-2.4.0.jar` contained 2 matches for your scanned items:
- [ ] `data/infernalexp/loot_tables/chests/basalt_delta_ruin_chest.json`
- [ ] `data/infernalexp/loot_tables/chests/glowstone_canyon_ruin_chest.json`
### Mod `repurposed_structures_forge-3.4.7+1.16.5.jar` contained 93 matches for your scanned items:
- [ ] `data/repurposed_structures/loot_tables/chests/bastions/underground/bridge.json`
- [ ] `data/repurposed_structures/loot_tables/chests/bastions/underground/other.json`
- [ ] `data/repurposed_structures/loot_tables/chests/bastions/underground/skeleton_horse_stable.json`
- [ ] `data/repurposed_structures/loot_tables/chests/bastions/underground/treasure.json`
- [ ] `data/repurposed_structures/loot_tables/chests/cities/nether.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/badlands.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/dark_forest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/desert.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/end.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/icy.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/jungle.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/mushroom.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/nether.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/snow.json`
- [ ] `data/repurposed_structures/loot_tables/chests/dungeon/swamp.json`
- [ ] `data/repurposed_structures/loot_tables/chests/fortress/jungle_center_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/fortress/jungle_hallway_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/fortress/jungle_shrine_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/birch.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/birch_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/desert.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/desert_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/jungle.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/jungle_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/oak.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/oak_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/savanna.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/savanna_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/snowy.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/taiga.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mansion/taiga_storage.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/birch.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/crimson.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/dark_forest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/desert.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/end.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/icy.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/jungle.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/nether.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/ocean.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/savanna.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/stone.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/swamp.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/taiga.json`
- [ ] `data/repurposed_structures/loot_tables/chests/mineshaft/warped.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/badlands_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/birch_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/crimson_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/desert_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/end_shulker_box.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/giant_tree_taiga_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/icy_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/jungle_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/nether_brick_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/oak_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/snowy_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/taiga_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/outpost/warped_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/badlands_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/end_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/end_trapped_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/flower_forest_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/giant_tree_taiga_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/icy_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/jungle_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/mushroom_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/nether_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/ocean_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/pyramid/snowy_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/ruined_portal/end/large_portal_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/ruined_portal/end/small_portal_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/shipwreck/crimson/treasure_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/shipwreck/end/treasure_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/shipwreck/nether_bricks/treasure_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/shipwreck/warped/treasure_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/stronghold/nether_hallway.json`
- [ ] `data/repurposed_structures/loot_tables/chests/stronghold/nether_storage_room.json`
- [ ] `data/repurposed_structures/loot_tables/chests/temple/nether_basalt_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/temple/nether_crimson_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/temple/nether_soul_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/temple/nether_warped_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/temple/nether_wasteland_chest.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_badlands_house.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_crimson_cartographer.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_crimson_fisher.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_crimson_house.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_crimson_tannery.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_crimson_weaponsmith.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_warped_cartographer.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_warped_fisher.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_warped_house.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_warped_tannery.json`
- [ ] `data/repurposed_structures/loot_tables/chests/village/village_warped_weaponsmith.json`
### Mod `savageandravage-1.16.5-3.2.0.jar` contained 1 matches for your scanned items:
- [ ] `data/savageandravage/loot_tables/chests/enclosure.json`
### Mod `valhelsia_structures-1.16.5-0.1.6.jar` contained 8 matches for your scanned items:
- [ ] `data/valhelsia_structures/loot_tables/chests/castle.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/castle_ruin.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/desert_house.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/forge.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/player_house.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/spawner_dungeon.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/treasure.json`
- [ ] `data/valhelsia_structures/loot_tables/chests/witch_hut.json`

View file

@ -41,6 +41,7 @@
- ~~Remove Powah’s cables. You’re grounded.~~
- ~~Remove Powah’s ender gates. Use Flux Networks~~
- ~~Balance Modular Routers~~
- Remove any offending loot from loot tables. See `loot_tables.md`
## All GP Tech Mods

49
scan_structures.py Normal file
View file

@ -0,0 +1,49 @@
"""
@author: Jose Stovall | oitsjustjose @ github | twitter | anywhere really
A tool for scanning your mods folder for any particular item to figure out which mod did it, where, etc..
"""
import os
import sys
import zipfile
def main(scannable: list) -> None:
""" The main runfunction of this file """
print(f"Scanning for {len(scannable)} items in ./mods..")
for root, dir, files in os.walk("./mods"):
for file in files:
if not file.endswith(".jar"):
continue
chest_loot_tables = []
zip_fh = zipfile.ZipFile(f"{root}/{file}", "r")
for zip_item in zip_fh.infolist():
if "loot_tables/chests" in zip_item.filename and zip_item.filename.endswith(".json"):
chest_loot_tables.append(zip_item)
filtered_loot_tables = []
for tbl in chest_loot_tables:
# We can safely decode to utf8 because we filter .jsons here ^
data = zip_fh.read(tbl).decode("utf-8")
for scn in scannable:
if scn in data:
filtered_loot_tables.append(tbl.filename)
break
if filtered_loot_tables:
print(f"Mod {file} contained {len(filtered_loot_tables)} matches for your scanned items:")
print(" - ", end="")
print("\n - ".join(filtered_loot_tables))
print("")
if __name__ == "__main__":
_ITEMS_TO_SCAN = []
for arg in sys.argv[1:]:
if ":" in arg and len(arg.split(":")) == 2:
_ITEMS_TO_SCAN.append(arg)
else:
print(f"{arg} is not a valid Minecraft item of form modid:item")
sys.exit(0)
if not _ITEMS_TO_SCAN:
print("No items provided to scan structures for - run this script using python[3] scan_structures.py MODID:ITEM1 [...MODID:ITEM_X for all items]")
sys.exit(0)
main(_ITEMS_TO_SCAN)