ImageMaps
ImageMaps
ImageMaps is a plugin for Bukkit Minecraft servers that enables you to place custom images in your world by rendering them onto maps and placing them in item frames.
This can be used to create info graphics, custom paintings and even the appearance of custom textures.
Installation
You will need a Server that implements Bukkit 1.13 or newer and the Spigot-API. Some features are only available in newer releases. Make sure to use the latest release of your server software before reporting issues.
Put the plugin into your servers plugins
folder and start it up. A folder for the plugin will be created automatically. You can place your images in the images
folder inside it.
Upgrading from versions < 1.0.0
The plugin should convert your maps.yml automatically. It will attempt to create a backup before doing so, but it is recommended to do one manually as well.
Usage
In order for you use place images they must be present in the images
folder. You can either put them there via FTP or just copying it, or by using the plugin's download command, allowing you to access images from the Internet.
To place images just run the /imagemap place
command and right click the block that should be the upper left corner of the image (based on your perspective).
Images will by default split into 128x128 pixel sub-images to fit on a map. The image may be scaled via command parameters, however it is recommended to prepare correctly scaled images.
The color palette of Minecraft maps is very limited, requiring the plugin/Bukkit to convert the input image. This will result in your images looking different ingame than the source. The available color table can be found here: https://minecraft.gamepedia.com/Map_item_format#Color_table
The invisible and fixed item frame properties are only available in 1.16+. You can modify them for any item frame by using a configurable (default a wooden hoe) items. Right click to toggle visibility and Shift+Right click to toggle the fixed state.
Commands
- /imagemap place <filename> [frameInvisible] [frameFixed] [frameGlowing] [size]
- Starts the placement process
- frameVisible and frameFixed are only available on 1.16+
- frameGlowing is only available on 1.17+
- /imagemap download <filename> <sourceURL>
- downloads an image from the given URL into the
images
folder
- downloads an image from the given URL into the
- /imagemap delete <filename>
- deletes an image from the
images
folder
- deletes an image from the
- /imagemap info <filename>
- prints info, such as resolution and expected size
- /imagemap reload <filename>
- reloads an image, to be used when the image file changed
- /imagemap list [page]
- lists all images in the
images
folder
- lists all images in the
- /imagemap help [command]
- prints help for commands
Permissions
imagemaps.*
- grants access to all permissions
imagemaps.place
- grants access to /imagemap place command
imagemaps.download
- grants access to /download place command
imagemaps.delete
- grants access to /imagemap delete command
imagemaps.info
- grants access to /imagemap info command
imagemaps.list
- grants access to /imagemap list command
imagemaps.reload
- grants access to /imagemap reload command
imagemaps.help
- grants access to /imagemap help command
imagemaps.toggleFixed
- allows to toggle the "fixed" state of frames with a wooden hoe
imagemaps.toggleVisible
- allows to toggle the "visible" state of frames with a wooden hoe
All permissions are default true for OPs.
Maven
You will need to configure your environment to access GitHub repositories.
<repository>
<id>github</id>
<name>ImageMaps repository</name>
<url>https://maven.pkg.github.com/SydMontague/ImageMaps</url>
</repository>
<dependency>
<groupId>net.craftcitizen</groupId>
<artifactId>imagemaps</artifactId>
<version>1.0.1</version>
</dependency>
This plugin has been developed for the CraftCitizen survival Minecraft server.
Thank you for your reply. I really like this plugin.
For changing an image, I mean having a new png file displayed. So all I need to do is replace the png file on the server. I guess I also need to restart the server? Perhaps there should be a command to reload the plugin.
For moving an image (I was thinking with WorldEdit's move command, would that work?), it sounds like deleting the old image and making a new one. And another FAQ entry if you make one would be how to switch between fast and normal modes.
I guess part of my confusion is I don't know the way Minecraft handles maps internally. I was worried the deleted maps would continue to count towards the 65535 limit. It sounds like there isn't anything to worry about.
@Bobcat00
1. What do you mean with replacing an image? Making it to another image (with the same resolution) is simply replacing the file in your file system. Using space, taken by an existing image ingame will require you to destroy the existing item frames and run the /imagemap command again with your new image.
2. Simply by using the /imagemap command again. If you don't want the old image where it is, just destroy them like you would do with normal item frames. You could also retain the maps from the item frames and place them manually where you want them...
3. Remove the image file from your file system (or rename/move it). On startup the plugin will see, that the image is no longer avilable and will remove every entry. Deleting the map_XX.dat file is NOT required, as the plugin does not use them in any way. The image data is completly virtual and plugin maps will behave like normal maps without the plugin.
I have a few questions. In fact, I think you should use these to start a FAQ page. ;-)
1. How do I replace an image?
2. How do I move an image to a new location?
3. How do I delete an image? (This should also cover deleting the associated map.dat files, too.)
4. Why are the image's colors wrong? (I already know this one. Include comments about Minecraft's fixed color palette.)
@Bobcat00
I don't think that this matters a lot. The images are only rendered once and should not affect the performance. And while the images should be stored in RAM, I would doubt that they are compressed in any way, so that reducing the actual color palette would not reduce the memory footprint.
-> I don't think it would improve anything, except maybe the file size, if you convert the image.
I've heard that the Minecraft client only supports a limited color palette for map images. Would it be better to convert the image to the Minecraft palette (whatever it is) first, or doesn't it matter?
awesome plugin
good job !
@FightManiac
To this page? Do you miss something special in the existing image?
Can you add more pictures?
nice !
Good job!
@Colioliolio
I have to thank for the report.^^
BukkitDev has a integrated donate button support - it's located in the upper left, over the search bar.
Ill just do the work, its fine! Thanks for your input and fast replies! I really enjoy this plugin and it looks great to use, you should consider adding a donation button to the page as well ^.^
@Colioliolio
If you don't want to wait for 0.2.1 to be approved, don't want the work to modify the maps.yml by hand and have no problem with placing all images again: yes.
I don't about how many images we're talking, so I don't know what would be the best in your case.
So Basically would it be a good idea to go through and remove the maps.yml from the folder, as well as remove all maps on the server, and let the .jar load me a new maps.yml and restart from scratch just to be safe? :)
@Colioliolio
I think I found the error. I uploaded a 0.2.1 update, and it's waiting to approved.
To fix this error by hand you could delete all entrys of maps without existing image in the maps.yml, as a bug that prevented them to be deleted, prevented the other maps to be loaded...
We are using the latest version of CB, The only thing in the logs that i can find is when i removed a few maps i deleted there .jpg in the folder, then in the restart it said it couldnt find those pics which is obvious :) Yes the maps.yml is filling up with info properly, and when we take the maps in our hands they stay blank!
@Colioliolio
That sounds really strange.
What CB Version are you using? Is there something in the serverlog, that might relate to the problem? Is there something in the maps.yml in the plugin's folder? When you take the map in your inventory, it it still blank?
I had several Images posted around testing them, then we did our daily server restart, and after the restart none of the images seemed to "reload" they were just blank ^.^
@Colioliolio
I'm sorry, I don't exactly understand what you mean. Could you explain it a bit more detailed?
This was working great :) My only question is when we restarted our server, the never reloaded. Is this a glitch or fixable issue maybe? :)