这个模组是什么?
这是一个非常简单的小模组,旨在为 Minecraft 1.21.1 启用 NBT 创建功能。
它主要用于在 Minecraft 中导入和导出 NBT 数据。主要的 NBT 创建工作建议完全在 Minecraft 外部进行,例如使用代码编辑器或 MCStacker 等工具。
如何使用?
你需要安装 Fabric 1.21.1 版本以及 Fabric API 1.21.1 版本。
安装完成后,你将可以使用以下聊天命令:
-
.nbt [show](其中 show 是可选的)。
这将显示你当前手持物品的 NBT 数据。
-
.nbt copy
将你手持物品的 NBT 数据复制到剪贴板。
-
.nbt paste
尝试根据剪贴板中的 NBT 数据创建一个物品。
注意:由于 1.21.1 对 /give 命令的格式进行了大量更改,虽然支持使用该命令,但存在一些令人烦恼的特性。(因为试图绕过这些特性需要大量工作,而我实在懒得去处理)。
如果你想使用 /give 命令来创建物品(例如,在使用 MCStacker 时),你要给予自己的物品必须放在装饰罐(decorated pot)中,并且命令必须采用以下格式:
/give @p decorated_pot[container=[{slot:0,item:<Your NBT HERE>}]] 1
这也是 MCStacker 将物品放入容器时使用的格式。
下方是一个视频示例,展示如何使用所有这些功能。
如果你有任何问题或遇到困难,欢迎随时在我的 Discord 上提问。
展示视频
)
What is this mod?
Its a very simple 2 hour mod to enable nbt creation in 1.21.1
It is mainly intended for just importing and exporting nbt into and from minecraft. The main creational work is intended to happen fully outside minecraft with a code editor or MCStacker or so.
How do I use it?
You need farbic version 1.21.1 and fabric-api 1.21.1.
Once installed, you will have the following chat commands at your disposal
-
.nbt [show] where show is optional.
This will show you the nbt of the item you are currently holding.
-
.nbt copy which copies the nbt of the item you are holding to your clipboard.
-
`.nbt paste', which will attempt to create an item from the nbt data in your clipboard.
Note that because 1.21.1 changed a lot about how to format /give commands, it is supported, but with some annoying quirks. (Because trying to work around them would be a lot of work, and I really cannot be bothered).
If you want to use /give to create an item (for example, using MCStacker), the item you are giving yourself MUST be in a decorated pot, and the command MUST be in the following format
/give @p decorated_pot[container=[{slot:0,item:<Your NBT HERE>}]] 1
which is also the format used by MCStacker to put items into containers.
Below is a video example of how to use all these features.
If you have any questions or problems feel free to ask on my discord.
Showcase-Video
)
评论 0
登录后参与评分
还没有评论,来抢沙发吧