Skip to content

Commit e09e493

Browse files
committed
[Keybinds] Add secret keybinds that turn the camera 45° left/right
Until a proper gui with buttons is made, keybinds will have to do for accessing this functionality
1 parent 24f7cc0 commit e09e493

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/minecrafttas/tasmod/registries/TASmodKeybinds.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ public enum TASmodKeybinds {
3838
mc.displayGuiScreen(TASmodClient.hud);
3939
}
4040
}),
41-
41+
TURN_LEFT("Rotate 45 degrees left", "TASmod", Keyboard.KEY_NONE, () -> {
42+
TASmodClient.virtual.CAMERA_ANGLE.updateNextCameraAngle(0, -45);
43+
}),
44+
TURN_RIGHT("Rotate 45 degrees right", "TASmod", Keyboard.KEY_NONE, () -> {
45+
TASmodClient.virtual.CAMERA_ANGLE.updateNextCameraAngle(0, 45);
46+
}),
4247
TEST1("Various Testing", "TASmod", Keyboard.KEY_F12, () -> {
4348
}, VirtualKeybindings::isKeyDown),
4449
TEST2("Various Testing2", "TASmod", Keyboard.KEY_F7, () -> {

0 commit comments

Comments
 (0)