No description
Find a file
Paul Sütterlin bd6deda786
Merge pull request #77 from Klotzi111/main
Various improvements 2
2024-08-22 13:13:17 +02:00
.github Update issue templates 2024-05-22 18:07:06 +02:00
Components added missing packet PingResponsePacket 2024-08-21 03:46:58 +02:00
Data added ParticleData.cs 2024-08-19 15:23:53 +02:00
MineSharp.Bot fixed name for CommandBlockUpdatePacket 2024-08-19 18:53:51 +02:00
MineSharp.Bot.IntegrationTests improved logging a little bit 2024-08-18 12:32:18 +02:00
MineSharp.Core Merge remote-tracking branch 'upstream/main' 2024-08-19 16:31:59 +02:00
.editorconfig code style 2024-07-18 11:19:07 +02:00
.gitattributes Initial Commit 2022-04-05 22:03:19 +02:00
.gitignore reset integration test world 2023-12-31 16:13:13 +01:00
.gitmodules 👽 2023-11-21 14:22:20 +01:00
CHANGELOG.txt Update CHANGELOG.txt 2024-04-01 18:48:40 +02:00
Directory.Build.props code style 2024-07-18 11:19:07 +02:00
global.json preparing for nuget packages 2023-12-27 13:00:07 +01:00
LICENSE Update LICENSE 2023-12-29 00:29:53 +01:00
MineSharp.sln added MineSharp.Data.Tests 2024-02-19 23:00:47 +01:00

Gitter Discord License Nuget


banner

MineSharp

This Project is not finished and under development!

MineSharp is a framework to work with minecraft.
My goal is to create a bot framework which is able to do anything you can do in the vanilla client, but theoretically MineSharp could also be used to create a Server or custom client.

Currently MineSharp works with Minecraft Java 1.18 - 1.20.4.

If you're interested in this project, feel free to contribute!

Current features

  • Supported Versions: 1.18.x - 1.20.4
  • 📈 Player Stats
  • Events
  • 🐖 Entity tracking
  • 🌍 World tracking (query the world for blocks)
  • ⛏️ Mining (very simple, needs some more work)
  • 👷‍♂️ Building (very simple, needs some more work)
  • 🛠️ Crafting
  • 🪟 High-Level window Api
  • ⚔️ Attacking entities
  • 🏃 Movements (Walking, Sprinting, Jumping, Sneaking)
  • 📝 Chat (Reading and Writing)

Roadmap

Example Snippet

See MineSharp.Bot for more information about creating bots.

using MineSharp.Bot;
using MineSharp.Bot.Plugins;

MineSharpBot bot = await new BotBuilder()
    .Host("localhost")
    .OfflineSession("MineSharpBot")
    .CreateAsync();

ChatPlugin chat = bot.GetPlugin<ChatPlugin>();

if (!await bot.Connect()) 
{
    Console.WriteLine("Could not connect to server! Is the server running?");
    Environment.Exit(1);
}

while (true)
{
    var input = Console.ReadLine();
    if (input == "exit") 
    {
        await bot.Disconnect();
        break;
    }
    
    if (input != null)
        await chat.SendChat(input);
}

Credits

Without the following resources this project would not be possible. Thanks to all people involved in those projects!