Skip to content

Instantly share code, notes, and snippets.

@DylanTackoor
Last active August 8, 2019 04:47
Show Gist options
  • Save DylanTackoor/dbf5dffe9b84cde279d22f0cb7e1c70b to your computer and use it in GitHub Desktop.
Save DylanTackoor/dbf5dffe9b84cde279d22f0cb7e1c70b to your computer and use it in GitHub Desktop.
worlds["My world"] = "/Users/mynam/AppData/Roaming/.minecraft/saves/WithNether"
outputdir = "/Users/mynam/Desktop/Map/Signs"
def endportalFilter(poi):
if poi['id'] in ['End Portal Frame', 'minecraft:end_portal_frame']:
poi['icon'] = 'endportalframe.png'
return 'End portal'
def signFilter(poi):
if poi['id'] in ['Oak Standing',
'Spruce Standing',
'Birch Standing',
'Jungle Standing',
'Acacia Standing',
'Dark Oak Standing',
'Oak Wall',
'Spruce Wall',
'Birch Wall',
'Jungle Wall',
'Acacia Wall',
'Dark Oak Wall',
'Oak Item',
'Spruce Item',
'Birch Item',
'Jungle Item',
'Acacia Item',
'Dark Oak Item',
'Block entity',
'standing_sign',
'spruce_standing_sign',
'birch_standing_sign',
'jungle_standing_sign',
'acacia_standing_sign',
'darkoak_standing_sign',
'wall_sign',
'spruce_wall_sign',
'birch_wall_sign',
'jungle_wall_sign',
'acacia_wall_sign',
'darkoak_wall_sign',
'sign',
'spruce_sign',
'birch_sign',
'jungle_sign',
'acacia_sign',
'darkoak_sign',
'Sign',
]:
poi['icon'] = 'endportalframe.png'
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
def chestFilter(poi):
if poi['id'] in ['Chest', 'Trapped Chest', 'minecraft:chest', 'minecraft:trapped_chest']:
poi['icon'] = 'https://gamepedia.cursecdn.com/minecraft_gamepedia/9/99/Locked_Chest_Revision_1.png?version=957046725c328d16b9135d2aafb03db7'
return "Chest with %d items" % len(poi['Items'])
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId'] # uuid
return "Last known location for %s" % poi['EntityId']
def spawnerFilter(poi):
if poi["id"] == "MobSpawner":
poi['icon'] = 'spawner.png'
poi["Text1"] = "[MobSpawner] "
poi["Text2"] = poi["EntityId"]
poi["Text3"] = poi["Text4"] = ""
return True
else:
return False
markers = [
dict(name="Players", filterFunction=playerIcons, createInfoWindow=True),
dict(name="Signs", filterFunction=signFilter, createInfoWindow=True),
dict(name="End Portals", filterFunction=endportalFilter, createInfoWindow=True),
dict(name="MobSpawners", filterFunction=spawnerFilter),
dict(name="Chests", filterFunction=chestFilter,
icon="chest.png", createInfoWindow=True),
]
# Day lighting
renders["North West"] = {
"world": "My world",
"title": "North West",
"northdirection": "upper-left",
"rendermode": "smooth_lighting",
}
renders["North East"] = {
"world": "My world",
"title": "North East",
"northdirection": "upper-right",
"rendermode": "smooth_lighting",
}
renders["South West"] = {
"world": "My world",
"title": "South West",
"northdirection": "lower-left",
"rendermode": "smooth_lighting",
}
renders["South East"] = {
"world": "My world",
"title": "South East",
"northdirection": "lower-right",
"rendermode": "smooth_lighting",
}
# Night lightinz
renders["Night North West"] = {
"world": "My world",
"title": "Night North West",
"northdirection": "upper-left",
"rendermode": "smooth_night",
}
renders["Night North East"] = {
"world": "My world",
"title": "Night North East",
"northdirection": "upper-right",
"rendermode": "smooth_night",
}
renders["Night South West"] = {
"world": "My world",
"title": "Night South West",
"northdirection": "lower-left",
"rendermode": "smooth_night",
}
renders["Night South East"] = {
"world": "My world",
"title": "Night South East",
"northdirection": "lower-right",
"rendermode": "smooth_night",
}
# Nether
renders["Nether North West"] = {
"dimension": "nether",
"world": "My world",
"title": "North West",
"northdirection": "upper-left",
"rendermode": "nether_smooth_lighting",
}
renders["Nether North East"] = {
"dimension": "nether",
"world": "My world",
"title": "North East",
"northdirection": "upper-right",
"rendermode": "nether_smooth_lighting",
}
renders["Nether South West"] = {
"dimension": "nether",
"world": "My world",
"title": "South West",
"northdirection": "lower-left",
"rendermode": "nether_smooth_lighting",
}
renders["Nether South East"] = {
"dimension": "nether",
"world": "My world",
"title": "South East",
"northdirection": "lower-right",
"rendermode": "nether_smooth_lighting",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment