Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2015 00:08
Show Gist options
  • Save anonymous/e1fe48991a32a367bca1 to your computer and use it in GitHub Desktop.
Save anonymous/e1fe48991a32a367bca1 to your computer and use it in GitHub Desktop.
## Display markers that have the id "link"
def linkFilter(poi):
if poi['id'] == 'link':
try:
# If the marker has a name and a description, use both
return (poi['name'], poi['description'])
except KeyError:
# Otherwise just use the name
return poi['name'] + '\n'
worlds["EDMap"] = "C:\Users\Chris\AppData\Roaming\.minecraft\saves\EDMap"
renders["normalrender"] = {
"world": "EDMap",
"title": "EDMap",
"rendermode": "lighting",
"manualpois":[
{'id':'link',
'x':-19,
'y':64,
'z':195,
'name':'Quest: Check Out Overviewer!',
'description': '<a href="http://overviewer.org" target="_blank">Overviewer is awesome!</a>'
},
{'id':'link',
'x':231,
'y':64,
'z':62,
'name':'Quest 3:',
'description': '<a href="http://overviewer.org" target="_blank">Overviewer is awesome!</a>'
},
{'id':'link',
'x':356,
'y':64,
'z':6,
'name':'Quest4',
'description': '<a href="http://www.techedupteacher.com" target="_blank">Teched Up Teacher!</a>'
},
{'id':'link',
'x':228,
'y':85,
'z':130,
'name':'Quest 2',
'description': '<p>Quest 2: Oiled Pig!<br> <img src="http://badgebadge.co.uk/img/b/m/159.png" alt="Smiley face" align="middle" height="100" width="100"> <br> This is where the quest details and link will go!</p>',
}],
'markers': [dict(name="Quests", filterFunction=linkFilter)],
}
outputdir = "C:/Users/chris/Desktop/mcmap"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment