Wiki 9Minecraft Wiki 9Minecraft

How to Test and Use the 17 Backported Entity Attributes

MesdagPortLib adds 17 custom entity and player attributes to the game. While other mods usually control these stats through gear or potion effects, you can also test and modify them directly in-game using the vanilla /attribute command if cheats are enabled.

Movement, Size, and Flight Attributes

Open your chat bar and type /attribute <target> <attribute_name> base set <value>, replacing the attribute name with one of the following identifiers:

  • generic.scale: Shrinks or grows entity models from tiny to giant size.
  • player.creative_flight: Toggles the ability to fly freely in the air.
  • generic.flying_speed: Controls creative flight travel speed.
  • generic.jump_strength: Adjusts how high entities jump.
  • generic.movement_efficiency: Affects general walking and running movement.
  • player.sneaking_speed: Changes how fast players crawl and sneak.
  • generic.water_movement_efficiency: Adjusts swim speed through water blocks.

Combat, Survival, and Mining Attributes

You can also alter how a player or mob takes damage and interacts with blocks using the remaining attribute names:

  • player.block_break_speed: Alters how fast you break blocks.
  • player.mining_efficiency: Modifies standard pickaxe and tool mining speed.
  • player.submerged_mining_speed: Adjusts block break speed while swimming.
  • player.sweeping_damage_ratio: Modifies sword sweep attack hit strength.
  • generic.safe_fall_distance: Extends how far you drop before taking damage.
  • generic.fall_damage_multiplier: Increases or lowers fall damage taken.
  • generic.explosion_knockback_resistance: Reduces pushback from explosions.
  • generic.burning_time: Changes how long fire stays on a mob.
  • generic.max_absorption: Sets maximum golden heart absorption health.
  • generic.oxygen_bonus: Grants extra breathing time under water.

When items from dependent mods modify any of these stats, MesdagPortLib automatically displays clear, color-coded tooltips on the item so you can see the exact stat changes in your inventory.