Is it possible to activate a command in a function file only once or activate the command once when the datapack is installed? I need to summon 3 armorstands at a certain location but the "summon armor_stand ~ ~ ~" command inside a function file would be activating all the time.
i already use the load function to say that the pack has been reloaded and i do not see that message when i join the world only when i enable the pack and i do not think it would be a good idea to have a summon command everytime you use /reload also i thought of a different way to make what i needed since the entities i need to summon are for an optional thing in my pack i made a function that the player must run if they want to enable that feature and i put the summon command in that file
Is it possible to activate a command in a function file only once or activate the command once when the datapack is installed? I need to summon 3 armorstands at a certain location but the "summon armor_stand ~ ~ ~" command inside a function file would be activating all the time.
You can just put it in your load function.
You write that :
I like trains... OF CHAIN COMMAND BLOCKS !
I thought that the load function is only activating when you use reload
Yes, it's activating when you use reload but even when the world is starting
I like trains... OF CHAIN COMMAND BLOCKS !
i already use the load function to say that the pack has been reloaded and i do not see that message when i join the world only when i enable the pack and i do not think it would be a good idea to have a summon command everytime you use /reload also i thought of a different way to make what i needed since the entities i need to summon are for an optional thing in my pack i made a function that the player must run if they want to enable that feature and i put the summon command in that file