#Functions are showing up

1 messages · Page 1 of 1 (latest)

zinc finch
#

I am trying to make a datapack for version 1.21 but a couple of the functions are not showing in game.
There are 2 files that are giving me trouble
They are as follows:
kick_all.mcfunction
execute as @a run kick @s

start_session

say After 20 minutes EVERYONE will be kicked to conserve resources.
tick sprint 28800s
schedule function voteafk:warn_kick_all 900s```

And the voteafk:warn_kick_all function does appear ingame.

Can anyone spot anything wrong here?
clear juniperBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1724039659:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

weak chasm
#

It's because kick and tick have a higher permission level than functions have, so trying to validate functions that contain such commands doesn't work.

Servers can increase the permission level of functions in the server.properties file, and then it'll validate and work correctly on the server, but you can't get them to validate or work in singleplayer without mods (I assume, I don't know if any such mods)

zinc finch
#

ok thankyou, that makes sense