-
Bug
-
Resolution: Fixed
-
20w22a
-
None
-
Confirmed
-
Data Packs
-
Very Important
The bug
Functions in data packs now load before entity tags. This causes errors when loading a data pack for the first time.
To reproduce:
- Download the attached datapack Bug Datapack.zip and place in the world file.
- /reload
There is an error in the log stating there was an invalid entity.Failed to load function bug:error java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Invalid or unknown entity type 'bug:cat' at position 12: ...y @e[type=<--[HERE] ... Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Invalid or unknown entity type 'bug:cat' at position 12: ...y @e[type=<--[HERE] ...
- /reload one more time, and see that the error doesn't appear.
From this, we can conclude that the function is loading before the tag, as if the tag was invalid, it would be invalid in the function the second time. However, the second time it is not invalid, so therefore it must have been loaded.
- is duplicated by
-
MC-186130 Entering a world with a datapack that has already been loaded once requires /reload again
- Resolved
-
MC-186357 I have to run reload to use datapacks with commands.
- Resolved
-
MC-186698 Every time you rejoin the game, you need to run command /reload to load the datapacks
- Resolved
-
MC-186944 Datapacks don't automatically reload into 20w22a
- Resolved
-
MC-187093 /reload doesn't work in Hardcore maode
- Resolved
- relates to
-
MC-186478 Tag minecraft:tick doesn't work when joining a world
- Resolved