物品涂层
一款允许将药水效果应用于武器、工具和盔甲的模组。效果会在攻击、破坏方块或受到伤害时触发。
主要功能
- 施加涂层:合成“物品 + 药水”或在背包中手持药水右键点击物品
- 移除涂层:手持牛奶桶右键点击物品以移除所有涂层
- 三种物品类型:武器(攻击时应用)、工具(配合反转诅咒在破坏方块时应用)、盔甲(受到伤害时应用)
- 两种效果类型:基于时间(按计时器过期)或基于命中次数(对于持续时间 ≤1s 的效果,在 N 次命中后过期以实现即时生效)
- 延长效果:重新施加相同效果可延长持续时间(基于时间:完整/1/4 持续时间;基于命中次数:+1 次命中)
- 战利品涂层:战利品箱中的物品有 8% 的几率生成带涂层的物品(1% 几率生成涂层诅咒)
- Better Combat 支持:兼容双持和副手攻击
附魔
| 附魔 |
最高等级 |
效果 |
| 涂层容量 |
III |
每级增加 1 个涂层槽位(基础 1,最大 4) |
| 涂层保护 |
V |
延长持续时间:+5秒 + 20% × 2 × 等级(时间)或 +1 + 2 × 等级 命中次数 |
| 涂层强度 |
III |
每附魔等级增加 1 级效果等级 |
| 涂层诅咒 |
I |
防止施加涂层(诅咒) |
| 反转诅咒 |
I |
反转效果应用对象(极稀有宝藏) |
| 永恒诅咒 |
I |
使涂层无限且无法移除(极稀有宝藏) |
物品类型
武器
- 触发条件:攻击时
- 目标:敌人获得效果
- 带有反转诅咒:持有者获得效果
工具
- 触发条件:破坏方块时(需要反转诅咒)
- 目标:玩家获得效果(仅在有反转诅咒时生效)
- 无反转诅咒:无效果(方块无法接收效果)
- 注意:斧头被视为武器,而非工具
盔甲
- 触发条件:受到伤害时
- 目标:攻击者获得效果
- 带有反转诅咒:穿戴者获得效果
- 全套模式:可选配置,要求所有 4 件装备具有相同的效果
诅咒
反转诅咒
- 效果:反转谁接收涂层效果
- 武器:效果应用于持有者而非目标
- 工具:破坏方块时效果应用于玩家
- 盔甲:效果应用于穿戴者而非攻击者
- 稀有度:极稀有(正常诅咒几率的 1%)
永恒诅咒
- 效果:涂层变为无限且无法移除
- 涂层永不过期(无持续时间/命中次数倒计时)
- 牛奶桶无法移除涂层
- 如果容量允许,仍可添加新涂层
- 稀有度:极稀有(正常诅咒几率的 1%)
视觉效果
- 粒子效果:涂层物品周围显示彩色粒子(可配置)
- 工具提示:实时计时器/命中计数器、效果图标,按住 Shift 显示描述
工作原理
施加涂层
- 合成:物品 + 药水(s) → 涂层物品 + 空瓶
- 快速施加:手持药水 → 右键点击物品 → 瞬间涂层
- 适用于任何容器:玩家背包、箱子、潜影盒等
机制
- 基于时间(>1s 药水):显示“中毒 II (1:23)”,按计时器过期
- 基于命中次数(≤1s 药水):显示“力量 II (3 次命中)”,每次使用过期
- 触发时:
- 武器:攻击时应用 3 秒(时间)或 1 秒(命中次数)效果
- 工具:破坏方块时应用 1 秒(时间)或 1 秒(命中次数)效果(需反转诅咒)
- 盔甲:受到伤害时应用 3 秒(时间)或 1 秒(命中次数)效果
- 延长:
- 基于时间:相同等级 = 完整持续时间,不同等级 = 1/4 持续时间
- 基于命中次数:每瓶药水 +1 次命中(无论等级如何)
盔甲全套模式
可选配置项 armorCoating.requireFullSet:
- 禁用(默认):每件盔甲独立工作
- 启用:仅当所有 4 件装备具有相同效果时才应用效果
配置
完全可通过 config/itemcoating/itemcoating.toml 自定义:
战利品设置
[loot]
coatingChance = 0.08 # 8% 几率生成涂层/诅咒
curseChance = 0.01 # 1% 几率生成诅咒而非涂层
minAmplifier = 0
maxAmplifier = 1
effectBlacklist = ["minecraft:bad_omen"]
武器涂层设置
[coating]
effectBlacklist = ["minecraft:bad_omen"]
weaponBlacklist = []
appliedEffectDurationHitBased = 1.0 # 秒
appliedEffectDurationTimeBased = 3.0 # 秒
工具涂层设置
[toolCoating]
enabled = true
applyOnBlockBreak = true
effectBlacklist = ["minecraft:bad_omen"]
toolBlacklist = []
appliedEffectDurationHitBased = 1.0 # 秒
appliedEffectDurationTimeBased = 3.0 # 秒
盔甲涂层设置
[armorCoating]
requireFullSet = false
effectBlacklist = ["minecraft:bad_omen"]
armorBlacklist = []
appliedEffectDurationHitBased = 1.0 # 秒
appliedEffectDurationTimeBased = 3.0 # 秒
粒子设置
[particles]
enable = true
interval = 8 # 粒子之间的刻数间隔
spread = 0.2
velocity = 0.01
showInOffhand = true
cycleColors = true
附魔设置
[enchantments.capacity]
enabled = true
maxLevel = 3
slotsFormula = "1 + {level}"
minPower = 1
maxPower = 51
availableInBooks = true
availableInTable = true
[enchantments.inversion]
enabled = true
minPower = 80
maxPower = 100
availableInBooks = false
availableInTable = false
lootChanceMultiplier = 0.01 # 稀有度为正常的 100 倍
[enchantments.permanence]
enabled = true
minPower = 80
maxPower = 100
availableInBooks = false
availableInTable = false
lootChanceMultiplier = 0.01 # 稀有度为正常的 100 倍
effectBlacklist = ["minecraft:instant_health", "minecraft:instant_damage"]
游戏内配置
- Fabric:通过 Mod Menu 访问
- Forge:通过模组配置菜单访问
- 无需重启游戏即可编辑所有设置
- 需要 Fzzy Config(作为依赖项包含在内)
兼容性
- Minecraft:1.20.1
- Architectury:跨平台(支持 Fabric 和 Forge)
- Better Combat:完全支持双持和副手
- 兼容:任何使用标准 Minecraft 药水效果的模组
相关模组
替代实现
如果您正在寻找类似功能,请查看:
许可证
本模组采用 MIT 许可证授权。
Item Coating
A mod that allows applying potion effects to weapons, tools, and armor. Effects trigger on attack, block break, or when taking damage.
Key Features
- Apply Coatings: Craft item + potion OR grab potion and right-click item in inventory
- Remove Coatings: Grab milk bucket and right-click item to remove all coatings
- Three Item Types: Weapons (apply on attack), Tools (apply on block break with Inversion), Armor (apply when taking damage)
- Two Effect Types: Time-based (expire by timer) or Hit-based (expire after N hits for instant effects ≤1s)
- Extend Effects: Reapply same effect to extend (time-based: full/1/4 duration, hit-based: +1 hit)
- Loot Coatings: 8% chance for items in loot chests to spawn with coatings (1% chance for Coating Curse instead)
- Better Combat Support: Works with dual wield and offhand attacks
Enchantments
| Enchantment |
Max Level |
Effect |
| Coating Capacity |
III |
+1 coating slot per level (base 1, max 4) |
| Coating Preservation |
V |
Extends duration: +5s + 20% × 2 × level (time) or +1 + 2 × level hits |
| Coating Potency |
III |
+1 effect level per enchantment level |
| Coating Curse |
I |
Prevents applying coatings (curse) |
| Curse of Inversion |
I |
Inverts effect application (extremely rare treasure) |
| Curse of Permanence |
I |
Makes coatings infinite and unremovable (extremely rare treasure) |
Item Types
Weapons
- Trigger: On attack
- Target: Enemy receives effect
- With Inversion: Wielder receives effect
Tools
- Trigger: On block break (requires Inversion curse)
- Target: Player receives effect (only with Inversion)
- Without Inversion: No effect (blocks can't receive effects)
- Note: Axes are treated as weapons, not tools
Armor
- Trigger: When taking damage
- Target: Attacker receives effect
- With Inversion: Wearer receives effect
- Full Set Mode: Optional config to require all 4 pieces with same effect
Curses
Curse of Inversion
- Effect: Inverts who receives the coating effect
- Weapons: Effects apply to wielder instead of target
- Tools: Effects apply to player when breaking blocks
- Armor: Effects apply to wearer instead of attacker
- Rarity: Extremely rare (1% of normal curse chance)
Curse of Permanence
- Effect: Coatings become infinite and cannot be removed
- Coatings never expire (no duration/hit countdown)
- Milk bucket cannot remove coatings
- Can still add new coatings if capacity allows
- Rarity: Extremely rare (1% of normal curse chance)
Visual Effects
- Particles: Colored particles around coated items (configurable)
- Tooltip: Real-time timer/hit counter, effect icons, Shift for descriptions
How It Works
Applying Coatings
- Crafting: Item + potion(s) → coated item + empty bottles
- Quick Apply: Grab potion → right-click item → instant coating
- Works in any inventory: Player, chest, shulker box, etc.
Mechanics
- Time-based (>1s potions): Shows "Poison II (1:23)", expires by timer
- Hit-based (≤1s potions): Shows "Strength II (3 hits)", expires per use
- On Trigger:
- Weapons: Applies effect for 3s (time) or 1s (hit) on attack
- Tools: Applies effect for 1s (time) or 1s (hit) on block break (with Inversion)
- Armor: Applies effect for 3s (time) or 1s (hit) when taking damage
- Extension:
- Time-based: Same level = full duration, different level = 1/4 duration
- Hit-based: +1 hit per potion (regardless of level)
Armor Full Set Mode
Optional config setting armorCoating.requireFullSet:
- Disabled (default): Each armor piece works independently
- Enabled: Effects only apply if all 4 pieces have the same effect
Configuration
Fully customizable via config/itemcoating/itemcoating.toml:
Loot Settings
[loot]
coatingChance = 0.08 # 8% chance for coating/curse
curseChance = 0.01 # 1% chance for curse instead of coating
minAmplifier = 0
maxAmplifier = 1
effectBlacklist = ["minecraft:bad_omen"]
Weapon Coating Settings
[coating]
effectBlacklist = ["minecraft:bad_omen"]
weaponBlacklist = []
appliedEffectDurationHitBased = 1.0 # seconds
appliedEffectDurationTimeBased = 3.0 # seconds
Tool Coating Settings
[toolCoating]
enabled = true
applyOnBlockBreak = true
effectBlacklist = ["minecraft:bad_omen"]
toolBlacklist = []
appliedEffectDurationHitBased = 1.0 # seconds
appliedEffectDurationTimeBased = 3.0 # seconds
Armor Coating Settings
[armorCoating]
requireFullSet = false
effectBlacklist = ["minecraft:bad_omen"]
armorBlacklist = []
appliedEffectDurationHitBased = 1.0 # seconds
appliedEffectDurationTimeBased = 3.0 # seconds
Particle Settings
[particles]
enable = true
interval = 8 # ticks between particles
spread = 0.2
velocity = 0.01
showInOffhand = true
cycleColors = true
Enchantment Settings
[enchantments.capacity]
enabled = true
maxLevel = 3
slotsFormula = "1 + {level}"
minPower = 1
maxPower = 51
availableInBooks = true
availableInTable = true
[enchantments.inversion]
enabled = true
minPower = 80
maxPower = 100
availableInBooks = false
availableInTable = false
lootChanceMultiplier = 0.01 # 100x rarer
[enchantments.permanence]
enabled = true
minPower = 80
maxPower = 100
availableInBooks = false
availableInTable = false
lootChanceMultiplier = 0.01 # 100x rarer
effectBlacklist = ["minecraft:instant_health", "minecraft:instant_damage"]
In-Game Configuration
- Fabric: Access via Mod Menu
- Forge: Access via mod configuration menu
- Edit all settings without restarting the game
- Requires Fzzy Config (included as dependency)
Compatibility
- Minecraft: 1.20.1
- Architectury: Cross-platform (Fabric & Forge)
- Better Combat: Full dual wield and offhand support
- Works with: Any mod using standard Minecraft potion effects
Related Mods
Alternative Implementations
If you're looking for similar functionality, check out:
- Coated Blades – A datapack/mod for Minecraft 1.21+ with comparable coating mechanics~~~~
License
This mod is licensed under MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧