Fix renameable item docs and cache ignore
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Python cache
|
# Python cache
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
build/scripts/**/__pycache__/
|
||||||
|
build/scripts/**/*.pyc
|
||||||
|
|
||||||
# Generated build outputs
|
# Generated build outputs
|
||||||
build/scripts/__pycache__/
|
build/scripts/__pycache__/
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Generated from the resource pack item model JSON.
|
|||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
- Base items: 25
|
- Base items: 28
|
||||||
- Rename variants: 116
|
- Rename variants: 124
|
||||||
- Render mode: local Python renderer
|
- Render mode: local Python renderer
|
||||||
|
|
||||||
## apple
|
## apple
|
||||||
@@ -108,6 +108,18 @@ Generated from the resource pack item model JSON.
|
|||||||
- `soup` -> `lz:food/soup_vegetable`
|
- `soup` -> `lz:food/soup_vegetable`
|
||||||
- Preview: <img src="renders/lz/food/soup_vegetable.png" alt="soup" width="160" />
|
- Preview: <img src="renders/lz/food/soup_vegetable.png" alt="soup" width="160" />
|
||||||
|
|
||||||
|
## 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: <img src="renders/lz/hats/floral_crown.png" alt="floral_crown" width="160" />
|
||||||
|
- `witch_hat` -> `lz:hats/witch`
|
||||||
|
- Preview: <img src="renders/lz/hats/witch.png" alt="witch_hat" width="160" />
|
||||||
|
|
||||||
## cocoa_beans
|
## cocoa_beans
|
||||||
|
|
||||||
- Generated from: `assets/minecraft/items/cocoa_beans.json`
|
- Generated from: `assets/minecraft/items/cocoa_beans.json`
|
||||||
@@ -378,6 +390,24 @@ Generated from the resource pack item model JSON.
|
|||||||
- `presents` -> `lz:festive/presents`
|
- `presents` -> `lz:festive/presents`
|
||||||
- Preview: <img src="renders/lz/festive/presents.png" alt="presents" width="160" />
|
- Preview: <img src="renders/lz/festive/presents.png" alt="presents" width="160" />
|
||||||
|
|
||||||
|
## pumpkin
|
||||||
|
|
||||||
|
- Generated from: `assets/minecraft/items/pumpkin.json`
|
||||||
|
- Fallback model: `minecraft:block/pumpkin`
|
||||||
|
|
||||||
|
### Rename variants
|
||||||
|
|
||||||
|
- `stuffed_pumpkin` -> `lz:food/stuffed_pumpkin`
|
||||||
|
- Preview: <img src="renders/lz/food/stuffed_pumpkin.png" alt="stuffed_pumpkin" width="160" />
|
||||||
|
- `stuffed_pumpkin_1` -> `lz:food/stuffed_pumpkin_1`
|
||||||
|
- Preview: <img src="renders/lz/food/stuffed_pumpkin_1.png" alt="stuffed_pumpkin_1" width="160" />
|
||||||
|
- `stuffed_pumpkin_2` -> `lz:food/stuffed_pumpkin_2`
|
||||||
|
- Preview: <img src="renders/lz/food/stuffed_pumpkin_2.png" alt="stuffed_pumpkin_2" width="160" />
|
||||||
|
- `stuffed_pumpkin_3` -> `lz:food/stuffed_pumpkin_3`
|
||||||
|
- Preview: <img src="renders/lz/food/stuffed_pumpkin_3.png" alt="stuffed_pumpkin_3" width="160" />
|
||||||
|
- `stuffed_pumpkin_4` -> `lz:food/stuffed_pumpkin_4`
|
||||||
|
- Preview: <img src="renders/lz/food/stuffed_pumpkin_4.png" alt="stuffed_pumpkin_4" width="160" />
|
||||||
|
|
||||||
## pumpkin_pie
|
## pumpkin_pie
|
||||||
|
|
||||||
- Generated from: `assets/minecraft/items/pumpkin_pie.json`
|
- 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`
|
- `roll_6` -> `lz:food/plated_salmon_roll_6`
|
||||||
- Preview: <img src="renders/lz/food/plated_salmon_roll_6.png" alt="roll_6" width="160" />
|
- Preview: <img src="renders/lz/food/plated_salmon_roll_6.png" alt="roll_6" width="160" />
|
||||||
|
|
||||||
|
## snow_block
|
||||||
|
|
||||||
|
- Generated from: `assets/minecraft/items/snow_block.json`
|
||||||
|
- Fallback model: `minecraft:block/snow_block`
|
||||||
|
|
||||||
|
### Rename variants
|
||||||
|
|
||||||
|
- `snowman` -> `lz:festive/snowman`
|
||||||
|
- Preview: <img src="renders/lz/festive/snowman.png" alt="snowman" width="160" />
|
||||||
|
|
||||||
## sweet_berries
|
## sweet_berries
|
||||||
|
|
||||||
- Generated from: `assets/minecraft/items/sweet_berries.json`
|
- Generated from: `assets/minecraft/items/sweet_berries.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",
|
"item": "cocoa_beans",
|
||||||
"fallback_model": "minecraft: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",
|
"item": "pumpkin_pie",
|
||||||
"fallback_model": "minecraft: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",
|
"item": "sweet_berries",
|
||||||
"fallback_model": "minecraft:item/sweet_berries",
|
"fallback_model": "minecraft:item/sweet_berries",
|
||||||
|
|||||||
Binary file not shown.
@@ -88,9 +88,7 @@ def collect_renameable_items(pack_root: Path) -> list[dict[str, Any]]:
|
|||||||
if fallback_ref is None:
|
if fallback_ref is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
item_name = item_name_from_fallback(fallback_ref)
|
item_name = item_file.stem
|
||||||
if item_name is None:
|
|
||||||
continue
|
|
||||||
|
|
||||||
cases: list[dict[str, Any]] = []
|
cases: list[dict[str, Any]] = []
|
||||||
for case in select_node.get("cases", []):
|
for case in select_node.get("cases", []):
|
||||||
|
|||||||
Reference in New Issue
Block a user