1

/give Command Help

PoochieMoo •7/13/19 3:04 pm
•
282
•
7/13/2019 10:59 pm
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?
Posted by
PoochieMoo
Level 7 : Apprentice Miner
0

  Have something to say?

Join • Sign in

4

HoboMaggot
• 07/13/2019 10:59 pm
• Level 56 : Grandmaster Blob
/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
2
bhfdh
• 07/13/2019 4:04 pm
• Level 34 : Artisan Creeper Hugger
then dont make it to all attributes but just main hand and without hideflags:3
easy peezy
1
HoboMaggot
• 07/13/2019 10:57 pm
• Level 56 : Grandmaster Blob
hideflags:3 would hide attributes and enchants
1
PoochieMoo
• 07/13/2019 4:19 pm
• Level 7 : Apprentice Miner
So what would I change to make it not all attributes?
1

Welcome