This mod allows Minecraft's data commands (/data
, /execute store
, etc.) to modify player data.
Alongside supporting most vanilla player NBT tags, this mod also adds the CustomData
NBT tag,
which can be used to store any type of NBT data on a per-player basis.
Feel free to report any bugs, or suggest new features, at the issue tracker.
This mod is licensed under GNU GPLv3.
Mod builds can be found here and on Modrinth.
This mod is currently available for Minecraft 1.21 and 1.20.5+6/1.20.4 (no longer updated). The Fabric API is not required. This mod is not required on clients.
NBT tags currently supported:
Air
FallDistance
Fire
Glowing
HasVisualFire
Invulnerable
Motion
NoGravity
PortalCooldown
Pos
Rotation
Tags
Silent
1TicksFrozen
AbsorptionAmount
FallFlying
Health
HurtTime
1LeftHanded
abilities
EnderItems
foodExhaustionLevel
foodLevel
foodSaturationLevel
foodTickTimer
Inventory
recipeBook
Score
seenCredits
SelectedItem
SelectedItemSlot
SleepTimer
warden_spawn_tracker
CustomData
- This tag doesn't exist in vanilla Minecraft, and doesn't do anything. It can be used by datapack creators to store custom NBT data.
NBT tags I won't add support for:
CustomName
CustomNameVisible
OnGround
Passengers
2UUID
active_effects
3ArmorDropChances
ArmorItems
attributes
4Brain
CanPickUpLoot
DeathLootTable
DeathLootTableSeed
DeathTime
FallFlying
HurtByTimestamp
HandDropChances
HandItems
Leash
NoAI
PersistenceRequired
SleepingX
SleepingY
SleepingZ
DataVersion
Dimension
5enteredNetherPosition
6LastDeathLocation
7playerGameType
8previousPlayerGameType
8RootVehicle
2ShoulderEntityLeft
ShoulderEntityRight
SpawnDimension
9SpawnForced
6SpawnX
9SpawnY
9SpawnZ
9XpLevel
10XpP
10XpSeed
6XpTotal
10
Footnotes
-
Is implemented but does not do much due to limitations within the vanilla client ↩ ↩2
-
Use the
/effect
command. ↩ -
Use the
/attribute
command. ↩ -
Use the
/tp
command. ↩ -
I can't think of any use cases for this tag, but will add support on request. ↩ ↩2 ↩3
-
Unable to implement due to limitations within the vanilla client. ↩