This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
forked from crosbymichael/mc-overviewer-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overviewer.cfg
170 lines (153 loc) · 5.71 KB
/
overviewer.cfg
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
## Imports
from .observer import MultiplexingObserver, LoggingObserver, JSObserver
## Serverwide Config
worlds['world'] = '/minecraft/world'
texturepath = '/versions/client.jar'
outputdir = '/mcmap'
customwebassets = '/minecraft/overviewer-web-assets'
processes = 6
loggingObserver = LoggingObserver()
jsObserver = JSObserver(outputdir, 10)
observer = MultiplexingObserver(loggingObserver, jsObserver)
## Custom Lighting
end_smooth_lighting = [Base(), EdgeLines(), SmoothLighting(strength=0.5)]
## Markers
def signFilter(poi):
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
if poi['Text1'].startswith('LM:'):
texts=[poi['Text2'],poi['Text3'],poi['Text4']]
texts = '\n'.join(texts).strip()
texts = texts.replace('"','')
s = (poi['Text1'])[3:].lower()
icons = ['anvil','apple','arrow','axe','bed','beetroot','blazerod','boat','bone','book','bottle','bow','bread','bucket','bucketlava','bucketmilk','bucketwater','cactus','carrot','cartog','charcoal','chorus','clock','coal','cocoa','compass','diamond','dragonbreath','egg','elytra','emerald','enchant','endereye','enderpearl','exp','feather','firecharge','firework','fireworkcharge','fish','fishingrod','flesh','flower','ghasttear','glowstone','gold','gunpowder','hoe','ice','inksack','iron','leather','magmacream','map','melon','minecart','mushroom','nametag','netherbrick','netherwart','pickaxe','potato','potion','prismarine','pumpkin','quartz','rabbithide','rails','record','redstone','saddle','sapling','shovel','sign','slime','snowball','spidereye','steak','string','sugar','sugarcane','sword','totem','waterbottle','web','wheat','wither','witherstar']
if any(x in s for x in icons):
poi['icon'] = 'markers/' + s + '.png'
return texts
## Markers Images (imgur)
def screenshotFilter(poi):
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
if poi['Text1'].startswith('IMG:'):
poi['icon'] = 'painting_icon.png'
image_html = "<style>.infoWindow img[src='{icon}'] {{display: none}}</style><a href='http://imgur.com/{id}' target='_blank'><img src='http://imgur.com/{id}s.jpg' /></a>".format(icon=poi['icon'], id=(poi['Text1'])[4:])
return '\n'.join([image_html, poi['Text2'], poi['Text3'],poi['Text4']])
## Renders
renders['day-north'] = {
'world': 'world',
'title': 'North',
'rendermode': smooth_lighting,
'dimension': 'overworld',
'northdirection': 'upper-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['day-east'] = {
'world': 'world',
'title': 'East',
'rendermode': smooth_lighting,
'dimension': 'overworld',
'northdirection': 'upper-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['day-south'] = {
'world': 'world',
'title': 'South',
'rendermode': smooth_lighting,
'dimension': 'overworld',
'northdirection': 'lower-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['day-west'] = {
'world': 'world',
'title': 'West',
'rendermode': smooth_lighting,
'dimension': 'overworld',
'northdirection': 'lower-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['nether-north'] = {
'world': 'world',
'title': 'North',
'rendermode': nether,
'dimension': 'nether',
'northdirection': 'upper-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['nether-east'] = {
'world': 'world',
'title': 'East',
'rendermode': nether,
'dimension': 'nether',
'northdirection': 'upper-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['nether-south'] = {
'world': 'world',
'title': 'South',
'rendermode': nether,
'dimension': 'nether',
'northdirection': 'lower-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['nether-west'] = {
'world': 'world',
'title': 'West',
'rendermode': nether,
'dimension': 'nether',
'northdirection': 'lower-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['end-north'] = {
'world': 'world',
'title': 'North',
'rendermode': normal,
'dimension': 'end',
'northdirection': 'upper-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['end-east'] = {
'world': 'world',
'title': 'East',
'rendermode': normal,
'dimension': 'end',
'northdirection': 'upper-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['end-south'] = {
'world': 'world',
'title': 'South',
'rendermode': normal,
'dimension': 'end',
'northdirection': 'lower-left',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}
renders['end-west'] = {
'world': 'world',
'title': 'West',
'rendermode': normal,
'dimension': 'end',
'northdirection': 'lower-right',
'markers': [
dict(name='Signs', filterFunction=signFilter,checked=True),
dict(name='Screenshots',filterFunction=screenshotFilter, checked=True)],
}