Wurst.Wiki

The Official Wurst Client Wiki

User Tools

Site Tools


cmd:modify

Table of Contents

.modify

.modify
The .help entry for .modify.
TypeCommand
Categorynone
In-game description“Allows you to modify NBT data of items.

Syntax: .modify add <nbt_data>
.modify set <nbt_data>
.modify remove <nbt_path>
Use $ for colors, use $$ for $.

Example:
.modify add {display:{Name:'{"text":"$cRed Name"}'}}
(changes the item's name to Red Name)“
Default keybindnone
Source codenet/wurstclient/commands/ModifyCmd.java

.modify is a chat command that allows the user to modify the NBT data of items.

Using .modify requires creative mode, but doesn't require OP.

NBT data is a complex topic that goes far beyond the scope of this page. See the NBT format page in the official Minecraft Wiki to learn more about how NBT works.

Syntax

Main article: Command Syntax

  • .modify add <nbt_data> adds <nbt_data> to the currently held item.

  • .modify set <nbt_data> replaces the currently held item's NBT data with <nbt_data>.

  • .modify remove <nbt_path> removes all NBT data within <nbt_path> from the currently held item.

Examples:

  • .modify add {display:{Name:'{"text":"$cRed Name"}'}} changes the item's name to Red Name.

See also

  • NBT format - more about the NBT format and how it works.

  • .viewnbt - a command to view existing NBT data in an item.

  • InfiniChat - a hack to remove the 256 character limit in chat messages. Necessary for complex item modifications.

Changes

VersionChanges
Wurst 2.15Added .modify.
Wurst 7.0pre1Temporarily removed .modify.
Wurst 7.0pre8Re-added .modify.
Wurst 6.27.1 (Minecraft 1.8 & 1.12),
Wurst 7.0pre8 (Minecraft 1.14+)
Added color support to .modify. Use $ for colors, use $$ for $.
cmd/modify.txt · Last modified: 2023/02/17 13:03 by alexander01998