0

Amend end portal frame rendering

- Use portal frame 'eye' property to allow ender eye to be rendered
- Use portal frame 'facing' property to determine block rotation
This commit is contained in:
Joseph Camp
2020-05-02 19:15:27 +00:00
parent 4ee5673e0d
commit c30e976cbd
2 changed files with 22 additions and 14 deletions

View File

@@ -1150,6 +1150,11 @@ class RegionSet(object):
data |= {'south': 0, 'west': 1, 'north': 2, 'east': 3}[facing]
if palette_entry['Properties'].get('part', 'foot') == 'head':
data |= 8
elif key == 'minecraft:end_portal_frame':
facing = palette_entry['Properties']['facing']
data |= {'south': 0, 'west': 1, 'north': 2, 'east': 3}[facing]
if palette_entry['Properties'].get('eye', 'false') == 'true':
data |= 4
return (block, data)