Skip to content

This mod allows Minecraft's data commands (/data, /execute store, etc.) to modify player data

License

Notifications You must be signed in to change notification settings

eclipseisoffline/modifyplayerdata

Repository files navigation

Modify Player Data

Modrinth Version Modrinth Game Versions Modrinth Downloads

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.

License

This mod is licensed under GNU LGPLv3.

Usage

Mod builds can be found here and on Modrinth.

This mod is currently available for Minecraft 1.21+1, 1.20.5+6, and 1.20.4. Releases for older versions of Minecraft are generally no longer updated, but should work fine. The Fabric API is not required. This mod is not required on clients.

Supported tags

NBT tags currently supported:

  • Air
  • FallDistance
  • Fire
  • Glowing
  • HasVisualFire
  • Invulnerable
  • Motion
  • NoGravity
  • PortalCooldown
  • Pos
  • Rotation
  • Tags
  • Silent1
  • TicksFrozen
  • AbsorptionAmount
  • FallFlying
  • Health
  • HurtTime1
  • LeftHanded
  • 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
  • Passengers2
  • UUID
  • active_effects3
  • ArmorDropChances
  • ArmorItems
  • attributes4
  • Brain
  • CanPickUpLoot
  • DeathLootTable
  • DeathLootTableSeed
  • DeathTime
  • FallFlying
  • HurtByTimestamp
  • HandDropChances
  • HandItems
  • Leash
  • NoAI
  • PersistenceRequired
  • SleepingX
  • SleepingY
  • SleepingZ
  • DataVersion
  • Dimension5
  • enteredNetherPosition6
  • LastDeathLocation7
  • playerGameType8
  • previousPlayerGameType8
  • RootVehicle2
  • ShoulderEntityLeft
  • ShoulderEntityRight
  • SpawnDimension9
  • SpawnForced6
  • SpawnX9
  • SpawnY9
  • SpawnZ9
  • XpLevel10
  • XpP10
  • XpSeed6
  • XpTotal10

Footnotes

  1. Is implemented but does not do much due to limitations within the vanilla client 2

  2. Use the /ride command. 2

  3. Use the /effect command.

  4. Use the /attribute command.

  5. Use the /tp command.

  6. I can't think of any use cases for this tag, but will add support on request. 2 3

  7. Unable to implement due to limitations within the vanilla client.

  8. Use the /gamemode command. 2

  9. Use the /spawnpoint command. 2 3 4

  10. Use the /xp command. 2 3

About

This mod allows Minecraft's data commands (/data, /execute store, etc.) to modify player data

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages