Fork of InfernalSuite/AdvancedSlimePaper on the
dev/26.3 line, carrying a fix for PaperMC/Paper#13707.
This repository hosts two branches:
26.3— AdvancedSlimePaper26.3.build.191-stable(this branch)26.2— AdvancedSlimePaper26.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.
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()isALLOW, 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
Requirements: JDK 25 (Minecraft 26.3 toolchain) and Git.
./gradlew applyAllPatches
./gradlew build
./gradlew createMojmapPaperclipJarThe 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 --3waycall, which can report spurious merge conflicts on Windows. Build on Linux/WSL, or apply the series patch-by-patch.
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.
- Website / downloads: https://infernalsuite.com/download/asp
- Documentation: https://infernalsuite.com/docs/asp
- Javadocs: https://docs.infernalsuite.com/
- Discord: https://discord.gg/YevvsMa
GPL-3.0 — see LICENSE. This fork keeps the original copyright notices and history.
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.