Durability of Golden Swords occasionally dropped by Zombie Pigmen is not random (always 25)
I spawned a bunch of Zombie Pigmen (about maybe a hundred), then I killed them and noticed that each dropped golden swords have the same durability of 25 hits. (see picture "Durability").
I did the same with Skeletons (about maybe fifty) and as you can see in picture "Correct", here, the randomness in the durability of dropped gear works fine.
EDIT : still a concern in 1.8.1-pre3. See new picture
Environment
Windows XP but I don't think it matters
Created Issue:
Durability of Golden Swords occasionally dropped by Zombie Pigmen is not random
I spawned a bunch of Zombie Pigmen (about maybe a hundred), then I killed them and noticed that each dropped golden swords have the same durability of 26 hits. (see picture "Durability").
I did the same with Skeletons (about maybe fifty) and as you can see in picture "Correct", here, the randomness in the durability of dropped gear works fine.
Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report (minecraft/crash-reports/crash-<DATE>-client.txt) here.
I spawned a bunch of Zombie Pigmen (about maybe a hundred), then I killed them and noticed that each dropped golden swords have the same durability of 26 hits. (see picture "Durability").
I did the same with Skeletons (about maybe fifty) and as you can see in picture "Correct", here, the randomness in the durability of dropped gear works fine.
EDIT : still a concern in 1.8.1-pre3. See new picture
Windows XP but I don't think it matters
Durability of Golden Swords occasionally dropped by Zombie Pigmen is not random (always 25)
I spawned a bunch of Zombie Pigmen (about maybe a hundred), then I killed them and noticed that each dropped golden swords have the same durability of 2
6hits. (see picture "Durability").
I did the same with Skeletons (about maybe fifty) and as you can see in picture "Correct", here, the randomness in the durability of dropped gear works fine.
EDIT : still a concern in 1.8.1-pre3. See new pictureI spawned a bunch of Zombie Pigmen (about maybe a hundred), then I killed them and noticed that each dropped golden swords have the same durability of 25 hits. (see picture "Durability").
I did the same with Skeletons (about maybe fifty) and as you can see in picture "Correct", here, the randomness in the durability of dropped gear works fine.
EDIT : still a concern in 1.8.1-pre3. See new picture
The code below is supposed to spawn a powered Creeper, then Zombies holding 2 pieces of Lapis-Lazuli, geared with 10 pumpkin helmets at once facing to their right, a highly damaged leather tunic and undamaged leather boots and leather pants :
setblock ~ ~ ~ minecraft:mob_spawner 0 replace {
EntityId:Creeper,
SpawnData:{powered:1},
SpawnPotentials:[
{Type:Zombie,Weight:1,Properties:{
Equipment:[
{id:351,Count:2,Damage:4},
{id:301,Count:1,Damage:0},
{id:300,Count:1,Damage:0},
{id:299,Count:1,Damage:76},
{id:86,Count:10,Damage:1}
],
DropChances:[1.0f,1.0f,1.0f,1.0f,1.0f],
CanPickUpLoot:0,
PersistenceRequired:1
}}
],
Delay:0,
SpawnCount:1,
RequiredPlayerRange:16,
SpawnRange:6,
MaxNearbyEntities:1,
MinSpawnDelay:0,
MaxSpawnDelay:1
}
DropChances is set to force these Zombies to drop all their gear when killed.
However, when killed, even by drowning or any other mean that doesn't affect the durbility of the armor, here is what I got :
_some Rotten Flesh (as expected)
_10 pumpkins with unusual data value (as expected)
_2 pieces of Lapis-Lazuli (as expected)
_Moderately damaged Leather Boots, Leather Pants and Leather Tunic (I expected untouched boots and pants and nearly worn out tunic. Please note that the dropped Leather Tunic is actually less damaged than expected)
Note : the damage on this pieces of dropped armor seems to be often the same but not always. May be related to MC-36927
This was fixed in Java more than 4 years ago: MC-36927



Is this still a concern in the latest Minecraft version 13w48b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
It is.
Updated !
Cannot confirm... Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Can confirm in 14w02c, durability of dropped golden swords is always 25.
Confirmed.
Confirmed for 14w30c.
Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
It is. see new picture.
Updated again.
Reopened, thanks
I've noticed this, but I never thought anything of it lol