mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-01 13:29:06 +02:00
Add correct foliage colors for birch and spruce
This commit is contained in:
parent
ef4b6eac02
commit
685a4959f1
6 changed files with 19 additions and 5 deletions
|
@ -96,7 +96,7 @@
|
|||
"texture": "birch_planks"
|
||||
},
|
||||
"birch_leaves": {
|
||||
"foliage": true
|
||||
"birch": true
|
||||
},
|
||||
"birch_log": {
|
||||
"texture": "birch_log_top"
|
||||
|
@ -1251,7 +1251,7 @@
|
|||
"texture": "spruce_planks"
|
||||
},
|
||||
"spruce_leaves": {
|
||||
"foliage": true
|
||||
"spruce": true
|
||||
},
|
||||
"spruce_log": {
|
||||
"texture": "spruce_log_top"
|
||||
|
|
|
@ -42,6 +42,8 @@ for name, info in blocks.items():
|
|||
'opaque': False,
|
||||
'grass': False,
|
||||
'foliage': False,
|
||||
'birch': False,
|
||||
'spruce': False,
|
||||
'water': False,
|
||||
}
|
||||
|
||||
|
@ -54,6 +56,8 @@ for name, info in blocks.items():
|
|||
output[id]['opaque'] = True
|
||||
output[id]['grass'] = info.get('grass', False)
|
||||
output[id]['foliage'] = info.get('foliage', False)
|
||||
output[id]['birch'] = info.get('birch', False)
|
||||
output[id]['spruce'] = info.get('spruce', False)
|
||||
output[id]['water'] = info.get('water', False)
|
||||
|
||||
with open(sys.argv[3], 'w') as f:
|
||||
|
|
|
@ -22,6 +22,10 @@ with open(sys.argv[2], 'w') as f:
|
|||
flags.append('BLOCK_GRASS')
|
||||
if info['foliage']:
|
||||
flags.append('BLOCK_FOLIAGE')
|
||||
if info['birch']:
|
||||
flags.append('BLOCK_BIRCH')
|
||||
if info['spruce']:
|
||||
flags.append('BLOCK_SPRUCE')
|
||||
if info['water']:
|
||||
flags.append('BLOCK_WATER')
|
||||
if flags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue