#What is the equivalent to highPriorityData/lowPriorityData for this MC version?
14 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
only one event(ServerEvents.generateData) that takes a stage for the generated data, one of "internal","registries","before_mods","after_mods","last" so ServernEvents.highPriorityData(event =>)becomes ServerEvents.generateData("before_mods", event => {});
Okay, and do you also happen to know how to filter out strings from an array?
In 1.20.1 this method was called .subtract() such as seen here:
let mc_items = Ingredient.of(['@minecraft']).subtract(Ingredient.of([
'minecraft:beef'
]))
i think the method was renamed to except
I tried using generateData with the usual method of event.addJson(<file_location>, <json>) though that is no longer a function - it used to virtually generate a json there.
it has 4 methods event.add(<data>) event.getGenerated(<id>) event.texxt(<id>,<content>) and event.json(<id>,<json>)
I wonder what .add does
it takes a public record GeneratedData(ResourceLocation id, Supplier<byte[]> data)
so it is equivalent to text or json
Since my goal is to override a .json in a path, I'm now using before_mods (not sure if this is the right one)
event.json(`hostilenetworks:data_models/artifacts/mimic.json`, <json>)
i can't find a source on this but i was certain later loaded datapacks override previous ones and can hide them, if it mysteriously doesn't work try after_mods