mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 22:29:07 +02:00
resource: add sign material to block types
This commit is contained in:
parent
8814dcff89
commit
abf87e75ee
5 changed files with 2207 additions and 1050 deletions
|
@ -45,12 +45,17 @@ for name, info in blocks.items():
|
|||
'birch': False,
|
||||
'spruce': False,
|
||||
'water': False,
|
||||
'sign_material': None,
|
||||
}
|
||||
|
||||
if info is None:
|
||||
continue
|
||||
|
||||
color = mean_color(info.get('texture', name))
|
||||
texture = info.get('texture', name)
|
||||
|
||||
color = None
|
||||
if texture:
|
||||
color = mean_color(texture)
|
||||
if color:
|
||||
output[id]['color'] = color
|
||||
output[id]['opaque'] = True
|
||||
|
@ -60,5 +65,7 @@ for name, info in blocks.items():
|
|||
output[id]['spruce'] = info.get('spruce', False)
|
||||
output[id]['water'] = info.get('water', False)
|
||||
|
||||
output[id]['sign_material'] = info.get('sign_material')
|
||||
|
||||
with open(sys.argv[3], 'w') as f:
|
||||
json.dump(output, f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue