Dray Bot

A Mod That Lets You Play Any Map That Uses HeroBot Like TheoBaldTheBird Map On Newer Versions.

Product description

Server-side fake players for PvP practice. Spawn bots, drive them with commands or datapack functions, and give them real skins just by naming them after an account.

Bots are real server players under the hood. They attack, use items, stab with spears, autojump, take knockback, and can even lag on purpose with a ping you set.

  • Fabric for Minecraft 1.21.11. Needs Fabric API and Java 21.
  • Server-side. Players only need the mod on their client for creativeNoClip and disableExperimentalScreen.
  • Every command needs operator permission (level 2).

⚠ Not compatible with Carpet or HeroBot

Fabric will refuse to start if either one is installed alongside Drayic Bots.


Spawning bots: /playerspawn

/playerspawn <name> spawns a bot where you are standing.

Add options after the name to change where and how it spawns. Options can be combined; put skin last.

OptionWhat it does
at <x> <y> <z>Spawn at this position
facing <yaw> <pitch>Spawn facing this way
in <gamemode>Spawn in this gamemode
on <dimension>Spawn in this dimension
skin <player>Wear this account's skin instead

Example: /playerspawn Sparring at 0 64 0 facing 90 0 in survival skin Notch

  • Names are 1 to 16 letters, digits or _. A name that is already online is refused.
  • If the name belongs to a real Minecraft account, the bot wears that skin (see fetchSkins).
  • Names with no account are only allowed while allowSpawningOfflinePlayers is on.
  • A bot that dies respawns right away, unless botLeaveOnDeath is on.

Controlling bots: /player

Every subcommand starts with /player <targets>. Targets accept selectors, so one command can drive many bots at once. Only bots can be controlled, not real players.

Actions: use, attack, jump, swing, drop, dropStack, swapHands

CommandWhat it does
/player <targets> <action>Do it once
/player <targets> <action> onceDo it once
/player <targets> <action> continuousDo it every tick
/player <targets> <action> interval <ticks>Do it every few ticks
/player <targets> <action> stopStop that action
  • attack while holding a spear performs a stab.
  • Holding use repeats at the speed set by botItemUseCooldown.

Movement: move, sneak, sprint, autojump, velocity

CommandWhat it does
move forward / backward / left / rightStart walking that way
move stopStop walking
sneak / unsneakStart or stop sneaking
sprint / unsprintStart or stop sprinting
autojump on / offJump up single blocks while walking
velocity <x> <y> <z>Push the bot (each value from -10 to 10)
velocity toward <x> <y> <z> <speed>Push the bot toward a point

Looking: look, turn

CommandWhat it does
look north / south / east / west / up / downFace a direction
look <yaw> <pitch>Face an exact rotation
look at <x> <y> <z>Look at a position
look upon <entity>Look at an entity's eyes
look upon <entity> eyes / feet / closestLook at the eyes, the feet, or the nearest point of the hitbox
look randomFace a random direction
turn left / rightTurn 90 degrees
turn backTurn around (180 degrees)
turn <yaw> <pitch>Turn by this much from the current facing

Items: hotbar, itemCd, copycat

CommandWhat it does
hotbar <slot>Select hotbar slot 1 to 9
itemCd askShow the cooldown left on the held item
itemCd resetClear the held item's cooldown
itemCd set defaultStart the held item's normal cooldown without using it
itemCd set <ticks>Give the held item a custom cooldown
itemCd clearAllClear every item cooldown
copycat <player>Copy a player's inventory, selected slot and facing

Lag: ping

CommandWhat it does
ping getShow the bot's ping
ping set <ms>Give the bot a ping in milliseconds

While botPingToTicks is on, the ping turns into a real delay. botLagAttacks, botLagUses and botLagKnockback choose what gets delayed.

Appearance: skin, handedness

CommandWhat it does
skinShow whether the bot has a real skin
skin of <account>Wear this account's skin
skin part <part> on / offShow or hide one skin layer
skin all on / offShow or hide every layer
skin sleeves on / offShow or hide both sleeves
skin pants on / offShow or hide both pant legs
handedness left / rightSet the main hand

Skin parts: cape, jacket, left_sleeve, right_sleeve, left_pants, right_pants, hat.

Other: stop, kill, disconnect

CommandWhat it does
stop (or stopAll)Stop every action and all movement
killKill the bot
disconnectRemove the bot from the server

Settings: /drayicbots (alias /herobot)

CommandWhat it does
/drayicbots rulesList every setting and its value
/drayicbots rule <setting>Show a setting's value and description
/drayicbots rule <setting> <value>Change it for this world
/drayicbots rule <setting> <value> globalChange it for every world
/drayicbots rule <setting> resetPut it back to the default
/drayicbots listList the bots that are online
/drayicbots versionShow the mod version

Bots

SettingDefaultWhat it does
fetchSkinstrueBots named after a real account wear that account's skin
allowSpawningOfflinePlayerstrueAllow bot names that don't belong to any Minecraft account
allowListingBotPlayerstrueBots show in the server list player count and hover list
botLeaveOnDeathfalseA bot that dies is removed instead of respawning
botItemUseCooldown4Ticks between item uses while a bot holds use

Lag

SettingDefaultWhat it does
botPingToTickstrueA bot's ping delays what it does, like real lag
botLagAttackstrueThe ping delay applies to attacks
botLagUsestrueThe ping delay applies to item use
botLagKnockbacktrueThe ping delay applies to knockback the bot takes

Combat

SettingDefaultWhat it does
shieldStunningfalseA hit that disables a shield gives no hit immunity, so the next hit lands right away
noProjectileRandomfalseArrows, tridents and other projectiles fly exactly where they are aimed
xpNoCooldownfalseXP orbs are collected the moment they touch a player

Explosions

SettingDefaultWhat it does
explosionNoBlockDamagefalseExplosions don't break blocks
explosionNoFirefalseExplosions never start fires
ExplosionNoDmgModeoffWho explosions can't hurt: off, bots, players (bots too) or all
windChargeNoTriggerfalseWind charges don't flip levers, press buttons, or open doors and trapdoors

World

SettingDefaultWhat it does
shulkerBoxAlwaysDropsfalseShulker boxes drop as items even when broken in creative
rainThroughMovingPistonfalseBlocks being pushed by pistons don't block rain
deleteChunkEntitiestrue/chunk-resetter also removes entities in the chunks it resets
editablePlayerNbtfalse/data can change bot and player data
clientsIgnoreSlowTickRatefalseWhen /tick rate is below 20, clients keep animating at normal speed

Creative

SettingDefaultWhat it does
creativeNoClipfalseFlying creative players pass through blocks (needs the mod on the client)
creativeFlySpeed1.0Creative flying speed multiplier for bots
creativeFlyDrag0.09Creative flying drag for bots

Client

SettingDefaultWhat it does
disableExperimentalScreenfalseSkip the experimental-settings warning when creating or opening a world

Selector options: bot, distanceH, distanceV

Three extra options work in any entity selector:

OptionWhat it matches
bot=true / bot=falseOnly bots, or only real players
distanceH=<range>Horizontal distance (X and Z only)
distanceV=<range>Vertical distance (Y only)

Ranges work like vanilla distance: ..5, 2..8, 10...

Example: /player @e[bot=true,distanceH=..10] attack once


Measuring: /distance

CommandWhat it measures
/distance from <pos> to <pos>Between two positions
/distance between <entity> <entity>Between two entities' positions
/distance between <entity> <entity> hitboxThe gap between two hitboxes (0 when touching)

The result shows the full, horizontal and vertical distance. The command returns the full distance rounded to the nearest block, so it works with /execute store.


Scheduling: /delayed

CommandWhat it does
/delayed <ticks> <command>Run a command after a delay, as whoever queued it
/delayed queue listShow everything that is waiting
/delayed queue remove <id>Cancel one entry
/delayed queue clearCancel everything

Resetting arenas: /chunk-resetter

Save an area once, then put it back the way it was after every fight.

CommandWhat it does
/chunk-resetter snapshot <from> [to] [dimension]Save these chunks as they are now
/chunk-resetter chunk <from> [to] [dimension]Put these chunks back to their snapshot
/chunk-resetter forget <from> [to] [dimension]Delete the snapshot for these chunks
/chunk-resetter world [dimension]Put every saved chunk in the dimension back
  • <from> and <to> are block X Z columns. Leave out to for a single chunk.
  • One command can cover up to 1024 chunks.
  • Chunks need a snapshot before they can be reset.
  • While deleteChunkEntities is on, entities in reset chunks are removed.

by Drayic

Free accessFree