diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 77b189589..3dba2e047 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -278,7 +278,7 @@ object Commands { "shworldedit", "Select regions in the world", { WorldEdit.command(it) }, - { listOf("copy", "reset", "help") }) + { listOf("copy", "reset", "help", "left", "right") }) registerCommand( "shconfigsave", "Manually saving the config" diff --git a/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt b/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt index 283698668..8a26e474c 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.data.ClickType import at.hannibal2.skyhanni.events.BlockClickEvent import at.hannibal2.skyhanni.events.withAlpha import at.hannibal2.skyhanni.utils.ClipboardUtils +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils import at.hannibal2.skyhanni.utils.RenderUtils.expandBlock @@ -106,6 +107,16 @@ object WorldEdit { LorenzUtils.chat("Reset selected region") } + "left", "pos1" -> { + leftPos = LocationUtils.playerLocation().toBlockPos() + LorenzUtils.chat("Set left pos.") + } + + "right", "pos2" -> { + leftPos = LocationUtils.playerLocation().toBlockPos() + LorenzUtils.chat("Set right pos.") + } + else -> { LorenzUtils.chat("Unknown subcommand") } |