config.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. def playerIcons(poi):
  2. if poi['id'] == 'Player':
  3. poi['icon'] = "https://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["nether"] = {
  32. "world": "minecraft",
  33. "title": "Nether",
  34. "rendermode": 'nether_smooth_lighting',
  35. "dimension": "nether",
  36. 'markers': markers
  37. }
  38. renders["end"] = {
  39. "world": "minecraft",
  40. "title": "End",
  41. "rendermode": [Base(), EdgeLines(), SmoothLighting(strength=0.5)],
  42. "dimension": "end",
  43. 'markers': markers
  44. }