Skip to content
 
 

Repository files navigation

AreaScanner (Minecraft 1.21.0 backport)

Fork of Alexresh/AreaScanner backported to Minecraft 1.21 (1.21.0), the version the MineWave network runs on. The upstream mod targets 1.21.4. This fork only changes what is needed to build and run on 1.21.0; no features were removed.

Why the backport was not trivial

Dropping from 1.21.4 to 1.21.0 is not a plain version bump, because Mojang reworked several client APIs in the 1.21.2 snapshot. Three separate layers had to be fixed.

1. No 1.21.0 release to start from

Every upstream release (4.8 through 5.1.4) targets 1.21.4, so there was nothing to reuse. The port had to be done by hand against the 1.21 mappings.

2. Build toolchain chain reaction

The malilib build this mod depends on (com.github.sakura-ryoko:malilib:1.21-0.21.10) was compiled with Loom 1.14.10, which refuses to be consumed by the project's older Loom. That forced a chain of upgrades:

  • Loom 1.11-SNAPSHOT to 1.14-SNAPSHOT
  • Gradle 8.14.1 to 9.6.1 (Loom 1.14 needs Gradle 9.2+)
  • JDK 21 to build (1.21 targets Java 21)

3. API differences (1.21.2+ vs 1.21.0)

Area 1.21.4 (upstream) 1.21.0 (this fork)
Shaders ShaderProgramKeys.POSITION_COLOR GameRenderer::getPositionColorProgram
HUD render HudLayerRegistrationCallback / IdentifiedLayer HudRenderCallback
Permission check ServerPlayerEntity.getPermissionLevel() (now protected) hasPermissionLevel(2)
World height World.getTopYInclusive() getTopY() - 1
Block state BlockState.get(property, default) getOrEmpty(property).orElse(default)
Screen blur applyBlur() applyBlur(float)
malilib scrollbar GuiScrollBar.render(..., DrawContext) GuiScrollBar.render(...) (no DrawContext in 0.21.10)

Dependencies (1.21.0)

  • Fabric API 0.102.0+1.21
  • Yarn 1.21+build.9
  • malilib 1.21-0.21.10 (sakura-ryoko fork)
  • clientarguments 1.9 (bundled via jar-in-jar)

Building

./gradlew build

Output jar lands in build/libs/. Needs JDK 21.

About

Scans the Minecraft world and highlights specific blocks

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages