#schedule a function & load load order
1 messages · Page 1 of 1 (latest)
Are you sure it is not loading? I'm think that the load function is just running before you/the chat is loaded and hence you can’t see the message
i understand, thank you
if you are still here cand you help me with something else?
is there a way to execute a command every 100 ticks? or something like that
Yea, the schedule command
Wait
So just schedule some:function 100t replace
so the "replace" makes it run again?
It is replace or append
Replace tells it "if there is a schedule for this command, replace it" and append tells it to run both
But note that it looses it's context, it is ran at the world spawn by the server, like the main and load functions
so I do this in load, not in tick?
Yea, you only want to schedule it once
sorry to waste your time, this is my first time trying to make a datapack
You can also schedule the function itself, in the scheduled function
schedule a function & load load order
so I should make a function containing the commands i want to run and put that in the schedule?
like, a custom one other than these
pack:load
schedule pack:slow_tick 100t replace
say loaded
pack:slow_tick
schedule pack:slow_tick 100t replace
say 100 ticks have passed
Yea, something like this
And pack:slow_tick is a new file - yea
slow_tick.mcfunction?
You can make as many functions as you want to - even in subfolders
I called it that, yea
You can call it how you feel like
and this is for java mc, just to make sure
Yes
ok, thanks
You can also take a look at other peoples data packs, there are many reasons to have many functions