
Modrinth · Minecraft mod
ProtoWeaver
A networking library for creating custom protocols that run on the internal netty server.
Quick answer
Which ProtoWeaver release should I use?
ProtoWeaver 1.5.1 targets 1.14, 1.14.1, 1.14.2 with velocity, waterfall. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is ProtoWeaver required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does ProtoWeaver 1.5.1 need?
1.5.1. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add ProtoWeaver without breaking your instance.
Built for ProtoWeaver 1.5.1. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.5.1. It targets 1.14, 1.14.1, 1.14.2 with velocity, waterfall; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.5.1. It opens that exact file at the source.
About this project
What does ProtoWeaver add?
ProtoWeaver
A minecraft networking library for creating custom protocols that run on the internal netty server.
What dis mean?
Sick and tired of hyjacking client connections to send data to and from a proxy? Well I sure was. ProtoWeaver allows you to create a custom protocol that runs on the same port that the minecraft server uses.
This means a proxy such as velocity is able to communicate with the server regardless if players are on online or not, without running an extra socket server on a different port. Protoweaver is also not just
limited to proxies. Using the client module, any 3rd party java application can talk directly with ProtoWeaver!
Protoweaver is fast, secure, and easy to use. All protocols run under the same netty instance used by minecraft, are encypted with ssl, and are wrapped in a very straight forward api. Lets take a look:
Features
- Zero user config required
- SSL encrytion
- Protocol authentication
- Packets as POJO's
- Compression (Gzip, Snappy, LZ)
- All major mod loaders (neoforge soon tm)
- API for registering raw protocols (http, ssh, etc)
- Custom serialization
- Custom SSL providers/certs
- Muti-protocol connections
- Tell me what you want to see!
Project Setup
In your build.gradle include
*** Note: Do not shade protoweaver! It will not work properly. ProtoWeaver is a mod/plugin that is installed along side yours!
repositories {
maven { url "https://maven.mrnavastar.me/releases" }
}
dependencies {
// 'common' can be replaced with any of: `client`, `fabric`, `forge`, `paper` or `proxy`.
implementation "me.mrnavastar.protoweaver:common:1.3.11"
}
Creating a Protocol
Protocols are very customizable with a lot of built in functionality. Here is an example protocol:
Protocol protocol = Protocol.create("my_mod_id", "cool_protocol")
.setCompression(CompressionType.GZIP)
.setServerHandler(MyCustomServerHandler.class)
.setClientHandler(MyCustomClientHandler.class)
.setMaxConnections(15)
.addPacket(String.class)
.build();
// Load the protocol before it can be used
ProtoWeaver.load(protocol);
Sending packets
Sending packets is extremely simple. Any POJO that has been added to the protocol (See Creating a Protcol) is a valid packet that can be sent. Note that all POJO serialization is handled through kyro, a fast and fast serialization library.
// If you have a reference to a 'ProtoConnection', you can simply:
connection.send(myObject);
// If you have a reference to a 'ProtoClient', you can also:
client.send(myObject);
Handling packets
All protocols need handlers in order to implement functionality. The client and server can either use the same handler, or both use different ones.
public class MyCustomServerHandler implements ProtoConnectionHandler {
// Note that all functions are optional to implement
@Override
public void void onReady(ProtoConnection connection) {
System.out.println("awesome! looks like a new client has connected from: " + connection.getRemoteAddress());
}
@Override
public void onDisconnect(ProtoConnection connection) {
System.out.println("goodbye: " + connection.getRemoteAddress());
}
@Override
public void handlePacket(ProtoConnection connection, Object packet) {
System.out.println("wow! got: " + packet.toString() + " from: " + connection.getRemoteAddress());
}
}
public class MyCustomClientHandler implements ProtoConnectionHandler {
// Note that all functions are optional to implement
@Override
public void void onReady(ProtoConnection connection) {
System.out.println("awesome! connected to: " + connection.getRemoteAddress());
}
@Override
public void onDisconnect(ProtoConnection connection) {
System.out.println("goodbye: " + connection.getRemoteAddress());
}
@Override
public void handlePacket(ProtoConnection connection, Object packet) {
System.out.println("saying hi!");
connection.send("Hey server!");
}
}
Custom Serialization
Sometimes it can be useful to send minecraft objects or other premade POJO's in your protocol. To allow this, you can register a custom serializer.
For example, here is a serializer for NBT tags:
public class NbtSerializer extends ProtoSerializer<CompoundTag> {
public NbtSerializer(Class<CompoundTag> type) {
super(type);
}
@Override
public void write(ByteArrayOutputStream buffer, CompoundTag value) {
try {
NbtIo.writeCompressed(value, buffer);
} catch (IOException e) {
Platform.throwException(e);
}
}
@Override
public CompoundTag read(ByteArrayInputStream buffer) {
try {
return NbtIo.readCompressed(buffer, NbtAccounter.unlimitedHeap());
} catch (IOException e) {
Platform.throwException(e);
throw new RuntimeException(e);
}
}
}
Then to register the serializer, simply do:
Protocol protocol = Protocol.create("my_mod_id", "cool_protocol")
.setCompression(CompressionType.GZIP)
.setServerHandler(MyCustomServerHandler.class)
.setClientHandler(MyCustomClientHandler.class)
.setMaxConnections(15)
.addPacket(CompoundTag.class, NbtSerializer.class)
.build();
More Docs Coming soon! Maybe a real website??
Project description from Modrinth.
Pick your setup
ProtoWeaver by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1
5 loader builds1.21.11
5 loader builds1.21.10
5 loader builds1.21.9
5 loader builds1.21.8
5 loader builds1.21.7
5 loader builds1.21.6
5 loader builds1.21.5
5 loader builds1.21.4
5 loader builds1.21.3
5 loader builds1.21.2
5 loader buildsShowing the newest 12 of 45 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ProtoWeaver versions and loaders
1.5.1
protoweaver-proxy-1.5.1.jar
1 Apr 2026
1.5.1
protoweaver-paper-1.5.1.jar
1 Apr 2026
1.5.1
protoweaver-neoforge-1.5.1.jar
1 Apr 2026
1.5.1
protoweaver-forge-1.5.1.jar
1 Apr 2026
1.5.1
protoweaver-fabric-1.5.1.jar
1 Apr 2026
1.4.9
protoweaver-1.4.9-proxy.jar
18 Jul 2025
1.4.9
protoweaver-1.4.9-paper.jar
18 Jul 2025
1.4.9
protoweaver-1.4.9-neoforge.jar
18 Jul 2025
1.4.9
protoweaver-1.4.9-forge.jar
18 Jul 2025
1.4.9
protoweaver-1.4.9-fabric.jar
18 Jul 2025
1.4.8
protoweaver-1.4.8-proxy.jar
18 Jun 2025
1.4.8
protoweaver-1.4.8-paper.jar
18 Jun 2025
Looking for an older file? The official Modrinth project page is in Resources.