跳到正文

PlayerNBT

作者:m_marvin

A simple mod which enables player NBT data to be modified by commands!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This mod removed the limitation of commands to modify player NBT data.

For example, this mod allows you to use this command:
/data modify entity @s Inventory [{id:”minecraft:stone”,count:64,Slot:0b}]
Which gives you an stack of stone in the first slot of your hotbar.

 

You can use this for exampel to save your current inventory:
/data modify storage inventories Player1 set from entity YourPlayerName Inventory

And load back your saved inventory at any time using:
/data modify entity YourPlayerName Inventory set from storage inventories Player1

 

Important

Some fields of the players NBT data are strictly read only even with this mod, simply because that is how the game works.

These are mainly fields that represent properties which are determined by additonal factors.

mayFly, instabuild and mayBuild are for example determined by the game mode of the player, and can not be edited, only read.

Postion, Motion and Rotation also can not be edited.

 

But most other fields work like on any other entitiy, this includes, but is not limited to:
Inventory
Health
foodLevel
Score
XpLevel
Air
EnderItems
And many more.

常见问题

PlayerNBT 支持哪些 Minecraft 版本?

PlayerNBT 支持 Minecraft Java 版 1.21–1.21.8,共 6 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

PlayerNBT 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

m_marvin 的其他作品

查看全部 →