On this page
- Where It's Used
- Macros
- Spammer
- Length Limit
- Syntax Basics
- Global Variables
- Top Level
- boze.*
- player.*
- camera.*
- crosshair_target.*
- world.*
- server.*
- friends.*
- inv.*
- armor.*
- ender.*
- combat.*
- mining.*
- time_info.*
- chunks.*
- system.*
- random.*
- meta.*
- baritone.*
- Wrapped Types
- Item
- Entity
- Block
- Direction
- Effect
- Event Variables
- PlayerJoin / PlayerLeave (PlayerJoin.txt, PlayerLeave.txt)
- BlockMined / BlockPlaced (BlockMined.txt, BlockPlaced.txt)
- TargetKilled (TargetKilled.txt)
- FriendAdded (FriendAdded.txt)
- BlocksWalked (BlocksWalked.txt)
- BlockCount (BlockCount.txt)
- Examples
- Macro: report position to a friend
- Macro: low-hp panic
- Spammer cyclic file (info.txt)
- Event file: kill streak brag (TargetKilled.txt)
- Event file: welcome new players (PlayerJoin.txt)
- Errors
Text Formatting
Boze uses Starscript for dynamic text in macros and the Spammer module. Anything inside {...} is evaluated at send time and replaced with a live value (your coords, ping, target health, the current time, etc).
If a
{...}expression has a syntax error, the offending line is skipped and a yellow warning is printed in chat. The literal{...}is never sent to the server.
Where It's Used
Macros
Each command line in a macro is run through Starscript before being sent. Example macro lines:
hi! im at {player.pos} on {server.address}
.toggle KillAura
{player.health < 5 ? "/msg admin help low hp" : "all good"}
If the expanded text starts with the Boze command prefix (. by default) it's routed to the Boze command system. Otherwise it's sent as a chat message (or a slash command if it starts with /).
Spammer
The Spammer module has two surfaces:
- File mode (master toggle, on by default): cyclic spam from
.txtfiles in<boze>/spammer/. Each line is run through Starscript, then sent on a delay. TheRandomsetting picks lines randomly instead of sequentially. - Events: separate
.txtfiles trigger on game events. Auto-generated on first run with sensible defaults; edit them freely.
Reserved event files (hidden from the cyclic Files picker):
| File | Trigger |
|---|---|
PlayerJoin.txt |
A player joins the server (3s suppression after world load to avoid initial-flood) |
PlayerLeave.txt |
A player leaves the server |
BlockMined.txt |
You break a block (gated by the Chance setting) |
BlockPlaced.txt |
You place a block (gated by the Chance setting) |
TargetKilled.txt |
A combat target dies |
FriendAdded.txt |
You add a player to your Friends list |
BlocksWalked.txt |
You've walked a random number of blocks within the configured Range (under BlocksWalked) |
BlockCount.txt |
You've placed a random number of blocks within the configured Range (under BlockCount) - ignores Chance |
The Random setting also applies to event files. Each file independently cycles or randomly picks from its lines.
Length Limit
Vanilla Minecraft caps chat messages at 256 characters and commands at ~32500 characters. If an expanded line exceeds the limit, Spammer/Macros skip it and print a warning like:
[Boze] [Spammer] Skipped line 5 of 'example' - too long (281 chars, max 256)
Split long lines across multiple lines in the file to fix this.
Syntax Basics
| Form | Example | Result |
|---|---|---|
| Variable | {player.health} |
20 |
| Nested | {player.pos.x} |
100.5 |
| Function call | {inv.count("minecraft:obsidian")} |
64 |
| Math | {player.health + player.absorption} |
28 |
| Comparison + ternary | {player.health < 10 ? "low!" : "ok"} |
low! |
| String concat | {"hp: " + player.health} |
hp: 20 |
| Standard library | {round(player.saturation, 1)} |
9.0 |
Anything outside {...} is sent verbatim.
Global Variables
These are available in every macro and spammer line, including event files.
Top Level
| Variable | Type | Description |
|---|---|---|
mc_version |
string | Minecraft version |
fps |
number | Current FPS |
ping |
number | Latency to the current server (ms) |
time |
string | Real-world local time (HH:mm) |
date |
string | Real-world local date (yyyy-MM-dd) |
boze.*
| Variable | Type | Description |
|---|---|---|
boze.name |
string | "Boze" |
boze.version |
string | Client version |
boze.build |
string | Build hash |
boze.prefix |
string | Current command prefix (default .) |
boze.modules |
number | Total module count |
boze.active_modules |
number | Currently enabled module count |
boze.is_active(name) |
bool | Whether a module is enabled |
boze.module_info(name) |
string | A module's HUD info string (or "") |
boze.get_setting(module, setting) |
any | A setting's coerced value |
player.*
| Variable | Type | Description |
|---|---|---|
player (default) |
string | Username |
player.name |
string | Username |
player.uuid |
string | Player UUID |
player.health |
number | Current HP (1 dec) |
player.max_health |
number | Max HP (1 dec) |
player.absorption |
number | Absorption HP (1 dec) |
player.hunger |
number | Hunger (0–20) |
player.saturation |
number | Saturation (1 dec) |
player.air |
number | Remaining air |
player.armor |
number | Total armor points |
player.gamemode |
string | "Survival"/"Creative"/etc. |
player.dimension |
string | "Overworld"/"Nether"/"End" |
player.opposite_dimension |
string | The opposite dim of where you are |
player.biome |
string | Pretty-printed biome name |
player.pos |
map | _toString/x/y/z (2 dec) |
player.opposite_dim_pos |
map | Cross-dimension coords |
player.block_pos |
map | Block-aligned coords (int) |
player.yaw / player.pitch |
number | Normalized to (-180, 180], 1 dec |
player.direction |
map | Cardinal direction: name, axis |
player.speed |
number | Horizontal m/s (2 dec) |
player.speed_kmh |
number | km/h (2 dec) |
player.velocity |
map | x/y/z (3 dec) |
player.is_sneaking |
bool | |
player.is_sprinting |
bool | |
player.is_flying |
bool | |
player.is_swimming |
bool | |
player.is_on_ground |
bool | |
player.is_in_water |
bool | |
player.is_in_lava |
bool | |
player.is_using_item |
bool | |
player.hand |
item | Main hand item (see Item shape below) |
player.offhand |
item | Offhand item |
player.hand_or_offhand |
item | Main hand if non-empty, else offhand |
player.held_slot |
number | 0–8 hotbar slot |
player.get_item(slot) |
item | Item in inventory slot |
player.count_items(id) |
number | Count of an item id across whole inventory |
player.xp.level |
number | XP level |
player.xp.progress |
number | Bar progress 0–1 |
player.xp.total |
number | Total XP |
player.has_effect(id) |
bool | Does player have status effect |
player.get_effect(id) |
map | duration, level (or null) |
camera.*
Same shape as player.pos/yaw/pitch/direction/opposite_dim_pos, but for the active camera (matters in Freecam).
crosshair_target.*
| Variable | Type | Description |
|---|---|---|
crosshair_target.type |
string | "miss" / "block" / "entity" |
crosshair_target.value |
map / string | Wrapped block / entity (or "" on miss) |
world.*
| Variable | Type | Description |
|---|---|---|
world.time |
number | Time of day (0–23999) |
world.day |
number | Days since world start |
world.is_day / world.is_night |
bool | |
world.is_raining / world.is_thundering |
bool | |
world.difficulty |
string | "peaceful"/"easy"/"normal"/"hard" |
world.entity_count |
number | Loaded entity count |
world.player_count |
number | Loaded player count (includes you) |
world.other_player_count |
number | Loaded player count excluding you (effectively other players within render distance) |
world.render_distance |
number | Effective render distance |
server.*
| Variable | Type | Description |
|---|---|---|
server (default) |
string | Address or "Singleplayer" |
server.address |
string | Server address |
server.name |
string | Server entry name |
server.is_singleplayer |
bool | |
server.tps |
number | Estimated server TPS (2 dec) |
server.ping |
number | Same as top-level ping |
server.player_count |
number | Tab-list size |
friends.*
| Variable | Type | Description |
|---|---|---|
friends.count |
number | Total friends |
friends.is_friend(name) |
bool | |
friends.list |
string | Comma-joined friend names |
friends.online_count |
number | Friends visible in current world |
friends.online_list |
string | Comma-joined online friends |
inv.*
| Variable | Type | Description |
|---|---|---|
inv.empty_slots |
number | Empty main+hotbar slots |
inv.used_slots |
number | Non-empty main+hotbar slots |
inv.free_hotbar |
number | Empty hotbar slots |
inv.count(id) |
number | Total of an item id (whole inventory) |
inv.count_main(id) |
number | Main inventory + hotbar only |
inv.count_hotbar(id) |
number | Hotbar only |
inv.has(id) |
bool | |
inv.find_slot(id) |
number | First slot containing item, -1 if none |
inv.totems |
number | Totems of undying |
inv.gapples |
number | Enchanted golden apples |
inv.regular_apples |
number | Regular golden apples |
inv.crystals |
number | End crystals |
inv.xp_bottles |
number | |
inv.pearls |
number | |
inv.obsidian |
number | |
inv.empty_bottles |
number | |
inv.repair_count |
number | Damaged items in inventory |
armor.*
| Variable | Type | Description |
|---|---|---|
armor.helmet / chestplate / leggings / boots |
item | Wrapped item |
armor.total_durability |
number | Sum of remaining durability |
armor.lowest_durability |
number | Most-damaged piece's remaining durability |
armor.lowest_durability_pct |
number | 0–1 |
armor.is_full |
bool | All 4 slots filled |
ender.*
Reads the cached ender chest contents (only populated after you've opened your ender chest at least once this session).
| Variable | Type | Description |
|---|---|---|
ender.count(id) |
number | |
ender.has(id) |
bool | |
ender.totems / gapples / crystals / obsidian |
number | Convenience counts |
combat.*
| Variable | Type | Description |
|---|---|---|
combat.target |
entity / null | Most recent combat target (Aura/AutoCrystal) |
combat.target_distance |
number | (2 dec) |
combat.target_health |
number | HP + absorption (1 dec) |
combat.target_name |
string | |
combat.pops(name) |
number | Pop count for a player |
mining.*
| Variable | Type | Description |
|---|---|---|
mining.is_mining |
bool | |
mining.progress |
number | 0–1 of current break (3 dec) |
mining.target_block |
block / null | Block being mined |
time_info.*
| Variable | Type | Description |
|---|---|---|
time_info.short |
string | HH:mm |
time_info.long |
string | HH:mm:ss |
time_info.hour / minute / second |
number | |
time_info.day_of_week |
string | "Monday"... |
time_info.day / month / year |
number | |
time_info.timestamp |
string | Unix seconds (string to avoid scientific notation) |
time_info.uptime |
number | Game session seconds (1 dec) |
chunks.*
| Variable | Type | Description |
|---|---|---|
chunks.loaded |
number | Loaded chunk count |
chunks.x / chunks.z |
number | Player chunk coords |
system.*
| Variable | Type | Description |
|---|---|---|
system.os |
string | OS name |
system.java_version |
string | |
system.memory_used |
number | MB used (1 dec) |
system.memory_max |
number | MB max (1 dec) |
system.memory_percent |
number | 0–100 (1 dec) |
random.*
| Variable | Type | Description |
|---|---|---|
random.int(min, max) |
number | Inclusive both ends |
random.double(min, max) |
number | |
random.bool() |
bool | |
random.choice(a, b, ...) |
string | Picks one of N string args |
random.uuid |
string | Random UUID per access |
meta.*
Per-call context. Different fields are populated depending on what's running the script.
| Variable | Type | Set by |
|---|---|---|
meta.macro_name |
string | Macros (the macro's name) |
meta.spammer_file |
string | Spammer (the file name without .txt) |
meta.line_number |
number | Both (1-based index of the line being run) |
baritone.*
Only registered if Baritone is loaded.
| Variable | Type | Description |
|---|---|---|
baritone.is_pathing |
bool | |
baritone.has_goal |
bool |
Wrapped Types
Some variables (hand, crosshair_target.value, combat.target, event.target, event.block, armor.helmet etc) return a map with these fields:
Item
| Field | Description |
|---|---|
_toString |
Default display: Diamond Sword or Cobblestone 64x |
name |
Display name |
id |
Registry id (minecraft:diamond_sword) |
count |
Stack size |
durability |
Remaining (0 if not damageable) |
max_durability |
Max (0 if not damageable) |
is_damaged |
Has been used |
is_food |
Has a food component |
is_enchanted |
Has any enchantments |
Entity
| Field | Description |
|---|---|
_toString |
Display name |
name |
|
id |
Entity type id (minecraft:zombie) |
type |
EntityType.toString() |
health |
(1 dec, 0 if not living) |
max_health |
(1 dec) |
absorption |
(1 dec) |
is_player |
bool |
is_friend |
bool (player + on friends list) |
distance |
From local player (2 dec) |
pos |
_toString/x/y/z (2 dec) |
Block
| Field | Description |
|---|---|
_toString |
Display name |
id |
Block id (minecraft:obsidian) |
pos |
_toString/x/y/z |
Direction
| Field | Description |
|---|---|
_toString |
North Z- |
name |
North/South/East/West |
axis |
Z-/Z+/X+/X- |
Effect
| Field | Description |
|---|---|
duration |
Ticks remaining |
level |
Amplifier + 1 |
Event Variables
These are only populated inside the corresponding event file. Outside an event, they're empty / null.
PlayerJoin / PlayerLeave (PlayerJoin.txt, PlayerLeave.txt)
| Variable | Type | Description |
|---|---|---|
event.name |
string | Player name |
event.uuid |
string | Player UUID |
Default content:
Welcome {event.name}!
BlockMined / BlockPlaced (BlockMined.txt, BlockPlaced.txt)
| Variable | Type | Description |
|---|---|---|
event.block |
block | Wrapped block (_toString/id/pos) |
event.pos |
map | _toString/x/y/z (also accessible via event.block.pos) |
Default content:
Just mined {event.block}
These events are gated by the Chance setting (0.0 to 1.0), the probability per block of firing. 1.0 = every block, 0.5 = 50%, 0.0 = never. The setting is shared between BlockMined and BlockPlaced, visible only when at least one is enabled.
TargetKilled (TargetKilled.txt)
| Variable | Type | Description |
|---|---|---|
event.name |
string | Target name |
event.uuid |
string | Target UUID |
event.pops |
number | Final totem-pop count |
event.target |
entity | Full entity wrap |
Default content:
ez {event.name} ({event.pops} pops)
FriendAdded (FriendAdded.txt)
| Variable | Type | Description |
|---|---|---|
event.name |
string | Player name |
event.uuid |
string | Always empty (Friends list doesn't store UUIDs) |
Default content:
/msg {event.name} I just friended you!
(The leading / makes it a vanilla command, so it goes through the chat-command packet rather than chat.)
BlocksWalked (BlocksWalked.txt)
| Variable | Type | Description |
|---|---|---|
event.blocks_walked |
number | Integer count of horizontal blocks walked since the last fire |
Default content:
Just walked {event.blocks_walked} blocks
The Range setting (right-click BlocksWalked to expand) is a min-max range. Each cycle picks a fresh random threshold within it; once you've walked that many horizontal blocks the line fires and a new threshold is rolled. Vertical movement (jumping, swimming up/down) is excluded, and per-tick deltas larger than 8 blocks are skipped so teleports / dimension changes / respawns don't immediately trigger the event.
BlockCount (BlockCount.txt)
| Variable | Type | Description |
|---|---|---|
event.block_count |
number | Integer count of blocks placed since the last fire |
Default content:
Just placed {event.block_count} blocks
The Range setting (right-click BlockCount to expand) is a min-max range. Each cycle picks a fresh random threshold within it; once you've placed that many blocks the line fires and a new threshold is rolled. Independent from BlockPlaced and does not roll against the Chance setting - every placement increments the counter.
Examples
Macro: report position to a friend
/msg Notch im at {player.pos} ({player.dimension}) hp {player.health}
Macro: low-hp panic
{player.health <= 5 ? "/msg admin help me hp " + player.health : ""}
When the expanded line is empty / whitespace, it's silently skipped and not sent. For the cyclic spammer this means the delay simply resets and the next attempt happens on the next tick cycle ("wait till next message"). For macros it just moves on to the next command line.
Spammer cyclic file (info.txt)
Each line is sent on the configured Delay:
hp {player.health}/{player.max_health} hunger {player.hunger} sat {player.saturation}
ping {ping}ms tps {server.tps}
inv: {inv.totems} totems, {inv.gapples} gapples, {inv.crystals} crystals
{player.dimension} @ {player.pos}
Event file: kill streak brag (TargetKilled.txt)
{event.name} got tapped from {event.target.distance} blocks ({event.pops} pops)
ez {event.name} im at {player.pos}
gg {event.name} - {event.target.health} hp left when you died
With Random off, these cycle in order. With Random on, one is picked at random per kill.
Event file: welcome new players (PlayerJoin.txt)
welcome {event.name}, you're number {server.player_count} on {server.address}
hi {event.name} im at {player.pos}
{event.name} just joined - say hi
Errors
When a line fails to compile or run, Boze prints a Starscript error in chat (red) including the calling source. The line is skipped silently and your spammer / macro continues with subsequent lines or the next event.
When a line is well-formed but exceeds the chat / command length limit, Boze prints a yellow warning identifying the file and line number, and skips it.