Stargate Rewritten

Stargate Rewritten

241 Downloads

Advanced Event Management

Pheotis opened this issue ยท 3 comments

commented

Extension of problem found with #205

Currently, there are circumstances wherein an iris/frame may be broken without a reaction from the relevant stargate.
Any event causing such behaviour should be blocked by default, subject to checkPortalValidity and protectEntrance.

destroyOnExplosion should be kept in the main config (BlockExplodeEvent).
destroyOnFire should be moved to the specificProtectionOverrides

A hidden configuration override list should be available for advanced users wishing for portals to be breakable via specific events.

# Handling Example (Fires, Melting, and Freezing will break portals under this non-default config)
# (The specific protection overrides option will use the hidden configuration system)
specificProtectionOverrides:
  - BlockBurnEvent
  - BlockFadeEvent
  - BlockFormEvent

Events to deal with.

  • BlockBreakEvent
  • BlockPlaceEvent
  • BlockBurnEvent
  • BlockExplodeEvent
  • BlockFadeEvent
  • BlockFertilizeEvent
  • BlockFormEvent
  • BlockFromToEvent
  • BlockMultiPlaceEvent
  • BlockPhysicsEvent
  • BlockPistonRetractEvent
  • BlockPistonExtendEvent
  • EntityBlockFormEvent
  • LeavesDecayEvent
  • SpongeAbsorbEvent
  • EntityChangeBlockEvent
  • EntityBreakDoorEvent
  • PortalCreateEvent
  • EntityPlaceEvent
  • PlayerBucketEmptyEvent
  • BlockDispenseEvent
commented

Dispensers can break iris blocks.
Tested on 1.19 paper migrated from a knar instance.

image
[TMS 222179]

commented

Sponges can drain iris blocks.
SG fresh install on CB 1.19

[TMS 222176]
Evidence vault 5

commented

[TMS 222 194]
Events do not get cancelled if they target the iris, but not any blocks of the portal.
As such, assuming no frame blocks would break, explosions can break iris blocks.