Trivia - 一个基于 Fabric 的问答与奖励插件
首次运行时,该插件将生成一个名为 Trivia 的文件夹,其中包含:
- 一个 "questions.json" 文件
- 一个 "rewards.json" 文件
- 一个 "messages.json" 文件
- 一个 "config.properties" 文件
问题和奖励被添加到“pools”(奖池)下,这可以被视为分类或“难度区间”。
消息可以通过配置文件("messages.json")进行编辑,并支持 MiniMessage。
答题间隔时间可以通过 "config.properties" 文件进行编辑。
每 10 分钟(可配置)会在聊天栏中发布一道测验题目,如果玩家在 2 分钟内未作答,则超时(可配置)。
如果玩家背包已满,或因其他原因插入物品失败,物品将被丢弃在玩家面前。
即将推出的功能
概率 - 概率将在奖池和单个问题/奖励上均可配置
Cobblemon 集成 - 使用 Cobblemon API 自动生成诸如“这只宝可梦是什么属性?”、“根据描述判断这是什么特性?”等问题
命令奖励 - 支持玩家名称占位符,使得箱子/宝可梦/领取方块等可以作为奖励发出
命令
/trivia reload [trivia.reload] - 重新加载所有配置文件(奖励、问题、间隔时间、消息)
/trivia interval (秒) [trivia.interval] - 设置问题之间的间隔时间
/trivia timeout (秒) [trivia.timeout] - 超过此秒数后,问题将被视为“超时”,无法再作答
/trivia start [trivia.startt] - 强制开始一场测验,用于测试问题/奖励
问题与奖励文件
首次运行时,这些文件应会自动生成,你可以在 /config/Trivia/ 目录下修改它们。
问题和奖励都位于“pools”(奖池)下,你可以将其视为分类或难度类型。“easy”(简单)奖池下的问题将发放来自“easy”奖池的奖励,但也可以用于宝可梦主题与我的世界主题的交叉问答。
请参阅 GitHub 获取配置示例
Trivia - A Fabric Question & Reward Plugin
On first run, the plugin will generate a Trivia folder with:
- A "questions.json" file
- A "rewards.json" file
- A "messages.json" file
- A "config.properties" file
Questions/Rewards are added under "pools", which could be treated as categories or "difficulty ranges".
Messages can be edited through the config ("messages.json"), with MiniMessage support.
Quiz timing can be edited through the "config.properties" file.
A quiz question will be put in chat every 10 minutes (configurable), and will time out if not answered in 2 minutes (configurable).
If a player's inventory is full, or inserting the item goes wrong for some other reason, it is dropped in front of them.
Upcoming Features
Probability - probabilities will be configurable both on pools & individual questions/rewards
Cobblemon Integration - use Cobblemon API to auto generate questions like "What type is this Pokemon", "What's the ability from this description" etc
Command Rewards - with player name placeholders, so crates/pokemon/claim blocks can be given as rewards
Commands
/trivia reload [trivia.reload] - reload all config files (rewards, questions, intervals, messages)
/trivia interval (seconds) [trivia.interval] - set the amount of time that should pass between questions
/trivia timeout (seconds) [trivia.timeout] - after this many seconds, the question is "timed out" and not answerable
/trivia start [trivia.startt] - force start a quiz, useful for testing questions/rewards
Questions & Rewards Files
On first run, these should be generated automatically, you can change them under /config/Trivia/
Both questions & rewards are under "pools", think of these as categories or difficulty types. Questions under the "easy" pool will give rewards from the "easy" pool, but the same could be done for Pokemon vs Minecraft trivia.
See GitHub for configuration examples
评论 0
登录后参与评分
还没有评论,来抢沙发吧