promotional bannermobile promotional banner

MT Path Speed

Changing player speed relative to the block the player is standing on

File Details

MT Path Speed 1.0.1_1.21-1.21.1

  • R
  • Dec 10, 2024
  • 16.97 KB
  • 214
  • 1.21.1+1
  • Fabric

File Name

pathspeed-1.0.1_1.21-1.21.1.jar

Supported Versions

  • 1.21.1
  • 1.21

Curse Maven Snippet

Fabric

modImplementation "curse.maven:mt-path-speed-1092612:5980043"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changelog

  • Initial implementation of MovementSpeedHandler to adjust player movement speed based on block types.
  • Integration with ServerTickEvents for periodic updates.

Fixed

  • Corrected the use of EntityAttributeModifier constructor:
    • Replaced UUID with Identifier for speed modifier ID to align with the expected constructor parameters.
    • Updated SPEED_MODIFIER_UUID to SPEED_MODIFIER_ID as an Identifier.
  • Resolved type mismatch in .getModifier method by using Identifier instead of UUID.

Changed

  • Refactored adjustPlayerSpeed method:
    • Applied the correct constructor for EntityAttributeModifier.
    • Added error handling for missing EntityAttributeInstance.
  • Updated resetPlayerSpeed method to use Identifier for retrieving and removing speed modifiers.

Full Changelog: https://github.com/MEGATREX4/pathspeed/compare/1.21_1.0.0...1.0.1_1.21-1.21.1