r/admincraft • u/Alex_Medvedev_ • Nov 04 '26
News We got major Bukkit/Paper plugins (WorldEdit, GrimAC/PacketEvents, EssentialsX, LuckPerms) running on Pumpkin (Rust) using a headless Paper bridge!
Hey r/admincraft! We actually published this blog post a couple of weeks ago, but I completely forgot to update you all here.
For anyone who hasn't seen Pumpkin yet, it's a multithreaded Minecraft server we're building from scratch in Rust. The biggest hurdle with custom server software is obviously losing the 15-year-old Java plugin ecosystem, which is why we've been building PatchBukkit to bridge Java plugins with our Rust core.
Initially, we tried hand-mocking the Bukkit and Paper APIs from scratch, but that hit a wall fast because major plugins rely heavily on raw net.minecraft.server (NMS) internals and direct packet pipelines. To solve this, we rewrote PatchBukkit to automatically download Paperclip at runtime and boot a real, headless Paper instance right alongside Pumpkin. Paper's game loop and network listeners stay completely turned off, Pumpkin still handles all the actual networking, physics, and world simulation in Rust, while PatchBukkit uses low-latency memory bridges and an emulated network pipeline to sync blocks, entities, events, and raw packets between the two.
Because plugins now have access to authentic NMS and registries, we already have 17+ heavy-hitting plugins running together in our live test suite, including WorldEdit, EssentialsX, LuckPerms, GrimAC, PacketEvents, ProtocolLib, WorldGuard, Multiverse-Core, TAB, AuraSkills, and VeinMiner, Polar AntiCheat.... It is a huge milestone for us, though we want to be upfront that it's still an active work in progress and not production-ready yet, as we're still ironing out missing Bukkit events, complex inventory GUIs, and entity AI synchronization.
If you want to see videos of WorldEdit and GrimAC running on top of Rust or read the full breakdown of how the architecture works, check out the blog post here:https://blog.pumpkinmc.org/2026-10-23-patchbukkit-nms-and-headless-paper
Happy to answer any questions about how the bridge works!
Note on Rule 9 (AI Disclosure): Pumpkin’s core architecture and code are human-engineered and strictly reviewed by our maintainers. However, because we have hundreds of open-source contributors, we cannot audit whether individual contributors use AI tools in their local workflows. Additionally, an LLM was used to help polish the English phrasing of this post
16
u/Aggeloz Nov 04 '26
Thats really cool. I hope you guys can keep going.
9
u/8336514563737 Nov 04 '26
Whenever Pumpkin comes up i habe a few questions lingering in my head, so might as well ask them:
1.) Is the plan full* Java parity, or just general Vanilla parity (*i asume stuff that isnt implemented in both Java and Bedrock wont get added to Pumpkin at all)
1.1) Are you guys planning (limited) Datapack support? To me, stuff like being able to add biomes, recipes ... is quite essential and running worldgen with Terralith or similar is really nicd also.
1.2) My programming knowledge is limited to a good chunk of Java and a bit of Python, but i generally dont see how (MC Java) update order could be implemented with a multithreaded server software?
2.) How will update times between MC Versions look? As you need to add the MC features manually i assume its quite a bit more work than is required, compared to Paper/Spigot?
12
u/MrPowerGamerBR SparklyPower | Loritta's Creator Nov 04 '26 edited Nov 05 '26
Don't get me wrong, I do understand how hard it is, because almost 10 years ago I worked on a similar project, but trying to implement the Bukkit API on top of Nukkit, and a big issue was NMS calls, but at the same time the solution seems so overengineered and prone to issues, and if I understood correctly this essentially will double the memory usage of the server because everything needs to be duplicated between Pumpkin and the NMS internals. The solution feels like when you tell a LLM to do something that you know it is a complex issue, so it tries to go above and beyond to try solving the issue, even though the solution is not what could be considered "good", feeling like the "Minecraft in Elden Ring! mod where both games run at the same time while a bridge "communicates" with them. While jank is acceptable for a mod where you don't have nothing to lose, I don't know how acceptable it is for a production Minecraft server.
Wouldn't it make more sense to patch Paper to instead of synchronizing the data, to actually pull it directly from Pumpkin? For example: When calling
World.getEntities()it would forward the call to Pumpkin, which then the bridge layer would convert that to a NMS Entity. If you are already using LLMs/AI anyway, couldn't you scrape all popular plugins, figure out what are the most used NMS functions, and reimplement them?UPDATE: Read this to understand how it actually works, it actually intercepts and patches functions to forward them via FFI to Pumpkin, it is very clever https://www.reddit.com/r/admincraft/comments/1xnkppx/we_got_major_bukkitpaper_plugins_worldedit/19s5czt8z83og/
2
u/DeerOnARoof Nov 04 '26
How much of a performance increase are you seeing over paper so far?
2
u/IWillBeNobodyPerfect grim.ac dev Nov 04 '26
I've run CultAC (my grim fork) on the proxy using a similar method, classloading paper. I kept running into edge cases such as caches not being thread safe, though this isn't a problem if your plugins only call the headless server on the main thread. It used 100 MB of memory or so just for the block placing and block collision logic as so much was being classloaded, before patching out some caches and bytecode rewriting methods, but it does fundamentally work. It just doesn't make sense IMO at least for me
10
u/matytyma Developer Nov 04 '26
Rule 9? PumpkinMC makes use of LLMs and the blog is not human written at all, same goes for this post.
1
u/Jannyboy11 26d ago
Curious how this would work with plugins that read player nbt data from disk (such as my plugin InvSee++). What would be necessary to make that work?
1
u/Biquaternions 22d ago edited 22d ago
I'm a bit curious about something, doesn't this approach defeat the entire purpose of Pumpkin?
The goal of Pumpkin (from what I understood) is to achieve exceptional performance by rewriting Minecraft entirely on a native language like Rust. However, since PatchBukkit runs an entire Paper server besides it, even if without a running tickloop or network pipeline, doesn't it reintroduce a huge part of the overhead? While the bridge calls are low-latency, there's still latency, which you have to add up to the already existent overhead from the Java calls the plugins will make, since the plugins will still be running Java and the JVM itself, and since the jvm won't get much context on how the server is being used, you'll also lose JIT compilation optimizations after the warmup. And that's without taking into account that pumpkin also has to communicate what's happening on the pumpkin server to the paper server, so even without plugins calls you're still introducing the overhead of the Java call + JVM + whatever translation and communication layer you're using to connect Rust with Java.
Also, iirc Pumpkin is also not just rewriting Minecraft in rust, but also improving on the design, iirc you also have a thread pool dedicated to handle entities, and with entities being ticked in parallel, won't this run into the problem that certain currently known (and highly discouraged) high-performance paper forks or fabric mods run due to race conditions, deadlocks or thread ownership related issues in general?
And how were those tests conducted? What was the methodology? What were the test cases and the criteria declared for "passing"? From what I read in the post seems like the plugins were quickly tested. For example, just for the test ran for WorldEdit I see you tested a whopping 8 commands. Where schematic pasting tested? Rotations? What about the paint brushes? If schematics were tested, of what sizes? Has anyone been actively using WorldEdit in Pumpkin to do actual **real** and active builder work for more than a couple of hours or even days? What about the interactions with plugins that depend on WorldEdit? (And I'm just starting on WorldEdit functionality, this comment would be huge if I refer to every single thing it has, or if I start mentioning the other plugins in the "test").
I do get that PatchBukkit is being done to create a drop-in-replacement for Paper and get more people in the platform. I do think PatchBukkit is cool, but at least for now I see the approach as flawed, I would offer it as a proof of concept or a highly-experimental software rather than advertising it as a real solution like it was done in this post.
Alternatively, a better approach I think it would be to instead expand on your WASM bridge with full Java support in addition to your already existent Kotlin suppot, since not everyone uses Kotlin. The community already supports multiple platforms, heck, some people are even adding Hytale support which is an entirely different game, I do see people adding Pumpkin compatibility themselves without you having to take that burden onto yourself (with various degrees of incompatibility, instability and thread-safety issues).
0
u/BiscuitPlay 26d ago
I hope to bring pumpkin support to my plugins in the future! This is a great step in the right direction for optimised Minecraft servers.
-Biscuit, Server Administrator & Developer