Name | Map |
Syntax | map [<#>/new:<world>] (reset:<location>) (scale:<value>) (tracking) (image:<file>) (resize) (script:<script>) (dot:<color>) (radius:<#>) (x:<#>) (y:<#>) (text:<text>) |
Short Description | Modifies a new or existing map by adding images or text. |
Full Description | This command modifies an existing map, or creates a new one. Using this will override existing non-Denizen map renderers with Denizen's custom map renderer.
You must specify at least one of 'reset', 'script', 'image', 'dot', 'text'. You can specify multiple at once if you prefer. When using 'reset', you can specify optionally 'scale' and/or 'tracking'. When using 'image' you can optionally specify 'resize'. When using 'dot', you can specify any valid ColorTag (it will be compressed to map's color space), and you can optionally also specify 'radius' as a number. Use "radius:0" with dot to set on a single pixel. 1 or higher will make a circle centered on the x/y given. You can reset this at any time by using the 'reset:<location>' argument, which will remove all images and texts on the map and show the default world map at the specified location. You can also specify 'reset' without a location. The 'scale' argument takes input of one of the values listed here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/map/MapView.Scale.html The 'tracking' argument determines if the map will track its location on the map it displays. This is often the player holding the map's location. Note that all maps have a size of 128x128. The file path is relative to the 'plugins/Denizen/images/' folder. Instead of a local file path, an http(s) URL can be used, which will automatically download the image from the URL given. If the file path points to a .gif, the map will automatically be animated. Use escaping to let the image and text arguments have tags based on the player viewing the map. Custom maps will persist over restarts using the 'maps.yml' save file in the Denizen plugins folder. |
Related Tags | <entry[saveName].created_map> returns the map created by the 'new:' argument if used.
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | item |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/MapCommand.java#L33 |