Negative enchantments
I was thinking and I had a thought, if i gave my sword -1 knock-back would it fling the attacked towards me, away like usual or do nothing.
Or if I enchanted my bow with -1 punch, what would it do?
If I gave my armor negative thorns would it hurt me, heal the attacker or nothing, ect.
Solution 1:
No, it is not possible. When you go into the NBT file database, you can change the level, by inserting the level you want. The way it is accessed is that it puts the level like this: "enchantment.level.[level]". If it recognizes the level and the enchantment as useable, it converts it to something like "knockback V". If you put a different letter in, it will default to no enchantment. This includes the "-" character, so if you put -1 in it will come out as "enchantment.level.-1" which it cannot recognize, therefore nothing special happens when you use the sword.
It would be pretty cool, though! :D
Solution 2:
It is possible, but the item has to be made with /give and it has to be level 32768 or higher to be negative. Think of 32767 to be the highest, then going higher goes negative. So, if I used /give @p diamond_sword 1 0 {ench:[{id:16,lvl:32768,}]} the damage would be lower than usual. Hope this helps! EDIT: This only works in 1.8 or higher.