https://github.com/bedrocksharp/bedrock-protocol
An C# implementation of the Minecraft: Bedrock Edition network protocol.
https://github.com/bedrocksharp/bedrock-protocol
bedrock csharp dotnet mcpe nuget protocol
Last synced: about 2 months ago
JSON representation
An C# implementation of the Minecraft: Bedrock Edition network protocol.
- Host: GitHub
- URL: https://github.com/bedrocksharp/bedrock-protocol
- Owner: BedrockSharp
- License: mit
- Created: 2026-04-11T14:16:25.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2026-04-13T18:31:13.000Z (2 months ago)
- Last Synced: 2026-04-14T12:12:03.097Z (2 months ago)
- Topics: bedrock, csharp, dotnet, mcpe, nuget, protocol
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 12
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
bedrock-protocol
A C# implementation of the Minecraft: Bedrock Edition network protocol.
**bedrock-protocol** is an C# implementation of the Minecraft: Bedrock Edition network protocol. It is built on top of [raknet-cs](https://github.com/BedrockSharp/raknet-cs) for robust RakNet networking.
---
## 🛠️ Getting Started
### Installation
Clone the repository and build the project:
```bash
git clone https://github.com/BedrockSharp/bedrock-protocol.git
cd bedrock-protocol
dotnet build
```
## 📦 Defining Custom Packets
Use the attribute-based system to register your packets effortlessly:
```csharp
public class ExamplePacket : Packet
{
public override uint PacketId => (uint)PacketIds.ExamplePacket;
public string Message { get; set; } = string.Empty;
public override void Encode(BinaryStream stream)
{
stream.WriteString(Message);
}
public override void Decode(BinaryStream stream)
{
Message = stream.ReadString();
}
}
```
## 🤝 Contributing
Contributions are what make the open-source community such an amazing place!
1. **Fork** the project.
2. **Create** your Feature Branch (`git checkout -b feature/AmazingFeature`).
3. **Commit** your changes (`git commit -m 'Add some AmazingFeature'`).
4. **Push** to the Branch (`git push origin feature/AmazingFeature`).
5. **Open** a Pull Request.
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## 📄 License
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
---
Maintained with ❤️ by the BedrockSharp team.