Support weighted region and biome references

- Accept {region|biome, weight} objects as well as plain strings in regions, land/sea/shore/caveBiomes and children
- Pick from lists with an object entry by weight slots in list order, keep the rarity pick for string-only lists
- Leave the parent out of weighted child picks unless it is listed
- Describe both forms in the schema and update its digest
- Read weighted references in mod ingest
This commit is contained in:
piexel committed 2026-11-18 12:05:23 +01:00
1 parent ed037ea40b
commit d41cbeb6db
63 files changed
+1624 -317

No files matched your search

@@ -377,7 +377,7 @@ public class CommandStudio implements DirectorExecutor {
boolean progressShown = false;
int c = -1;
try {
engine.getDimension().getRegions().forEach(key -> data.put(key, new AtomicInteger(0)));
engine.getDimension().getRegionKeys().forEach(key -> data.put(key, new AtomicInteger(0)));
multiBurst = new MultiBurst("Region Sampler");
var executor = multiBurst.burst(Math.min(radius * radius, 1 << 20));
sender.sendMessage(IrisLanguage.text(BukkitCommandMessages.COMMAND_STUDIO_GENERATING_DATA));