Repository navigation
feat: (CornerTrap) add CornerTrap module with liquid trap flow - #1629
Merged
Merged
Conversation
Authored-by: ZetaMc <zns04foreal@gmail.com> Co-authored-by: DeepSeek V4.1 flash 1017 This module was developed with heavy assistance from DeepSeek V4.1 flash 1017. It was not produced by bulk-generating code: the logic was reviewed, cleaned up and passes Detekt plus the local build. My own experience is limited, so I cannot guarantee every bug is fixed or every anticheat bypass works; the goal is to contribute this new feature for review.
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.
Summary
Adds a new combat module, CornerTrap. When an enemy is cornered, it computes the
air cells around their head, places a supporting block, and then pours lava onto the
head cell.
Author & AI disclosure
I want to be upfront: this was not bulk-generated by an AI and dumped here as
"shitcode". I reviewed the code, kept it Kotlin-idiomatic, removed debug output, and
it passes Detekt and the local build. But my own experience is limited, so I cannot
guarantee that every bug is fixed or that the anticheat bypass works in every
situation (e.g. Grim). I am mainly contributing this new feature idea with a working
starting point, and I am happy to iterate on it based on review.
What it does
TargetType: Players / PlayersAndMobs) viaEntityUtils.isSelected.(
BlockPriority: Hardest / Most).PlaceMode: Legit / Blatant;TrapMode: Attack / Escape).RotationSettingsbefore placing; Blatant sends placements directly.Why a new module
AutoTrap/BlockTraponly place blocks. The liquid step needs its own raycast,support check and rotation sequence, so it is a separate module rather than a value
change of an existing one.
Notes / limitations
Testing
./gradlew clean check buildpasses locally (Detekt, module audit tests).