Skip to content

feat: (CornerTrap) add CornerTrap module with liquid trap flow - #1629

Merged
opZywl merged 1 commit into
SkidderMC:mainfrom
Zetaforeal:add-CornerTrap-Grim
Nov 15, 2026
Merged

opZywl merged 1 commit into
SkidderMC:mainfrom
Zetaforeal:add-CornerTrap-Grim

Conversation

@Zetaforeal

@Zetaforeal Zetaforeal commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Author: ZetaMc (GitHub: @Zetaforeal)
  • Built with heavy assistance from DeepSeek V4.1 flash 1017.

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

  • Picks a single nearby target (TargetType: Players / PlayersAndMobs) via EntityUtils.isSelected.
  • Computes the air cells around the target's head and places blocks to trap them
    (BlockPriority: Hardest / Most).
  • Then pours lava onto the head cell (PlaceMode: Legit / Blatant; TrapMode: Attack / Escape).
  • Legit mode aims with RotationSettings before placing; Blatant sends placements directly.

Why a new module

AutoTrap / BlockTrap only 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

  • The water follow-up on top of the lava is not implemented yet; only the lava pour is wired up.
  • Some edge cases (support face selection, anticheat packet order) may still fail on live servers; feedback is welcome.

Testing

  • ./gradlew clean check build passes locally (Detekt, module audit tests).
  • Tested in-game on Forge 1.8.9

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.
@opZywl
opZywl merged commit 8654d6f into SkidderMC:main Nov 15, 2026
1 check passed
@Zetaforeal
Zetaforeal deleted the add-CornerTrap-Grim branch November 16, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants