1
Load function doesn't work
i created a datapack to make a money system for my 1.17.1 map. But when i reload the server the load function doesn't do anything. In addition to that when i do the "/function" command in the game it doesn't schow me the option to do "/function #minecraft:load", but only all functions and "/function #minecraft:tick". And even when i create a new datapack with a load function, or add one to my oteher ones it doesn't work either
18
I think try using it in singleplayer because in servers the load function works just after a server restart but at that time the player is kicked from the server that's why you may not be able to see the messages
also it happened to me some days then i recreated the whole datapack and it worlde
also it happened to me some days then i recreated the whole datapack and it worlde
Pretty sure /reload also works in servers. Because its just reloading the vanilla pack and all the other custom ones (thats why everything freezes while its reloading).
Even then it wouldnt change much, because in singleplayer your client creates a local server wen you join your world anyways (thats why you can get kicked from your singleplayer world or you can easily create a LAN world with 2 clicks)
Even then it wouldnt change much, because in singleplayer your client creates a local server wen you join your world anyways (thats why you can get kicked from your singleplayer world or you can easily create a LAN world with 2 clicks)
I had a datapack on this server before with a load function and it worked fine after /reload so i just took the json file, copied it into the new datapack, chaned the called function and it didn't work.
Did your output log say anything?
It didn't say anything about it
If a tag doesn't appear in /function it means there is a syntax error either in the tag file or in one of the commands in one of the functions in that tag. Try copy-pasting every command one by one from the functions to the chat to make sure they are valid. You can also send here your function and I will try to figure it out. Also make sure there is no typo in the name of the functions in the tag file.
the load function does work just the load.json file is broken. even if i rename the tick.json to load.json it doesn't work
[deleted]
I already did both of it and it doesn't work
can you send what the load file looks like?
{
"values":[
"money:load"
]
}
"values":[
"money:load"
]
}
Is that just the load.json of the money namespace or is that the function tag?
That looks good, did you remember to /reload? If so, can you send the entire datapack.
I did it. How can i send it to you?
Just send a link to the file on like google drive or something
View 1 more replies
