.modify | |
---|---|
Type | Command |
Category | none |
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 keybind | none |
Source code | net/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.
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.Version | Changes |
---|---|
Wurst 2.15 | Added .modify . |
Wurst 7.0pre1 | Temporarily removed .modify . |
Wurst 7.0pre8 | Re-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 $. |