Skip to content

This is a datapack for auto load maps into world created by third-party software which is used to turn images into Minecraft maps.这是一个用于自动将由第三方软件创建的地图画加载到世界中的数据包。

Notifications You must be signed in to change notification settings

creamIcec/Minecraft-Image-to-Map-DataPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

现在兼容1.18+!

Now compatible with 1.18+!

This is ths description of Chinese, for English version please scroll down.

Minecraft 地图画加载器数据包

这是一个将由第三方软件生成的地图画放入游戏地图中的数据包。

但是,这个数据包不能下载图片或者转换图片(受数据包限制); 但是它可以实现将转换好的地图画简单地加载进世界,而不用手动按编号一张张地摆放。 可以使用这个图片到地图转换器: https://github.com/tryashtar/image-map 或者网页版的另一个转换器: https://mc-map.djfun.de/ github地址: https://github.com/djfun/mc-map-item-tool

注意:若在使用转换器时遇到问题,请前往对应页面提交bug,不要在此提交,谢谢。

如何使用转换器的教程也在对应页面。

提示:在转换图片时,可以先查看图片宽高比,然后设置合适的宽高,如下图:

image image

注意:当转换多张图片时,一定要记住每张图片对应地图的起始编号,防止混淆。

如何使用

I.解压此数据包。

II.创建新的世界,选择数据包..,将此数据包拖入窗口; 若要加载到已有的世界中,直接将解压后的数据包文件夹拖入.minecraft/saves/<你的存档名>/datapacks

III.进入已置入地图的世界(可以先确定地图已置入世界,如下图(路径:.minecraft/saves/<你的存档名>/data))。

image

IV.运行/reload加载分步教程

注意:有时在输入/reload后,加载出教程的时间可能较长(但不会超过30秒),因此请耐心等待。

image

V.运行/function imgloader:help

image

VI.运行/function imgloader:gencreator

image 按照提示,可将草方块替换成任意方块。

注意:请找一个合适的高度,防止生成地图的时候因空间不足而生成不完全。

VII.运行/function imgloader:genargctr

image image

VIII.在箱子两格中放入任意物品,数量分别作为长和宽。

image

此处用7:5作为演示。

IX.运行/function imgloader:getarg

image

注意:一定要站在箱子上运行。

X(1).运行/function imgloader:gen 或者 /function imgloader:gennotwith0,此处以默认从零开始做演示。

image

成功了~

X(2).如果运行/function imgloader:gennotwith0,输入/trigger initial set <要放置的地图起始编号>设定起始值后再运行。

(比如刚才用7:5做了演示,用了前35张图片,故此处设定为35)

注意:在Minecraft中,地图编号从0开始,而不是1。

image image

XI.再次运行/function imgloader:gennotwith0

image

也成功了~

提示

若不想每次都查看分步教程,可输入/function imgloader:reference查看指令大全。


Minecraft Image to Map DataPack

This is a project for auto load maps into world created by third-party software which is used to turn images into Minecraft maps.

However, it can only put already generated maps into world. But good news is that you don't need to place each map one by one into world. For image converter, jump here https://github.com/tryashtar/image-map Or another converter for the web version: https://mc-map.djfun.de/ ,GitHub address: https://github.com/djfun/mc-map-item-tool

Note: if you encounter problems when using the converter, please go to the corresponding page to submit the bug. Don't submit it here. Thank you.

A tutorial on how to use the converter is also on the corresponding page. Tip: when converting a picture, you can first view the width and height ratio of the picture, and then set the appropriate width and height, as shown in the following figure:

 image

Note: when converting multiple pictures, be sure to remember the starting number of the map corresponding to each picture to prevent confusion.

How to use

I. unzip this datapack.

II. Create a new world, select 'datapacks..' and drag this datapack into the window; To load into the existing world, directly drag the unzipped datapack folder into . Minecraft / saves / < your archive name > / datapacks.

III. enter the world in which the maps has been generated in (you can first confirm that the maps has been placed in the folder, as shown in the following figure (path: . Minecraft / saves / < your archive name > / data )).

 image

IV. run /reload to load the step-by-step tutorial

Note:In some conditions after you typed /reload , it will take moments to load the tutorial(less than 30s), please wait patiently.

image

V. run /function imgloader: help

 image

Vi. run /function imgloader: gencreator

image Follow the prompts as you can replace the grass_block with any block.

Note: please find a suitable height to prevent incomplete map generation due to insufficient space

VII. Run /function imgloader: genargctr

image  image

VIII. Put any items in the two slots of the chest, and the quantity is regarded as length and width respectively.

 image

Here we use 7:5 as a demonstration.

IX. run /function imgloader: getarg

image

Note: be sure to stand on the chest and run

X (1). Run /function imgloader: gen or /function imgloader: gennotwith0. The demonstration starts from zero by default.

image It worked, Enjoy~:D

X (2). If you run /function imgloader: gennotwith0, type / trigger initial set < start number of map to be placed > set the starting value before running.

(for example, just now we made a demonstration with 7:5 and used the first 35 pictures, so it is set to 35 here)

Note: in Minecraft, the map number starts with 0 instead of 1

image

Xi. Run again /function imgloader: gennotwith0

 image

It worked, too :D

Hint

If you do not want to view the step-by-step tutorial every time, you can type /function imgloader:reference to view the complete set of instructions.

About

This is a datapack for auto load maps into world created by third-party software which is used to turn images into Minecraft maps.这是一个用于自动将由第三方软件创建的地图画加载到世界中的数据包。

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published