Why does 'on experience spawn' work before 'on fishing'?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Gravity_Fall

Member
Feb 26, 2017
4
0
1
33
Code:
on fishing:
    send "on fishing" to console

on exp spawn:
    set {_exp} to "%spawned exp%"
    {_exp} is not "0 xp"
    send "%{_exp}%" to console
 
on item spawn:
    send "on item spawn" to console


Code:
[00:57:45 INFO]: on fishing <- throw
[00:57:53 INFO]: on fishing       <- bite
[00:57:54 INFO]: 3 xp             <- catch (on exp spawn) - Why does it work first?
[00:57:54 INFO]: on fishing       <- catch (on fishing)
[00:57:54 INFO]: on item spawn    <- catch (on item spawn)


I am going to make a mini game using three kinds of events. But the 'on exp spawn' event works before 'on fishing'.
How can I adjust the priority of an event?

If I cancel an event while it's a catch, I don't drop the experience, but the 'on exp spawn' event shows the experience value.