PaperPolyglot aims to bring the wonderful world of client-side Fabric mods with small server-side components to Paper. The idea is to speak their protocols (their languages, hence the name :P) while maintaining maximum compatibility with the rest of the Paper ecosystem.
Download the JAR, drop it in plugins/, and restart Paper. The current release JAR covers all the versions below. If you already run PacketEvents, PaperPolyglot will use it. Otherwise, the built-in packet handler takes care of things. Plugin releases
| Java | Tested Minecraft versions on Paper |
|---|---|
| 21 | 1.21, 1.21.1, 1.21.3 through 1.21.11 |
| 25 | 26.1.1, 26.1.2, 26.2, 26.3 |
- AccurateBlockPlacement for Litematica Easy Place and Tweakeroo Flexible Block Placement (V2 and V3).
PaperPolyglot supports Litematica Easy Place and Tweakeroo Flexible Block Placement with the Servux V3 and Carpet V2 protocols. V3 is the default. Vanilla players can join and build as usual. Adding support for accurate block placement on Paper/Spigot was the origin of this plugin.
| Client | What to set |
|---|---|
| Litematica | Under Generic, enable easyPlaceMode and leave easyPlaceProtocolVersion on Auto. Early builds such as 0.19.0 for Minecraft 1.21 need Version 3 selected manually on a V3 server. |
| Tweakeroo | Enable Flexible Block Placement, keep accuratePlacementProtocol enabled, and leave accuratePlacementProtocolMode on Auto. If your build has the older carpetAccuratePlacementProtocol toggle, enable it and set the server to V2. |
You'll find these in plugins/PaperPolyglot/config.yml after the first start. Restart Paper after changing them.
placement-protocol: 3
allow-illegal-block-states: trueWhich protocol? Leave it on V3 for schematic properties like stair shape, rail shape, door hinge, sign rotation, and cake bites. Set it to 2 for clients that expect Carpet's accurateBlockPlacement rule. V2 covers facing, axis, block half, top slabs, repeater delay, and comparator subtract mode. The choice is server-wide because a placement packet doesn't say which version encoded it.
Illegal block states are allowed by default in V3. That lets a schematic keep a corner stair even if its neighbors would make it straight. Set allow-illegal-block-states to false if you want stairs and chests to connect to their neighbors, wall bells to follow their supports, rails to keep their normal shape, and iron doors/trapdoors to keep their normal open state.
Do note that for compatibility reasons, beds keep their vanilla direction.
packet-backend: auto picks PacketEvents when it's enabled and the built-in handler otherwise. If you want to force one, set it to packetevents or direct in the same config and restart. The startup log tells you which backend and placement protocol you're running.
On a Minecraft release newer than the ones listed above, the built-in Paper backend warns you and checks the running server's packet structure before trying its latest adapter. If the selected backend can't start, PaperPolyglot logs the reason and disables itself.
You'll need JDK 21 and JDK 25 where Gradle can find them. On Windows, use .\gradlew.bat in place of ./gradlew.
| What you want to do | Command |
|---|---|
Build the plugin JAR in build/libs/ |
./gradlew :build |
Start a development server in run/1.21/ |
./gradlew runServer -PminecraftVersion=1.21 |
| Check the JAR against every configured Paper bundle | ./gradlew verifyAdapters |
Set the same version in build.gradle and common/src/main/resources/plugin.yml, then push that commit with a matching tag, such as v1.2.0. GitHub Actions builds the plugin and attaches the JAR to a draft GitHub Release. Review the release notes and publish the draft when you're ready.
Shared code lives in common/. The paper-<version>/ modules hold code that needs a particular Paper version. Several releases can share a module, and they all ship in one JAR.
Add the Paper development bundle and JDK to the release list, then point the built-in Paper packet handler at the adapter for that release. If you need a new module, include it in settings.gradle. Run ./gradlew verifyAdapters to check the JAR across supported releases. Release list · Adapter selection
I originally released this as SpigotAccurateBlockPlacement for Spigot and Paper 1.19.x. Back then, it used ProtocolLib. In 1.1.0, I switched to Paper and moved packet handling into the plugin. In 1.2.0, I renamed and refocused its current iteration. Thanks to hxrry27 for keeping a Paper/Purpur fork going in the meantime. Archived fork
As this plugin integrates protocols from Fabric mods, it wouldn't be possible without those mods. This project is based on porting the implementation of those protocols to Paper. Thanks to everyone who worked on them, especially:
- PaperMC and the Bukkit, CraftBukkit, and Spigot contributors before them. It would be rather difficult to create a Paper plugin without the existence of Paper. Paper's project history · paperweight
- QuickCarpet and Carpet Extra for the server-side
accurateBlockPlacementimplementations I used as references for V2. QuickCarpet's placement rule · Carpet Extra - masa, sakura-ryoko, and the Litematica, Tweakeroo, and Servux contributors for both ends of the protocol. Litematica and Tweakeroo handle the client side, and I used Servux as a reference for V3. Litematica's placement encoders · Tweakeroo · Original Servux · Maintained Servux
- PacketEvents for the optional packet backend. PacketEvents