
Villager Chess
Play chess against villagers! A Play Chess button on the trade screen starts a full game - their skill scales with trading level, from Novice pushover to near-unbeatable Master.
- Загрузки
- 139
- Подписчики
- 2
- Обновлён
- 26 июля 2026 г.
- Лицензия
- MIT
Опубликован 26 июля 2026 г.
♞ Villager Chess
Ever wondered if that Master-level librarian is actually smart? Challenge them to chess and find out.
Open any villager's trade screen and hit Play Chess. A full chess board opens right there - no items, no commands, no setup. You always play White.
How strong are they?
A villager's trading level sets its chess strength:
| Villager level | Chess strength |
|---|---|
| Novice | Hangs pieces, misses mates |
| Apprentice | Punishes only blatant blunders |
| Journeyman | Solid club beginner |
| Expert | Strong; rarely errs |
| Master | Near-unbeatable |
So a fresh Novice is a free win - but if you want a real fight, go trade one up to Master first.
How to play
- Click a piece, then click one of its highlighted squares.
- Pawns reaching the last rank open a promotion picker.
- Full rules are enforced: castling, en passant, threefold repetition, the 50-move rule, and insufficient-material draws.
- Resign with the button, or just close the board. Walking more than 16 blocks away, the villager dying, or disconnecting abandons the game.
- No stakes, no rewards - just for fun (and bragging rights).
Under the hood
- A from-scratch pure-Java chess engine: 0x88 board, full move legality, Zobrist hashing - move generation verified against perft reference counts.
- Search: negamax with alpha-beta pruning, iterative deepening, and quiescence search, running on a background thread so the server never stutters.
- Fully server-authoritative: the server owns all game state; clients only send move attempts. No cheating with a modified client.
Compatibility
Plays nicely with the other Villager Games mods - the trade-screen buttons stack instead of overlapping.
Requirements
- Minecraft 26.2
- Fabric Loader ≥ 0.19.3 + Fabric API
- Java 25
- Install on both client and server (works in singleplayer out of the box)
Ченджлог
0.1.1Релиз26.2 · 26 июля 2026 г.
First public release.
Added
- Play Chess button on every villager's trade screen - challenge any villager to a full game of chess (you play White).
- Difficulty scales with the villager's trading level: Novice (hangs pieces) → Apprentice → Journeyman → Expert → Master (near-unbeatable).
- Full chess rules: castling, en passant, pawn promotion with a piece picker, threefold repetition, 50-move rule, and insufficient-material draws.
- Click-to-move board UI with legal-move highlights, check indicator, and Resign/Close buttons.
- Abandon handling: walking more than 16 blocks away, the villager dying, or disconnecting abandons the game; closing the board resigns.
- From-scratch chess engine (negamax + alpha-beta + iterative deepening + quiescence search) running on a background thread; move generation is perft-verified.
- Fully server-authoritative: the server owns all game state; clients only send move attempts.
Fixed
- The Play Chess button now stacks below other Villager Games mods' trade-screen buttons instead of landing on the same pixel. With only this mod installed the button is exactly where it was.
Комментарии
Загружаем…