Skript

Skript

743k Downloads

Triger "on explode" events with the "create explosion" effect

ScienceKit opened this issue ยท 0 comments

commented

Suggestion

Currently, the create explosion effect in regular skript doesn't trigger on explode events. An an optional part like [(create|make)] [an] explosion... ...[(with fire)] [that triggers events] could be a way to solve this. Alternatively just make all explosions trigger the on explode event. Another way would be to alter the "on explode" event's syntax to add an option to catch skript explosions:
[on] explo(d(e|ing)|sion) [of (tnt|fireball|creeper|code explosion)]

Why?

Creating game arenas, similar to Hypixel's bedwars and skywars, that require both having pre-placed blocks and blocks placed by the players, is simple enough. Still, when we add some custom code that creates explosions on the map, you wouldn't want the map to get destroyed, but only the player blocks. Easy enough, use the on explode and loop the exploded blocks, but the event isn't called for custom items. Currently, the only way to overcome this would be by summoning a primed TNT instead of the skript explosions. But this doesn't give you any control over the power.

Other

generally expanding the power of the on explode event as conceptualized in the suggestion to include more customizability, like only calling the event for a specific type of explosion.

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.