You are browsing as a guest. Sign up (or log in) to start making projects!

1h 32m 5s logged

MWDC - Calculator for Minecraft sword damage (material, enchant & critical hits)


  • I’ve added the option to imput your sword material, using if-statements and the minecraft wiki for the base damage.
  • You can also select your sharpness level, it calculates the damage with this formula: 1 + (sharpness_level -1) * 0.5
  • I’ve also added the option to make your attack a critical hit. I just used this simple formula: base_damage * 1.5
  • It calculates your total damage in this order:
  1. Picks the base damage depending on the material.
  2. Multiplies the base damage with 1.5 if it’s a critical hit.
  3. Adds bonus damage depending on the sharpness level.

Future plans

I’ve only started today so im planning on expanding it by a lot! There are 3 features im sertain i want to add.

  • More weapons like the Axe, Mace & Spear.
  • Option to choose armor for the targeted hit. With protection enchants.
  • More stats like DPS

Some of these are gonna be a struggle to add. But im gonna try my best and annoy my friend!:>

1
125

Comments 2

@water

peak project twin!! keep it going!

@ar-bh

excited to see how this turns out!