Mace

A simple mod that adds a mace.

File Details

mace-1.2.0

  • R
  • Feb 6, 2024
  • 18.96 KB
  • 2.0K
  • 1.20.4+3
  • Forge + 1

File Name

mace-1.2.0.jar

Supported Versions

  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:mace1-2-0-970456:5085952")

Fabric

modImplementation "curse.maven:mace1-2-0-970456:5085952"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Fixed crafting table bug

 

Balance Change-

New properties-

10 damage

.6 Attack speed

125 durability

Also now mace does extra damage depending on armor values-

No armor results in 2 extra damage dealt

Un-enchanted Diamond/Netherite give 0 extra damage

If enchants are used it reduces base damage

 

Code to better explain this<br /><br /><span style="font-family: terminal, monaco, monospace; font-size: 10px;">public class MaceLivingEntityIsHitWithToolProcedure {
	public static void execute(LevelAccessor world, Entity entity) {
		if (entity == null)
			return;
		if ((entity instanceof LivingEntity _livEnt ? _livEnt.getArmorValue() : 0) != 0) {
			<strong><span style="text-decoration: underline;">entity.hurt(new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.PLAYER_ATTACK)), (float) (2 - (entity instanceof LivingEntity _livEnt ? _livEnt.getArmorValue() : 0) / 5));</span></strong>
		} else {
			<strong><span style="text-decoration: underline;">entity.hurt(new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.PLAYER_ATTACK)), 2);</span></strong>
		}
	}
}</span>