0

I don't know how to "tag" my function in my data pack. Right now I use the function command in repeating command blocks, but how would I tag it so I don't need them?

1

You have to create the tag in the data pack, just like you created the function. The path is: tags/functions/tick.json

That file has to have a content like this: {"values":["<namespace>:<name>"]}, where <namespace> and <name> of course reference your function.

You can add more functions by appending ,"<namespace>:<name>" before ]}.

This will by default not overwrite ticked functions of other datapacks (but you could, if you wanted to).

Here are the wiki pages for functions (archive), data packs (archive) and tags (archive), each link goes to the paragraph you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy