Hi, I’m trying to make a datapack for Cobblemon where wild Pokémon get cleared when the world changes from day to night and night to day. The function I created works perfectly, but only when I run it manually. I need it to happen automatically.
I already tried setting up tick.json and load.json and made a system to detect the time change, but it’s still not working properly. It just won’t trigger on its own.
If anyone can help me figure out what I might be doing wrong, I’d really appreciate it.