def playerIcons(poi):
    if poi['id'] == 'Player':
        poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
        return "Last known location for %s" % poi['EntityId']

def signFilter(poi):
    if poi['id'] == 'Sign':
        return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])

worlds['minecraft'] = "/home/minecraft/server/world"
outputdir = "/home/minecraft/render/"

markers = [
    dict(name="Players", filterFunction=playerIcons),
    dict(name="Signs", filterFunction=signFilter)
]

renders["day"] = {
    'world': 'minecraft',
    'title': 'Day',
    'rendermode': 'smooth_lighting',
    'markers': markers
}

renders["night"] = {
    'world': 'minecraft',
    'title': 'Night',
    'rendermode': 'smooth_night',
    'markers': markers
}

def playerIcons(poi):
    if poi['id'] == 'Player':
        poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
        return "Last known location for %s" % poi['EntityId']

# Only signs with "-- RENDER --" on the last line will be shown
# Otherwise, people can't have secret bases and the render is too busy anyways.
def signFilter(poi):
    if poi['id'] == 'Sign':
        if poi['Text4'] == '-- RENDER --':
            return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])

worlds['minecraft'] = "/home/minecraft/server/world"
outputdir = "/home/minecraft/render/"

markers = [
    dict(name="Players", filterFunction=playerIcons),
    dict(name="Signs", filterFunction=signFilter)
]

renders["day"] = {
    'world': 'minecraft',
    'title': 'Day',
    'rendermode': 'smooth_lighting',
    'markers': markers
}

renders["night"] = {
    'world': 'minecraft',
    'title': 'Night',
    'rendermode': 'smooth_night',
    'markers': markers
}

Add filter text to signs
Add filter text to signs

  def playerIcons(poi):
      if poi['id'] == 'Player':
          poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
          return "Last known location for %s" % poi['EntityId']
  
+ # Only signs with "-- RENDER --" on the last line will be shown
+ # Otherwise, people can't have secret bases and the render is too busy anyways.
  def signFilter(poi):
      if poi['id'] == 'Sign':
+         if poi['Text4'] == '-- RENDER --':
-         return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
+             return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
  
  worlds['minecraft'] = "/home/minecraft/server/world"
  outputdir = "/home/minecraft/render/"
  
  markers = [
      dict(name="Players", filterFunction=playerIcons),
      dict(name="Signs", filterFunction=signFilter)
  ]
  
  renders["day"] = {
      'world': 'minecraft',
      'title': 'Day',
      'rendermode': 'smooth_lighting',
      'markers': markers
  }
  
  renders["night"] = {
      'world': 'minecraft',
      'title': 'Night',
      'rendermode': 'smooth_night',
      'markers': markers
  }
  
Add filter text to signs
## Code Before:
def playerIcons(poi):
    if poi['id'] == 'Player':
        poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
        return "Last known location for %s" % poi['EntityId']

def signFilter(poi):
    if poi['id'] == 'Sign':
        return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])

worlds['minecraft'] = "/home/minecraft/server/world"
outputdir = "/home/minecraft/render/"

markers = [
    dict(name="Players", filterFunction=playerIcons),
    dict(name="Signs", filterFunction=signFilter)
]

renders["day"] = {
    'world': 'minecraft',
    'title': 'Day',
    'rendermode': 'smooth_lighting',
    'markers': markers
}

renders["night"] = {
    'world': 'minecraft',
    'title': 'Night',
    'rendermode': 'smooth_night',
    'markers': markers
}

## Instruction:
Add filter text to signs
## Code After:
def playerIcons(poi):
    if poi['id'] == 'Player':
        poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
        return "Last known location for %s" % poi['EntityId']

# Only signs with "-- RENDER --" on the last line will be shown
# Otherwise, people can't have secret bases and the render is too busy anyways.
def signFilter(poi):
    if poi['id'] == 'Sign':
        if poi['Text4'] == '-- RENDER --':
            return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])

worlds['minecraft'] = "/home/minecraft/server/world"
outputdir = "/home/minecraft/render/"

markers = [
    dict(name="Players", filterFunction=playerIcons),
    dict(name="Signs", filterFunction=signFilter)
]

renders["day"] = {
    'world': 'minecraft',
    'title': 'Day',
    'rendermode': 'smooth_lighting',
    'markers': markers
}

renders["night"] = {
    'world': 'minecraft',
    'title': 'Night',
    'rendermode': 'smooth_night',
    'markers': markers
}
