Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Modify Player Data Mod Wiki

Modify Player Data Mod Wiki & Guide

wiki.9minecraft.net/modify-player-data-mod/

Modify Player Data Mod , as the name suggests, allows you to modify player data using the vanilla data commands. This is something that is not possible within the vanilla game, and this mod is here to make it possible.

Guides

Step-by-step, in-game.

Frequently asked questions

How do I start modifying a player's data with this mod?
Run the vanilla /data command targeting a player entity, for example /data get entity , and the mod will let it resolve instead of failing. From there you can use get, merge, and modify on player NBT just like you would on any other entity.
Why does /data say the target is not a valid entity when I use a player name?
In vanilla, players are not selectable by /data, so the command errors out. With this mod installed on the server, player names and player selectors like @a or @p become valid targets for /data.
Can I edit another player's inventory with /data?
Yes. Target their player entity and modify the Inventory list tag, adding or replacing entries with the same Slot, id, and Count structure vanilla uses for items. Changes apply to the live player, so they see the result immediately.
How do I change a player's health or hunger with /data?
Use /data merge on the player entity and set tags like Health, AbsorptionAmount, or foodLevel and foodSaturationLevel inside the Food tag. Health is capped by the player's max health attribute, so values above that get clamped.

See all 10 Modify Player questions ›