主要特性:
? 将任意物品变为消耗品
你可以将任何物品——包括来自其他模组的物品——指定为可消耗的“抽奖物品”。
当玩家使用它时,该物品会触发以下命令:
/roll <pool>
这允许你完全自定义战利品、扭蛋物品、奖励箱、箱子、钥匙、代币等。
? 创建无限数量的奖池
奖池是一个由模组从中随机选择命令的自定义列表。
每个奖池可以包含任意数量的命令,例如:
给予物品
生成实体
执行服务器命令
施加效果
运行脚本
发放货币或代币
执行数据包函数
传送玩家
任何可以通过命令运行的操作
池中的每个命令都可以分配自定义的概率/权重。
示例:
50% 概率 → 给予普通奖励
30% 概率 → 给予非普通奖励
15% 概率 → 给予稀有奖励
5% 概率 → 给予传奇奖励
模组会根据你设置的权重自动随机选择一个命令执行。
免责声明
本模组借助 AI 辅助开发,以加快开发与测试进程。
我最初是为自己的 Cobble MMO 服务器而创建此模组,它在其中运行稳定可靠——我也意识到它可能对其他创作者同样有用。
Random Rolls 完全免费使用。
你可以将其包含在你的服务器、整合包或项目中,无任何限制。
修改它、扩展它、重新利用它——你可以随意使用它。
如果它能帮助你的社区或节省你的开发时间,那么它就完成了它的使命。
Main Features:
? Turn Any Item Into a Consumable
You can designate any item — including items from other mods — as a consumable “roll item.”
When the player uses it, the item triggers the command:
/roll <pool>
This allows full customization of loot items, gacha items, reward boxes, crates, keys, tokens, and more.
? Create Unlimited Roll Pools
A pool is a custom list of commands that the mod will choose from.
Each pool can contain as many commands as you want, such as:
Give items
Spawn entities
Run server commands
Apply effects
Trigger scripts
Grant money or tokens
Execute datapack functions
Teleport players
Anything that can be run as a command
? Weighted Random Outcomes
Every command inside a pool can be assigned a custom probability/weight.
Example:
50% chance → give a common reward
30% chance → give an uncommon reward
15% chance → give a rare reward
5% chance → give a legendary reward
The mod automatically picks one command at random according to the weights you set.
Disclaimer
This mod was created with the assistance of AI to speed up development and testing.
I built it originally for my own Cobble MMO server, where it has been running smoothly and reliably — and I realized it might be useful to other creators too.
Random Rolls is completely free to use.
You can include it in your server, modpack, or project without restrictions.
Modify it, expand it, repurpose it — do whatever you want with it.
If it helps your community or saves you development time, then it has done its job.
评论 0
登录后参与评分
还没有评论,来抢沙发吧