Revariable
Discontinued - Kiori Adventure color library broke this, and I have no time to fix it. The command has been removed.
Discontinued - Kiori Adventure color library broke this, and I have no time to fix it. The command has been removed.
/goop nbt revariable <player> <slot> <variable=text>;<variable2>=<text2>...
Will target both name and lore. If the variable is not present this will only update placeholders.
Player whose inventory items' NBT will be edited.
Supports a few vanilla selectors.
[1.6.5] May be an Entity (dropped item) UUID
The slot in the player's inventory in which items will be renamed. To read on slots see Inventory Slots.
Examples: mainhand, offhand, chest, feet, any, 0-8, ec*
The Name Variable variable targetted by this command.
Special variable PAPI is the only one not to require a value, it will just update all placeholders.
When GooP takes over anvils via the gamerule, anvils actually call this command with the variable name=[new name]
The text the variable will now. Supports color codes and PAPI placeholders.
(1.16+) For Hex color codes: <#rrggbb>
Because it is a semicolon separated list, use <&sc> or <$sc> if you want to put a semicolon as part of the text.
Use the "PAPI" variable to only update name placeholders.
In any other case, if neither the name nor item lore have the variable, the command fails and doesnt do anything.
If you use the name variable but it is not explictly as a portion of the item's name already, this will fail and not do anything.
Will also target variables in this format within the lore of the item.
Players may target specific variables (other than name) in their anvils by the use of an item with the Rename Variable MMOItems Item Stat.
If no such item is used, the name variable will be targetted.
Supports color codes with the & convention.
In 1.16+, Use <#ff960d> for forbidden orange color :)
Start with a normal iron sword
/goop nbt rename rose_bushes_ mainhand @prefix=❀@ Oleaceae, @name=Nature's Friend@ @prefix@
Will rename rose_bushes_'s mainhand item to '❀ Oleaceae, Nature's Friend ❀'. Note how the second prefix variable gets the value of the first.
Current: '❀ Oleaceae, Nature's Friend ❀'
/goop nbt rewritevar rose_bushes_ mainhand prefix &c✿
Will change the name of the item to '✿ Oleaceae, Nature's Friend ✿'
Current: '✿ Oleaceae, Nature's Friend ✿'
/goop nbt rewritevar rose_bushes_ mainhand name &oBloom of the Summer
Will change the name of the item to '✿ Oleaceae, Bloom of the Summer ✿'