Skip to content

Instantly share code, notes, and snippets.

@korny
Last active September 26, 2015 17:14
Show Gist options
  • Save korny/de5dc13f12d45ffb7c7f to your computer and use it in GitHub Desktop.
Save korny/de5dc13f12d45ffb7c7f to your computer and use it in GitHub Desktop.
Minecraft Overviewer config file (N/W/S/E+Nether, Markers for Signs, Players, and Chests with Iron or Diamonds)
# coding=utf-8
worlds['Beteigeuze'] = "~/minecraft-saves/Beteigeuze"
outputdir = "/var/www/Kornelius-Kalnbach/minecraft.murfy.de/Beteigeuze"
rendermode = "smooth_lighting"
def signFilter(poi):
if poi['id'] == 'Sign':
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
def chestFilter(poi):
if poi['id'] in ["Chest", "Trap", "Furnace"]:
info = ''
if poi['id'] != 'Chest':
info = "[%s] \n" % poi["id"]
info += "Y=%i, " % poi["y"]
info += "%i slots: " % len(poi["Items"])
item_sum = 0
# for item in poi["Items"]:
# item_sum += item["Count"]
# info += "%i items \n" % item_sum
iron = 0
itemText = ""
for item in poi["Items"]:
if item["id"] == 'minecraft:iron_ore':
itemText += " %i Iron Ore" % item["Count"]
iron += item["Count"]
if item["id"] == 'minecraft:iron_ingot':
itemText += " %i Iron " % item["Count"]
iron += item["Count"]
if item["id"] == 'minecraft:iron_block':
itemText += " %i Block of Iron " % item["Count"]
iron += item["Count"] * 9
if item["id"] == 'minecraft:diamond':
itemText += " %i Diamond " % item["Count"]
# if item["id"] == 'minecraft:coal':
# itemText += " %i Coal " % item["Count"]
# if item["id"] == 'minecraft:gold_ingot':
# itemText += " %i Gold " % item["Count"]
info += itemText
poi['icon'] = 'http://minecraft.murfy.de/chest.png'
if poi['y'] >= 40 and itemText != '':
return ('Chest (%i iron)' % iron, info)
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
renders['north'] = {
'world': 'Beteigeuze',
'title': 'Nord',
'markers': [dict(name="All signs", filterFunction=signFilter),
dict(name="Chests", filterFunction=chestFilter),
dict(name="Players", filterFunction=playerIcons)]
}
renders['west'] = {
'world': 'Beteigeuze',
'northdirection': 'upper-right',
'title': 'West',
}
renders['south'] = {
'world': 'Beteigeuze',
'northdirection': 'lower-right',
'title': 'Süd',
}
renders['east'] = {
'world': 'Beteigeuze',
'northdirection': 'lower-left',
'title': 'Ost',
}
renders['nether-north'] = {
'world': 'Beteigeuze',
'title': 'Nether',
'rendermode': 'nether_smooth_lighting',
'dimension': 'nether',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment