doudizhu_table

Fabric 1.21.1 port of doudizhu_table Stool Edition r119 by 大哈咕 (Bilibili https://b23.tv/bBjkUZ2 · NeoForge 1.21.1 https://pan.quark.cn/s/0dd61b0489a1). 3-4 players or bots, gold betting, ATM, Chinese voice lines.

doudizhu_table· Stool Edition — Fabric 1.21.1 Port

 

Changelog — v1.0.0

 

The Fabric 1.21.1 port of doudizhu_table Stool Edition r119. Original mod by 大哈咕 on Bilibili — https://b23.tv/bBjkUZ2 · NeoForge 1.21.1 download — https://pan.quark.cn/s/0dd61b0489a1 Requirements — Minecraft 1.21.1 · Fabric Loader 0.16.14+ · Fabric API 0.116.x · Java 21+

 

Highlights

 

New starting multiplier (1× / 2× / 4× / 8× / 16×) — feeds directly into the payout formula.

 

Redesigned lobby settings panel — game mode and starting multiplier are now single-button cyclers, and changing a setting no longer kicks you out of the panel.

 

Cards, buttons and the landlord crown now follow each player's real seat — no more hands fanned out on the wrong side of the table.

 

Fixed mirrored hand fans on the north side and missing deal animations on 3-player tables.

 

1. Lobby Settings Panel

 

Game mode is now a single button. The old panel showed three mode cards (Dou Dizhu / Not Implemented / Not Implemented); it is now one button showing the current mode. Clicking cycles to the next mode — only Dou Dizhu is implemented today, and future modes will be added to the cycle automatically.

 

Added "Starting Multiplier." Choose 1 / 2 / 4 / 8 / 16× with the same single-button cycling; the current value is shown on the button.

 

Panel title is now "Table Settings," laid out as: Mode → Starting Multiplier → Player Count → Back.

 

Settings no longer close the panel. Clicking Mode / Multiplier / Player Count only sends the config change and refreshes the panel in place (selection highlight and button text update live). Only Back or ESC returns to the lobby.

 

Permissions and timing: only the host can change settings, and only before a round starts. Once a round begins the buttons grey out with the hint "Cannot change mode / multiplier / player count after the round starts."

 

2. Starting Multiplier & Settlement

 

The starting multiplier is stored in the table's config (NBT-persistent, survives world reloads) and synced to every client in the snapshot.

 

Multiplier formula: Final = Bid × Starting Multiplier × Bomb/Rocket Doubling × Spring/Anti-Spring Doubling

 

During bidding the panel shows Bid × Starting Multiplier; that value becomes the base multiplier once the landlord is decided.

 

Example: 16× starting multiplier, 3-point bid, one bomb → 3 × 16 × 2 = **96×** payout.

 

Older saves without the field default to 1×; invalid values (e.g. 7) are corrected to 1× automatically.

 

3. Hands Follow the Player's Actual Seat

 

Fixed hands fanning out on the wrong side. Hands used to be placed by seat index (0 = South / 1 = West / 2 = East / 3 = North), but seat indices are assigned first-come-first-served — so your cards could appear on a side of the table you were not standing on.

 

Hand position is now decided by the player's real position around the table (relative to the table center). Card facing and the in-world action buttons (Play / Pass / Trustee, etc.) follow the same orientation.

 

Locked while playing: the side is computed once on join / leave / bot add or remove / player-count change / world load / round start, and does not move with the player mid-round.

 

No overlaps: bots and seats whose position cannot be determined prefer their own seat side and fall back to a free side if occupied; if two humans share one side, the second player is moved to a free side.

 

Fixed the mirrored north-side hand: on the north side the first card appeared on the right, the fan curled inward and the stacking order was inverted. The horizontal offset for the north side is now negated, so all four sides read the same (first card in the left hand, fan opening outward, rightmost card on top).

 

Fixed missing deal animations on 3-player tables: the old code picked seats with % 4, so on a 3-player table every fourth card was dealt without an animation. It now uses the actual player count and all 51 cards deal properly, keeping the original order (0 → 1 → 2 round-robin).

 

4. Landlord Crown

 

Crown position: the floating gold-block crown now follows the landlord's actual side (the same side as their hand) instead of hovering over an unrelated seat index.

 

4-player tables: the crown's visibility condition changed from "seat index < 3" to "< player count," so the crown shows on any seat.

 

The "Cards left: N" counter now uses the same real-side positioning.

 

5. Build History

 

BuildMain changeStarting MultiplierAdded 1/2/4/8/16× multiplier (five side-by-side buttons) + single-button mode switchingSingle-ButtonMultiplier switched to single-button cyclingDeal DirectionTried "deal starting from the player's side" (reverted to vanilla order per feedback)Settings PanelSettings buttons no longer close the panel; only Back / ESC exitsHand OrientationHands follow the player's actual seat and stay fixed (final requirement)Hand Orientation FixNorth-side fan / stacking mirror correctedCrown Fix (current)Crown and card counter follow real sides; 4-player crown visibility fixed

 

6. Behaviour Notes & Known Limitations

 

With several players at one table, each player's hand side is computed independently from their own position; the crown follows the landlord's side.

 

Sides are computed only at the moments listed above — walking around the table mid-round does not drag your hand with you (by design).

 

If two humans stand on the same side, the second is placed on a free side and may not match their exact position.

 

Dealing is played server-side for everyone in the original order — the port does not give each player a "deal from my own side" view.

 

Client-side rendering (fan, stacking, crown) has been verified against the code geometry and dependencies, but has not been confirmed with an actual graphical-client screenshot.

 

7. Technical Verification

 

Compile: built against real Minecraft 1.21.1 intermediary + Fabric API 0.116.17; every replaced class was compared method-by-method with the original — nothing lost.

 

Unit tests:

 

Side assignment: original mapping preserved with no players, correct side when a player stands there, auto-avoidance on same-side conflicts, and all 3-/4-player combinations resolve to distinct sides;

 

Hand offsets: South/West/East unchanged, north strictly negated, per-hand offset sum is 0, directions as expected;

 

Starting multiplier: 1/2/4/8/16 switching, save/load round-trip, old saves default to 1, invalid values corrected.

 

Link check: key classes load and link under the JVM (no VerifyError / NoClassDefFoundError).

 

Server smoke test: a dedicated Fabric 1.21.1 server loads the jar and starts cleanly (repeated Done output), with no mixin or class-verification errors.

 

Packaging integrity: 322 jar entries identical to the original; only 10 classes replaced; the original jar is untouched.

 

8. Installation

 

Drop doudizhu_table-Fabric-1.21.1-1.0.0.jar into your mods/ folder together with Fabric API, and launch with Java 21.

 

 

doudizhu_table Team

profile avatar
  • 1
    Projects
  • 30
    Downloads