Want to find a mod or datapack that allows me to set commands to execute on a soft/hard sched.
So, Fabric 1.21.1 with Cobblemon 1.6.1
I want to find a mod or way to do this with datapacks. Essentially I wanna set up a command, or series of commands to be scheduled at certain intervals. This timer would have soft and hard intervals, meaning for example:
Zapdos Timer:
Commands:
/pokespawnat ~ ~ ~ zapdos
/[Insert command to make the mob persistant here, or spawn it with the appropriate data tag to make it persistent]
/broadcast [Create broadcast command to let players know it's spawned
A player catches the Zapdos
Soft Timer Duration: 1 Week
Hard Timer Duration: 1 Month
This means that the Zapdos will not spawn again within 1 week of being caught, however after 1 week, it has a chance to spawn any time between then, and a month from becoming able to do so. If it reaches the 1 month mark and hasn't spawned, it will spawn
Is there a way to accomplish this? The commands specifically I can figure out how to do later, more so specifically I want a way to set soft and hard timers to be able to execute a series of commands. Does anyone know of an existing mod with this functionality?
5 Replies
How is this being hosted? Several hosts have ways of scheduling commands to be run on the server itself.
It's hosted with pebblehost
PebbleHost Knowledgebase
How to set up scheduled tasks
How to make a command that runs every hour or every day. Can be used for automatic restarts, or for scheduled broadcasts.
My thing is it wouldn't be scheduled, it would be scheduled randomized; We'd need different ones to run at different times
So for instance, Pokemon is caught, then it sets a soft and a hard timer for it to respawn back in that location
you could create a function in a datapack and schedule it(warning most/if not all context of the initial run is lost when doing this)