Skip to content

About

Advanced Slime Paper 26.3 & 26.2 forks with a fix for Paper #13707 - deny block interaction while still allowing item use / block placement.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Advanced Slime Paper — Minecraft 26.3 (interaction fix fork)

Fork of InfernalSuite/AdvancedSlimePaper on the dev/26.3 line, carrying a fix for PaperMC/Paper#13707.

This repository hosts two branches:

  • 26.3 — AdvancedSlimePaper 26.3.build.191-stable (this branch)
  • 26.2 — AdvancedSlimePaper 26.2.build.135-stable
Minecraft 26.3
AdvancedSlimePaper 26.3.build.191-stable
Paper upstream ref bb10cf0d5b0212739b02a68f371df28053ce93a3
ASP API 4.2.0-SNAPSHOT
Java 25

Everything except the single patch described below is upstream code — no other changes.

Fixed bug — Paper #13707

A plugin could not deny block interaction while still allowing the held item to be used (e.g. placing a block).

event.setUseItemInHand(Event.Result.ALLOW);
event.setUseInteractedBlock(Event.Result.DENY);

Before: the server returned early from the useInteractedBlock() == DENY branch and never reached ItemStack#useOn, so no block could be placed.

Cause: ServerPlayerGameMode#useItemOn treated both results as a single decision:

return (event.useItemInHand() != Event.Result.ALLOW) ? InteractionResult.SUCCESS : InteractionResult.PASS;

After: block interaction is denied, but the item path still runs:

  • state.useItemOn(...) / state.useWithoutItem(...) are skipped when the block interaction is denied;
  • when useItemInHand() is ALLOW, execution falls through to the normal item use (itemStack.useOn), so block placement works again;
  • spectators with a denied block interaction still receive PASS.

The whole change is a single patch: aspaper-server/minecraft-patches/sources/net/minecraft/server/level/ServerPlayerGameMode.java.patch

Building

Requirements: JDK 25 (Minecraft 26.3 toolchain) and Git.

./gradlew applyAllPatches
./gradlew build
./gradlew createMojmapPaperclipJar

The runnable server jar is written to:

aspaper-server/build/libs/aspaper-paperclip-26.3.build.191-stable.jar

Windows note: paperweight applies the upstream patch series with one git am --3way call, which can report spurious merge conflicts on Windows. Build on Linux/WSL, or apply the series patch-by-patch.

Upstream project

Advanced Slime Paper is a fork of Paper implementing the Slime Region Format developed by Hypixel. Originally a plugin, the project has been converted to a server fork to allow deeper fixes and performance work. Its goal is to let server administrators load worlds faster and save disk space.

License

GPL-3.0 — see LICENSE. This fork keeps the original copyright notices and history.

Credits

Thanks to:

  • All the contributors that actively maintain ASWM and added features to SWM.
  • Paul19988 — ASWM Creator.
  • ComputerNerd100 — Large Contributor & Maintainer.
  • b0ykoe — Provider of build services & repositories.
  • Owen1212055 — Large Contributor & Maintainer.
  • Gerolmed — Contributor & Maintainer.
  • Grinderwolf — The original creator.
  • Glare — Providing the original Maven repository.
  • Minikloon and all the Hypixel team for developing the SRF.

About

Advanced Slime Paper 26.3 & 26.2 forks with a fix for Paper #13707 - deny block interaction while still allowing item use / block placement.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages