#functions
1 messages · Page 1 of 1 (latest)
can we see it's contents?
if something isn't loading you can always take a look in the logs after doing /reload it wil almost always tell you when something isn't loading
it has loaded, checked like 3 times
can you send the actual function file in text from please, I'm on mobile 😅
sorry for the late answer, imma try this at one!
for some wierd reason only these show up
there are multiple...
hi, I agree that the first thing you should do is check the command log, it may say what's wrong.
here are some pointers I know of though I think
-
make sure the function file is called "function" not "functions"
-
make sure you're filenames are valid, aka: if you have a folder with more functions inside the main function folder make sure the namespace in the command block or whatever is correct
I'm still learning about functions slowly so sorry if this isn't helpful
but that's about all I know
I know for a fact the first one is correct
checked the logs, aint telling me nothing
i think you need to check a certain box
filenames can't contain any capital letters or spaces
did you check that?
then again its been a while since I had to do it
so i may not remember the exact steps
also this
on ity
theres no capital letter
then there has to be something in the logs after doing /reload can you share the log file?
like that?
oh shi- i didnt do /reload. it was already inside the datapack folder tho
ok I looked at your log file and it dam it does show many errors here is the exact part of the log you're looking for
i have 100+ mods, thats probably why... But thanks!
pressing expand
WTF IS THAT
*could you help me understand please🥺 *
It mentions the location of the problem, most are in the first line of your functions.
i'll look into that
you're trying to look for the human readable stuff like for example Failed to load function mafia:gui/add_head_mafia java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command. See below for error at position 0: <--[HERE] all the other things like ```
at knot//net.minecraft.class_2158.method_9195(class_2158.java:80)
ive fixed this, ther eare no empty files and this comes up
have your functions been fixed?
yes, every empty line is gone
so they work?
no, they are not appearing
empty lines are not the issues btw
the issue is the first line with a non minecraft command
the fist line where, so in this case. And i decided to remove all when i already did some
and in this case was an empty line?
there are no datapack errors in the logs you linked
so why arent the functions showing😭
yep
i just now began playing 1.21.11 so I dont know much about it yet
latest I know is 1.21.8
I'm pretty sure 1.21.11 should work with 1.21.8 stuff
probably