Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1824

Closed
Open
Created Jan 28, 2025 by Miscodes@Miscodes

Recoil mechanic extremely unstable and unpredictable in 1.21.4

Summary

The recoil mechanic is completely unstable in recent versions of the game, with even the example lines used in the documentation causing very erratic behavior.

Using an attribute of recoil=1.0 causes the player to look at the sky, then the ground, then back again repeatedly. Decreasing this value seems to have no effect at all, and there seems to be different recoil amounts applied when the player is moving vs standing still, and it seems like even their facing direction at the time of executing the mechanic plays a role in how unstable the result will be.

Steps to reproduce

ExampleItem_Templated:
  Material: STONE
  Skills:
  - recoil{r=1.0;pitch=-1.0to-1.3} @self ~onUse

Replace the pitch and recoil values to literally anything else and keep experimenting.

Current behavior

Recoil is unpredictable and unstable. Try moving around while right-clicking the item, then standing still. Then looking in different directions while right-clicking.

Intended correct behavior

The r= attribute and pitch= attributes should actually have an impact on how much the player is recoiling.

Edited Mar 31, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking