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

Kinetic Augment: Launch Method - Unit of Power #38

Open
BlackAsLight opened this issue Feb 27, 2023 · 1 comment
Open

Kinetic Augment: Launch Method - Unit of Power #38

BlackAsLight opened this issue Feb 27, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@BlackAsLight
Copy link

I am struggling to find any documentation on the launch method that tells me how much power 1 unit of power is. mod.launch(0, -90, 1) Doesn't seem to be enough for a block while mod.launch(0, -90, 2) is a lot more than 2 blocks.

@Kan18
Copy link
Contributor

Kan18 commented Feb 27, 2023

The kinetic augment launch method does not actually target a certain number of blocks to travel, but increases your velocity. "1 unit of power" could approximately be described as "an increase of 1 meter/tick" (1 meter being 1 block here, and 1 tick being 0.05 seconds.) You can get this value by checking the motionX, motionY, and motionZ values in getMetaOwner().

A couple things to note here:

  1. Minecraft does gravity slightly weirdly, you might want to reference the falling speed section of this minecraft wiki page
  2. In this case (launching straight up) it would actually be an increase of 0.5 meters/tick for a power of 1, since the Y velocity is scaled (see the Plethora source code). This would also change if you were using an elytra.
  3. Motion in Minecraft is basically handled by the client, so there might be inconsistencies/lag when testing on servers.

@Lemmmy Lemmmy added the documentation Improvements or additions to documentation label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants