config.py 980 B

123456789101112131415161718192021222324252627282930313233
  1. def playerIcons(poi):
  2. if poi['id'] == 'Player':
  3. poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
  4. return "Last known location for %s" % poi['EntityId']
  5. # Only signs with "-- RENDER --" on the last line will be shown
  6. # Otherwise, people can't have secret bases and the render is too busy anyways.
  7. def signFilter(poi):
  8. if poi['id'] == 'Sign':
  9. if poi['Text4'] == '-- RENDER --':
  10. return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
  11. worlds['minecraft'] = "/home/minecraft/server/world"
  12. outputdir = "/home/minecraft/render/"
  13. markers = [
  14. dict(name="Players", filterFunction=playerIcons),
  15. dict(name="Signs", filterFunction=signFilter)
  16. ]
  17. renders["day"] = {
  18. 'world': 'minecraft',
  19. 'title': 'Day',
  20. 'rendermode': 'smooth_lighting',
  21. 'markers': markers
  22. }
  23. renders["night"] = {
  24. 'world': 'minecraft',
  25. 'title': 'Night',
  26. 'rendermode': 'smooth_night',
  27. 'markers': markers
  28. }