feat(AutoMount): Add AutoMount module#240
Open
IceTank wants to merge 6 commits intolambda-client:1.21.11from
Open
feat(AutoMount): Add AutoMount module#240IceTank wants to merge 6 commits intolambda-client:1.21.11from
IceTank wants to merge 6 commits intolambda-client:1.21.11from
Conversation
Contributor
Author
|
Not tested yet |
Contributor
Author
|
Works now |
beanbag44
requested changes
Feb 22, 2026
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/lambda/module/modules/movement/AutoMount.kt
Outdated
Show resolved
Hide resolved
Member
|
oh yeah, also use connection inside of SafeContext rather than mc.networkHandler |
beanbag44
requested changes
Mar 12, 2026
| transitive-accessible class net/minecraft/screen/slot/ArmorSlot | ||
| transitive-accessible field net/minecraft/screen/slot/ArmorSlot equipmentSlot Lnet/minecraft/entity/EquipmentSlot; | ||
| transitive-accessible field net/minecraft/entity/Entity FLAGS Lnet/minecraft/entity/data/TrackedData; | ||
| accessible method net/minecraft/entity/Entity canAddPassenger (Lnet/minecraft/entity/Entity;)Z |
Member
There was a problem hiding this comment.
add transitive- at the beginning
| var lastEntity: Entity? = null | ||
|
|
||
| init { | ||
| setDefaultAutomationConfig("AutoMount") |
Member
There was a problem hiding this comment.
best to hide unused configs in the automation config
| ) { | ||
| var autoRemount by setting("Auto Remount", false, description = "Automatically remounts if you get off") | ||
| var autoMountEntities by setting("Auto Mount Entities", true, description = "Automatically mounts nearby entities in range") | ||
| var autoMountEntityList by setting("Auto Mount Entity List", mutableListOf(), Registries.ENTITY_TYPE.toList()) { autoMountEntities } |
Member
There was a problem hiding this comment.
we have an entity selection settings group now which you could use and modify the default selected
| } | ||
| } else { | ||
| connection.sendPacket(PlayerInteractEntityC2SPacket.interactAt(entity, false, Hand.MAIN_HAND, Vec3d(0.5, 0.5, 0.5))) | ||
| connection.sendPacket(PlayerInteractEntityC2SPacket.interact(entity, false, Hand.MAIN_HAND)) |
Member
There was a problem hiding this comment.
isnt this only sent if the first one isnt successful in vanilla mc?
| }.submit() | ||
| hit?.let { | ||
| val hitResult = it.hit as? EntityHitResult ?: return@let | ||
| interaction.interactEntityAtLocation(player, entity, hitResult, Hand.MAIN_HAND) |
Member
There was a problem hiding this comment.
this doesnt have the player sneaking override to set it to false
| return@let | ||
| } | ||
| if (canRide(it)) { | ||
| intervalTimer.reset() |
Member
There was a problem hiding this comment.
could prob put this at the start of interactEntity as its called before every invocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add AutoMount module to automatically mount or remount entities