ModularRarity

ModularRarity

ModularShoot × RarityCore 整合模组

模组化稀有度

动态枪械稀有度 — 一个 ModularShoot × RarityCore 整合模组(1.21.1 / NeoForge)

ModularRarity 将 ModularShoot 的插件系统与 RarityCore 相连接:当插件安装在枪械上时,枪械的稀有度会随着插件的加成实时改变。

运作方式

  1. 枪械基础稀有度和插件稀有度加成均通过 extra_values 中的 modularrarity:rarity 键来声明。

  2. 在插件安装/卸载时,计算枪械及其插件中 modularrarity:rarity 的总和,并相应写入或移除稀有度控制组件。

前置要求

开发者指南

在 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