Use block state id to check bed occupancy
This commit is contained in:
1 parent
324ad41bf7
commit
4d2d358175
3 files changed
+21
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user