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
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)
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.
do you see your datapack when you use this command: /datapack list enabled
yes
do you also see your load function when you type /function [datapack name]:load?
That I do not
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"
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