#functions

1 messages · Page 1 of 1 (latest)

lost birch
#

Functions not showing when writing /function , i've deleted every slash in the code. It is only functions in it and it has no tick/load function

drifting radish
#

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

ruby shoreBOT
drifting radish
#

can you send the actual function file in text from please, I'm on mobile 😅

digital stream
#

what minecraft version?

#

you have your folder named functions

ruby shoreBOT
lost birch
#

sorry for the late answer, imma try this at one!

lost birch
hearty plover
# lost birch Functions not showing when writing `/function `, i've deleted every slash in the...

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

  1. make sure the function file is called "function" not "functions"

  2. 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

lost birch
hearty plover
drifting radish
#

filenames can't contain any capital letters or spaces
did you check that?

hearty plover
#

then again its been a while since I had to do it

#

so i may not remember the exact steps

drifting radish
#

then there has to be something in the logs after doing /reload can you share the log file?

lost birch
lost birch
#

oh shi- i didnt do /reload. it was already inside the datapack folder tho

drifting radish
lost birch
#

pressing expand
WTF IS THAT

*could you help me understand please🥺 *

digital stream
#

It mentions the location of the problem, most are in the first line of your functions.

drifting radish
# lost birch *pressing expand* WTF IS THAT *could you help me understand please🥺 *

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)

lost birch
digital stream
#

have your functions been fixed?

lost birch
digital stream
#

so they work?

lost birch
#

no, they are not appearing

digital stream
#

empty lines are not the issues btw

#

the issue is the first line with a non minecraft command

lost birch
lost birch
digital stream
#

there are no datapack errors in the logs you linked

lost birch
#

so why arent the functions showing😭

hearty plover
#

what version are you using again?

#

1.21.11 right?

lost birch
hearty plover
#

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

lost birch
#

probably