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

Expose Explosion.BlockInteraction in EntityExplodeEvent and BlockExplodeEvent

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • bukkit/spigot-api

    • This server is running CraftBukkit version 4241-Spigot-0a642bd-9cd5a19 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • required by WorldGuard
    • Yes

      With the WindCharges some EntityExplodeEvents now trigger block changes instead of destroying.

      The class net.minecraft.world.level.Explosion has a new enum named BlockInteraction with the following states:

      • KEEP: No changes for blocks
      • DESTROY: Destroy blocks now
      • DESTROY_WITH_DECAY: Destroy blocks with a small delay
      • TRIGGER_BLOCK: Trigger a block change/update

      The EntityExplodeEvent and BlockExplodeEvent don't expose the enum so it's not possible to detect the actual damage to the world.

      Please add those information to the existing events. Thanks.

            Unassigned Unassigned
            Joo200 Joo200
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: