Auto Quiz System
Smart Answer Detection
Reward System
Scoreboard & Ranking
Comprehensive Commands
/sr question (configurable permission)Easy Configuration
Internationalization (i18n)
sphinxriddle-x.x-NeoForge-1.21.x.jar from Releasesmods folderFor Players:
/sr question to manually start a new question (if allowed by config)For Admins:
# Reload configuration
/sr reload
# Add questions
/sr add question "What tool mines diamond?" "Iron Pickaxe"
# Add rewards with auto-completion
/sr add reward minecraft:diamond 5
# Manage rankings
/sr list ranking
/sr reset ranking
The mod uses NeoForge's configuration system with the following options:
| Setting | Default | Description |
|---|---|---|
questionInterval |
300 | Time between auto questions (seconds) |
questionTimeout |
60 | Time before question expires (seconds) |
autoQuestionEnabled |
true | Enable automatic questions |
allowManualQuestion |
true | Allow players to use /sr question |
showScoreboard |
true | Display scoreboard on client side |
questionPrefix |
"&6[问答]&r " | Prefix for question messages |
rewardMessage |
"&a恭喜 %player% 正确回答问题!获得奖励: %reward%" | Reward announcement message |
newQuestionMessage |
"&e新问题: %question% &e(输入答案到聊天框)" | New question announcement |
configReloadedMessage |
"&aSphinxRiddle 配置重载完成" | Config reload message |
The prompt information in the configuration file defaults to Chinese. If you need other languages, please modify the configuration file accordingly
questions.json - Question and answer pairsrewards.json - Reward items and maximum amountsscoreboard.json - Player scores and rankingsquestions.json:
[
{
"question": "What mob explodes in Minecraft?",
"answer": "Creeper"
}
]
rewards.json:
[
{
"itemId": "minecraft:diamond",
"maxAmount": 5
}
]
| Command | Description | Permission |
|---|---|---|
/sr question |
Start a new question | All players (if allowManualQuestion=true) or OP only |
| Command | Description | Permission |
|---|---|---|
/sr reload |
Reload configuration | OP (2) |
/sr add question <question> <answer> |
Add new question | OP (2) |
/sr add reward <item> <maxAmount> |
Add reward item | OP (2) |
/sr list question |
List all questions | OP (2) |
/sr list reward |
List all rewards | OP (2) |
/sr list ranking |
Show leaderboard | OP (2) |
/sr reset ranking |
Reset scores | OP (2) |
/sr remove question <question> |
Remove question | OP (2) |
/sr remove reward <item> |
Remove reward | OP (2) |
The mod supports multiple languages automatically based on the client's language setting:
The mod will automatically display text in the player's client language. If a language is not fully translated, it will fall back to English.
To add support for a new language:
assets/sphinxriddle/lang/ (e.g., fr_fr.json)en_us.jsonExample language file structure:
{
"sphinxriddle.command.help.title": "=== Commandes SphinxRiddle ===",
"sphinxriddle.command.help.question": "/sr question - Démarrer une nouvelle question"
// ... more translations
}
git clone https://github.com/SkyDreamLG/SphinxRiddle.git
cd SphinxRiddle
./gradlew build
The mod uses Minecraft's Component.translatable() system for all user-facing text. When adding new features:
en_us.json and zh_cn.json%s placeholders when neededExample:
// Instead of:
Component.literal("Configuration reloaded")
// Use:
Component.translatable("sphinxriddle.command.reload.success")
This project is licensed under the GNU LGPL 2.1 License - see the LICENSE file for details.
Note:
The scoreboard display and manual question commands can be disabled in the configuration file for server customization.
The prompt information in the configuration file defaults to Chinese. If you need other languages, please modify the configuration file accordingly