overviewer / Minecraft-Overviewer

Render high-resolution maps of a Minecraft world with a Leaflet powered interface
https://overviewer.org/
GNU General Public License v3.0
3.35k stars 480 forks source link

Documentation Request: List the supported points of interest. #2037

Open Charlweed opened 2 years ago

Charlweed commented 2 years ago

Please detail which "minecraft things" are supported as points of interest. The current docs read: "The Overviewer can display signs, markers, and other points of interest on your map." I have successfully configured signs, spawners, and chests, but I'd like to recognize village bells and end_portal_frame blocks. This does not seem to be possible, and I don't what "markers" mean in this context. It would be nice if there was a list of what can be configured as a poi.

IncredibleHolg commented 2 years ago

@Charlweed take the task to update the documentation ( this is GitHub )

You can get a list of the POI if you use a marker function like this ()

global json
import json
def Filter(poi):
    print("poi={}".format(poi['id']))

renders["render1"] = {
        'world': 'World',
        'title': 'World',
        'markers': [dict(name="Things", filterFunction=Filter, icon="markers/marker_town.png" )]
}

If you check the bell data like this

        if poi['id'] == 'minecraft:bell':
                print("Bell: {}".format(json.dumps(poi)))

You get the coordonates
Bell: {"keepPacked": 0, "x": -440, "y": 65, "z": -511, "id": "minecraft:bell"}

This is the POI list, I get on my world:

minecraft:armor_stand
minecraft:banner
minecraft:barrel
minecraft:bat
minecraft:beacon
minecraft:bed
minecraft:beehive
minecraft:bell
minecraft:blast_furnace
minecraft:brewing_stand
minecraft:campfire
minecraft:chest
minecraft:chest_minecart
minecraft:chicken
minecraft:command_block
minecraft:comparator
minecraft:conduit
minecraft:cow
minecraft:creeper
minecraft:daylight_detector
minecraft:dispenser
minecraft:donkey
minecraft:dropper
minecraft:drowned
minecraft:enchanting_table
minecraft:ender_chest
minecraft:enderman
minecraft:end_portal
minecraft:furnace
minecraft:hopper
minecraft:horse
minecraft:iron_golem
minecraft:item
minecraft:item_frame
minecraft:jukebox
minecraft:lectern
minecraft:minecart
minecraft:mob_spawner
minecraft:mooshroom
minecraft:painting
minecraft:pig
minecraft:rabbit
minecraft:sheep
minecraft:shulker_box
minecraft:sign
minecraft:skeleton
minecraft:skull
minecraft:smoker
minecraft:snow_golem
minecraft:spider
minecraft:squid
minecraft:structure_block
minecraft:trapped_chest
minecraft:villager
minecraft:vindicator
minecraft:witch
minecraft:wolf
minecraft:zombie
minecraft:zombie_villager
Player
PlayerSpawn