• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

MagicSpells/自定义法术

来自Minecraft插件百科
(重定向自MagicSpells:自定义法术
跳转至: 导航搜索

MagicSpells可以做任何样式的魔法。有些魔法称作为“额外”魔法,他们可以和别的魔法相互作用/触发。这个页面将举例出一些很棒的魔法。

炮塔

这个技能会召唤一个方块来对任何靠近的实体发射火焰。

turret:
    spell-class: ".targeted.PulserSpell"
    total-pulses: 50
    interval: 30
    max-distance: 30
    cap-per-player: 1
    block-type: diamond_block
    unbreakable: false
    only-count-on-success: false
    spells:
        - turret_aoe
    str-cast-self: You have summoned a turret!
    str-at-cap: You have too many turrets already.
    
turret_aoe:
    spell-class: ".targeted.AreaEffectSpell"
    horizontal-radius: 10
    vertical-radius: 5
    point-blank: true
    target-players: true
    fail-if-no-targets: false
    max-targets: 1
    spell-source-in-center: true
    spells:
        - turret_missile

turret_missile:
    spell-class: ".targeted.HomingMissileSpell"
    projectile-velocity: 4
    projectile-inertia: 0
    particle-name: flame
    particle-speed: 0
    particle-count: 25
    particle-horizontal-spread: 0.1
    particle-vertical-spread: 0.1
    y-offset: 1.2
    max-duration: 8
    target-players: true
    spell: turret_pain
    effects:
        - caster spawn
        - target particles flame 0.3 10 0 100 0
    
turret_pain:
    spell-class: ".targeted.PainSpell"
    damage: 1
    range: 100
    ignore-armor: false
    obey-los: true
    target-players: true
    check-plugins: true

爆裂魔法

这个法术发射一种移动很慢的抛射物,当落地时会攻击所有附近的目标。同样拥有很棒的效果。

burst:
    spell-class: ".instant.ParticleProjectileSpell"
    projectile-velocity: 6
    projectile-gravity: 0.25
    particle-name: magicCrit
    particle-speed: 0
    particle-count: 40
    particle-horizontal-spread: 0.2
    particle-vertical-spread: 0.2
    max-distance: 20
    hit-players: false
    hit-non-players: false
    hit-ground: true
    spell: burst_aoe
    
burst_aoe:
    spell-class: ".targeted.AreaEffectSpell"
    horizontal-radius: 10
    vertical-radius: 5
    point-blank: true
    target-players: true
    fail-if-no-targets: false
    max-targets: 10
    spell-source-in-center: true
    spells:
        - burst_pain
    effects:
        - special spawn
        - line particleline 0.5 magicCrit 0.1 0.1 0 20 0.8

burst_pain:
    spell-class: ".targeted.PainSpell"
    damage: 1
    range: 100
    ignore-armor: false
    obey-los: true
    target-players: true
    check-plugins: true