Commands in functions are not being ran in consistent order.
Commands do not seem to be running in the order specified in the functions and are arbitrarily ran.
Steps to reproduce:
- Download the Commands Out Of Order datapack
- Drag the zipped datapack into your datapacks folder of your world
- Set up a multiplayer game (tested in LAN)
- Have two people connect and then run the /reload command from chat
- Let each player kill the other for a while
- Be sure to have both players kill each other, not just one account killing the other.
You should be able to notice how the death/kill messages are mixed and not in the same order.
execute if score @s mg.deaths matches 1 run function mglib:entity/player/main/death execute if score @s mg.respawn matches 1.. run function mglib:entity/player/main/spawn_split_1 execute if score @s mg.mkills matches 1 run function mglib:entity/player/main/mob_kill execute if score @s mg.pkills matches 1 run function mglib:entity/player/main/player_kill
This is the player tick function: the death message should appear before the kill message does.
2018-07-20, 11:03 AM
2018-07-20, 06:18 PM
2018-07-20, 06:18 PM
2
2
-