Fluid registry

This commit is contained in:
2026-10-25 14:05:57 -03:00
parent 0cfa4d9b4a
commit 17d83acfc8
18 changed files with 144 additions and 17 deletions
+3
View File
@@ -14,6 +14,7 @@ import {
validate_block,
validate_effect,
validate_entity,
validate_fluid,
validate_item,
validate_manifest,
validate_model,
@@ -94,6 +95,7 @@ function load_mod(mods_dir: string, id: string): LoadedMod {
entities: [],
entity_models: [],
effects: [],
fluids: [],
tags: [],
loot_tables: [],
biomes: [],
@@ -175,6 +177,7 @@ function load_mod(mods_dir: string, id: string): LoadedMod {
load_data("recipes", "recipe", validate_recipe, mod.recipes);
load_data("entities", "entity", validate_entity, mod.entities);
load_data("effects", "effect", validate_effect, mod.effects);
load_data("fluids", "fluid", validate_fluid, mod.fluids);
load_data("worldgen/biomes", "biome", validate_biome, mod.biomes);
load_data("worldgen/noise", "noise", validate_noise, mod.noises);
load_data("worldgen/density_function", "density_function", validate_density_function, mod.density_functions);
+1
View File
@@ -33,6 +33,7 @@ register_mod_data([{
entities: jsons(bworld.entities),
entity_models: jsons(bworld.entity_models),
effects: jsons(bworld.effects),
fluids: jsons(bworld.fluids),
tags: jsons(bworld.tags),
loot_tables: jsons(bworld.loot_tables),
biomes: jsons(bworld.biomes),