pack: v0.41.2 — rename Counting House to Exchange + fix click-refresh bug

bnstoolkit 0.8.1 -> 0.8.2.

Counting House -> Exchange (more intuitive naming).
- /bns open counthouse -> /bns open exchange
- screen title shown as "Exchange"
- Lang + docs updated

Click-doesn't-refresh-detail bug: ItemCell / BountyRow / PlotRow now
call getGui().refreshWidgets() after updating their static `selected`
field, so the detail sub-panel re-renders with the new selection.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Matt
2026-06-08 18:22:47 +00:00
parent 95a564c5e3
commit 93c68325fe
3 changed files with 12 additions and 12 deletions
+10 -10
View File
@@ -1,6 +1,6 @@
# Spawn building setup — wiring NPCs to bnstoolkit screens
How to give players access to the Counting House / Bounty Board / Plot
How to give players access to the Exchange / Bounty Board / Plot
Office / Civic Registrar via Easy NPC dialogue at spawn.
## Prerequisites (one-time, post-wipe)
@@ -19,7 +19,7 @@ your spawn town chunks via the FTB Chunks map (M key, left-click).
| Screen | Open command | What it does |
|---|---|---|
| Hub | `/bns open hub` | Status overview (tier, balance, bounties, plots) |
| Counting House | `/bns open counthouse` | Wealth exchange — sell diamonds/netherite/ancient debris for spurs |
| Exchange | `/bns open exchange` | Wealth exchange — sell diamonds/netherite/ancient debris for spurs |
| Bounty Board | `/bns open bounty` | Today's 5 bounties + accept/cancel/turn-in |
| Plot Office | `/bns open plot` | Buy / release plots |
| Civic Tier | `/bns open tier` | Pay spurs to upgrade tier |
@@ -29,7 +29,7 @@ your spawn town chunks via the FTB Chunks map (M key, left-click).
transactional — they should be gated behind an NPC at the relevant
spawn building.
## Per-building setup (Counting House example)
## Per-building setup (Exchange example)
Repeat for each of the 4 transactional buildings, varying just the
screen name and NPC name.
@@ -48,7 +48,7 @@ NPC.
Right-click the NPC → **Configuration** (or use the wrench).
- **Skin**: pick a fitting villager / human skin
- **Name**: "Counting House Clerk" (or whatever fits the building)
- **Name**: "Exchange Clerk" (or whatever fits the building)
- **Profession**: optional — purely cosmetic
### 3. Configure dialog
@@ -56,7 +56,7 @@ Right-click the NPC → **Configuration** (or use the wrench).
In the NPC config → **Dialog** tab.
Create a new STANDARD dialog. Suggested text:
> Welcome to the Counting House. We exchange diamonds, netherite, and
> Welcome to the Exchange. We exchange diamonds, netherite, and
> ancient debris for spurs deposited directly to your bank account.
> Care to make a trade?
@@ -64,7 +64,7 @@ Add a **Button** to this dialog:
- **Label**: "Open the exchange"
- **Type**: ACTION
- **Action**: COMMAND
- **Command**: `bns open counthouse`
- **Command**: `bns open exchange`
- **Execute as user**: ✅ (must be enabled)
- **Permission level**: 0 (no special permission needed)
- **Trailing action**: CLOSE_DIALOG (optional — closes the dialog after click)
@@ -78,14 +78,14 @@ In the NPC config → **Actions** tab:
- Action: **OPEN_DEFAULT_DIALOG**
Now when a player right-clicks the NPC, the dialog opens. Clicking
"Open the exchange" runs `/bns open counthouse` as that player and
the Counting House screen pops up.
"Open the exchange" runs `/bns open exchange` as that player and
the Exchange screen pops up.
## Building-to-screen mapping
| Building | NPC name suggestion | Open command |
|---|---|---|
| Counting House | Counting House Clerk | `bns open counthouse` |
| Exchange | Exchange Clerk | `bns open exchange` |
| Adventurer's Guild | Bounty Officer | `bns open bounty` |
| Plot Office | Plot Clerk | `bns open plot` |
| Civic Hall / Town Hall | Civic Registrar | `bns open tier` |
@@ -129,7 +129,7 @@ Each feature, where you'd manually test it before the wipe:
| Feature | How to test |
|---|---|
| Hub | Press B → see status panel with tier/cash/bank/total/bounties/plots |
| Counting House | `/bns open counthouse` → 4 items in grid (diamond, diamond_block, netherite_ingot, ancient_debris), inventory count badge bottom-right of each cell, fee + per-unit price in detail pane, Sell 1/16/64 buttons grey out when you don't have enough |
| Exchange | `/bns open exchange` → 4 items in grid (diamond, diamond_block, netherite_ingot, ancient_debris), inventory count badge bottom-right of each cell, fee + per-unit price in detail pane, Sell 1/16/64 buttons grey out when you don't have enough |
| Sell flow | `/give @s minecraft:diamond 64` → click diamond → Sell 16 → bank balance ticks up, sell button updates |
| Bounty Board | `/bns open bounty` → see today's pool, click a bounty for detail, accept, kill the targets, turn in |
| Plot Office | `/bns open plot` → see 3 default plots, buy p001 (tier 3+ required), check FTB Chunks map M — chunk should turn your team colour |