Amend (blast) furnace & smoker rendering
- Use 'lit' property to determine when block is on or off - Account for facing when generating textures - Clean up smoker/furnace/dispenser/dropper texture generation code
This commit is contained in:
@@ -1007,13 +1007,17 @@ class RegionSet(object):
|
||||
elif key == 'minecraft:dark_prismarine_slab':
|
||||
data = 2
|
||||
|
||||
elif key in ['minecraft:ladder', 'minecraft:chest', 'minecraft:ender_chest', 'minecraft:trapped_chest', 'minecraft:furnace']:
|
||||
elif key in ['minecraft:ladder', 'minecraft:chest', 'minecraft:ender_chest',
|
||||
'minecraft:trapped_chest', 'minecraft:furnace',
|
||||
'minecraft:blast_furnace', 'minecraft:smoker']:
|
||||
facing = palette_entry['Properties']['facing']
|
||||
data = {'north': 2, 'south': 3, 'west': 4, 'east': 5}[facing]
|
||||
if key in ['minecraft:chest', 'minecraft:trapped_chest']:
|
||||
# type property should exist, but default to 'single' just in case
|
||||
chest_type = palette_entry['Properties'].get('type', 'single')
|
||||
data |= {'left': 0x8, 'right': 0x10, 'single': 0x0}[chest_type]
|
||||
elif key in ['minecraft:furnace', 'minecraft:blast_furnace', 'minecraft:smoker']:
|
||||
data |= 8 if palette_entry['Properties'].get('lit', 'false') == 'true' else 0
|
||||
elif key in ['minecraft:beehive', 'minecraft:bee_nest']:
|
||||
facing = palette_entry['Properties']['facing']
|
||||
honey_level = int(palette_entry['Properties']['honey_level'])
|
||||
|
||||
Reference in New Issue
Block a user