Created
December 4, 2011 01:46
-
-
Save brownan/1428820 to your computer and use it in GitHub Desktop.
multiworld configuration mockup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Worlds are specified as keys in the pre-defined "render" dictionary | |
# | |
# all options about rendering a world go in a configuration dictionary as | |
# values of this render dict | |
render["world"] = { | |
"rendermodes": ["smooth-lighting", "smooth-night"], | |
"north-direction": ["upper-left"], | |
} | |
# nether | |
render["DIM-1"] = { | |
"rendermodes": ["smooth-lighting"], | |
"north-direction": ["upper-left"], | |
"nethermode": True, # erases bedrock block at the top | |
} | |
# another survival world | |
render["survival"] = { | |
"rendermodes": ["smooth-lighting", "smooth-night", "caves", "mineral", "spawn"], | |
# Render from every direction | |
"north-direction": ["upper-left", "upper-right", "lower-left", "lower-right"], | |
# Only render a small range near the spawn. Format: (minx, maxx, minz, maxz) in blocks | |
"render-range": (-100,100,-100,100), | |
} | |
render["creative"] = { | |
"rendermodes": ["normal", "lighting"], | |
"north-direction": ["upper-left"], | |
# An example of per-world rendermode options | |
"rendermode_options": { | |
"lighting": { | |
"edge_opacity": 0.5, | |
} | |
} | |
} | |
# Define a custom rendermode and apply it to the "creative" world | |
custom_rendermodes = { | |
'subway-overlay' : {'parent' : 'mineral', | |
'label' : 'Subway Overlay', | |
'description' : 'an overlay showing the location of minecart tracks', | |
'options' : {'minerals' : [ | |
(27, (255, 234, 0)), | |
(28, (255, 234, 0)), | |
(66, (255, 234, 0)), | |
]}, | |
}, | |
} | |
render["creative"]["rendermodes"].append("subway-overlay") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment