1
/give Command Help
Hello! I have been playing around with colored item names, colored lore, and damage, but I have one issue when I use this command:
/give @p minecraft:diamond_sword{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:999999,AttributeName:generic.attackDamage,Name:Barrier}],display:{Name:"[{\"text\":\"ITEM NAME\",\"color\":\"aqua\",\"italic\":false}]",Lore:["{\"text\":\"LINE 1\",\"color\":\"gray\",\"italic\":false}","{\"text\":\"LINE 2\",\"color\":\"gray\",\"italic\":false}"]},HideFlags:3}
The HideFlags:3 makes it so there is no damage shown, but I want the "When in main hand" damage shown. Problem is, when I take off the HideFlags:3, it shows damage for the head, body, off hand, etc. I just want the main hand damage shown, but with this command, it is either no damage or all damage. How can I make it so that only the main hand damage is shown?
/give @p minecraft:diamond_sword{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:999999,AttributeName:generic.attackDamage,Name:Barrier}],display:{Name:"[{\"text\":\"ITEM NAME\",\"color\":\"aqua\",\"italic\":false}]",Lore:["{\"text\":\"LINE 1\",\"color\":\"gray\",\"italic\":false}","{\"text\":\"LINE 2\",\"color\":\"gray\",\"italic\":false}"]},HideFlags:3}
The HideFlags:3 makes it so there is no damage shown, but I want the "When in main hand" damage shown. Problem is, when I take off the HideFlags:3, it shows damage for the head, body, off hand, etc. I just want the main hand damage shown, but with this command, it is either no damage or all damage. How can I make it so that only the main hand damage is shown?
4
/give @p minecraft:diamond_sword{AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:999999,AttributeName:generic.attackDamage,Name:Barrier,Slot:"mainhand"}],display:{Name:"[{\"text\":\"ITEM NAME\",\"color\":\"aqua\",\"italic\":false}]",Lore:["{\"text\":\"LINE 1\",\"color\":\"gray\",\"italic\":false}","{\"text\":\"LINE 2\",\"color\":\"gray\",\"italic\":false}"]},HideFlags:3}
You need to put an actual slot nbt tag in
You need to put an actual slot nbt tag in
then dont make it to all attributes but just main hand and without hideflags:3
easy peezy
easy peezy
hideflags:3 would hide attributes and enchants
So what would I change to make it not all attributes?
