What is the command that gives a diamond sword 1 heart of damage instead of the regular?

//ads -- adsterra.com -- native banner
?>
Can anyone tell me what the command is? I want to troll my friends on the computer but I have no idea what it is. Also, this would help out other people because barely anyone knows it even exists!
Best Answer
This is the command to give a diamond sword that does 1 heart of damage:
/give @p minecraft:diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:1,Operation:0,UUIDMost:97164,UUIDLeast:107213}]}
Pictures about "What is the command that gives a diamond sword 1 heart of damage instead of the regular?"



How do you make a diamond sword do more damage?
First, you need to program the command block to give an enchanted diamond sword with the /give command. This /give command will be run each time the command block is activated.What is the command to give diamond sword?
The standard syntax in Minecraft to create a 1000+ Sharpness weapon is "/give @p <item>{Enchantments:[{id:sharpness,lvl:<number>}]}" placed in the game's chat window. This command can also be applied to other items that can receive a Sharpness enchantment, such as an axe.What is the command to get op sword in Minecraft?
In Minecraft, you can't have an "infinity" damage sword. This is because computers, which Minecraft runs on, don't understand "infinity". Computers store numbers as a series of 1s and 0s, really, "on" and "off". Minecraft stores numbers with up to 32 of these ons and offs.How to get multiple *OP* enchants on an item!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Kevin Malik, Erik Mclean, Erik Mclean