PixelPilot.Core 1.1.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package PixelPilot.Core --version 1.1.7
                    
NuGet\Install-Package PixelPilot.Core -Version 1.1.7
                    
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="PixelPilot.Core" Version="1.1.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PixelPilot.Core" Version="1.1.7" />
                    
Directory.Packages.props
<PackageReference Include="PixelPilot.Core" />
                    
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 PixelPilot.Core --version 1.1.7
                    
#r "nuget: PixelPilot.Core, 1.1.7"
                    
#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 PixelPilot.Core@1.1.7
                    
#: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=PixelPilot.Core&version=1.1.7
                    
Install as a Cake Addin
#tool nuget:?package=PixelPilot.Core&version=1.1.7
                    
Install as a Cake Tool

Pixel Pilot

NuGet Version GitHub Actions Workflow Status

A C# library for interacting with the game PixelWalker

Example bot

Features

  • Strongly typed packets.
  • PixelPilotCore has minor abstractions.
  • Split into multiple projects. Use only what you need.

Projects:

  • PixelPilotCore: The core of the project. Bare minimum client to interact with the game.
  • PixelPilotTests: All test related to the project.
  • PixelPilotExample: An example bot.

To-Do's:

  • Implement all packets.
  • Implement common World and Player abstractions (seperate package)

Example

using Microsoft.Extensions.Configuration;
using PixelPilot.PixelGameClient;
using PixelPilot.PixelGameClient.Messages.Received;
using PixelPilot.PixelGameClient.Messages.Send;
using PixelPilot.PixelGameClient.World;
using PixelPilotExample;

// Load the configuration. Don't store your account token in the code :)
var config = new ConfigurationBuilder()
    .AddJsonFile("config.json")
    .AddEnvironmentVariables()
    .Build().Get<BasicConfig>();

if (config == null)
{
    Console.WriteLine("The configuration file could not be loaded.");
    return;
}

// Create a client.
var client = new PixelPilotClient(config.AccountToken, false);

// Create a PixelWorld class and attach the client to it.
// Allow it to listen to client updates. Not required!
var world = new PixelWorld();
client.OnPacketReceived += world.HandlePacket;
world.OnBlockPlaced += (_, playerId, oldBlock, _) =>
{
    if (client.BotId == playerId) return;
    client.Send(oldBlock.AsPacketOut());
};


// Executed when the client receives a packet!
client.OnPacketReceived += (_, packet) =>
{
    switch (packet)
    {
        // Use strongly typed packets!
        case PlayerChatPacket { Message: ".stop" }:
            client.Disconnect();
            Environment.Exit(0);
            return;
        case PlayerChatPacket { Message: ".ping" } chat:
        {
            client.Send(new PlayerChatOutPacket($"Pong! ({chat.Id})"));
            break;
        }
        case PlayerJoinPacket join:
            client.Send(new PlayerChatOutPacket($"/giveedit {join.Username}"));
            break;
    }
};

// Executed once the client receives INIT
// Make a platform and do some silly loops.
client.OnClientConnected += (_) =>
{
    client.Send(new PlayerChatOutPacket("Hello world using the PixelPilot API."));
    Thread.Sleep(250);
    PlatformUtil.GetThread(client).Start();
    client.Send(new PlayerMoveOutPacket(592, 1056, 0, 0, 0, 0, 0, 0, false, false, 100)); 
};

// Connect to a room.
await client.Connect("r082b210d67df52");

// Don't terminate.
Thread.Sleep(-1);

Enjoy the library? Leave a ⭐

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 (2)

Showing the top 2 NuGet packages that depend on PixelPilot.Core:

Package Downloads
PixelPilot.Structures

Save and load structures. Easily paste them into your world.

PixelPilot.ChatCommands

Chat commands for PixelPilot

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.13.5 233 10/13/2025
1.13.4 151 10/10/2025
1.13.3 182 10/10/2025
1.13.2 148 8/22/2025
1.13.1 139 8/22/2025
1.13.0 140 8/22/2025
1.12.12 205 8/19/2025
1.12.11 196 8/18/2025
1.12.9 174 8/17/2025
1.12.8 390 7/25/2025
1.12.7 512 7/24/2025
1.12.6 515 7/24/2025
1.12.5 139 7/18/2025
1.12.4 208 7/6/2025
1.12.3 203 7/6/2025
1.12.2 253 5/25/2025
1.12.1 214 5/20/2025
1.12.0 270 4/8/2025
1.11.13 237 4/8/2025
1.11.12 523 3/24/2025
1.11.11 215 3/18/2025
1.11.10 180 2/28/2025
1.11.9 200 2/26/2025
1.11.8 193 2/26/2025
1.11.7 193 2/19/2025
1.11.6 198 2/18/2025
1.11.5 211 2/15/2025
1.11.4 212 1/25/2025
1.11.3 226 1/3/2025
1.11.2 202 1/3/2025
1.11.1 222 1/3/2025
1.11.0 198 12/29/2024
1.10.5 169 12/20/2024
1.10.4 177 12/17/2024
1.10.3 197 12/6/2024
1.10.2 185 12/4/2024
1.10.1 187 12/1/2024
1.10.0 199 12/1/2024
1.10.0-alpha 172 11/30/2024
1.9.15 184 11/26/2024
1.9.14 168 11/24/2024
1.9.13 181 11/18/2024
1.9.12 190 11/18/2024
1.9.11 185 11/18/2024
1.9.10 189 11/18/2024
1.9.9 168 11/18/2024
1.9.8 187 10/17/2024
1.9.7 175 10/16/2024
1.9.6 166 10/15/2024
1.9.5 187 10/10/2024
1.9.4 207 10/8/2024
1.9.3 211 9/21/2024
1.9.2 222 9/4/2024
1.9.1 180 9/3/2024
1.9.0 205 8/26/2024
1.8.3 250 8/22/2024
1.8.2 219 8/22/2024
1.8.1 225 8/17/2024
1.8.0 242 8/15/2024
1.7.9 140 7/31/2024
1.7.8 151 7/29/2024
1.7.7 171 7/29/2024
1.7.6 176 7/28/2024
1.7.5 193 7/26/2024
1.7.4 190 7/23/2024
1.7.3 187 7/21/2024
1.7.2 189 7/21/2024
1.7.1 220 7/21/2024
1.7.0 193 7/20/2024
1.6.5 226 7/5/2024
1.6.4 243 6/20/2024
1.6.3 236 6/15/2024
1.6.2 232 6/15/2024
1.6.1 219 6/14/2024
1.6.0 173 6/14/2024
1.5.2 183 6/11/2024
1.5.1 190 6/11/2024
1.5.0 223 6/6/2024
1.4.1 213 6/5/2024
1.4.0 198 6/3/2024
1.3.0 185 5/29/2024
1.2.0 150 5/20/2024
1.1.9 195 5/4/2024
1.1.8 141 5/3/2024
1.1.7 144 5/3/2024
1.1.6 172 4/30/2024
1.1.5 186 4/30/2024
1.1.4 180 4/29/2024
1.1.3 161 4/29/2024
1.1.2 156 4/28/2024
1.1.1 152 4/28/2024
1.1.0 150 4/28/2024
1.0.2 129 4/28/2024
1.0.1 158 4/27/2024
1.0.0 210 4/27/2024

Included first iteration player management.