0

Add bee_hive, beenest, honeycom_block and honey_block

This commit is contained in:
Gijs Oortgiese
2019-12-26 14:35:03 +01:00
committed by Nicolas F
parent a9fa06f019
commit 885fa75f54
4 changed files with 82 additions and 1 deletions

View File

@@ -835,6 +835,11 @@ class RegionSet(object):
"minecraft:smooth_red_sandstone_stairs": (11415, 0),
'minecraft:bamboo': (11416, 0),
"minecraft:composter": (11417, 0),
# 1.15 blocks below
'minecraft:beehive': (11501, 0),
'minecraft:bee_nest': (11502, 0),
'minecraft:honeycomb_block': (11503, 0),
'minecraft:honey_block': (11504, 0),
# adding a gap in the numbering of walls to keep them all
# in one numbering block starting at 21000
'minecraft:andesite_wall': (21000, 0),
@@ -1017,6 +1022,12 @@ class RegionSet(object):
elif key in ['minecraft:ladder', 'minecraft:chest', 'minecraft:ender_chest', 'minecraft:trapped_chest', 'minecraft:furnace']:
facing = palette_entry['Properties']['facing']
data = {'north': 2, 'south': 3, 'west': 4, 'east': 5}[facing]
elif key in ['minecraft:beehive', 'minecraft:bee_nest']:
facing = palette_entry['Properties']['facing']
honey_level = int(palette_entry['Properties']['honey_level'])
data = {'south': 0, 'west': 1, 'north': 2, 'east': 3}[facing]
if honey_level == 5:
data = {'south': 4, 'west': 5, 'north': 6, 'east': 7}[facing]
elif key.endswith('_button'):
facing = palette_entry['Properties']['facing']
face = palette_entry['Properties']['face']