Sets the weapon to deal damage equal to the enchantment level of the weapon in the main hand.
command for enchant
/attack 1 "level" to enchant damage equal to "level", has a maximum level of 127
/attack 10 "level" to enchant damage equal to 10 times the "level", has a maximum level of 127
/attack 100 "level" to enchant damage equal to 100 times the "level", has a maximum level of 127
/attack 1000 "level" to enchant damage equal to 1000 times the "level", has a maximum level of 127
/attack time "level" to multiply the damage equal to the enchant level, has a maximum level of 127
"/attack 0" to enchant damage equal to 0
"/attack remove" to remove enchantment from main hand