Use block state id to check bed occupancy

This commit is contained in:
2021-05-07 04:02:26 +00:00
parent 324ad41bf7
commit 4d2d358175
3 changed files with 21 additions and 8 deletions

View File

@@ -15,6 +15,11 @@ for name, data in JSON_BLOCKS.items():
for state in data['states']:
BLOCKS[state['id']] = name.replace('minecraft:', '')
PROPS = {}
for name, data in JSON_BLOCKS.items():
for state in data['states']:
PROPS[state['id']] = state.get('properties', {})
BREAK_DISTANCE = 6
AIR = 0