Package: lodestone
🤖 Create Minecraft bots with a powerful, stable, and high level Python APIAboutLodestone is an incredibly powerful and flexible framework for building Minecraft bots of all kinds.
Whether you’re new to Minecraft bot development or a seasoned pro, Lodestone provides all the tools you need to bring your bot ideas to life.
Let’s dive into how to get up and running with Lodestone.FeaturesSupports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20.1.Entity knowledge and tracking.Block knowledge. You can query the world around you. Milliseconds to find any block.Physics and movement - handle all bounding boxesAttacking entities and using vehicles.Inventory management.Crafting, chests, dispensers, enchantment tables.Digging and building.Miscellaneous stuff such as knowing your health and whether it is raining.Activating blocks and using items.Chat.Plugins for many servers.Getting Started[!IMPORTANT]
project lodestone is still in development and has some bugs.All instalation instructons and documentation can be foundherebut here is the general idea.Installation and SetupThe first step is to install the Lodestone package using pip. It’s recommended to create a virtual environment first before installing:python3-mvenvenvsourceenv/bin/activate
pipinstalllodestoneWith Lodestone installed, create a bot.py file to initialize your bot. This is where you’ll configure your bot’s username, authentication method, and other options:importlodestonebot=lodestone.createBot(host='localhost',port=25565,# set this to your own LAN portusername='MyAwesomeBot',auth='microsoft')In this example, we’re connecting to a local Minecraft server on localhost and using Microsoft authentication.Running and Logging InWith your bot created, run it using:pythonbot.pyThe first time you run your bot, Lodestone will prompt you to log in using the authentication method you configured. Follow the login prompts to authenticate your bot and connect it to the Minecraft server.
Lodestone provides multiple authentication options including Microsoft and Offline modes. See the docs for details.Using the Lodestone CLILodestone also offers an easy to use command line intercace (CLI). This allows you to use the basic functions of lodestone.
the CLI offers auto tab complete and has real time chat logs.To use the CLI run the following command:python-mlodestone-uUSERNAME-hHOST-pPORT-vVERSION[!IMPORTANT]usernameandhostare required options.[!WARNING]
Do not share your Minecraft info to anyone.Command line argumentsThe command line arguments available are:--usernameor-u: The Minecraft username the bot will log into.--hostor-h: The IP address or hostname of the Minecraft server.--portor-p: The port number the Minecraft server is listening on. Default is 25565.--auth: The authentication method your account requires (mojang/microsoft/cracked). Default is "microsoft".--versionor-v: Minecraft version to use when connecting to a server. Default is auto.ContributorsNameHelped WithGitHubDiscordKatzengottfishing bot and cactus bot@KatzengottedelkatzeRoadmapAdd config.json fileAddclickChange to use as Pip package for better useAdd Discord integrationAdd Custom code runner (a way for users to test their own bot code in a nice and simple way)MineFlayer 🚀Mineflayer is a complex library that allows you to control Minecraft accounts through a powerful, stable, and high-level JavaScript APIDiscordhttps://discord.gg/Fa7HZgkczzCreditsMineFlayerScreenshots:DashboardSettings