-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
It is far easier to not restrict hclip to the 4 cardinal directions, and use the player's yaw instead. You can get a val direction = Vec3d.fromPolar(0f, yaw) using that, your entire updatePosition(
x + direction.x * blocks,
y,
z + direction.z * blocks
) |
fixed |
Wouldn't it be more useful to also have a vclip command? |
There is one. Consider looking before you comment. It would, however, be a good idea to merge the two into one command that does both. |
Wasn't aware of that, huh |
src/main/kotlin/me/zeroeightsix/kami/feature/command/HClipCommand.kt
Outdated
Show resolved
Hide resolved
I changed it to use a variable for distance. Also, I don't think vclip and hclip should be merged into a singular module. Most utility mods that have vclip and hclip have them as separate commands so I think that we should as well in order to maintain consistency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
added an hclip command, it's similar to vclip but it teleports horizontally instead of vertically