
ModularRarity
ModularShoot × RarityCore 整合模组
查看大图模组化稀有度
动态枪械稀有度 — 一个 ModularShoot × RarityCore 整合模组(1.21.1 / NeoForge)
ModularRarity 将 ModularShoot 的插件系统与 RarityCore 相连接:当插件安装在枪械上时,枪械的稀有度会随着插件的加成实时改变。
运作方式
枪械基础稀有度和插件稀有度加成均通过
extra_values中的modularrarity:rarity键来声明。在插件安装/卸载时,计算枪械及其插件中
modularrarity:rarity的总和,并相应写入或移除稀有度控制组件。
前置要求
- ModularShoot ≥ 0.1.3
- RarityCore ≥ 1211.14.5
开发者指南
在 ModularShoot 数据包定义中声明 extra_values 即可,无需编写代码:
{
"name": "lang:example.gun",
"texture": "modularshoot:textures/gun/example.png",
"stats": { ... },
"slots": { ... },
"extra_values": { "modularrarity:rarity": 3 }
}
未声明 = 0
常见问题
问题1:没有示例物品吗?
回答1:它们在 ModularShoot 里 — 去拿吧。
问题2:绑定了枪械或插件的原版物品能受益吗?
回答2:能。
许可证
MIT
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。