#Running functions on world init
1 messages · Page 1 of 1 (latest)
maybe i can help you
you want to run a specific function file?
ex score = 1 run fil1?
Yea pretty much
just place command block /function (file name)
you want to run a specific function file on a specific world?
i want to run a function file on any world that has the behavior pack when it is generated
If you have a general scoreboard for your stuff... something like settings make a fake player, called World_Init something like that.... add 0, check it score is zero, if it is, do your thing... add 1. when the score reaches a certain high number, reset to 1. It should never go back to zero.
How would I make a fake player?
Instead of scoreboard players add @a my_scoreboard 1 Replace the @a with a word. There you have your fake player
Try it out to see.. you can have a scoreboard for just Fake Players (Variables) to keep track of things. The new execute made it possible to work with them better and not rely on using players to keep timers and such