MiNET 1.26.34.2309

dotnet add package MiNET --version 1.26.34.2309
                    
NuGet\Install-Package MiNET -Version 1.26.34.2309
                    
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.

                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.

                    
Directory.Packages.props

                    
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 MiNET --version 1.26.34.2309
                    
#r "nuget: MiNET, 1.26.34.2309"
                    
#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 MiNET@1.26.34.2309
                    
#: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=MiNET&version=1.26.34.2309
                    
Install as a Cake Addin
#tool nuget:?package=MiNET&version=1.26.34.2309
                    
Install as a Cake Tool

MiNET

A Minecraft: Bedrock Edition server written in C#, targeting .NET 10. This package is the server library: the RakNet transport, the Bedrock protocol, worlds, entities, and the plugin host.

Current target is protocol 1001, game version 1.26.34.

Running a server

using MiNET;

var server = new MiNetServer();
server.StartServer();

Console.WriteLine("MiNET running. Press  to stop.");
Console.ReadLine();

server.StopServer();

Configuration is read from server.conf in the working directory as key=value pairs, through MiNET.Utils.Config. Listening port, world provider, game mode, view distance and the plugin directory all come from there.

Worlds

World storage is pluggable through IWorldProvider. In the box:

  • LevelDbProvider reads and writes the Bedrock LevelDB format.
  • AnvilWorldProvider reads Java Anvil worlds, converting blocks on load.
  • SuperflatGenerator and friends generate in memory, taking the same preset string as Java: minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;minecraft:plains.

Plugins

A plugin is a class carrying [Plugin] or implementing IPlugin. Assemblies in the configured plugin directory are scanned at startup.

[Plugin(PluginName = "HelloWorld")]
public class HelloWorld : Plugin
{
    [Command(Description = "Says hello")]
    public string Hello(Player player)
    {
        return $"Hello {player.Username}";
    }

    [PacketHandler, Receive]
    public Packet OnMovement(McpeMovePlayer message, Player player)
    {
        return message;
    }
}

[Command] methods become server commands, with parameters typed as Target, BlockPos, BlockStates and the rest so the client offers the right picker. [Authorize] gates them by permission. [PacketHandler] intercepts packets in either direction.

Blocks

Blocks are addressed by name and by runtime id, not by the pre-flattening numeric id:

Block log = BlockFactory.GetBlockByName("minecraft:oak_log");
((OakLog) log).PillarAxis = "x";

level.SetBlock(log);

Licensed under the Common Public Attribution License 1.0. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (4)

Showing the top 4 NuGet packages that depend on MiNET:

Package Downloads
OpenMiNET.OpenAPI.Locale

Add locale support to OpenMiNET.OpenAPI

OpenMiNET.OpenAPI

A Powerful MiNET Plugin API - Making it easier for multiple plugins to work together nicely.

miop

MiNET에서 권한 기능을 사용할 수 있습니다. (Only Korean)

HuHelper

工具类,包括crc校验,HEX格式转换成float,int类型,转换成字符串,保存和读取AppSettings格式配置文件,保存和读取Json格式的配置文件

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.26.34.2309 1,993 8/5/2026
1.26.34.2308 1,580 8/5/2026
1.0.2307 144 8/5/2026
1.0.2304 380,523 4/21/2022
1.0.2303 3,706 4/1/2022
1.0.2302 3,140 3/31/2022
1.0.2301 2,273 3/31/2022
1.0.2300 2,276 3/31/2022
1.0.2299 2,547 3/31/2022
1.0.2298 2,594 3/31/2022
1.0.2297 2,842 3/29/2022
1.0.2296 3,865 1/24/2022
1.0.2295 2,389 1/18/2022
1.0.2294 2,361 1/17/2022
1.0.2293 2,391 1/2/2022
1.0.2292 2,183 12/30/2021
1.0.2291 2,257 12/19/2021
1.0.2290 2,367 12/5/2021
1.0.2287 3,489 11/5/2021
1.0.2286 2,313 11/5/2021
Loading failed