Bot: Difference between revisions

From kaboom
Jump to navigation Jump to search
Created page with "A <strong>Minecraft Bot</strong> is an automated [https://minecraft.wiki/w/Player Player]. In Kaboom, bots usually use [https://minecraft.wiki/w/Chat chat] to receive commands and [https://minecraft.wiki/w/Commands commands] (via Cores) to interact with the server and other players."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


In [[Kaboom (Minecraft Server)|Kaboom]], bots usually use [https://minecraft.wiki/w/Chat chat] to receive commands and [https://minecraft.wiki/w/Commands commands] (via [[Core]]s) to interact with the server and other players.
In [[Kaboom (Minecraft Server)|Kaboom]], bots usually use [https://minecraft.wiki/w/Chat chat] to receive commands and [https://minecraft.wiki/w/Commands commands] (via [[Core]]s) to interact with the server and other players.
=== Bot Creation Guide ===
You must first choose a programming language.
If you already know how to code, you can use that one.
If not, python and [https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting javascript] are the most popular first languages.
Then, you <abbr title="while you can parse the minecraft protocol by yourself, this is not recommended as your first project">must</abbr> choose a [https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Library_List library].
(on kaboom) the most popular ones are [https://github.com/PrismarineJS/node-minecraft-protocol/tree/master minecraft-protocol] and [https://github.com/GeyserMC/MCProtocolLib MCProtocolLib]. (in github) the most popular one is [https://github.com/PrismarineJS/mineflayer mineflayer], a high-level wrapper of [https://github.com/PrismarineJS/node-minecraft-protocol/tree/master minecraft-protocol].
While most kaboom players opt for minimalistic libraries that give the author a high level of control, for your first bot, it is recommended that you use a higher level library, such as [https://github.com/PrismarineJS/mineflayer mineflayer].
No matter your choice, you should always:
* read documentation ([https://minecraft.wiki/w/Java_Edition_protocol Java Edition protocol] for low-level libraries, [https://github.com/PrismarineJS/mineflayer/blob/master/docs/tutorial.md Tutorial] and [https://github.com/PrismarineJS/mineflayer/tree/master/examples examples] for mineflayer, etc)
* practice (code new features)
* read others code ([https://github.com/HHH-Kaboom-Dev/HBot HBot], [https://github.com/orgs/DinheroDevelopmentGroup/repositories DDG], [https://code.chipmunk.land/ChomeNS/chomens-bot-java chomens-bot-java], [https://code.chipmunk.land/ChomeNS/chomens-bot-js chromens-bot-js])

Latest revision as of 16:51, 26 March 2025

A Minecraft Bot is an automated Player.

In Kaboom, bots usually use chat to receive commands and commands (via Cores) to interact with the server and other players.

Bot Creation Guide[edit]

You must first choose a programming language. If you already know how to code, you can use that one. If not, python and javascript are the most popular first languages.

Then, you must choose a library. (on kaboom) the most popular ones are minecraft-protocol and MCProtocolLib. (in github) the most popular one is mineflayer, a high-level wrapper of minecraft-protocol.

While most kaboom players opt for minimalistic libraries that give the author a high level of control, for your first bot, it is recommended that you use a higher level library, such as mineflayer.

No matter your choice, you should always: