Restructure templates into template directory, multiple files

This commit is contained in:
Mike Primm 2011-07-22 21:18:02 -05:00
parent 2c1d078272
commit ec13742c85
13 changed files with 462 additions and 340 deletions

View File

@ -2,10 +2,13 @@
# NOTE: the 'templates' section is now found in the templates.txt (and can be safely customized using custom-templates.txt)
# NOTE: the 'worlds' section is now found in the worlds.txt (example custom settings can be found in worlds.txt.sample)
# To use the HDMap map templates as world defaults (normal-HDMap, nether-HDMap and skylands-HDMap), uncomment the following line
# Otherwise, the world defaults will be based on classic templates (normal, nether, skylands)
# To use the HDMap low-res map templates as world defaults (normal-lowres, nether-lowres and skylands-lowres), uncomment the following line
#deftemplatesuffix: lowres
# To use the HDMap hi-res map templates (these can take a VERY long time for initial fullrender), comment the following line
#deftemplatesuffix: hires
# Otherwise, the world defaults will be based on classic FlatMap/KzedMap templates (normal, nether, skylands)
# Other values will search for templates named normal-<value>, nether-<value>, skylands-<value>
#deftemplatesuffix: HDMap
components:
- class: org.dynmap.ClientConfigurationComponent

View File

@ -31,13 +31,15 @@
<include>shaders.txt</include>
<include>perspectives.txt</include>
<include>lightings.txt</include>
<include>templates.txt</include>
<include>models.txt</include>
<include>texture.txt</include>
<include>worlds.txt.sample</include></includes></fileSet>
<fileSet>
<directory>${project.basedir}/texturepacks</directory>
<outputDirectory>/dynmap/texturepacks</outputDirectory></fileSet>
<fileSet>
<directory>${project.basedir}/templates</directory>
<outputDirectory>/dynmap/templates</outputDirectory></fileSet>
</fileSets>
<files>
<file>

View File

@ -131,6 +131,37 @@ public class DynmapPlugin extends JavaPlugin {
}
}
private static final String CUSTOM_PREFIX = "custom-";
/* Load templates from template folder */
private void loadTemplates() {
File templatedir = new File(dataDirectory, "templates");
String[] templates = templatedir.list();
/* Go through list - process all ones not starting with 'custom' first */
for(String tname: templates) {
/* If matches naming convention */
if(tname.endsWith(".txt") && (!tname.startsWith(CUSTOM_PREFIX))) {
File tf = new File(templatedir, tname);
org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(tf);
cfg.load();
ConfigurationNode cn = new ConfigurationNode(cfg);
/* Supplement existing values (don't replace), since configuration.txt is more custom than these */
mergeConfigurationBranch(cn, "templates", false, false);
}
}
/* Go through list again - this time do custom- ones */
for(String tname: templates) {
/* If matches naming convention */
if(tname.endsWith(".txt") && tname.startsWith(CUSTOM_PREFIX)) {
File tf = new File(templatedir, tname);
org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(tf);
cfg.load();
ConfigurationNode cn = new ConfigurationNode(cfg);
/* This are overrides - replace even configuration.txt content */
mergeConfigurationBranch(cn, "templates", true, false);
}
}
}
@Override
public void onEnable() {
permissions = NijikokunPermissions.create(getServer(), "dynmap");
@ -187,33 +218,9 @@ public class DynmapPlugin extends JavaPlugin {
}
}
/* Now, process templates.txt - supplement existing values (don't replace), since configuration.txt is more custom than these */
f = new File(this.getDataFolder(), "templates.txt");
if(f.exists()) {
org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(f);
cfg.load();
ConfigurationNode cn = new ConfigurationNode(cfg);
mergeConfigurationBranch(cn, "templates", false, false);
}
/* Now, process templates */
loadTemplates();
/* Now, process custom-templates.txt - these are user supplied, so override anything matcing */
f = new File(this.getDataFolder(), "custom-templates.txt");
if(f.exists()) {
org.bukkit.util.config.Configuration cfg = new org.bukkit.util.config.Configuration(f);
cfg.load();
ConfigurationNode cn = new ConfigurationNode(cfg);
mergeConfigurationBranch(cn, "templates", true, false);
}
else {
try {
FileWriter fw = new FileWriter(f);
fw.write("# This file is intended to allow the user to define templates, including replacements for standard templates\n");
fw.write("# Dynmap's install will not overwrite it\n");
fw.write("templates:\n");
fw.close();
} catch (IOException iox) {
}
}
Log.verbose = configuration.getBoolean("verbose", true);
deftemplatesuffix = configuration.getString("deftemplatesuffix", "");

View File

@ -1,310 +0,0 @@
# templates provide default definitions for worlds that are not otherwise defined in the worlds.txt. Unless otherwise
# configured, worlds will default to the template corresponding to their environment (normal, nether, skylands). Use of the
# 'deftemplatesuffix' setting in configuration.txt can alter this by appending a dash and a suffix string to the template name
# used by default (for example deftemplatesuffix=HDMap implies default template names of normal-HDMap, nether-HDMap, skylands-HDMap.
#
# NOTE:
# templates.txt is updated frequently: if you wish to customize some or all of the templates, or define your own, place
# the templates you wish to modify in the custom-templates.txt file - these will be preserved, and will override those found
# in templates.txt
templates:
# Template for normal world (classic render)
normal:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
# # To render a world as a "night view", set shadowstrength and ambientlight
# shadowstrength: 1.0
# ambientlight: 4
# # To render both night and day versions of tiles (when ambientlight is set), set true
# night-and-day: true
# # Option to turn on transparency support (off by default) - slows render
# transparency: true
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# # Adjust extra zoom in levels - default is 3
# mapzoomin: 3
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: surface
title: "Surface"
prefix: t
maximumheight: 127
colorscheme: default
# # Add shadows to world (based on top-down shadows from chunk data)
# shadowstrength: 1.0
# # To render a world as a "night view", set shadowstrength and ambientlight
# ambientlight: 4
# # To render both night and day versions of tiles (when ambientlight is set), set true
# night-and-day: true
# # Option to turn off transparency support (on by default) - speeds render
# transparency: false
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# # Sets the icon to 'images/block_custom.png'
# icon: custom
# # Adjust extra zoom in levels - default is 3
# mapzoomin: 3
# # Biome-based mapping
# - class: org.dynmap.kzedmap.DefaultTileRenderer
# name: biome
# title: "Biome"
# prefix: b
# maximumheight: 127
# colorscheme: default
# # Biome-based coloring : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall
# biomecolored: biome
# - class: org.dynmap.kzedmap.HighlightTileRenderer
# prefix: ht
# maximumheight: 127
# colorscheme: default
# highlight: # For highlighting multiple block-types.
# - 56 # Highlight diamond-ore
# - 66 # Highlight minecart track
# highlight: 56 # For highlighting a single block-type.
- class: org.dynmap.kzedmap.CaveTileRenderer
name: cave
title: "Cave"
prefix: ct
maximumheight: 127
# Nether world template (classic render)
nether:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# Map background color (day or night)
background: "#300806"
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: nether
title: "Surface"
prefix: nt
maximumheight: 127
colorscheme: default
# Map background color (day or night)
background: "#300806"
# Skylands world template (classic render)
skylands:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: skylands
title: "Surface"
prefix: st
maximumheight: 127
colorscheme: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
night-and-day: true
shadowstrength: 1.0
ambientlight: 4
# Template for normal world (HDMap)
normal-HDMap:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# # To render a world as a "night view", switch to lighting: night
# lighting: night
# # To render both night and day versions of tiles, set light: nightandday
# lighting: nightandday
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: surface
title: "Surface"
prefix: t
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: default
# # Add shadows to world (based on top-down shadows from chunk data)
# lighting: shadows
# # To render a world as a "night view", set lighting: night
# lighting: night
# # To render both night and day versions of tiles, set lighting: nightandday
# lighting: nightandday
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# # Sets the icon to 'images/block_custom.png'
# icon: custom
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
# # Biome-based mapping
# - class: org.dynmap.hdmap.HDMap
# name: biome
# title: "Biome"
# prefix: b
# perspective: iso_SE_60_lowres
# lighting: default
# # Biome-based shading : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall
# shader: biome
# # Adjust extra zoom in levels - default is 2
# mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: cave
title: "Cave"
prefix: ct
perspective: iso_SE_60_lowres
shader: cave
lighting: default
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
# Nether world template (HDMap)
nether-HDMap:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: nether
title: "Surface"
prefix: nt
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: default
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
# Skylands world template (HDMap)
skylands-HDMap:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: skylands
title: "Surface"
prefix: st
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: nightandday
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

View File

@ -0,0 +1,39 @@
#
# Default template for "Nether" environment worlds (deftemplatesuffix="hires")
# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-nether-hires.txt'
#
templates:
# Nether world template (HDMap hires)
nether-hires:
enabled: true
# Number of extra zoom-out levels for world (each level is twice as big as the previous one)
extrazoomout: 2
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_hires
shader: stdtexture
lighting: default
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: nether
title: "Surface"
prefix: nt
perspective: iso_SE_60_hires
shader: stdtexture
lighting: shadows
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

View File

@ -0,0 +1,39 @@
#
# Default template for "Nether" environment worlds (deftemplatesuffix="lowres")
# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-nether-lowres.txt'
#
templates:
# Nether world template (HDMap lowres)
nether-lowres:
enabled: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: nether
title: "Surface"
prefix: nt
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: default
# Map background color (day or night)
background: "#300806"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

36
templates/nether.txt Normal file
View File

@ -0,0 +1,36 @@
#
# Default template for "Nether" environment worlds (deftemplatesuffix="")
# To customize without losing updates during upgrade, rename file to 'custom-nether.txt'
#
templates:
# Nether world template (classic render)
nether:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# Map background color (day or night)
background: "#300806"
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: nether
title: "Surface"
prefix: nt
maximumheight: 127
colorscheme: default
# Map background color (day or night)
background: "#300806"

View File

@ -0,0 +1,44 @@
#
# Default template for "Normal" environment worlds (deftemplatesuffix="lhires")
# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-normal-lowres.txt'
#
templates:
# Template for normal world (HDMap hires)
normal-hires:
enabled: true
# Number of extra zoom-out levels for world (each level is twice as big as the previous one)
extrazoomout: 2
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_hires
shader: stdtexture
lighting: default
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: surface
title: "Surface"
prefix: t
perspective: iso_SE_60_hires
shader: stdtexture
lighting: shadows
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: cave
title: "Cave"
prefix: ct
perspective: iso_SE_60_lowres
shader: cave
lighting: default
# Adjust extra zoom in levels - make it 4 to match number of levels for surface map
mapzoomin: 4

View File

@ -0,0 +1,44 @@
#
# Default template for "Normal" environment worlds (deftemplatesuffix="lowres")
# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-normal-lowres.txt'
#
templates:
# Template for normal world (HDMap lowres)
normal-lowres:
enabled: true
# Number of extra zoom-out levels for world (each level is twice as big as the previous one)
extrazoomout: 2
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: surface
title: "Surface"
prefix: t
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: default
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: cave
title: "Cave"
prefix: ct
perspective: iso_SE_60_lowres
shader: cave
lighting: default
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

87
templates/normal.txt Normal file
View File

@ -0,0 +1,87 @@
#
# Default template for "Normal" environment worlds (deftemplatesuffix="")
# To customize without losing updates during upgrade, rename file to 'custom-normal.txt'
#
templates:
# Template for normal world (classic render)
normal:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
# # To render a world as a "night view", set shadowstrength and ambientlight
# shadowstrength: 1.0
# ambientlight: 4
# # To render both night and day versions of tiles (when ambientlight is set), set true
# night-and-day: true
# # Option to turn on transparency support (off by default) - slows render
# transparency: true
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# # Adjust extra zoom in levels - default is 3
# mapzoomin: 3
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: surface
title: "Surface"
prefix: t
maximumheight: 127
colorscheme: default
# # Add shadows to world (based on top-down shadows from chunk data)
# shadowstrength: 1.0
# # To render a world as a "night view", set shadowstrength and ambientlight
# ambientlight: 4
# # To render both night and day versions of tiles (when ambientlight is set), set true
# night-and-day: true
# # Option to turn off transparency support (on by default) - speeds render
# transparency: false
# # Background color for map during the day
# backgroundday: "#153E7E"
# # Background color for map during the night
# backgroundnight: "#000000"
# # Background color for map (independent of night/day)
# background: "#000000"
# # Sets the icon to 'images/block_custom.png'
# icon: custom
# # Adjust extra zoom in levels - default is 3
# mapzoomin: 3
# # Biome-based mapping
# - class: org.dynmap.kzedmap.DefaultTileRenderer
# name: biome
# title: "Biome"
# prefix: b
# maximumheight: 127
# colorscheme: default
# # Biome-based coloring : biome=biome type, temperature=biome-temperature, rainfall=biome-rainfall
# biomecolored: biome
# - class: org.dynmap.kzedmap.HighlightTileRenderer
# prefix: ht
# maximumheight: 127
# colorscheme: default
# highlight: # For highlighting multiple block-types.
# - 56 # Highlight diamond-ore
# - 66 # Highlight minecart track
# highlight: 56 # For highlighting a single block-type.
- class: org.dynmap.kzedmap.CaveTileRenderer
name: cave
title: "Cave"
prefix: ct
maximumheight: 127

View File

@ -0,0 +1,44 @@
#
# Default template for "Skylands" environment worlds (deftemplatesuffix="hires")
# Uses the HDMap renderer with view from the SE with the "hires" resolution (16 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-skylands-hires.txt'
#
templates:
# Skylands world template (HDMap hires)
skylands-hires:
enabled: true
# Number of extra zoom-out levels for world (each level is twice as big as the previous one)
extrazoomout: 2
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_hires
shader: stdtexture
lighting: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: skylands
title: "Surface"
prefix: st
perspective: iso_SE_60_hires
shader: stdtexture
lighting: shadows
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

View File

@ -0,0 +1,44 @@
#
# Default template for "Skylands" environment worlds (deftemplatesuffix="lowres")
# Uses the HDMap renderer with view from the SE with the "lowres" resolution (4 pixels per block edge)
#
# To customize without losing updates during upgrade, rename file to 'custom-skylands-lowres.txt'
#
templates:
# Skylands world template (HDMap lowres)
skylands-lowres:
enabled: true
# Number of extra zoom-out levels for world (each level is twice as big as the previous one)
extrazoomout: 2
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.hdmap.HDMap
name: flat
title: "Flat"
prefix: flat
perspective: iso_S_90_lowres
shader: stdtexture
lighting: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2
- class: org.dynmap.hdmap.HDMap
name: skylands
title: "Surface"
prefix: st
perspective: iso_SE_60_lowres
shader: stdtexture
lighting: shadows
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# Adjust extra zoom in levels - default is 2
mapzoomin: 2

43
templates/skylands.txt Normal file
View File

@ -0,0 +1,43 @@
#
# Default template for "Skylands" environment worlds (deftemplatesuffix="")
# To customize without losing updates during upgrade, rename file to 'custom-skylands.txt'
#
templates:
# Skylands world template (classic render)
skylands:
enabled: true
# # If bigworld set to true, use alternate directory layout better suited to large worlds
# bigworld: true
# # Number of extra zoom-out levels for world (each level is twice as big as the previous one)
# extrazoomout: 3
center:
x: 0
y: 64
z: 0
maps:
- class: org.dynmap.flat.FlatMap
name: flat
title: "Flat"
prefix: flat
colorscheme: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
# The textured setting makes the flat render toning much more consistent with the other maps: set to 'none' for the original flat texture, 'smooth' for blended tile top colors, 'dither' for dither pattern
textured: smooth
- class: org.dynmap.kzedmap.KzedMap
renderers:
- class: org.dynmap.kzedmap.DefaultTileRenderer
name: skylands
title: "Surface"
prefix: st
maximumheight: 127
colorscheme: default
# Background color for map during the day
backgroundday: "#153E7E"
# Background color for map during the night
backgroundnight: "#000000"
night-and-day: true
shadowstrength: 1.0
ambientlight: 4