#Function help

1 messages · Page 1 of 1 (latest)

zinc tree
#

So im using someoen elses datapack to make a kit loader because i have no idea how to make one myself but i have a file named kit3 but it wont get created in game. the other 2 work though for some

ripe onyx
#

What do you mean it won't get created?

violet caveBOT
outer jay
#

Start by checking the logs when (re)loading your world

zinc tree
#

alr

zinc tree
#

this is what it says

#

even though its in the same folder

#

ive even compared the code with the other 2 kits and its the same but with different coordinates for my chests

#

i just tried renaming the file but it still says failed to load function practicebot:kits/kit3 even though i changed the name to mykit?

#

this is the full error but i checked the code an it says line 41 position 31 has a 9 when in reality it has a 7

zinc tree
ripe onyx
zinc tree
#

look at what i sent like the pictures

ripe onyx
#

Yes I see that

#

Hold your horses

zinc tree
#

i think it just isnt updating but idk why ive restarted my laptop and mc ultiple times

zinc tree
ripe onyx
# zinc tree

This is telling you what's wrong, you have a syntax error inside the function. The name of the function has nothing to do with it

zinc tree
ripe onyx
#

Go to that position in the function--there is no slot called hotbar.9, the hotbar slots start at 0 and go up to 8.

ripe onyx
zinc tree
#

look

ripe onyx
#

Otherwise you would not have the error

zinc tree
zinc tree
ripe onyx
#

You must be checking the wrong file, or are not loading the world with the most updated version of the data pack

#

I'm sorry, I'm sure that's annoying to hear, but errors don't make things up

zinc tree
ripe onyx
#

I don't know what to tell you. If you are still getting this error when you load the world, then you are mistaken about something, somewhere

outer jay
#

Yeah we can't help you properly saving, updating your datapack and/or reloading your world/save. That is something you will have to do.

#

If the error doesn't match the function as you have it in vscode it simply isn't the same file that is being used in your world.