Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://github.com/overviewer/Minecraft-Overviewer/blob/master/sample_config.py
- # http://docs.overviewer.org/en/latest/options/
- #################################################################################
- # Used for 'Nether' and 'The End' folder detection, do not change
- import os
- globals()['os'] = os
- # How many CPUs to utilize
- processes = 1
- # These can be specified in each render below, but if you set it here,
- # they become the default for all renders.
- imgformat = "jpg"
- imgquality = 75
- # You can specify a custom texture pack to use in the render
- # Just uncomment and point to the zipped texture pack
- # texturepath = "/path/to/your/texture_pack.zip"
- # Define the path to your world here. 'My World' in this case will show up as
- # the world name on the map interface. If you change it, be sure to also change
- # the referenced world names in the render definitions below.
- # worlds['world'] = '/path/to/your/world'
- # Where to save the generated image tiles and code
- outputdir = '/path/to/www/map/world'
- # Custom sign Filter Functions
- def allSignFilter(poi):
- if (poi['id'] == 'Sign' \
- and (poi['Text1'] != '' \
- or poi['Text2'] != '' \
- or poi['Text3'] != '' \
- or poi['Text4'] != '') \
- and poi['Text1'] != ' '
- and (poi['Text1'] + " ")[0] != "#"):
- return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
- else:
- return None
- def playerSpawnFilter(poi):
- if (poi['id'] == 'PlayerSpawn'):
- poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
- Location = '(' + str(poi['x']) + ', ' + str(poi['y']) + ', ' + str(poi['z']) + ')'
- return "\n".join([poi['EntityId'], Location])
- else:
- return None
- def playerLastFilter(poi):
- if (poi['id'] == 'Player'):
- poi['icon'] = "http://overviewer.org/avatar/%s/head" % poi['EntityId']
- Location = '(' + str(poi['x']) + ', ' + str(poi['y']) + ', ' + str(poi['z']) + ')'
- return "\n".join([poi['EntityId'], "Last seen at:", Location])
- else:
- return None
- signs = dict(name="Signs", filterFunction=allSignFilter)
- players = dict(name="Player Spawns", filterFunction=playerSpawnFilter)
- playersLast = dict(name="Players Last Seen", filterFunction=playerLastFilter)
- # Change 'markers' to remove POI types
- # Don't like player locations, just remove players and playersLast
- renders['normal'] = {
- 'world': 'world',
- 'title': 'Normal',
- 'rendermode': normal,
- 'markers': [signs, players, playersLast],
- }
- renders['day'] = {
- 'world': 'world',
- 'title': 'Day',
- 'rendermode': smooth_lighting,
- 'markers': [signs, players, playersLast],
- }
- renders['night'] = {
- 'world': 'world',
- 'title': 'Night',
- 'rendermode': smooth_night,
- 'markers': [signs, players, playersLast],
- }
- renders['cave'] = {
- 'world': 'world',
- 'title': 'Cave',
- 'rendermode': cave,
- 'markers': [signs, players, playersLast],
- if (os.path.isdir(worlds['world'] + '/DIM-1/region')):
- renders['nether'] = {
- 'world': 'world',
- 'title': 'Nether',
- 'rendermode': nether_smooth_lighting,
- 'dimension': 'nether',
- 'markers': [signs, players, playersLast],
- }
- if (os.path.isdir(worlds['world'] + '/DIM1/region')):
- renders['end'] = {
- 'world': 'world',
- 'title': 'End',
- 'rendermode': normal,
- 'dimension': 'end',
- 'markers': [signs, players, playersLast],
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement