/function command not working in my datapack
Version: 1.21.11, Fabric
I'm trying create a datapack, which uses functions to run 5 different commands related to a mod I have installed. I've watched tons of videos, tried following the guides on the minecraft wiki. I cannot figure it out even though I've followed them exactly.
I'm pretty sure I set up part of my datapack correctly, the game sees it when I type /datapack list. I was able to enable it with the /datapack enable. But when I try to run the function I created, with /function afk:drowned, but the game doesn't see it.
I don't know how to upload files, or I would just upload the whole datapack. I only have the pack.mcmeta & drowned.mcfunction files in my datapack, nothing else execpt the folders.
My mc.function file:
XXX\\.minecraft\\saves\\AI\\datapacks\\afk\_spawns\\afk\\functions\\drowned.mcfunction
[drowned.mcfunction file contents](https://preview.redd.it/gmgcbkerysag1.png?width=918&format=png&auto=webp&s=240b2ffff0cc4d54986e33489cf51771f17b21b6)
My pack.mcmeta file:
XXX\\.minecraft\\saves\\AI\\datapacks\\afk\_spawns\\pack.mcmeta
[My pack.mcmeta file](https://preview.redd.it/sjr1xf7w1tag1.png?width=661&format=png&auto=webp&s=a79b45f07c38d34724e6e4bdb9d72856bd78e8cf)
Here's what happens when I try to run the function command I created:
[trying to run \/function command](https://preview.redd.it/b86v3byo1tag1.png?width=1472&format=png&auto=webp&s=55fc8bde90e086fffb027a0d858dc1f96e9f1acf)
Does anybody know what i'm doing wrong here?
I'm trying create a datapack, which uses functions to run 5 different commands related to a mod I have installed. I've watched tons of videos, tried following the guides on the minecraft wiki. I cannot figure it out even though I've followed them exactly.
I'm pretty sure I set up part of my datapack correctly, the game sees it when I type /datapack list. I was able to enable it with the /datapack enable. But when I try to run the function I created, with /function afk:drowned, but the game doesn't see it.
I don't know how to upload files, or I would just upload the whole datapack. I only have the pack.mcmeta & drowned.mcfunction files in my datapack, nothing else execpt the folders.
My mc.function file:
XXX\\.minecraft\\saves\\AI\\datapacks\\afk\_spawns\\afk\\functions\\drowned.mcfunction
[drowned.mcfunction file contents](https://preview.redd.it/gmgcbkerysag1.png?width=918&format=png&auto=webp&s=240b2ffff0cc4d54986e33489cf51771f17b21b6)
My pack.mcmeta file:
XXX\\.minecraft\\saves\\AI\\datapacks\\afk\_spawns\\pack.mcmeta
[My pack.mcmeta file](https://preview.redd.it/sjr1xf7w1tag1.png?width=661&format=png&auto=webp&s=a79b45f07c38d34724e6e4bdb9d72856bd78e8cf)
Here's what happens when I try to run the function command I created:
[trying to run \/function command](https://preview.redd.it/b86v3byo1tag1.png?width=1472&format=png&auto=webp&s=55fc8bde90e086fffb027a0d858dc1f96e9f1acf)
Does anybody know what i'm doing wrong here?
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/Minecraft) if you have any questions or concerns.*
Remove the capital letter from your file name