3

Questions about Datapacks

PurpleFox32 5/14/23 6:01 pm
1.1k
5/14/2023 7:33 pm
Hi, I have been wondering if the datapack folder actually needs to be zipped in order to use it?

I was also wondering, when making functions in a datapack, is there a way to run all the functions without the use of any command blocks at all? How would I do that?

I tried putting all the functions into one file and then running that main file using a function as well as the other files but a lot of the commands don't work. Specifically, the trigger commands I have in one of them. If I don't run the file in a command block, it won't work.
Posted by
PurpleFox32
Level 5 : Apprentice Collective
3

  Have something to say?

JoinSign in

3

SpruceStudios
05/14/2023 6:33 pm
Level 34 : Artisan Procrastinator
Hey, there! Here are the answers to your questions.

1) A datapack can run perfectly fine whether its in a folder or zip file. The only reason it wouldn't be showing up would be if the pack.mcmeta file was written incorrectly, or if the pack.mcmeta file was in the wrong place

2) Yes, there is are easy ways to run every function at once in a datapack. But to answer this I need more information. Do you want to run them when the player first opens the world? Or have them constantly running like a repeating command block? Or have them only run when a specific action is performed?

If possible, could you send me a link to your datapack and explain what it should do? I may be able to help you fix it.

Thanks :D
1
PurpleFox32
05/14/2023 7:33 pm
He/Him • Level 5 : Apprentice Collective
Here is the link to the GitHub Repo where you can find the datapack that I am referring to as well as some of my other works.

(I'll be uploading these datapacks here once they are polished a bit more. The datapacks marked with ctf at the beginning, are for a server I made and those functions with the marker (ctf) will only work with the setup I have currently. I will be working on ways to make it universal so anyone can use it.
2
PurpleFox32
05/14/2023 7:11 pm
He/Him • Level 5 : Apprentice Collective
To answer your question, yes, I want them the repeat constantly. The nature of the commands is important that they run all the time. Until I can figure out how to use the Scripting API, I will need all of these to continuously be updated. I am aware of delays and what they are used for and how useful they are to a datapack. I don't currently have it up loaded here but I will be uploading it to GitHub and I can provide a link.
2

Welcome