aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/DulkirMod.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-03-08 01:41:30 -0600
committeringlettronald <inglettronald@gmail.com>2023-03-08 01:41:30 -0600
commit2fb9648d7ced999673684ac898092d26b2a19c7e (patch)
tree3f01bcdc03b4a0e41794d7adecc75c0fa408016e /src/main/kotlin/dulkirmod/DulkirMod.kt
parent6ebf4007fefb6570c4388dfa2018f305f373a770 (diff)
downloadDulkirMod-2fb9648d7ced999673684ac898092d26b2a19c7e.tar.gz
DulkirMod-2fb9648d7ced999673684ac898092d26b2a19c7e.tar.bz2
DulkirMod-2fb9648d7ced999673684ac898092d26b2a19c7e.zip
Addded new Farming control toggle feature
Diffstat (limited to 'src/main/kotlin/dulkirmod/DulkirMod.kt')
-rw-r--r--src/main/kotlin/dulkirmod/DulkirMod.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt
index 568619f..4c94ae2 100644
--- a/src/main/kotlin/dulkirmod/DulkirMod.kt
+++ b/src/main/kotlin/dulkirmod/DulkirMod.kt
@@ -55,6 +55,7 @@ class DulkirMod {
ClientCommandHandler.instance.registerCommand(JoinDungeonCommand())
ClientCommandHandler.instance.registerCommand(LeapNameCommand())
ClientCommandHandler.instance.registerCommand(HurtCamCommand())
+ ClientCommandHandler.instance.registerCommand(FarmingControlSchemeCommand())
}
@Mod.EventHandler
@@ -114,12 +115,15 @@ class DulkirMod {
Config.noReverse3rdPerson = !Config.noReverse3rdPerson
TextUtils.toggledMessage("No Selfie Camera", Config.noReverse3rdPerson)
}
+ if (keyBinds[2].isPressed) {
+ FarmingControlSchemeCommand.toggleControls();
+ }
}
companion object {
const val MOD_ID = "dulkirmod"
const val MOD_NAME = "Dulkir Mod"
- const val MOD_VERSION = "1.1.7"
+ const val MOD_VERSION = "1.1.8"
const val CHAT_PREFIX = "§f<§3DulkirMod§f>§r"
val mc: Minecraft = Minecraft.getMinecraft()
@@ -134,6 +138,7 @@ class DulkirMod {
val keyBinds = arrayOf(
KeyBinding("Open Settings", Keyboard.KEY_RSHIFT, "Dulkir Mod"),
KeyBinding("Toggle Selfie Setting", Keyboard.KEY_NONE, "Dulkir Mod"),
+ KeyBinding("Toggle Farming Controls", Keyboard.KEY_NONE, "Dulkir Mod")
)
}