1

Load function doesn't work

Phoenix1234975 7/29/21 12:06 pm
2.9k
7/30/2021 3:39 am
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
Posted by
Phoenix1234975
Level 1 : New Crafter
1

  Have something to say?

JoinSign in

18

Bittu5134
07/30/2021 3:30 am
Level 84 : Elite Procrastinator Theorist
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
1
HoboMaggot
07/30/2021 3:35 am
Level 55 : Grandmaster Blob
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)
4
Phoenix1234975
07/30/2021 3:39 am
Level 1 : New Crafter
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.
1
HoboMaggot
07/29/2021 7:17 pm
Level 55 : Grandmaster Blob
Did your output log say anything?
1
Phoenix1234975
07/30/2021 3:18 am
Level 1 : New Crafter
It didn't say anything about it
1
One_Nose
07/29/2021 4:41 pm
He/Him • Level 59 : Grandmaster Dragonborn Hero
history
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.
1
Phoenix1234975
07/30/2021 3:21 am
Level 1 : New Crafter
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
2
anonpmc2747568
07/29/2021 2:33 pm
Level 13 : Journeyman Miner
[deleted]
1
Phoenix1234975
07/29/2021 2:36 pm
Level 1 : New Crafter
I already did both of it and it doesn't work
1
HuoKnight
07/29/2021 1:20 pm
Level 12 : Journeyman Mlem Mlem Bat
can you send what the load file looks like?
1
Phoenix1234975
07/29/2021 1:32 pm
Level 1 : New Crafter
history
{

"values":[
"money:load"
]

}
1
HoboMaggot
07/30/2021 3:27 am
Level 55 : Grandmaster Blob
Is that just the load.json of the money namespace or is that the function tag?
1
HuoKnight
07/29/2021 1:39 pm
Level 12 : Journeyman Mlem Mlem Bat
That looks good, did you remember to /reload? If so, can you send the entire datapack.
1
Phoenix1234975
07/29/2021 1:44 pm
Level 1 : New Crafter
I did it. How can i send it to you?
1
HuoKnight
07/29/2021 1:48 pm
Level 12 : Journeyman Mlem Mlem Bat
Just send a link to the file on like google drive or something
1

Welcome