#Was ServerEvents.highPriorityData changed?

10 messages · Page 1 of 1 (latest)

rancid steeple
split lionBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

open tulip
#

Try using ServerEvents.generateData instead

rancid steeple
bold stone
#

What does it even do?

open tulip
# bold stone What does it even do?

the generateData event happens when the server loads jsons from datapacks, including the data files from each mod
It allows you to modify data json files as they are read from disk, and also allows you to add "fake" jsons that don't actually exists, which is what Firav is attempting to do here

bold stone
rancid steeple
#

yesnt

rancid steeple
# open tulip the `generateData` event happens when the server loads jsons from datapacks, inc...

This is what I've got currently for the generateData event, would this be correct?

ServerEvents.generateData("after_mods", event => {
  spawns.forEach(([biomes, wilden]) => {
    event.json(`ars_nouveau:forge/biome_modifier/${wilden}_spawn`, {
      type: "forge:add_spawns",
      biomes: biomes,
      spawners: {
        type: `ars_nouveau:${wilden}`,
        maxCount: 1,
        minCount: 1,
        weight: 50,
      },
    });
  });
});

Doesnt seem to be functioning like it was prior.

rancid steeple
#

Does anyone have some docs I can refer to for this function?