Skip to content

Instantly share code, notes, and snippets.

@andrboot
Created June 29, 2019 01:46
Show Gist options
  • Save andrboot/4cb0f85ac57712bea8c46375c5cd5f0c to your computer and use it in GitHub Desktop.
Save andrboot/4cb0f85ac57712bea8c46375c5cd5f0c to your computer and use it in GitHub Desktop.
outputdir= "/var/www/webmaps"
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "https://overviewer.org/avatar/%s" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
def HomesFilter(poi):
if poi['id'] == 'Homes':
try:
return (poi['name'], poi['description'])
except KeyError:
return poi['name'] + '\n'
magicmarkers= [{'id':'Homes',
'x':-2768,
'y':66,
'z':-4756,
'name':'Lachie1770'},
{'id':'Homes',
'x':-6200,
'y':65,
'z':3721,
'name':'Andrboot'},
{'id':'Homes',
'x':-11464,
'y':65,
'z':877,
'name':'MrHalfCast'},
{'id':'Homes',
'x':-259,
'y':65,
'z':5833,
'name':'PyroskE'},
{'id':'Homes',
'x':-6037,
'y':65,
'z':-102,
'name':'Colt_44_Magnum'},
{'id':'Homes',
'x':5828,
'y':65,
'z':-5846,
'name':'Destr0der'},
{'id':'Homes',
'x':-6110,
'y':74,
'z':-6330,
'name':'LtBrandon'}]
magicicons = [dict(name="Players", filterFunction=playerIcons,checked=True),
dict(name="Homes", filterFunction=HomesFilter,icon="icons/marker_home.png",checked=True),]
worlds["World"]="/var/www/mcserver/server/world"
renders["World"] = {
'world':'World',
'title':'Crafting.Builders',
"dimension": "overworld",
}
renders["World-Topo"] = {
'world':'World',
'title':'Crafting.Builders Topo',
"dimension": "overworld",
"rendermode": [Base(),HeightFading(sealevel=63),],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment