编辑怪物能力
动态数值
random:
">=15;;<23": 0.3
">=23": 0.6配置示例
# Web Trap
# The projectile launched by a monster with this ability will generate a temporary spider web upon landing.
enabled: true
placeholder: '{lang:power.web_arrow}'
apply-rules:
group: ranged_projectile
group-unique: true
weight: 5
match-entity:
equip:
main-hand:
material:
- bow
- crossbow
- trident
level-weight: 15~25
limit:
random:
">=15;;<23": 0.3
">=23": 0.6
cooldown:
">=15;;<22": 10
">=22": 5
on-projectile-hit:
abilities:
1:
type: delay
delay:
">=15;;<20": 20
">=20": -1
abilities:
1:
type: place_block
block: cobweb
duration: '{level} * 4'
2:
type: sound
sound: BLOCK_WOOL_PLACE
3:
type: particle
particle: BLOCK
count: 20
block: cobweb
4:
type: remove
on-shoot-bow:
abilities:
1:
type: mark
on-projectile-tick:
abilities:
1:
type: particle
particle: WHITE_ASH
count: 6
offset-x: 0.05
offset-y: 0.05
offset-z: 0.05能力触发事件
事件
触发实体
传递实体
目标实体
位置
事件配置
修改事件
on-shoot-bow
on-shoot-bowon_combust
on_combuston_damage
on_damageon_regain
on_regainon_melee_attack
on_melee_attackon_death
on_deathon-explode
on-explode触发条件
血量
on-combust
on-combuston-damage
on-damageon-regain
on-regainon-melee-attack
on-melee-attackon-explode
on-explode最后更新于