How to deal bonus damage correctly with sword?

Started by IshigamiGozen on

Topic category: Help with MCreator software

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to deal bonus damage correctly with sword?
Sat, 07/04/2020 - 09:57 (edited)

I created a sword with 10 based damage and dealing 10%max health damage as a bonus. I set 10 as its damage to mob/animals and then use "deal 10%max health of target entity damage to target entity" block in "when entity is hit by tool". Finally I found it can only deal 10% max health damage without 10 based damage.

I have tried to change the contents of previous block to"deal 10+10%max health of target entity damage to target entity" . It does work. But its damage won't improve when it is enhanted. How to solve the problem?

Hoping my expression is exact enough to understand. I'm sorry for my poor English.

Edited by IshigamiGozen on Sat, 07/04/2020 - 09:57
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of just adding 10,…
Sat, 07/04/2020 - 10:37

Instead of just adding 10, you should do:

10 + (Level of Sharpness enchant).

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot! I will try it…
Sat, 07/04/2020 - 10:43

Thanks a lot! I will try it later.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot! I will try it…
Sat, 07/04/2020 - 10:43

Thanks a lot! I will try it later.