Advertisement
Guest User

minecraft_server overviewer settings

a guest
Dec 12th, 2012
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.59 KB | None | 0 0
  1. # https://github.com/overviewer/Minecraft-Overviewer/blob/master/sample_config.py
  2. # http://docs.overviewer.org/en/latest/options/
  3. #################################################################################
  4.  
  5. # Used for 'Nether' and 'The End' folder detection, do not change
  6. import os
  7. globals()['os'] = os
  8.  
  9. # How many CPUs to utilize
  10. processes = 1
  11.  
  12. # These can be specified in each render below, but if you set it here,
  13. # they become the default for all renders.
  14. imgformat = "jpg"
  15. imgquality = 75
  16.  
  17. # You can specify a custom texture pack to use in the render
  18. # Just uncomment and point to the zipped texture pack
  19. # texturepath = "/path/to/your/texture_pack.zip"
  20.  
  21. # Define the path to your world here. 'My World' in this case will show up as
  22. # the world name on the map interface. If you change it, be sure to also change
  23. # the referenced world names in the render definitions below.
  24. # worlds['world'] = '/path/to/your/world'
  25.  
  26. # Where to save the generated image tiles and code
  27. outputdir = '/path/to/www/map/world'
  28.  
  29.  
  30. # Custom sign Filter Functions
  31. def allSignFilter(poi):
  32.     if (poi['id'] == 'Sign' \
  33.         and (poi['Text1'] != '' \
  34.             or poi['Text2'] != '' \
  35.             or poi['Text3'] != '' \
  36.             or poi['Text4'] != '') \
  37.         and poi['Text1'] != ' '
  38.         and (poi['Text1'] + " ")[0] != "#"):
  39.         return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
  40.     else:
  41.         return None
  42.  
  43.  
  44. def playerSpawnFilter(poi):
  45.     if (poi['id'] == 'PlayerSpawn'):
  46.         poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
  47.         Location = '(' + str(poi['x']) + ', ' + str(poi['y']) + ', ' + str(poi['z']) + ')'
  48.         return "\n".join([poi['EntityId'], Location])
  49.     else:
  50.         return None
  51.  
  52.  
  53. def playerLastFilter(poi):
  54.     if (poi['id'] == 'Player'):
  55.         poi['icon'] = "http://overviewer.org/avatar/%s/head" % poi['EntityId']
  56.         Location = '(' + str(poi['x']) + ', ' + str(poi['y']) + ', ' + str(poi['z']) + ')'
  57.         return "\n".join([poi['EntityId'], "Last seen at:", Location])
  58.     else:
  59.         return None
  60.  
  61.  
  62. signs = dict(name="Signs", filterFunction=allSignFilter)
  63. players = dict(name="Player Spawns", filterFunction=playerSpawnFilter)
  64. playersLast = dict(name="Players Last Seen", filterFunction=playerLastFilter)
  65.  
  66.  
  67. # Change 'markers' to remove POI types
  68. # Don't like player locations, just remove players and playersLast
  69.  
  70. renders['normal'] = {
  71.     'world':      'world',
  72.     'title':      'Normal',
  73.     'rendermode': normal,
  74.     'markers':    [signs, players, playersLast],
  75. }
  76.  
  77. renders['day'] = {
  78.     'world':      'world',
  79.     'title':      'Day',
  80.     'rendermode': smooth_lighting,
  81.     'markers':    [signs, players, playersLast],
  82. }
  83.  
  84. renders['night'] = {
  85.     'world':      'world',
  86.     'title':      'Night',
  87.     'rendermode': smooth_night,
  88.     'markers':    [signs, players, playersLast],
  89. }
  90.  
  91. renders['cave'] = {
  92.     'world':      'world',
  93.     'title':      'Cave',
  94.     'rendermode': cave,
  95.     'markers':    [signs, players, playersLast],
  96.  
  97.  
  98. if (os.path.isdir(worlds['world'] + '/DIM-1/region')):
  99.     renders['nether'] = {
  100.         'world':      'world',
  101.         'title':      'Nether',
  102.         'rendermode': nether_smooth_lighting,
  103.         'dimension':  'nether',
  104.         'markers':    [signs, players, playersLast],
  105.     }
  106.  
  107. if (os.path.isdir(worlds['world'] + '/DIM1/region')):
  108.     renders['end'] = {
  109.         'world':      'world',
  110.         'title':      'End',
  111.         'rendermode': normal,
  112.         'dimension':  'end',
  113.         'markers':    [signs, players, playersLast],
  114.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement