vocab-craft-0.1.0.jar
Curse Maven Snippet
What's new
# Vocab Craft
Learn Japanese while you play Minecraft. Every so often the game stops you with a quick vocabulary
quiz. Answer in time, or pay for it.
- **Vocab challenge**: translate a word from the JLPT lists (N5 to N1). Fail and you **lose a heart**.
- **Item challenge**: name an item from your inventory in Japanese. Fail and you **lose the item**.
Both work in both directions: *"Say it in Japanese: water"* → `mizu` / `みず` / `水`, or
*"Say it in English: 水"* → `water`.
After every challenge the full answer is shown (`水 = mizu / water`), so even a miss teaches you something.
| Minecraft | 26.3 (Java Edition) |
| Loader | [Fabric](https://fabricmc.net/) 0.20.1 or newer + [Fabric API](https://modrinth.com/mod/fabric-api) |
| License | [MIT](LICENSE) |
## Installation
1. Install [Fabric Loader](https://fabricmc.net/use/installer/) for Minecraft 26.3.
2. Put these two jars in your `.minecraft/mods` folder:
- `vocab-craft-<version>.jar`
- [Fabric API](https://modrinth.com/mod/fabric-api) for 26.3
3. Start the game with the Fabric profile.</version>
**Multiplayer:** the mod must be on the **server**, which runs the quiz. Players should install it too, so
they get the quiz panel. Players without it still get the questions in chat.
## How to play
A challenge appears in a panel at the top of the screen, with a timer bar:
```
┃ [icon] SAY IT IN JAPANESE 12s
┃ water
┃ ███████████████░░░░░░░░░░░░░░░░
┃ > mizu_
```
Press **T** (chat), type your answer and press **Enter**. Your answer is hidden from chat. The game keeps
running while you think, so find a safe spot.
| Result | What happens |
|---|---|
| Correct | Green panel, the answer is shown |
| Wrong or too slow | Red panel, the answer is shown, and you pay the penalty |
| Vocab challenge failed | You lose one heart (armor does not help) |
| Item challenge failed | You lose the item, even if you moved it to another slot. Dropped it or put it in a chest? You lose a heart instead. |
No challenges happen in creative or spectator mode. Dying during a challenge cancels it with no penalty.
### What counts as a correct answer
Answers are compared by sound, not by exact spelling:
- **Japanese**: romaji, hiragana, katakana or kanji all work. `taberu`, `たべる`, `タベル` and `食べる` are
the same answer.
- Long vowels can be written any common way: `gakkou`, `gakkō` and `gakkoo` all match.
- Both romaji systems work: `shi`/`si`, `tsu`/`tu`, `fu`/`hu`, `ja`/`zya`, and `shinbun`/`shimbun`.
- Vowel length that changes the meaning still counts: `obasan` (aunt) is not `obaasan` (grandmother).
- **English**: capitals, punctuation and a leading *to*, *a*, *an* or *the* are ignored, so `eat` = `to eat`.
- **"Say it in English"** also accepts the reading: 食べる → `to eat` or `taberu`.
- **"Say it in Japanese"** accepts any word with the same meaning in your levels: "blue" → `ao` (青) or `aoi` (青い).
## Commands
All commands need operator rights. In singleplayer, that means a world with cheats enabled.
| Command | What it does |
|---|---|
| `/vocabcraft trigger` | Start a challenge now |
| `/vocabcraft vocab` | Start a vocab challenge now |
| `/vocabcraft item` | Start an item challenge now |
| `/vocabcraft decks` | List the word lists, ✓ = enabled |
| `/vocabcraft config` | Show the current settings |
| `/vocabcraft config levels n5 n4` | JLPT levels to be quizzed on |
| `/vocabcraft config decks <id> …`</id> | Word lists to be quizzed on, including your own |
| `/vocabcraft config interval 300` | Seconds between challenges |
| `/vocabcraft config interval 180 480` | A random time between 180 and 480 seconds |
| `/vocabcraft config timeLimit 20` | Seconds to answer |
| `/vocabcraft config showKana true` | Show the reading next to kanji: `食べる (たべる)` |
| `/vocabcraft config weights 30 70` | How often item vs. vocab challenges come up |
| `/vocabcraft config itemPenalty stack` | What you lose on a failed item challenge: `one` item, the whole `stack`, or `all` of that item |
| `/vocabcraft config itemNames curated` | `curated`: the built-in item list. `all`: also every game item, if you generated the file (see [Development](#development)). |
Changes are saved right away.
## Configuration
Settings live in `config/vocabcraft/config.json`. You can edit it by hand while the game is closed;
values out of range are corrected when the game starts.
| Setting | Default | Meaning |
|---|---|---|
| `minIntervalSeconds` / `maxIntervalSeconds` | `180` / `480` | Time between challenges: a random value in between (3–8 minutes) |
| `joinGraceSeconds` | `60` | Time before the first challenge after joining |
| `timeLimitSeconds` | `15` | Time to answer |
| `showKanaHint` | `false` | Show the kana reading next to kanji |
| `itemChallengeWeight` / `vocabChallengeWeight` | `50` / `50` | Chance of each challenge type |
| `itemPenaltyMode` | `STACK` | `ONE`, `STACK` or `ALL_OF_TYPE` |
| `itemNames` | `ALL` | `CURATED` or `ALL` |
| `enabledDecks` | `["jlpt_n5"]` | Word lists to draw from |
## Word lists
The built-in lists:
| Deck | Words |
|---|---|
| `jlpt_n5` | 675 |
| `jlpt_n4` | 633 |
| `jlpt_n3` | 2,137 |
| `jlpt_n2` | 1,736 |
| `jlpt_n1` | 2,652 |
With several decks enabled, a deck is picked at random first and then a word in it, so a small level
is not drowned out by a big one.
Item challenges use a hand-written list of 192 common items: tools, armor, food, blocks, materials and dyes.
### Your own word lists
Put a `.json` file in `config/vocabcraft/decks/`. The file name is the deck id:
```json
{
"title": "Food",
"words": [
{ "kanji": "寿司", "kana": "すし", "en": ["sushi"] },
{ "kana": "ラーメン", "en": ["ramen", "noodles"] },
{ "kanji": "足", "kana": "あし", "alt": ["脚"], "en": ["foot", "leg"] }
]
}
```
- `kana` and `en` are required. The first English meaning is the one asked.
- `kanji` is optional.
- `alt` lists other accepted spellings.
- `romaji` is optional; it is generated from the kana.
Then enable it with `/vocabcraft config decks food jlpt_n5`. A broken file is skipped and reported in
the game log instead of crashing the game.
## Development
You need JDK 25. Gradle picks it up automatically if it is installed.
| Command | What it does |
|---|---|
| `./gradlew runClient` | Start Minecraft with the mod (dev settings: `run/config/vocabcraft/`) |
| `./gradlew runServer` | Start a local dedicated server (set `eula=true` in `run/eula.txt` the first time) |
| `./gradlew test` | Run the unit tests |
| `./gradlew build` | Build the jar into `build/libs/` |
Data tools, in Python:
- `python tools/build_jlpt_decks.py`: rebuilds the JLPT decks from a pinned version of the source lists.
- `python tools/build_item_names.py`: generates the Japanese name of **every** game item into
`run/config/vocabcraft/items_vanilla.json`, for `itemNames all`. It needs `pip install -r tools/requirements.txt`.
- The names are Mojang's translations, so the file is **for personal use only** and is never bundled in the mod.
- To use it in your normal game, copy it to `.minecraft/config/vocabcraft/`.
The code is organized by feature under `src/main/java/com/ferhat/vocabcraft/`:
| Package | Contents |
|---|---|
| `challenge` | Scheduling, challenges, answer checking |
| `text` | Kana conversion and answer matching |
| `vocab` | Decks and item names |
| `penalty` | Heart and item penalties |
| `net` | Server → client packets |
| `client/hud` | The quiz panel |
The server decides everything; the client only shows the panel.
## Credits
The word lists come from community JLPT lists. See [CREDITS.md](CREDITS.md) for sources and licenses.
## License
[MIT](LICENSE) © 2026 Ferhat
This mod has no additional files