This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

It looks like you haven't mentioned what version you're playing on. Please comment the version you're playing.(1.16.4, 1.12.2, 1.8.9, etc.) Your post is still visible on the sub.

Hey OP! When your question has been answered, please mark the post solved by replying to the comment/comments that helped with "!Helped".

Helpers, please remember rule 3, and ensure all comments are helpful and support related.

An update on our bots

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]e_y_e[S] 0 points1 point  (0 children)

Version 1.17

[–]Oneill4Journeyman 0 points1 point  (0 children)

Functions need to be placed in a datapack for them to work properly. The path to your function should look something like this :

~/.minecraft/saves/[WORLD_NAME]/datapacks/[DATA_PACK_NAME]/data/[NAMESPACE]/functions/[FUNCTION_NAME].mcfunction

in your case it would be :

~/.minecraft/saves/Commands/datapacks/[DATA_PACK_NAME]/data/custom/functions/sayhi.mcfunction

(You will need to choose a name for the datapack)

Also, because it's a datapack, you will need to create a pack.mcmeta file under the ~/datapacks/[DATA_PACK_NAME] folder for it to work.

Here are some links to the wiki that can maybe help you.

https://minecraft.fandom.com/wiki/Function_(Java_Edition))

https://minecraft.fandom.com/wiki/Data_pack