feat(AutoSpiral): Add AutoSpiral module#234
feat(AutoSpiral): Add AutoSpiral module#234IceTank wants to merge 9 commits intolambda-client:1.21.11from
Conversation
src/main/kotlin/com/lambda/module/modules/movement/autospiral/SpiralIterator2d.kt
Outdated
Show resolved
Hide resolved
…tructure in SpiralIterator2d
|
You shouldn't add folders inside the modules folder unless it's a new category |
| } | ||
| } | ||
|
|
||
| fun button( |
There was a problem hiding this comment.
I don't think this is the best way to go about adding non-setting elements in the module gui. They seem to be hard coded to appear after non-grouped settings and before grouped settings and dont store any data in the config.
It would be nice to add arbitrary imgui elements in modules for more unique functionality, but this would likely rely on some sort of switch up in how configurables store data in the config jsons
src/main/kotlin/com/lambda/module/modules/movement/AutoSpiral.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/interaction/managers/rotating/RotationRequest.kt
Outdated
Show resolved
Hide resolved
|
Not to sure what to do about the buttons |
|
for now just replace them with blockpos settings |
|
I removed the GuiButton implementaiton |
| currentWaypoint?.let { waypoint -> | ||
| if (!world.isNether) { | ||
| rotationRequest { | ||
| lookAt(waypoint.toCenterPos()).yaw |
There was a problem hiding this comment.
rotation needs to be set in the request for it to be valid. This currently crashes my game
| } | ||
|
|
||
| private fun SafeContext.waypointReached(): Boolean { | ||
| return currentWaypoint?.let { |
There was a problem hiding this comment.
can remove the return here and change the function into a basic = rather than a block
| if (iterator == null) { | ||
| iterator = BlockPosIterators.SpiralIterator2d(10000) | ||
| if (setCenterOnEnable) { | ||
| center = BlockPos.ORIGIN |
There was a problem hiding this comment.
cant test, but why not set this to the players position?
Add AutoSpiral module that works in the overworld like worlds and nether