"Damage vs mob/animal (melee damage)" is messed up

Started by Adi_MC on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 08:33, 17. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Damage vs mob/animal (melee damage)" is messed up
Sat, 12/28/2019 - 22:49 (edited)

I made a weapon that deals 0,6 melee damage, with type set on sword, harvest level on 0, efficiency on 0, echantability on 8, attack speed on 0,8 and 128 number of uses. But when I start up a new world, it shows me that it deals 4,6 melee damage, despite of setting it to 0,6. Why is that? Is it a bug or did I do something wrong? Using the 2019.5 version on 1.14.4.

Edit: When I changed melee damage to 0,1, it was 4,1 in game. When I changed melee damage to 0,01, it was 4,01 in game. So the conclusion is that no matter what the damage will be like it's set to + 4 more. When I checked the .java file in MCreator, it was like I setted it to. I locked it, edited it so it will be on the minus, and then I got the number of melee damage I wanted.
Edit 2: On 1.12.2 it's +2 more damage.

Edited by Adi_MC on Sat, 12/28/2019 - 22:49
Yes, there is offset, just…
Sun, 12/29/2019 - 11:26

Yes, there is offset, just set the value in the editor to the proper one. Offset is added by the Minecraft, but we are not sure if we should correct this at this point due to backward compatibility.

Last seen on 08:33, 17. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, thank you!
Sun, 12/29/2019 - 14:00

Okay, thank you!

Last seen on 01:23, 24. Dec 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way so that it…
Fri, 03/20/2020 - 22:17

Is there a way so that it can at least go down to -4 so we can make swords do like 2 attack damage?