Port sand gathering to 26.3

This commit is contained in:
Tanner committed 2026-11-16 22:55:06 +00:00
1 parent f28269f71c
commit 3e8b95c895
9 files changed
+424 -158

No files matched your search

+28 -11
View File
@@ -6,8 +6,9 @@ versions are not supported.
The original bot included wood/sand/crop farming, villager trading, eating,
sleeping, and threat avoidance. On the current 26.3 runtime, path following,
crop harvest/replant, tree harvesting/log farming, and loiter/threat avoidance
are migrated; other legacy jobs remain unavailable until ported to protocol 777.
crop harvest/replant, tree harvesting/log farming, sand gathering/farming, and
loiter/threat avoidance are migrated; other legacy jobs remain unavailable
until ported to protocol 777.
## Requirements and setup
@@ -53,9 +54,10 @@ sign-directed item-specific and general chest caching (`1cache`, also run by
crop farming at the inventory threshold), bed sleeping (`1sleep`, or `1sleep new` to place a bed;
also run by crop farming at night), food use (`1eat`, also run as needed by
crop farming), the crop harvest/replant loop (`1farm crops`), tree/log farming
(`1farm logs`, with `1farm wood` as an alias), and death-screen respawning
(`1respawn`). Other inventory/window actions and resource-farming/trading jobs
remain disabled until their 26.3 packets are migrated.
(`1farm logs`, with `1farm wood` as an alias), sand gathering/farming
(`1gather sand`, `1farm sand`), and death-screen respawning (`1respawn`).
Other inventory/window actions and resource-farming/trading jobs remain disabled
until their 26.3 packets are migrated.
The default server is `127.0.0.1`; set `SERVER` explicitly only when you
intentionally want another server.
@@ -74,6 +76,21 @@ the bot's full name (for example, `mosfet1`) or its group name (for example,
`mosfet`, which addresses bots ending in `1`, `2`, or `3`). A colon after the
address is optional.
### Sand origin
Address a sign with `sand origin` to choose the search center for `1gather sand`
or `1farm sand`:
```
mosfet sand origin
```
The bot uses the nearest matching loaded sign within 200 blocks. A full bot
name such as `mosfet1` can be used instead of the group name. Sand is harvested
in safe 3x3x1 sections, clearing one section before moving to the next. If no
matching sign is found, the job keeps its previous loaded origin, or uses the
bot's current block position when no loaded origin is set.
### Cache labels
Put one or more item-category labels on a sign next to a chest. A standing
@@ -205,11 +222,11 @@ and all bots will run the command.
The current 26.3 command path handles public chat and direct messages, replying
in the same channel. Verified commands are `!ping`, `!pos`, `!dist`, `!loaded`,
`!info x y z`, `!inv` (basic slot/count data), `1cache`, `1drain`, `1eat`,
`1respawn`, `1sleep`, `1loiter`, addressed path movement such as `1goto x y z`, and
`1farm crops`, and `1farm logs` (also available as `1farm wood`). The command
catalog below is retained from the legacy bot; other inventory actions,
arbitrary block interaction, and the other farming/trading commands are not yet
available on 26.3. Common item
`1respawn`, `1sleep`, `1loiter`, addressed path movement such as `1goto x y z`,
`1farm crops`, `1farm logs` (also available as `1farm wood`), `1gather sand`,
and `1farm sand`. The command catalog below is retained from the legacy bot;
other inventory actions, arbitrary block interaction, and the other
farming/trading commands are not yet available on 26.3. Common item
components (names, damage, enchantments, book
contents, and shulker contents) are decoded; unrecognized component types are
marked partial rather than silently discarded.
@@ -282,7 +299,7 @@ These will only run for the bot they are addressed to. Replace `1` with the last
`1farm logs` (or `1farm wood`) - farms trees and caches their logs
`1farm sand` - farms sand from a certain area
`1farm sand` - gathers sand, first obtaining a shovel from a supply chest
`1farm wart` - farms netherwart from a certain area