public
Last active

Overviewer Settings File.

  • Download Gist
settings.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
worlds["cc"] = "E:/cc"
worlds["flatland-projects"] = "E:/flatland"
worlds["exmaple"] = "E:/src/overviewer/Minecraft-Overviewer-Addons/exmaple"
 
spawn_overlay = [
ClearBase(),
EdgeLines(),
SpawnOverlay()
]
 
subway_overlay = [
ClearBase(),
EdgeLines(),
MineralOverlay(minerals=[
(66,(230,238,16)),
(27,(255,128,68)),
(28,(184,184,184))
]),
Depth(min=30, max=64)
]
def signFilter(poi):
if poi['id'] == 'Sign':
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
def chestFilter(poi):
if poi['id'] == 'Chest':
return "Chest with %d items" % len(poi['Items'])
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "http://overviewer.org/avatar/%s/head" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
def spawnerFilter(poi):
if poi["id"] == 'MobSpawner':
poi['icon'] = "spawner.png"
#if poi["EntityId"] == "Skeleton":
return "%s MobSpawner found at\n X:%d \n Y:%d\n Z:%d" % (poi['EntityId'], poi['x'], poi['y'], poi['z'])
renders["flatland"] = {
"world": "flatland-projects",
"title": "Daytime",
"rendermode": smooth_lighting,
"imgformat": "jpg",
"northdirection": "upper-left",
#"markers": [dict(name="All", filterFunction=signFilter), dict(name="Chests", filterFunction=chestFilter, icon="chest.png")]
}
 
renders["cc-day"] = {
"world": "cc",
"title": "Daytime",
"rendermode": smooth_lighting,
"imgformat": "jpg",
"northdirection": "upper-left",
"markers": [dict(name="Signs", filterFunction=signFilter),
dict(name="Chest", filterFunction=chestFilter, icon="chest.png"),
dict(name="Player", filterFunction=playerIcons),
dict(name="MobSpawners", filterFunction=spawnerFilter)]
}
 
renders["cc-night"] = {
"world": "cc",
"title": "Nighttime",
"rendermode": smooth_night,
"imgformat": "jpg",
"northdirection": "upper-left",
"markers": [dict(name="All", filterFunction=signFilter),
dict(name="Chest", filterFunction=chestFilter, icon="chest.png"),
dict(name="Player", filterFunction=playerIcons),
dict(name="MobSpawners", filterFunction=spawnerFilter)]
}
renders["cc-cave"] = {
"world": "cc",
"title": "Cave",
"rendermode": cave,
"imgformat": "jpg",
"northdirection": "upper-left",
"markers": [dict(name="All", filterFunction=signFilter),
dict(name="Chest", filterFunction=chestFilter, icon="chest.png"),
dict(name="Player", filterFunction=playerIcons),
dict(name="MobSpawners", filterFunction=spawnerFilter)]
}
 
renders["cc-subway"] = {
"world": "cc",
"title": "Subway",
"rendermode": subway_overlay,
"imgformat": "png",
"northdirection": "upper-left",
}
 
renders["cc-spawn"] = {
"world": "cc",
"title": "Spawn",
"rendermode": spawn_overlay,
"imgformat": "png",
"northdirection": "upper-left",
}
 
renders["ex-day"] = {
"world": "exmaple",
"title": "Daytime",
"rendermode": smooth_lighting,
"imgformat": "jpg",
"northdirection": "upper-left",
}
renders["ex-spawn"] = {
"world": "exmaple",
"title": "Spawn",
"rendermode": spawn_overlay,
"imgformat": "jpg",
"northdirection": "upper-left",
}
renders["ex-night"] = {
"world": "exmaple",
"title": "Nighttime",
"rendermode": smooth_night,
"imgformat": "jpg",
"northdirection": "upper-left",
}
 
outputdir = "E:/Public"
from observer import JSObserver
observer = JSObserver(outputdir, 10)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.