Add signed general cache destinations

This commit is contained in:
Tanner committed 2026-11-14 23:12:50 +00:00
1 parent 11c1bad0c4
commit 86fbf911a5
7 files changed
+305 -114

No files matched your search

+32 -8
View File
@@ -49,8 +49,8 @@ the next manual start, rather than triggering an automatic reconnect.
The 26.3 client now handles AuthMe, chat commands, chunk/world-state caching,
modern block/item/entity data, entity tracking, inventory/component sync,
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;
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
@@ -78,8 +78,10 @@ address is optional.
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.
horizontal side. If both a side-adjacent chest and a chest directly below
the sign are nearby, the side chest takes priority. Otherwise, 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`,
@@ -87,6 +89,8 @@ Each recognized line adds items to the chest's accepted categories:
- `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.
- `Oak Logs` (and labels such as `Spruce Logs`) — that tree's log family,
including stripped and wood forms, plus stems/hyphae where applicable.
- `Saplings` — all tree saplings and propagules in the current 26.3 data,
including the mangrove propagule.
@@ -100,6 +104,23 @@ Logs
Saplings
```
### General cache chests
To make a normal chest a general-purpose cache destination, put `cache` after
the bot or group name on its sign:
```
mosfet cache
mosfet1 cache
```
The sign can be on top of or attached to the chest, using the same chest
association rules as item labels. General cache chests within 105 blocks are
used only after all matching item-specific labeled chests, even if a general
chest is closer. Unmarked trapped chests are no longer discovered or used for
caching. If no signed destination is usable, Mosfet can still place a normal
chest from its inventory.
### Supply chests
Put the sign on top of or attach it to the supply chest, then address it with
@@ -122,12 +143,15 @@ sign:
```
mosfet1 throw Logs
mosfet throw Wheat Seeds
mosfet1 throw minecraft:oak_log
mosfet1 throw oak_log
mosfet1 throw Oak Logs
```
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
Category labels can target groups (`Logs`) or one tree family (`Oak Logs`). An
exact item name such as `oak_log` needs no `minecraft:` prefix; prefixed names
are also accepted. The exact item form matches only that item, while `Oak Logs` includes stripped
and wood forms for that species. Other multiword exact item names can be written
with spaces or underscores. 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.