Fairy Commander — 注入命令的物品
Fairy Commander 是一款面向 Fabric 的工具模组,允许服务器管理员和创作者通过将命令和使用逻辑直接附加到物品的 NBT 数据上,将任意物品转化为功能性工具、魔法神器或临时通行证。
不再需要复杂的命令方块阵列或臃肿的插件——只需给物品打上印记并将其交给玩家即可。
核心功能
命令绑定
将任何控制台命令绑定到物品上。当玩家右键点击持有该物品时,将从玩家的位置执行该命令。支持在单个物品上绑定多个命令。
消耗次数
限制物品可以被使用的次数。
- 设置具体的使用次数。
- 选择物品耗尽后是消失,还是作为“已耗尽”的工具保留在背包中。
周期性充能
通过让物品随时间恢复次数,使你的神器更加强大。
- 设置充能周期(例如:每小时、每天或每周恢复 1 次)。
- 完美平衡强大的“有限使用”物品。
基于时间的自毁
创建临时通行证、试用物品或过期物品。
- 设置倒计时(以秒为单位)。
- 当时间耗尽时,无论是否被使用,物品都会自动从玩家的背包中消失。
命令指南
所有功能均通过 /commander 根命令进行管理:
/commander addCommand <command> — 将命令添加到手中的物品。输入命令时无需加引号,直接使用原始命令文本。
/commander addConsumable <uses> <deleteWhenZero: true/false> — 设置使用次数上限。
/commander addRechargeable <seconds> — 设置充能间隔。
/commander addTimeSelfDestroy <seconds> — 设置过期计时器。
实际应用场景
每日奖励代币
给予玩家一个可以保留并每 24 小时使用一次的物品,用于获取资源。
手持绿宝石。
/commander addCommand give @s gold_ingot 3
/commander addConsumable 1 false
/commander addRechargeable 86400
结果:一枚每天提供 3 个金锭的绿宝石。
VIP 传送卷轴(临时)
一张将玩家传送到主厅的卷轴,拥有 5 次使用机会,并在 3 天后过期。
手持纸张。
/commander addCommand tp @s 0 64 0
/commander addConsumable 5 true
/commander addTimeSelfDestroy 259200
结果:一张在使用 5 次或经过 3 天后会自动消失的传送卷轴。
视觉效果(支持国际化)
该模组提供详细且本地化的工具提示(支持英语和俄语),显示以下内容:
- 剩余可用次数。
- 距离下次充能的剩余时间。
- 自毁物品的过期倒计时。
Fairy Commander — Command-Infused Items
Fairy Commander is a utility mod for Fabric that allows server administrators and creators to turn any item into a functional tool, magical artifact, or temporary pass by attaching commands and usage logic directly to them via NBT.
No more complex command block arrays or heavy plugins — just brand an item and give it to a player.
Core Features
Command Binding
Bind any console command to an item. When a player right-clicks with the item, the command is executed from their position. Supports multiple commands on a single item.
Consumable Charges
Limit how many times an item can be used.
- Set a specific number of uses.
- Choose whether the item should vanish when empty or stay in the inventory as an "exhausted" tool.
Periodic Recharging
Make your artifacts even more powerful by allowing them to regain charges over time.
- Set a recharge period (e.g., 1 charge every hour, day, or week).
- Perfectly balances powerful "Limited-Use" items.
Time-Based Self-Destruction
Create temporary passes, trial items, or expiring items.
- Set a countdown timer (in seconds).
- The item automatically disappears from the player's inventory when time runs out, regardless of whether it was used.
Commands Guide
All features are managed via the /commander root command:
/commander addCommand <command> — Adds a command to the item in your hand. Enter the command without quotes, as plain raw command text.
/commander addConsumable <uses> <deleteWhenZero: true/false> — Sets the usage limit.
/commander addRechargeable <seconds> — Sets the recharge interval.
/commander addTimeSelfDestroy <seconds> — Sets the expiration timer.
Practical Use Cases
The Daily Reward Token
Give players an item they can keep and use once every 24 hours to get resources.
Hold an Emerald in hand.
/commander addCommand give @s gold_ingot 3
/commander addConsumable 1 false
/commander addRechargeable 86400
Result: An emerald that gives 3 gold every day.
VIP Teleportation Scroll (Temporary)
A scroll that teleports the player to a hub, has 5 uses, and expires in 3 days.
Hold Paper in hand.
/commander addCommand tp @s 0 64 0
/commander addConsumable 5 true
/commander addTimeSelfDestroy 259200
Result: A teleportation scroll that disappears after 5 uses or after 3 days have passed.
Visuals (I18n Supported)
The mod features detailed, localized tooltips (English and Russian supported) that show:
- Remaining charges.
- Time remaining until the next recharge.
- Expiration countdown for self-destructing items.
评论 0
登录后参与评分
还没有评论,来抢沙发吧