Download Equipment Weight — Minecraft Mods — MetaMods

Equipment Weight

Active

Downloads

0

Last update

1 year ago

Versions

1.20.1 — 1.21.1
Client and server
Fabric
Adventure
Weapons and armor
Libraries

Equipment Weight

This mod introduces an equipment weight system to the game.

Implementation Features

The ratio between two new entity attributes - _generic.equipment_weight and _generic.max_equipment_weight - is compared against customizable threshold values. When this ratio meets or exceeds one of the configured thresholds, the corresponding status effect becomes active. Only one such status effect can be active at any given time.

Default attribute values are set as follows:

  • _generic.equipment_weight = 0.0
  • _generic.max_equipment_weight = 10.0

Configuration Options

Server configuration contains a mapping of numerical values to status effect identifiers. Any invalid identifiers are automatically ignored by the system.

Configuration Example

"weight_effects": {
    "0.2": "minecraft:strength",
    "0.5": "minecraft:haste",
    "0.4": "minecraft:regeneration", 
    "1.0": "minecraft:glowing"
}

With this configuration using the default _generic.max_equipment_weight value, a LivingEntity carrying equipment weight of 5.0 would receive the "Haste" effect. If the equipment weight decreases to 3.0, the "Haste" effect would be replaced by the "Strength" effect.

Important Note: This mod functions as an API tool and does not introduce gameplay changes on its own. It's designed for use by mod and data pack developers in their projects.

Project members
TheRedBrain

TheRedBrain

Developer

Created: 14 Jul 2024

ID: 26009