mojira.dev
MC-53853

Attribute attackDamage with negative value makes the mob unhittable same without holding the item

Step 1:Put the command block with this command,

/give @a minecraft:stick 1 0 {display:{Name:"Bugged Stick",Lore:["Buggy I"]},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:-1000000000,Operation:0,UUIDMost:43827,UUIDLeast:116840},{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:-1000000000,Operation:0,UUIDMost:13860,UUIDLeast:149248},{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-10000000000,Operation:0,UUIDMost:92271,UUIDLeast:183872}]}

Step 2: Active the command block

Step 3:Spawn a zombie
Step 4: Try to kill it with the item
Step 5: Now Try to kill it without the item
How items with attribute can affect players?!
Sorry,i put 1.7.9 instead of 1.7.5,because is not in the list

Comments 6

Could not reproduce in 1.7.9. Make sure you're not using mods or Bukkit, as they can both interfere with how commands/command blocks work and they are not vanilla, which is what the bug tracker is for.

Could not reproduce in 1.7.9. Make sure you're not using mods or Bukkit, as they can both interfere with how commands/command blocks work and they are not vanilla, which is what the bug tracker is for.

oops,i choose a wrong version,i not remember

oops,i choose a wrong version,i not remember

Fixed in 1.8-pre1. I was in Creative, though, so IDK if that affects anything. The zombie took damage from the "bugged stick" just like a punch. And it died after twenty-odd hits from the two combined, just like a zombie should.

Fixed in 1.8-pre1. I was in Creative, though, so IDK if that affects anything. The zombie took damage from the "bugged stick" just like a punch. And it died after twenty-odd hits from the two combined, just like a zombie should.

John H.

(Unassigned)

Unconfirmed

Minecraft 1.7.9

Retrieved