config.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. "dimension": "overworld",
  22. 'markers': markers
  23. }
  24. renders["night"] = {
  25. 'world': 'minecraft',
  26. 'title': 'Night',
  27. 'rendermode': 'smooth_night',
  28. "dimension": "overworld",
  29. 'markers': markers
  30. }
  31. renders["end"] = {
  32. "world": "minecraft",
  33. "title": "End",
  34. "rendermode": "smooth_lighting",
  35. "dimension": "end",
  36. 'markers': markers
  37. }