Universal Daily Rewards

本次发布标志着对原版 daily-rewards-fabric 模组进行了彻底的演进和全面重构。该模组前身为 Cobbleverse Daily Rewards,4.0.0 版本引入了旨在适用于任何 Minecraft 服务器的通用架构。
Universal Daily Rewards 是一个完全独立、纯服务端运行的模组,提供高度可配置的奖励系统,支持原生本地化以及强大的模板引擎。
? 点击此处阅读完整更新日志
? 4.1.0 版本新增内容(用户界面大改版)
- ? 全新 GUI 重设计: 我们彻底升级了菜单布局!奖励现在以动态网格的形式精美展示,每页最多显示 28 天的奖励,为玩家提供更好的视觉进度感,同时完全保留了经典的多页支持以应对无限连续登录的情况。
- ? 自适应与响应式网格: 界面会自动缩放以适应服务器的配置!如果你设置了 7 天的奖励,它会将单行 7 个槽位居中显示。如果配置了 14 天,则会显示两行,并动态扩展至完整的 28 天网格。如果配置的天数超过 28 天?模组会自动为你生成额外的页面!
✨ 核心特性 (v4.0.0+)
- ? 100% 服务端运行: 无需安装客户端组件。基于 Polymer 构建。
- ? 原生本地化 (i18n): 使用 Server Translations API 自动适配玩家客户端的语言。
- 目前原生支持 英语、西班牙语(多种变体),现已新增 韩语。
- 其他语言将默认回退至英语。
- ? 欢迎贡献翻译: 如果您希望帮助将此模组翻译成您的语言,欢迎在 GitHub 上提交 Pull Request!
- ? 模板系统: 使用
/rewards-setup load 命令快速切换奖励集。它会自动检测放置在 config/rewards/templates/ 文件夹中的任何模板(包括您自定义的模板)。
- ? 循环连续登录: 一次性配置好每日奖励,系统将自动循环发放。
- ? 动态冷却时间: GUI 提示中实时显示“可用倒计时:X小时 Y分钟”。
- ?️ 远程访问: 玩家可以使用
/daily 命令打开奖励菜单(可在 global.json 中配置)。
- ⚙️ 通用 i18n 模板: 默认模板现在使用 Minecraft
translate 键,确保奖励名称在玩家的语言环境中正确本地化。
?️ 命令
玩家命令
/daily - 打开奖励选择菜单(如果在配置中启用)。
/rewards open - /daily 的别名。
管理员命令 (权限等级 2+)
/rewards-reload-<type>-config - 热重载特定配置文件。
/rewards-check <player> - 检查玩家的当前连续登录天数和在线时长统计。
/rewards-force-save - 立即强制将所有玩家数据保存到磁盘。
/rewards-reset <player> - 重置玩家的所有进度。
/rewards-setstreak <player> <days> - 调整每日登录连续天数。
/rewards-setplaytime <player> <seconds> - 调整追踪的在线时长。
/rewards-screen-entity <add|remove> <entity> - 将菜单绑定到实体 NPC。
设置命令 (权限等级 4)
/rewards-setup load <template> - 应用预设模板(vanilla, economy, cobbleverse)。
/rewards-setup allow-player-command <true|false> - 切换是否允许通过 /daily 进行远程访问。
⚙️ 配置与灵活性
该模组使用直观的 JSON 结构,赋予您在分发奖励方式上的完全自由。您可以选择两种主要方法(或混合使用):
1. 基于命令的奖励(推荐用于经济/虚拟物品)
适用于货币、权限或具有复杂 NBT 数据的自定义物品。系统在后台执行命令,并在 GUI 中使用可视化占位符。
- 设置
"give_item": false,使 GUI 物品仅作为视觉图标。
- 将您的命令添加到
"commands" 数组中。
2. 直接物理奖励
模组直接将 GUI 中显示的物理物品给予玩家。
- 设置
"give_item": true。
- 玩家将收到他们所见的确切物品(数量、附魔、名称、描述)。
配置示例
以下示例对比了 命令 vs. 直接 奖励(第 1 天)以及 文本 vs. 翻译 名称(第 2 天):
[
{
"day": 1,
"id": "day_1",
"commands": ["experience add %player% 500 points"],
"items": [
{
"item": "minecraft:experience_bottle",
"name": "{\"text\":\"500 XP Points (Command)\",\"color\":\"green\"}",
"amount": 1,
"give_item": false
},
{
"item": "minecraft:diamond",
"name": "{\"translate\":\"item.minecraft.diamond\",\"color\":\"aqua\"}",
"amount": 3,
"give_item": true
}
]
},
{
"day": 2,
"id": "day_2",
"items": [
{
"item": "minecraft:iron_sword",
"name": "{\"text\":\"Custom Slayer Sword\",\"color\":\"red\",\"bold\":true}",
"amount": 1,
"give_item": true
},
{
"item": "minecraft:golden_apple",
"name": "{\"translate\":\"item.minecraft.golden_apple\",\"color\":\"gold\"}",
"amount": 5,
"give_item": true
}
]
}
]
? 想查看更多完整示例?
您可以直接在 GitHub 仓库中浏览我们所有预设模板的完整代码。
? 浏览模板文件夹
? 创建自定义模板
您可以轻松创建自己的奖励预设。只要按照以下步骤操作,模组将自动检测到它们:
- 进入服务器的
config/rewards/templates/ 文件夹。
- 创建两个具有相同前缀的 JSON 文件:
yourname_daily.json(用于每日奖励)
yourname_playtime.json(用于在线时长奖励)
- 在游戏中使用
/rewards-setup load yourname 命令。模组将找到您的文件并立即应用!
? 致谢
本项目是 SmugTheKiler 的原始 Daily-Rewards-Fabric 的重构分支。非常感谢他们奠定了坚实的基础!
Universal Daily Rewards

This release marks a complete evolution and total overhaul from the original daily-rewards-fabric mod. Formerly known as Cobbleverse Daily Rewards, version 4.0.0 introduces a universal architecture designed for any Minecraft server.
Universal Daily Rewards is a 100% standalone, server-side mod that provides a highly configurable rewards system with native localization and a powerful template engine.
? Click here to read the full CHANGELOG
? What's New in Version 4.1.0 (UI Overhaul)
- ? Complete GUI Redesign: We've completely upgraded the menu layout! Rewards are now beautifully displayed in a dynamic grid of up to 28 days per page, offering a much better visual progression for your players while fully retaining the classic multi-page support for endless streaks.
- ? Adaptive & Responsive Grid: The interface automatically scales to fit your server's configuration! If you set up 7 days of rewards, it beautifully centers a single row of 7 slots. Configure 14 days, and it shows two rows, scaling dynamically up to a full 28-day grid. Got more than 28 days configured? The mod will automatically generate additional pages for you!
✨ Key Features (v4.0.0+)
- ? 100% Server-Side: No client-side installation required. Powered by Polymer.
- ? Native Localization (i18n): Automatically adapts to the player's client language using Server Translations API.
- Currently supports English, Spanish (multiple variants), and now Korean natively.
- Other languages will default to English.
- ? Contributions Welcome: If you'd like to help translate the mod into your language, feel free to open a Pull Request on our GitHub!
- ? Template System: Quickly switch between reward sets using the
/rewards-setup load command. It automatically detects any templates (including your own!) placed in the config/rewards/templates/ folder.
- ? Looping Streaks: Configure your daily rewards once and let them cycle automatically.
- ? Dynamic Cooldowns: Real-time "Available in: Xh Ym" timers in GUI tooltips.
- ?️ Remote Access: Players can open the rewards menu using
/daily (configurable in global.json).
- ⚙️ Universal i18n Templates: Default templates now use Minecraft
translate keys, ensuring rewards names are localized in the player's language.
?️ Commands
Player Commands
/daily - Opens the rewards selection menu (if enabled in config).
/rewards open - Alias for /daily.
Admin Commands (Permission Level 2+)
/rewards-reload-<type>-config - Hot-reload specific configurations.
/rewards-check <player> - Check current streak and playtime stats for a player.
/rewards-force-save - Forcefully save all player data to disk immediately.
/rewards-reset <player> - Reset all progress for a player.
/rewards-setstreak <player> <days> - Adjust daily login streak.
/rewards-setplaytime <player> <seconds> - Adjust tracked playtime.
/rewards-screen-entity <add|remove> <entity> - Bind the menu to physical NPCs.
Setup Commands (Permission Level 4)
/rewards-setup load <template> - Apply a pre-made template (vanilla, economy, cobbleverse).
/rewards-setup allow-player-command <true|false> - Toggle remote access via /daily.
⚙️ Configuration & Flexibility
The mod uses an intuitive JSON structure that offers total freedom in how you distribute rewards. You can choose between two main methods (or mix them):
1. Command-Based Rewards (Recommended for Economy/Virtual Items)
Ideal for currency, permissions, or custom items with complex NBT. You run a command in the background and use a visual placeholder in the GUI.
- Set
"give_item": false so the GUI item only acts as a visual icon.
- Add your commands to the
"commands" array.
2. Direct Physical Rewards
The mod directly gives the player the physical item shown in the GUI.
- Set
"give_item": true.
- The player will receive exactly what they see (amount, enchants, name, lore).
Configuration Example
The following example contrasts Command vs. Direct rewards (Day 1) and Text vs. Translate names (Day 2):
[
{
"day": 1,
"id": "day_1",
"commands": ["experience add %player% 500 points"],
"items": [
{
"item": "minecraft:experience_bottle",
"name": "{\"text\":\"500 XP Points (Command)\",\"color\":\"green\"}",
"amount": 1,
"give_item": false
},
{
"item": "minecraft:diamond",
"name": "{\"translate\":\"item.minecraft.diamond\",\"color\":\"aqua\"}",
"amount": 3,
"give_item": true
}
]
},
{
"day": 2,
"id": "day_2",
"items": [
{
"item": "minecraft:iron_sword",
"name": "{\"text\":\"Custom Slayer Sword\",\"color\":\"red\",\"bold\":true}",
"amount": 1,
"give_item": true
},
{
"item": "minecraft:golden_apple",
"name": "{\"translate\":\"item.minecraft.golden_apple\",\"color\":\"gold\"}",
"amount": 5,
"give_item": true
}
]
}
]
? Want to see more full examples?
You can explore the complete code for all our pre-made templates directly on our GitHub repository.
? Browse the Templates Folder
? Creating Custom Templates
You can easily create your own reward presets. The mod will automatically detect them as long as you follow these steps:
- Navigate to your server's
config/rewards/templates/ folder.
- Create two JSON files with the same prefix:
yourname_daily.json (for Daily Rewards)
yourname_playtime.json (for Playtime Rewards)
- Use the
/rewards-setup load yourname command in-game. The mod will find your files and apply them instantly!
? Credits
This project is an overhauled fork of the original Daily-Rewards-Fabric by SmugTheKiler. Huge thanks to them for laying the foundation!
评论 0
登录后参与评分
还没有评论,来抢沙发吧