BedrockProtocol 1.0.4

dotnet add package BedrockProtocol --version 1.0.4
                    
NuGet\Install-Package BedrockProtocol -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BedrockProtocol" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BedrockProtocol" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="BedrockProtocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BedrockProtocol --version 1.0.4
                    
#r "nuget: BedrockProtocol, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BedrockProtocol@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BedrockProtocol&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=BedrockProtocol&version=1.0.4
                    
Install as a Cake Tool

<p align="center"> <h1 align="center">bedrock-protocol</h1> <p align="center"><i>A C# implementation of the Minecraft: Bedrock Edition network protocol.</i></p> </p>

<p align="center"> <img src="https://img.shields.io/badge/.NET-9.0-512bd4?style=for-the-badge&logo=.net" alt=".NET 9.0"> <img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" alt="License MIT"> <img src="https://img.shields.io/github/actions/workflow/status/BedrockSharp/bedrock-protocol/build.yml?style=for-the-badge" alt="Build Status"> <img src="https://img.shields.io/badge/PRs-welcome-cyan?style=for-the-badge" alt="PRs Welcome"> </p>

bedrock-protocol is an C# implementation of the Minecraft: Bedrock Edition network protocol. It is built on top of raknet-cs for robust RakNet networking.


🛠️ Getting Started

Installation

Clone the repository and build the project:

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:

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 for details.

📄 License

Distributed under the MIT License. See LICENSE for more information.


<p align="center"> Maintained with ❤️ by the BedrockSharp team. </p>

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BedrockProtocol:

Package Downloads
QuantumMC

Highly customized, lightweight and super-fast Minecraft: Bedrock Edition server software written in modern C#.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 89 5/3/2026
1.0.3 145 4/25/2026
1.0.2 169 4/18/2026
1.0.1 95 4/17/2026
1.0.0 90 4/14/2026