Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new sneak parameter to the safe walk module #3879

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

o0sh4d0w0o
Copy link
Contributor

Type of change

  • Bug fix
  • New feature

Description

Added a missing feature to the safe walk module : sneak

  • Sneak parameter : When enabled this will change the default behavior to if player is close to the edge of a block next to an empty one.
  • Safe Sneak (Sneak dependent parameter) : When enabled is will ensure the player to don't fall if sneaking failed
  • Sneak On Sprint (Sneak dependent parameter) : When disabled pressing sprinting key will cancel the safe walk to being effective, as example to doing a jump
  • Edge Distance (Sneak dependent parameter) : A tweak parameter to manage sensibility of sneaking behavior
  • Render (Sneak dependent parameter) : Will render the box of player after edge distance applied
  • Render Player Box (Render dependent parameter) : Draw the original player box without edge distance applied

Related issues

None

How Has This Been Tested?

Locally on a minecraft server on the latest version (1.20.1)

scr

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@o0sh4d0w0o o0sh4d0w0o requested a review from Wide-Cat May 15, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants