Can I have a series of commands automatically execute in the server on launch?

Hi! I am using Carpet to generate a Fake player in a specific spot in our server to keep it loaded at all times. Right now I have two command blocks connected to a button that I can press to execute the command manually. I was wondering if I can execute a series of commands automatically somehow on server startup.
2 Replies
Admincraft Meta
Admincraft Meta2mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by talonbytes#0
Cooleg
Cooleg2mo ago
You can define a function to run on load with a datapack

Did you find this page helpful?