Skip to content

ArmorStandProjectile vanishes upon hit #1495

@NightScythe1

Description

@NightScythe1

The ArmorStandProjectile class appears to lose its attached armour stand upon contact with a block/entity. This isn't really an issue for most spells which do end when the projectile makes contact, but for other spells in which the projectile is intended to pass through multiple blocks or entities with hit_count, it is a bit of an issue. Here's an example spell:

MD_icicle:
  actions:
    cast:
    - class: ArmorStandProjectile
      armor_stand_invisible: false
      actions:
        - class: Damage
  effects:
    tick:
    - location: target
      particle: end_rod
      particle_offset_x: 0.01
      particle_offset_y: 0.01
      particle_offset_z: 0.01
  parameters:
    target: other
    range: 24
    velocity: 12
    damage: 1
    hit_count: 10

if you try casting this at an entity, you'll see that the armour stand vanishes upon making contact, but the projectile itself continues through the entity as intended (shown via the end rod particle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions