以下是可供使用的描述:
Item Effects 添加了一个简单的命令,允许你将药水效果绑定到任意物品上。当你手持或穿戴该物品时,会自动获得相应效果——将其收起后,效果会在几秒内消失。
功能特性
- 将任意药水效果绑定到任意物品——剑、护甲、工具等均可
- 支持主手、副手以及全部 4 个护甲槽位
- 可在同一物品上叠加多种效果
- 效果存储在物品本身,重启后依然保留,且交易给其他玩家时也有效
- HUD 中显示效果图标,无粒子特效干扰
命令
所有命令均需操作者等级 2。
/itemeffect add minecraft:strength — 为手持物品添加力量 I
/itemeffect add minecraft:strength 1 — 为手持物品添加力量 II(0 = 等级 1,1 = 等级 2,最高至 10)
/itemeffect remove minecraft:strength — 移除特定效果
/itemeffect list — 列出手持物品上的所有效果
/itemeffect clear — 清除手持物品上的所有效果
所有效果名称均支持 Tab 补全。
使用场景
- 穿戴时提供速度或生命恢复的附魔护甲
- 手持时赋予力量的传奇之剑
- 施加虚弱效果的诅咒物品
要求
- Minecraft 26.1.2
- Fabric Loader 0.18.4+
- Fabric API
Here's a description you can use:
Item Effects adds a simple command that lets you bind potion effects to any item. When you hold or wear the item, you automatically receive the effect — put it away and it fades after a few seconds.
Features
Bind any potion effect to any item — sword, armor, tools, anything
Works in main hand, off hand, and all 4 armor slots
Stack multiple effects on the same item
Effects are stored on the item itself, so they survive restarts and work when traded to other players
Effect icon shows in the HUD, no particle clutter
Commands
All commands require operator level 2.
/itemeffect add minecraft:strength — add Strength I to the held item
/itemeffect add minecraft:strength 1 — add Strength II (0 = level 1, 1 = level 2, up to 10)
/itemeffect remove minecraft:strength — remove a specific effect
/itemeffect list — list all effects on the held item
/itemeffect clear — remove all effects from the held item
Tab completion is supported for all effect names.
Use Cases
Enchanted armor that grants speed or regeneration while worn
A legendary sword that gives strength when held
A cursed item that applies weakness
Requirements
Minecraft 26.1.2
Fabric Loader 0.18.4+
Fabric API
评论 0
登录后参与评分
还没有评论,来抢沙发吧