Back to mods
PlayerNBT project artwork

CurseForge · Minecraft mod

PlayerNBT

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which PlayerNBT release should I use?

Updated 1 year ago
Latest stable file playernbt-1.1.0.jar
Game version 1.21.8
Loader NeoForge

playernbt-1.1.0.jar targets 1.21.8 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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does playernbt-1.1.0.jar need?

playernbt-1.1.0.jar. Change the file and its required mods may change too.

No extra mods listed for this file

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.1.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use playernbt-1.1.0.jar. It targets 1.21.8 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside playernbt-1.1.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.

6 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

PlayerNBT versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.