mojira.dev
MC-180868

Data Packs do not load properly

I have multiple Datapacks on my server and on a single player test world, and while they have worked in every 1.16 snapshot up to 20w15a, I recently discovered that they did not seem to have any affect on the world in 20w17a. Custom crafting recipes in several of the packs did not work and did not appear when using the /recipes command. Using the /datapacks list command shows all datapacks as being enabled, buy if this were actually the case I would be able to use the custom crafting recipes and I would see the functions and triggers with /function and /trigger. Updating the pack format in the pack.mcmeta file of one of the recipe datapacks had no effect, and the datapacks stayed inactive.

Attached are three of the multiple data packs I have. I only included three because I am using 18 and most of them are ones I downloaded from Planet Minecraft and I dont want to redistribute them without the consent of the pack creators. The three are ones I have made for personal use.

Attachments

Comments 10

Please attach the affected packs

I am using about 18 data packs so I will just include the few that are ones I made personally for my own use

While looking at the console of my server, I found this line

Caused by: t: Non [a-z0-9_.-] character in namespace of location: Minecraft:blaze_rod

which seems to have popped up in older bug reports. I guess now all I can do is see which data pack is causing this to pop up.

 

One of my crafting recipes had a capitalized Minecraft in one of the recipe files, which seems to have prevented all other data packs from loading. Odd that this is how data packs work instead of the pack being disabled.

i have the same issue the datapacks not loading

they haven't worked since 20w17a and still don't work in 20w18a

It looks to be that the load.json file doesn't run any of the mcfunction files listed in it when the pack is loaded or when using the /reload command.

I've added a simple data pack to show the behaviour in the attachments of this report called "loadtest". On pack load it should execute the testing.mcfunction file and run a /say command, but nothing happens.

This errant behaviour is also present in 20w18a

I believe your problem could be the "Minecraft:" part, as capital letters often don't work for me when I make my datapacks. I would suggest trying with a lowercase M, so "minecraft:". This is because [a-z0-9_.-] doesn't have A-Z specified

load.json is still not running functions in 20w19a

microsoft the datapacks recipes are not working in 20w19a

The log mentions this:

Couldn't load function tag minecraft:tick as it is missing following references: diarmor:main (from Buff Elytra)

The data/minecraft/tags/functions/tick.json file does indeed include an invalid reference to diarmor:main. That function does not exist. Therefor the #minecraft:tick function tag cannot load and this also stops other data packs from working.

In the second pack the issue is a capital M in a data/customrecipes/recipes/trident.json

The fix for MC-164446 added better errors in the log. The issue you're describing can be fixed by resolving all the errors in the log.

Shaan Williams

(Unassigned)

Unconfirmed

(Unassigned)

20w17a

Retrieved