PvP Practice Bots
!! IMPORTANT !! Beta APIs need to be enabled!
And you must be on the most recent Minecraft version!
For Java combat, right now only Blurry's is supported, but more are planned in the future!
If using Blurrys, make sure this add-on is above Blurrys in the BP list.
Now with a built-in machine learning system for bots.
Wiki Page: PvP Practice Bots WIKI
To begin, start by spawning one with the following:
every input is optional and will default to something else if not inputted /spawnbot <difficulty> <type> <target> <ignoredTag> <x> <y> <z> <customName>
**Target options:
"" = command sender
"bot" = other bots
"player" = non-bot players
"mob" = non-player/bot entities
"all" = closest entity
"partialName" = whoever's partial name you input, ex: (my name is petstorebuft) so "pets"
Ignored Tag options:
"" = none
"none" = none**
then if you notice too many, just run
/removebots <target - optional>
(bots are considered players, so @p, @r, and @a selectors work on them)
If you're curious about the internals, just type
/botdebug
If you want to create your own bot, use the following:
/botbuilder
Give someone a kit:
/kit <type> <target>
Save your inventory as a custom kit:**
/savekit <kitname>
List all kits:
/kits
**And finally to adjust various settings and enable better AI type:
/settings
To record your game use:
/record <recording name> <tick interval - optional>
/stoprec
/playback
/spawnbot, /removebots, /kit, and /mlspawn have command block support!
Introduction to machine learning bots:
Machine learning bots work by getting "trained"; they will learn from fighting and "upload" the data to a global brain, and then future ML bots will pull from the brain and apply it to their current combat to be better at fighting.
To spawn a single ML bot:
/mlspawn <class> <difficulty> <target> <x> <y> <z>
The spawned bot will now learn by fighting you or the set target, but this is very slow, so you can train multiple at once via:
/mltrain <class> <difficulty> <on/off> <count>
This will spawn multiple pairs of bots that fight each other while learning; one focuses on defense while the other focuses on attacking, resulting in a good balance. You can also train multiple types of kits with this.
To apply the learned data to the pre-made bots, just run:
/mltoggle <class> <on/off>
To see the total bot data, like what it's learned / the storage it's used, run these two commands:
/mlstats <class>
/mldata
Then finally to reset a trained class's data run:
/mlreset <class/all>
Currently there are 5 types of pre-built bots:
Sword:
only a diamond sword + armor, with basic enchants
axe:
diamond sword/axe/armor, basic enchants
bow, crossbow
5 arrows
mace:
two maces with enchants
enchanted diamond sword/axe/armor
2 totems,
multiple strength/speed pots
a stack of golden apples
2 stacks of wind charges
2 stacks of pearls
elytra (doesn't use yet)
UHC:
diamond armor/sword/axe/pickaxe, basic enchants
2 stacks of wood/cobblestone
2 lava buckets
2 water buckets
16 webs
16 arrows
bow/crossbow basic enchants
crystal:
netherite sword/axe/pickaxe/armor, typical enchants
11 totems
4 stacks of pearls
5 stacks of crystals
3 stacks of xp bottles
3 stacks of obsidian
2 stacks of respawn anchors
2 stacks of glowstone
1 stack of arrows
1 stack of golden apples
1 enchanted crossbow
cart:
netherite sword/armor, typical enchants
2 stacks of rails
2 stacks of golden apples
2 stacks of webs
1 stack of XP bottles
2 stacks of pearls
1 stack of arrows
19 TNT minecarts
6 instant health 2 potions
crossbow w/ Quick Charge 3
enchanted flint and steal
enchanted bow
The bots scale with difficulty via attack speed, accuracy, and various habits.
This pack will be updated to improve the AI and add more kits!
If you're curious about more specifics about the kits:
1. rename the add-on so it's a .zip
2. navigate to BP>scripts>exports.js
3. read through the kits
How to create custom AI bots:
All custom bots have the tag CustomBot_botId, so you can use that to auto-do stuff to them!
Support & Custom Work
Check me out on Fiverr
Discord server: https://discord.gg/QgeeGsEAkp
Discord username: **petstorebuffet
**
I will 100% take any advice on this pack for features to add or any bugs that need fixing!