diff --git a/.gitignore b/.gitignore index c9e06ea..18aae5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # Python cache __pycache__/ *.pyc +build/scripts/**/__pycache__/ +build/scripts/**/*.pyc # Generated build outputs build/scripts/__pycache__/ diff --git a/build/renameable-items-lz.md b/build/renameable-items-lz.md index 70669e6..81a362e 100644 --- a/build/renameable-items-lz.md +++ b/build/renameable-items-lz.md @@ -4,8 +4,8 @@ Generated from the resource pack item model JSON. ## Summary -- Base items: 25 -- Rename variants: 116 +- Base items: 28 +- Rename variants: 124 - Render mode: local Python renderer ## apple @@ -108,6 +108,18 @@ Generated from the resource pack item model JSON. - `soup` -> `lz:food/soup_vegetable` - Preview: soup +## carved_pumpkin + +- Generated from: `assets/minecraft/items/carved_pumpkin.json` +- Fallback model: `minecraft:block/carved_pumpkin` + +### Rename variants + +- `floral_crown` -> `lz:hats/floral_crown` + - Preview: floral_crown +- `witch_hat` -> `lz:hats/witch` + - Preview: witch_hat + ## cocoa_beans - Generated from: `assets/minecraft/items/cocoa_beans.json` @@ -378,6 +390,24 @@ Generated from the resource pack item model JSON. - `presents` -> `lz:festive/presents` - Preview: presents +## pumpkin + +- Generated from: `assets/minecraft/items/pumpkin.json` +- Fallback model: `minecraft:block/pumpkin` + +### Rename variants + +- `stuffed_pumpkin` -> `lz:food/stuffed_pumpkin` + - Preview: stuffed_pumpkin +- `stuffed_pumpkin_1` -> `lz:food/stuffed_pumpkin_1` + - Preview: stuffed_pumpkin_1 +- `stuffed_pumpkin_2` -> `lz:food/stuffed_pumpkin_2` + - Preview: stuffed_pumpkin_2 +- `stuffed_pumpkin_3` -> `lz:food/stuffed_pumpkin_3` + - Preview: stuffed_pumpkin_3 +- `stuffed_pumpkin_4` -> `lz:food/stuffed_pumpkin_4` + - Preview: stuffed_pumpkin_4 + ## pumpkin_pie - Generated from: `assets/minecraft/items/pumpkin_pie.json` @@ -420,6 +450,16 @@ Generated from the resource pack item model JSON. - `roll_6` -> `lz:food/plated_salmon_roll_6` - Preview: roll_6 +## snow_block + +- Generated from: `assets/minecraft/items/snow_block.json` +- Fallback model: `minecraft:block/snow_block` + +### Rename variants + +- `snowman` -> `lz:festive/snowman` + - Preview: snowman + ## sweet_berries - Generated from: `assets/minecraft/items/sweet_berries.json` diff --git a/build/renameable-items.json b/build/renameable-items.json index 23175f7..73089e1 100644 --- a/build/renameable-items.json +++ b/build/renameable-items.json @@ -165,6 +165,24 @@ } ] }, + { + "item": "carved_pumpkin", + "fallback_model": "minecraft:block/carved_pumpkin", + "source_file": "assets/minecraft/items/carved_pumpkin.json", + "render_path": "renders/minecraft/block/carved_pumpkin.png", + "cases": [ + { + "when": "floral_crown", + "model": "lz:hats/floral_crown", + "render_path": "renders/lz/hats/floral_crown.png" + }, + { + "when": "witch_hat", + "model": "lz:hats/witch", + "render_path": "renders/lz/hats/witch.png" + } + ] + }, { "item": "cocoa_beans", "fallback_model": "minecraft:item/cocoa_beans", @@ -1220,6 +1238,39 @@ } ] }, + { + "item": "pumpkin", + "fallback_model": "minecraft:block/pumpkin", + "source_file": "assets/minecraft/items/pumpkin.json", + "render_path": "renders/minecraft/block/pumpkin.png", + "cases": [ + { + "when": "stuffed_pumpkin", + "model": "lz:food/stuffed_pumpkin", + "render_path": "renders/lz/food/stuffed_pumpkin.png" + }, + { + "when": "stuffed_pumpkin_1", + "model": "lz:food/stuffed_pumpkin_1", + "render_path": "renders/lz/food/stuffed_pumpkin_1.png" + }, + { + "when": "stuffed_pumpkin_2", + "model": "lz:food/stuffed_pumpkin_2", + "render_path": "renders/lz/food/stuffed_pumpkin_2.png" + }, + { + "when": "stuffed_pumpkin_3", + "model": "lz:food/stuffed_pumpkin_3", + "render_path": "renders/lz/food/stuffed_pumpkin_3.png" + }, + { + "when": "stuffed_pumpkin_4", + "model": "lz:food/stuffed_pumpkin_4", + "render_path": "renders/lz/food/stuffed_pumpkin_4.png" + } + ] + }, { "item": "pumpkin_pie", "fallback_model": "minecraft:item/pumpkin_pie", @@ -1301,6 +1352,19 @@ } ] }, + { + "item": "snow_block", + "fallback_model": "minecraft:block/snow_block", + "source_file": "assets/minecraft/items/snow_block.json", + "render_path": "renders/minecraft/block/snow_block.png", + "cases": [ + { + "when": "snowman", + "model": "lz:festive/snowman", + "render_path": "renders/lz/festive/snowman.png" + } + ] + }, { "item": "sweet_berries", "fallback_model": "minecraft:item/sweet_berries", diff --git a/build/scripts/__pycache__/build_readme_impl.cpython-313.pyc b/build/scripts/__pycache__/build_readme_impl.cpython-313.pyc deleted file mode 100644 index 840781a..0000000 Binary files a/build/scripts/__pycache__/build_readme_impl.cpython-313.pyc and /dev/null differ diff --git a/build/scripts/build_readme_impl.py b/build/scripts/build_readme_impl.py index 80226bc..0fa6152 100644 --- a/build/scripts/build_readme_impl.py +++ b/build/scripts/build_readme_impl.py @@ -88,9 +88,7 @@ def collect_renameable_items(pack_root: Path) -> list[dict[str, Any]]: if fallback_ref is None: continue - item_name = item_name_from_fallback(fallback_ref) - if item_name is None: - continue + item_name = item_file.stem cases: list[dict[str, Any]] = [] for case in select_node.get("cases", []):