datapack not working

I made a datapack and nothing in my tick.json or load.json is doing what it's supposed to. Nothing in it is working in the world and I'm not sure what's going on. Any help appreciated Fabric 1.21.1 but there are no mods on the world
8 Replies
Eismeister
Eismeister4mo ago
datapacks can be a pain to debug, but it can help to add tellraw commands to see what's going on (if anything at all)
-Joey
-JoeyOP4mo ago
Yeah I added one to my load.mcfunction but its not even showing up I followed a tutorial to set it up. I did it the same way I had in the past, but for some reason now it's not working.
Eismeister
Eismeister4mo ago
do you see your datapack when you use this command: /datapack list enabled
-Joey
-JoeyOP4mo ago
yes
Eismeister
Eismeister4mo ago
do you also see your load function when you type /function [datapack name]:load?
-Joey
-JoeyOP4mo ago
That I do not
Eismeister
Eismeister4mo ago
ok, then it might be something wrong with the way the datapack is structured the load.mcfunction file should be in this directory: \datapacks[name]\data \ [name]\function i had to space out some of the backslashes because of markdown, but you get the idea it will get fussy about whether the folder is named "functions" vs "function"
-Joey
-JoeyOP3mo ago
I may have put it under data instead of function. It being called functions wasn’t the issue. I made sure of that. I’ll check if I put it under data when I get back on later. I have functions, then function It should be under function? The tick.json and load.json are under minecraft/tags/function Turns out that was the issue, but if fixed my tick.mcfunction not my load.mcfunction Let me tell you exactly how my stuff is in the datapack and you can tell me if I did anything wrong. The name of my datapack is playcraft playcraft/data/games/function, then inside of here is my load.mcfunction and tick.mcfunction, then within the function folder there is a folder called lobby where I have 2 functions that arent working either It was originally called functions but I changed it to function Figured it out. Thanks

Did you find this page helpful?