#Detecting fire... anywhere.

1 messages · Page 1 of 1 (latest)

dense grotto
#

I literally made a discord account to ask this - I'm extremely new to Skript and I don't know what I'm missing here. An add-on? Something else?

My goal is to detect when fire is placed, anywhere, by anything. I am okay with not detecting pre-generated fire (like in the nether) because I'm pretty sure spawning that many markers would crash my game.

    spawn marker at block
on spread:
    if block is fire:
        spawn marker at block
on burn:
    spawn marker at block
    
on form of a fire:
    spawn marker at block

Thus far, it is detecting when players place fire, and when fire spreads, but it is missing entity created fire (such as by blaze fireballs, lightning strikes, or when a bed explodes, etc). It is also missing fire created by lava, for whatever reason.

Any help would be much appreciated.

molten birch
#

Great to see someone who is new to Discord and able to ask for help properly.
About fire created by lava, the On Ignition event might help you, but I haven't tested it. I'm not sure about the fireballs, lightning strikes or bed explosions though.

dense grotto
#

Thanks! On Ignition doesn't appear to be fixing it, unfortunately

frozen atlas
#

i know on combust: exists too

#

for blaze/ghasts, on projectile hit: and checking if the projectile is a fireball would probbaly work.

#

Not sure if there's an event for lightning, but on explode: would work for tnt/beds/respawn anchors

dense grotto