promotional bannermobile promotional banner

Mace

A simple mod that adds a mace.
Back to Files

mace-1.2.0

File namemace-1.2.0.jar
Uploader
ThatToasterThatToaster
Uploaded
Feb 6, 2024
Downloads
2.2K
Size
19.0 KB
Mod Loaders
ForgeFabric
File ID
5085952
Type
R
Release
Supported game 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"

Learn more about Curse Maven

What's new

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>

 

This mod has no additional files