Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6685

EntityDamageByBlockEvent not triggering when burning armor stands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3208-Spigot-18c71bf-97f629b (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
    • Yes

      When burning an armor stand, the EntityDamageByBlockEvent isn't being triggered.

      Expected behaviour is that the event should trigger, as EntityDamageBy events trigger for armor stands on all other causes of destruction.

      This event is necessary, as the inventory data is already wiped in the world by the time the EntityDeathEvent triggers.

      Replication:

      1. Place an armor stand.
      2. Use flint and steel, and place fire at the base
      3. Armor stand is destroyed, event isn't triggered.

      Code:

      @EventHandler(priority = EventPriority.MONITOR)
      protected void onEntityDamageByBlock(EntityDamageByBlockEvent event) {
          Entity entity = event.getEntity();
          if (entity instanceof ArmorStand) {
              System.out.println("Armor Stand Damaged by Block");
          }
      }
      

       

      Thanks! 

            Unassigned Unassigned
            Intelli Intelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: