YourCustomPaintings is a Sponge plugin for uploading your own custom paintings to server. Paintings are implemented through minecraft maps+item frames. You can upload paintings spanning across multiple maps/frames, with convenient tool for automatic placing of them. Image will be either scaled automatically, or placed on center, with or without dithering. Various options of scaling and dithering modes are available. Once you uploaded a painting, it will be always available to you from the list. Players in survival will be required to have needed items, like item frames and empty maps (Can be turned off with permissions). Permissions and Permission Options are supported, and simple config file too.
List of available commands and their parameters (parameters in square brackets are optional):
/uploadpainting [Player] <Name> <URL> [<MapsX> <MapsY>] [ScaleMode] [DitherMode] [ColorBleedReductionPercent] - Uploads a painting and gives you either a filled map (for 1x1 painting) or painting placer (more about painting placer is in it’s own section)
Player - optional parameter for uploading in lieu of given player, if user have permission to do so. Useful for console.
Name - ID of the map. Should be unique per user. Is used for getting painting again with command
/getpainting if needed.
URL - url of image to upload.
MapsY - image size in maps.
1 1 by default. For example,
3 2 means painting will be occupy 3x2 blocks when placed in a world.
ScaleMode - scale mode. Lanczos3 by default. Use Mitchell if Lanczos3 gives artifacts. Use NoScale to place image to center without scaling. Possible values: NoScale, BSpline, Bell, BiCubic, BiCubicHighFreqResponse, BoxFilter, Hermite, Lanczos3, Mitchell, Triangle.
DitherMode - dither mode. FloydSteinberg by default. More about that below. Possible values: NoDither, FloydSteinberg, JarvisJudiceNinke, Stucki, Atkinson, Burkes, Sierra3, TwoRowSierra, SierraLite, OrderedBayer2x2, OrderedBayer4x4, OrderedBayer8x8, OrderedBayer16x16.
ColorBleedReductionPercent - applicable only to unordered dither. Possible values: 0-100. Zero percent by default. More about that below.
/uploadpainting Lenna1 https://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png
/uploadpainting Lenna2 https://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png 4 4
/uploadpainting Lenna3 https://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png 4 4 Mitchell NoDither
/getpainting [Player] <Name> - Gets painting by given name. If user have permission, user can specify owner player.
Player - optional parameter for getting paiting owned of given player, if user have permission to do so.
Name - name of a painting that was specified in
/getpainting Notch MobPoker
/paintingslist [all|Player] [page] - Displays a list of paintings and info about them. You can click “>GET<” links to get paintings.
all - specify this parameter for viewing a list of all paintings of all players, if you have permission to do so.
Player - specify this parameter for viewing a list of paintings of given player, if you have permission to do so.
If neither of those parameters are present, a list of your own paintings will be displayed.
page - page
Maps have limited palette in Minecraft, so it can’t recreate all the colors, especially in gradients. To mitigate this, you can use dither. Disther adds noise to simulate colors in between palette values. There are two types of dither: unordered and ordered. Supported unordered dither: FloydSteinberg, JarvisJudiceNinke, Stucki, Atkinson, Burkes, Sierra3, TwoRowSierra, SierraLite. Supported ordered dither: OrderedBayer2x2, OrderedBayer4x4, OrderedBayer8x8, OrderedBayer16x16. Please note that OrderedBayer algorithm used here is not intended for images with indexed palette, so it won’t work as effectively.
No dither (NoDither):
Ordered dither (OrderedBayer16x16):
Unordered dither (FloydSteinberg):
ColorBleedReductionPercent parameter is intended for reduction of “color bleed” (unordered dither sometimes causes color to “bleed” below and left) and lead to increasing areas of solid color. Only for unordered dither.
Color bleed reduction at 75% (Atkinson):
Sometimes dither isn’t needed and image would look better without it, primarily where only bright primary colors were used, or when image have lots of gray colors.
When user executes command
/uploadpainting or command
/getpainting user will receive: filled map, if painting is 1x1 size, just place it in item frame; or painting placer for bigger paintings. Painting placer is just a stick; click with it any wall with sufficient empty space to place a painting. Painting will automatically fit to any available space, but if you need to place it more precisely, just know that click point will become upper left corner of a painting, if space allows.
List of available permissions and description of what they do:
yourcustompaintings.commands.uploadpainting.execute - Allows the user to execute the
yourcustompaintings.commands.uploadpainting.others - Allows the Operator to upload painting under guise of another user account
yourcustompaintings.commands.getpainting.execute - Allows the user to execute the uploadpainting command.
yourcustompaintings.commands.getpainting.others - Allows the user to get paintings of other users with /getpainting
yourcustompaintings.commands.paintingslist.execute - Allows the user to execute the paintingslist command.
yourcustompaintings.commands.paintingslist.all - Allows the user to get list of all paintings
yourcustompaintings.commands.paintingslist.others - Allows the user to get list of paintings of other users
yourcustompaintings.paintingplacer.place - Allows the user place paintings with painting placer. Usually admins allow all users to have it by default
yourcustompaintings.paintingplacer.dontselfdestruct - Allows the user to place paintings with painting placer any times they want in Survival. Please note that even if they don’t have this permission, they can still copy individual maps that’s contains painting with vanilla method. Users in Creative don’t need this permission.
yourcustompaintings.bypasssurvival - Users who have this permission do not need any items for getting/placing paintings in Survival. Users who don’t have this permission will need to have Empty Map to get 1x1 painting, Stick to get Painting Placer, Empty Maps and Item Frames in quantity of MapsX*MapsY each for placing a painting with painting placer.
List of available permission options and description of what they do:
yourcustompaintings.commands.uploadpainting.max.maps.x - max allowed width of a painting for player in blocks/maps
yourcustompaintings.commands.uploadpainting.max.maps.y - max allowed height of a painting for player in blocks/maps
yourcustompaintings.commands.uploadpainting.max.imgfilesize - max allowed size of image to upload for player in bytes
yourcustompaintings.commands.uploadpainting.max.imgwidth - max allowed width of image to upload for player in pixels
yourcustompaintings.commands.uploadpainting.max.imgheight - max allowed height of image to upload for player in pixels
debug-mode - Debug mode. Will write some trash info in plugin’s config folder, so not recommended.
false by default.
max-img-file-size - Maximal size of image file to upload in bytes. 1048576 by default.
progress-report-time - Report progress of operation where possible every X milliseconds (currently only upload progress). 30000 by default.
Uploading image with too big dimensions, or too big in-game size in blocks will cause OutOfMemoryError, so make sure to adjust limits according to your server capacity. Minecraft support only ~32000 maps, so be sure to not upload too much, and only give permission to players who have a sense of limit. If you upload too much, regular maps and uploaded paintings will start overwriting each other, which is not pretty. There’s no guarantee that future versions of Minecraft/Sponge will like those paintings-maps, so I take no responsibility for anything.
Quick video demonstration
Resources used in screenshots and video
“Fennec Fox” by Keith Roper is licensed under CC BY 2.0
“The End of Words” by busangane is licensed under CC BY SA 3.0
“bridge” by busangane is licensed under CC BY 3.0
“Adira Portrait” by Twokinds is licensed under CC BY SA 3.0
“DSC_0794” by Rachid H is licensed under CC BY NC 2.0
“Epic KItty Battle” by Andrew McFarlane is licensed under CC BY NC 2.0
- SpongeForge 1.12.1-2444-7.0.0-BETA-2568
- SpongeVanilla 1.12.1-7.0.0-BETA-315