mojira.dev
MC-4732

Tools and weapons lose durability when attacking players that are in creative

This bug shares the same problem with MC-525, but I am reporting this because it does not only affects Pvp.
Swords and tools lose durability without dealing any damage when used to hit mobs.
This happens when:
-Any mob is hit while in its invulnerable state (mob's model is red).
-Any dying mob (0 hp and have their model turned sideway) is hit. Their invisible hitbox still take the durability of your weapon.
-An Enderman is hit and teleports without taking damage.

To reproduce, try spamming hits on a few zombies with a wooden sword. The sword would break on the third or fourth zombie you use.
Another way to reproduce this is to fight an Enderman, a fresh sword for every hit. You may notice it teleporting without taking damage.

Weapons and tools should only loses durability in combat when they deal damage. For example a wooden sword with 60 uses SHOULD deal damage 60 times, not having half of them going to waste. This may not be a bug, but it is certainly a major annoyance.

Related issues

MC-525 Weapon/tool durability decreases when hitting playing in no-pvp mode. (SMP) MC-9258 Glitch with a sword, axe, shovel and pickaxe MC-9485 Friendly fire off still degrades tools MC-9855 Sword taking damage when hitting another player with it when pvp is set to false MC-10210 Sword durability loss on dead mob MC-13470 Striking a player in creative with a critical hit will still render critical hit particle effects even though no damage is taken MC-13832 Sword durability wears down when hitting a horse as you ride it MC-15108 Sword takes extra damager after killing entities MC-17566 Items get used up while riding horse. MC-17954 ALL non-item entities damage tools MC-18262 On a Multiplayer server, hitting someone with a damageable item decreases the damage value, if the server is set to no pvp. MC-48350 Weapons you break can be reacquired MC-68510 Items take durability damage when attacking players with pvp off MC-97755 Swords & other tools take damage when used to attack another player in server, with PVP switched off

Attachments

Comments

migrated
[media][media]
migrated

This really needs to be fixed

migrated

for the love of god fix this already.

migrated

I can confirm that too. It is really annoying and also it is really difficult to face mobs (especially the 1.6 ones which are harder) without spaming the left click button to hit them rather than* waiting a bit so you know that this will not happen. I am in 1.6.2

*please tell me if rather than is correct, if not tell me what should I have said there so the sentence would be correct. 🙂

migrated

This problem is still present in 1.6.2, major annoyance...

migrated

Thank you EvilSeph for fixing this!

migrated

(still) present in 1.7.9 / 14w11b
https://www.youtube.com/watch?v=7ukqYNcIQlM

migrated

Also present in the 14w17a snapshot

migrated

Confirmed.

galaxy_2alex

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.

migrated

Is this still an issue in 1.9 or 1.9.1-pre3?

migrated

This is still an issue even in the latest Bedrock version 1.2.3. This needs to be taken out of "resolved" status.

SunCat

This ticket is for Minecraft: Java Edition; issues for Minecraft: Bedrock Edition are here

In case you can reproduce it in the latest version of MC Java Edition (currently it's 1.12.2), feel free to comment about that, in which case the ticket will be reopened

Arisa Bot

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Avoma

I'm unable to reproduce this issue in 1.17.1. Upon attacking a player that's in creative mode, weapons did not appear to consume durability. I've provided some attachments that demonstrate that this behavior no longer occurs.

[media][media]
Arisa Bot

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

[Mod] markderickson

This actually appears to have been fixed in "Minecraft 19w14a".

migrated

(Unassigned)

Confirmed

durability, multiplayer, tools, weapons

Snapshot 12w50b, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w04a, Snapshot 13w05a, ..., Minecraft 1.7.9, Minecraft 1.7.10, Minecraft 14w28a, Minecraft 14w28b, Minecraft 14w34d

Minecraft 13w36a, Minecraft 19w14a

Retrieved