From afd4c524c20ad037a4562f2e507b7282400b0d52 Mon Sep 17 00:00:00 2001 From: Tanner Date: Sat, 14 Nov 2026 22:23:19 +0000 Subject: [PATCH] Update README with sign label info --- README.md | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 112 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 21c248b..f26f1ed 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ 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, and loiter/threat avoidance are migrated; other legacy -jobs remain unavailable until ported to protocol 777. +crop harvest/replant, tree harvesting/log farming, and loiter/threat avoidance +are migrated; other legacy jobs remain unavailable until ported to protocol 777. ## Requirements and setup @@ -52,9 +52,10 @@ path-following movement (`1goto x y z`), inventory draining (`1drain`), normal/trapped-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), and the crop harvest/replant loop (`1farm crops`), and death-screen respawning (`1respawn`). Other -inventory/window actions and resource-farming/trading jobs remain disabled -until their 26.3 packets are migrated. +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. The default server is `127.0.0.1`; set `SERVER` explicitly only when you intentionally want another server. @@ -64,6 +65,107 @@ intentionally want another server. [How to Grab Supplies](docs/grab_supplies.md) +## Signs + +The bot reads both the front and back of loaded signs. Use `!signs [distance]` +to inspect nearby text and coordinates; the default distance is 32 blocks. Sign +matching is case-insensitive. For bot-addressed signs, the first word must be +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. + +### Cache labels + +Put one or more item-category labels on a sign next to a chest. A standing +sign can be placed on top of the chest, or a wall sign can be attached to a +horizontal side. If no chest is in those positions, the nearest chest(s) +within two blocks are associated. Double chests are treated as one container. +Each recognized line adds items to the chest's accepted categories: + +- `Seeds` — `beetroot_seeds`, `melon_seeds`, `pumpkin_seeds`, + `torchflower_seeds`, `wheat_seeds`, and `pitcher_pod`. +- `Wheat` — wheat only; wheat seeds are not included. +- `Logs` — every log item in the current 26.3 data, including stripped logs, + wood, stems, and hyphae. +- `Saplings` — all tree saplings and propagules in the current 26.3 data, + including the mangrove propagule. + +Labels ignore case and surrounding spaces/colons. During a cache pass, labeled +chests within 105 blocks are considered for matching inventory items. For +example: + +``` +Seeds +Logs +Saplings +``` + +### Supply chests + +Put the sign on top of or attach it to the supply chest, then address it with +the bot or bot-group name followed by `supplies`: + +``` +mosfet1 supplies +``` + +The address and `supplies` may also be on separate sign lines. The bot searches +within 80 blocks and takes only supplies requested by its current job; the +sign itself does not specify item types. For example, the wood/log farming job +can use an addressed supply chest to obtain an axe. + +### Throw items at a sign + +A throw directive makes a cache pass drop matching inventory stacks near the +sign: + +``` +mosfet1 throw Logs +mosfet throw Wheat Seeds +mosfet1 throw minecraft:oak_log +``` + +The first form uses a category label (so `Logs` matches the whole log family); +the last form uses an exact item name. Multiword item names are joined with +underscores for lookup. The bot searches for a reachable, standable position +within three blocks with line of sight to the sign, then drops whole stacks of +the requested items. Use this only where dropping those items is intended. + +### Work-area boundaries + +A bot-addressed sign can limit where work targets are selected: + +``` +mosfet1 stay within 24 circle +mosfet stay within 12 squares +``` + +`stay within N` defaults to a circle if no shape is specified. `circle` uses +horizontal Euclidean distance; `square` or `squares` uses the maximum of the +horizontal X/Z offsets. Height does not count toward the limit. The first +non-empty line starts with the address; put one or more `stay within` rules on +that line or later lines. The nearest matching policy sign among loaded signs +is active, and multiple rules on it are all enforced. Work-target searches and +normal work destinations respect the boundary; support trips such as caching +or retrieving supplies have separate routing and return safeguards. + +### Safety refuges + +Mark a trusted refuge with the bot or group name followed by `safety` or +`refuge`: + +``` +mosfet1 safety +mosfet refuge +``` + +When the threat monitor detects a hostile while a job is active, it searches +for an addressed refuge within 80 blocks and flees to a reachable opening near +it. After reaching safety, the bot waits for tracked hostiles to leave its +40-block clearing radius, then waits 10 seconds before resuming the interrupted +job. While waiting, it may eat when hungry and use an existing bed within five +blocks when it is night or storming; refuge mode does not place a new bed. + ## Commands The command prefix character is the last character of the bot's name. For @@ -80,9 +182,10 @@ 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`. 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 +`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 components (names, damage, enchantments, book contents, and shulker contents) are decoded; unrecognized component types are marked partial rather than silently discarded. @@ -153,7 +256,7 @@ These will only run for the bot they are addressed to. Replace `1` with the last `1gather sand` - gathers sand from the world -`1farm wood` - farms wood from a certain area +`1farm logs` (or `1farm wood`) - farms trees and caches their logs `1farm sand` - farms sand from a certain area