CurseForge · Minecraft mod
PlayerNBT
A simple mod which enables player NBT data to be modified by commands!
Quick answer
Which PlayerNBT release matches 1.21.2?
playernbt-1.0.0.jar targets 1.21, 1.21.4, 1.21.3 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is PlayerNBT required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does playernbt-1.0.0.jar need?
playernbt-1.0.0.jar on 1.21.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add PlayerNBT without breaking your instance.
Built for playernbt-1.0.0.jar on 1.21.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use playernbt-1.0.0.jar. It targets 1.21, 1.21.4, 1.21.3 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside playernbt-1.0.0.jar. It opens that exact file at the source.
About this project
What does PlayerNBT add?
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.
Project description from CurseForge.
Pick your setup
PlayerNBT by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
PlayerNBT versions and loaders
playernbt-1.0.0.jar
25 Dec 2024
Looking for an older file? The official CurseForge project page is in Resources.