promotional bannermobile promotional banner

Dev's Directional Movement Based Textures Template

A template resource pack used to make textures that change based on the players movement.
Back to Files

Dev's Directional Movement Based Textures Template.zip

File nameDev's Directional Movement Based Textures Template.zip
Uploaded
May 10, 2025
Downloads
37
Size
12.9 KB
File ID
6514877
Type
R
Release
Supported game versions
  • 1.21.5
  • 1.21.4
  • 1.21.3
  • 1.21.2
  • 1.21.1
  • 1.21
  • 1.20.6

What's new

βœ… Supported Inputs

Sneaking

    Triggers when the player is holding the sneak key (default: Shift)

    Overrides all other inputs

Sprinting + Forward

    Triggers when both sprint and forward keys are held (default: Ctrl + W)

    Only activates if Sneak is not pressed

Sprinting + Other Directions

    Sprint + Left / Back / Right

    Detected after sprinting forward fails

Directional Movement

    Forward

    Left

    Backward

    Right
    These are checked only when sprinting is not active

Still

    When none of the above keys are held

🧠 Behavior Notes

Conditions are checked in order, meaning higher inputs override lower ones

This supports only one direction at a time, based on the order of evaluation (no diagonal detection)

Only key inputs are tracked β€” no use of mouse movement, velocity, or other gameplay states

🧭 Priority Summary (Highest to Lowest):

  1. key.sneak
  2. key.sprint + key.forward (Sprint Forward)
  3. key.sprint + movement keys (Left β†’ Back β†’ Right)
  4. key.forward
  5. key.left
  6. key.back
  7. key.right
  8. No movement keys β†’ still
Root: Check if Sneak is pressed
β”œβ”€β”€ Sneak (key.sneak) β†’ custom_item_models/bucket/sneaking
└── Else β†’ Check Sprint
    β”œβ”€β”€ Sprint (key.sprint) β†’ Check Forward
    β”‚   β”œβ”€β”€ Forward (key.forward) β†’ custom_item_models/bucket/sprinting
    β”‚   └── Else β†’ Check Left
    β”‚       β”œβ”€β”€ Left (key.left) β†’ custom_item_models/bucket/left
    β”‚       └── Else β†’ Check Back
    β”‚           β”œβ”€β”€ Back (key.back) β†’ custom_item_models/bucket/backwards
    β”‚           └── Else β†’ Check Right
    β”‚               β”œβ”€β”€ Right (key.right) β†’ custom_item_models/bucket/right
    β”‚               └── Else β†’ custom_item_models/bucket/still
    └── Else β†’ Check Forward
        β”œβ”€β”€ Forward (key.forward) β†’ custom_item_models/bucket/forwards
        └── Else β†’ Check Left
            β”œβ”€β”€ Left (key.left) β†’ custom_item_models/bucket/left
            └── Else β†’ Check Back
                β”œβ”€β”€ Back (key.back) β†’ custom_item_models/bucket/backwards
                └── Else β†’ Check Right
                    β”œβ”€β”€ Right (key.right) β†’ custom_item_models/bucket/right
                    └── Else β†’ custom_item_models/bucket/still

This mod has no additional files