--- description: Crafting station slots never hold items — bag-only until craft/brew succeeds; UI is presentation. alwaysApply: true --- # Station slots are never real inventory For **all current and future** crafting stations where the player appears to put something “in” the station (furnace, anvil, cauldron, tailor, loom, benches, ovens, …): Items **do not leave the bag** into the station. Even when the UI looks like materials sit in station slots, that is **client-side presentation / soft claim only**. The server must not treat a station or tile as an item container for those mats. ## Hard rules - Station/cauldron/bench “slots” are a **view or reservation over the bag**, not a second inventory. - Materials are **consumed only when the craft/brew successfully completes** (same moment the product is created). - Closing the UI, cancelling, clearing, script stop, logout, or **death mid-craft/brew** must **not** destroy reserved mats. - Station progress/session state is **per player**, never shared on the tile — players cannot take each other’s “station contents.” - On the finishing intent (`craft` complete, `bottle`, `create-dye`, …), the server **validates the bag** and then consumes; it does not trust client slot UI as ownership of items. ## Forbidden ```text # ❌ BAD — take from bag into station/session on insert or open onInsert(herb) { takeFromBag(herb); session.brew.push(herb); } onClose() { /* mats already gone, no refund */ } # ❌ BAD — tile-global station inventory world.tileStations[x][y].slots = [...] ``` ## Required pattern ```text # ✅ GOOD — client shows slots; server soft-tracks steps/claims only onInsert(herb) { assertBagHas(herb); session.pendingClaims.push(herb); /* bag unchanged */ } onBottle() { assertBagHas(claims); takeFromBag(claims + bottles); grantProduct(); } onCloseOrDeath() { clearSession(); /* bag untouched */ } ``` Recipe-only stations (no insert UI) already match this if they only deduct on successful craft completion. When adding a new station with “put items in,” default to **client-side slot UI + server bag check on commit** — never a real station inventory.