Reward Boxes by Karl Karlmann
This mod is a framework for reward chests. You can create custom chests with JSON configuration files. Features include custom textures, dynamic loot generation, timed player locks, and creative tab integration.
介绍
Reward Box Core – Technical Documentation
reward_box is a data-driven chest framework for Minecraft 1.20.1 (Forge). DataPacks control chest contents, textures, block-break drops, and player ownership locks.
1. Overview & Architecture
- Client/Server Separation: Server processes chest logic and loot generation. Client processes chest textures and 3D item rendering.
- Lazy Loot Generation: Loot generates only when a player opens the chest for the first time.
2. JSON Configuration
Store chest definitions in the following DataPack path:
data/<namespace>/reward_boxes/<box_name>.json
{
"box_id": "stones:resonance_box",
"texture": "stones:textures/entity/chest/resonance_chest.png",
"lock_duration_seconds": 300,
"break_drop_item": "minecraft:lapis_lazuli",
"break_drop_count": 1,
"guaranteed_items": [
{
"item": "minecraft:diamond",
"count": 2
}
],
"vanilla_loot_pools": [
{
"loot_table": "minecraft:chests/simple_dungeon",
"rolls": 3
}
]
}
Parameter Specification
| Key | Type | Description | Default |
|---|---|---|---|
box_id |
String | Unique identifier of the chest. | (Required) |
texture |
ResourceLocation | Path to the 64x64.png texture in mod resources. |
Default texture |
lock_duration_seconds |
Integer | Lock duration in seconds. Set to 0 to disable locks. |
300 |
break_drop_item |
ResourceLocation | Item ID dropped when the block is broken. | reward_box:reward_chest |
break_drop_count |
Integer | Quantity of items dropped when the block is broken. | 1 |
guaranteed_items |
Array | List of items that always generate in the chest. | [] |
vanilla_loot_pools |
Array | List of Vanilla loot tables to roll for chest loot. | [] |
###3. Mechanics & Permission System
-Player Lock: The BlockEntity saves player UUID and name on block placement. Other players receive an action bar message with remaining lock time.
-Admin Bypass: Players in Creative mode or with permission level 2+ can open locked chests at any time.
-Item NBT Data: Chest items read properties from NBT tags BoxId (String) and RewardTier (Integer).
-Creative Tab & JEI/EMI: The Creative Tab dynamically lists all loaded JSON configurations with example tiers.
常见问题
Reward Boxes by Karl Karlmann 支持哪些 Minecraft 版本?
Reward Boxes by Karl Karlmann 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Reward Boxes by Karl Karlmann 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Karl_Karlmann 的其他作品
查看全部 →[TaCZ] Warden & Sculk Gun Detection & Vibration Integration for Timeless and Classics Zero by Karl Karlmann
将 TACZ 枪械与监守者和幽匿感应系统连接起来。
[TaCZ] Timeless and Classics Zero Guns Stealth by Karl Karlmann Bridge by Karl Karlmann
修复这两个模组的部分兼容性问题,并让生物对枪声作出反应。
Occultism Relics Bridge by Karl Karlmann
连接 Relics 与 Occultism,全面改造物品获取方式。原本掉落的遗物会改为掉落部件。制作未觉醒的黄道神器,并举行恶魔仪式将灵体绑定其中。召唤恶魔的阶级将决定你的属性。
Book of Dragons Biomes o’ plenty fix by Karl Karlmann
修复了与超多生物群系一起使用时龙巢生成的问题
评论
登录后评论和评分