此模组允许你从 URL 导入图像,并将其打印到世界中的地图上。它本质上是将 image2map 移植回 1.12.2 版本,尽管其中一些机制有所不同(详见下文)。

虽然如今 1.12.2 通常用于模组开发,但此模组仍完全在服务器端运行。客户端无需安装该模组即可在你的服务器上使用该功能。
用法
你可以使用以下命令直接为自己生成一张包含图像的地图:
/imagemap <url>
你也可以通过以下方式调整地图的缩放比例:
/imagemap <url> scale <scale>
或:
/imagemap <url> scale <scale> <width> <height>
你可以对图像应用抖动效果:
/imagemap <url> dither
当处理多张图像时,使用 start= 或 end= 参数来仅获取对应于图像某一部分的地图:
/imagemap <url> scale <scale> start=<start> end=<end>
还有几个其他选项可供使用,你可以更改像素在地图上呈现为透明的阈值:
/imagemap <url> scale <scale> <transparency>
或:
/imagemap <url> <width> <height> <transparency>
要移除透明度:
/imagemap <url> removealpha
若要了解运行命令后会输出多少张地图:
/imagemap <url> test
要将图像拉伸以适配整个宽度和高度:
/imagemap <url> letterbox
你还可以使用以下命令清空手中持有的地图:
/imagemap unfill
以及清除缓存数据(包括颜色映射和地图颜色字节):
/imagemap clear
大部分内容都是可配置的,某些选项包括是否允许非 OP 玩家使用该命令,以及在生存模式下运行命令时是否需要背包中有空地图。你还可以自定义命令使用的物品及其伤害值,这在整合包中非常有用。
This mod allows you to import images from a URL and print them out onto a map into your world. It essentially serves as a backport of image2map to 1.12.2, although some of its mechanics are different (see below).
Although 1.12.2 is usually played for modding nowawadays, this mod still works entirely serverside. Clients do not need the mod installed to use it on your server.
USAGE
You can simply give yourself a single map of the image using:
/imagemap <url>
You can also change the scale of the map using:
/imagemap <url> scale <scale>
OR:
/imagemap <url> scale <scale> <width> <height>
You can apply dithering to images:
/imagemap <url> dither
When processing multiple images, apply the start= or end= flags to only give yourself maps corresponding to segments of the image:
/imagemap <url> scale <scale> start=<start> end=<end>
There are a few other options available to use, you can alter the threshold at which pixels will be rendered as transparent on the map:
/imagemap <url> scale <scale> <transparency>
OR:
/imagemap <url> <width> <height> <transparency>
To remove transparency:
/imagemap <url> removealpha
To figure out how many maps will be output as a result of running a command:
/imagemap <url> test
To stretch an image out to fit the entire width and height:
/imagemap <url> letterbox
You can also clear held maps using:
/imagemap unfill
and clear cached data (including color maps and map color bytes):
/imagemap clear
Most of this is configurable, some options include whether non-ops can use the command or not, and whether maps should require empty maps in your inventory in survival when running the command. You can also customize the command to use up any custom item and damage value, which can be helpful in modpacks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧