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:
- Picks the base damage depending on the material.
- Multiplies the base damage with 1.5 if it’s a critical hit.
- 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!:>
Comments 2
peak project twin!! keep it going!
excited to see how this turns out!
Sign in to join the conversation.