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

Implement Customisable Gravity #27

Open
PiggyPiglet opened this issue May 8, 2021 · 1 comment
Open

Implement Customisable Gravity #27

PiggyPiglet opened this issue May 8, 2021 · 1 comment
Labels

Comments

@PiggyPiglet
Copy link

Description

An API to interact with and modify gravity would be extremely useful.

Things To Avoid:

  • Velocities applied on the player, these will lag the client with high latency, at least they do with spigot. They also don't allow for strafing afaik, but perhaps my implementation was just shite.
  • Potion effects are not a solution, like ever.

Possible Solutions:

  • Mount the user to an entity and perform the velocity application on that. Dunno if it'll lag or not, don't think it will, probably worth a try. Not sure if the client sends movement packets on all entities, so you may need to use a specific entity like a boat. Problem is this'll look fucked on the client, and it'll take effort to make it look right for other players.
  • Get mojang to implement gravity on the server side
@BomBardyGamer
Copy link
Member

Thanks for the issue!

As I said to you on Discord, I can very likely implement this for anything the server controls (a.k.a entities), though I am not sure about how to go about this for players, as the client is the one that notifies Krypton that it is moving, and so I would likely have to tell the client to jump back, which would not be smooth at all (of course).

Nevertheless, I will see what I can do about the players, and I'll definitely consider it for entities.

@BomBardyGamer BomBardyGamer added the enhancement New feature or request label May 24, 2021
@BomBardyGamer BomBardyGamer added this to the Stable release milestone May 24, 2021
@BomBardyGamer BomBardyGamer moved this to Todo in Krypton Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants