mojira.dev
MC-164662

Functions permanently unload, cant be loaded again.

MAJOR UPDATE: The below is mostly irrelevent- after some more testing trying to figure this out, it turns out that the scoreboard command is the culprit somehow; when used with execute run. i know because deleting those commands seems to make it work again somehow.

 

When developing a data pack; I started to notice that the game was not recognizing a certain function at all. When i tried to execute the function via /function, the function was treated as though it didn't exist at all. I then copy/paste the entire contents into another function that was working fine before- and now that function is suddenly not registering either.

 

What I expected: my function to execute.

what I got: my function doesn't seem to exist as far as the game knows, even though it is in the right folder, format, and spelling.

 

steps to reproduce:

  1. download the file attached

  2. extract it into a new world's data packs folder

  3. ...not sure from here. in my testing, this is actually a way to temporarily fix it- but once you add another function to the pack similar to the broken ones, it will fail again.

 

don't hesitate to reply with the needed questions! I've attached my data pack here- the offending functions are "waypoints" and "tick". "tick" only failed once I pasted the content of "waypoints" into it, as remarked by the comments. - before then, it worked fine.

Attachments

Comments 1

Functions don't load if they contain a syntax error. I believe your error is that you have used a scoreboard objective name that is longer than sixteen characters in length.

Antonio Knapp

(Unassigned)

Unconfirmed

(Unassigned)

19w42a

Retrieved