MagicPlugin icon indicating copy to clipboard operation
MagicPlugin copied to clipboard

Updated: ModifyBlock

Open lashiam opened this issue 5 months ago • 1 comments

I just updated; looks like armors work again, thank you!

-> ModifyBlock however does not.

lashiam avatar Aug 23 '25 13:08 lashiam

reflect:
    name: Reflect
    description: |-
     Create a Magic Wall of Blocks that Block Physical Attacks!
     Instructions
     To cast, press the corresponding number on your hotbar.
    inherit: false
    icon: turtle_scute{77}
    icon_disabled: turtle_scute{29}
    actions:
        alternate_up:
        - class: CheckMana
          require_mana_percentage: 0.25
          actions:
          - class: ChangeContext
            target_caster: true
            actions:
              - class: ModifyMana
                mana: -mana_max/4
          - class: ChangeContext
            target_caster: true
            actions:
              - class: Cast
                spell: healorb_light
        alternate_sneak:
        - class: CheckMana
          require_mana_percentage: 0.50
          actions:
          - class: ChangeContext
            target_caster: true
            actions:
              - class: ModifyMana
                mana: -mana_max/2
          - class: ChangeContext
            target_caster: true
            actions:
              - class: Cast
                spell: illusion
        cast:
        - class: ChangeContext
          target_caster: true
          actions:
          - class: Modifier
        - class: Disc
          actions:
          - class: PlayEffects
            effects: summon
          - class: ModifyBlock
    effects:
        summon:
          - location: target
            target_location: block_center
            use_block_location: true
            color_override: color
            effectlib:
              class: CubeEffect
              iterations: 1
              particle: dust_color_transition
              particle_size: 0.6
              edge_length: 1
              particles: 4
              color: color
              to_color: "#ff00ff"
              enable_rotation: false
        undo_block:
          - location: target
            use_block_location: true
            target_location: block_center
            particle: dust_color_transition
            particle_size: 1
            particles: 4
            particle_offset: 1
        cast:
        -  class: EffectSingle
           sound: magic.shield_boom
           sound_volume: 0.5
           location: origin
        -  sound: block_beacon_activate
           sound_pitch: 2
           sound_volume: 0.8
        -  location: source
           source_location: eyes
           sound: block_glass_break
           sound_pitch: 2
           sound_volume: 0.3
           relative_offset: 2.2,0,0
           effectlib:
             class: Modified
             duration: 400
             period: 1
             variable_a: $radius
             parameters:
               radius: "(t/i)*a*1.2 + 0.2"
             effect:
               class: Circle
               particle: nautilus
               orient: true
               whole_circle: true
               update_directions: false
               update_locations: false
               angular_velocity_x: 1
               angular_velocity_z: 0
               angular_velocity_y: 0
               z_rotation: 1.57
               particle_offset: 0.1,0.1,0.1
               particles: 10
               particle_count: 2
    parameters:
        radius: 3
        add_modifiers: reflective
        duration: 2500
        allow_max_range: true
        range: 3
        axis: z
        brush: "stained_glass"
        orient: true
        orient_snap: 45
        transparent: transparent_to_construction
        destructible: destructible_replace
        check_destructible: true
        brushcolor: false
        undo: 2500
        cooldown: "20000 / (1+dexterity*0.25)"
        cooldown_mage: 500
        breakable: 1
        reflect_chance: 1
        undo_speed: 8
        bypass_confusion: true
        bypass_backfire: true
    costs:
        mana: "10+(intelligence*0.05)"

lashiam avatar Aug 23 '25 13:08 lashiam