How to end a function with another function

Started by 5hawn9 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to end a function with another function

I'm trying to make a mod that adds trails to where you walk. I got the trails to work perfectly fine, but I can't get them to stop. I'm trying to make it just a function in the data pack. This is the trail:

# File Location: ./data/did/functions/loop/infinite/any.mcfunction
# as/at server

execute as @a at @s run particle minecraft:glow ~ ~ ~
execute as @a at @s run particle minecraft:dragon_breath ~ ~ ~
execute as @a at @s run particle minecraft:glow ~ ~ ~
schedule function particle_trail:particle 1t