Sounds on the client
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
ModRecipeJson,
|
||||
OreJson,
|
||||
RecipeJson,
|
||||
SoundJson,
|
||||
SpawnJson,
|
||||
stack_problems,
|
||||
TagJson,
|
||||
@@ -62,6 +63,8 @@ export interface ModData {
|
||||
entity_models: EntityModelJson[];
|
||||
// clips, see ANIMATION.md. missing from mods packed before there were any
|
||||
animations?: ClipJson[];
|
||||
// its sounds.json, see docs/modding/resources/sounds.md. the files are in the .cubi's sounds/
|
||||
sounds?: SoundJson[];
|
||||
// status effects, see EffectJson
|
||||
effects: EffectJson[];
|
||||
// kinds of fluid, see FluidJson
|
||||
@@ -230,6 +233,9 @@ export function register_mod_data(mods: { id: string; data: ModData }[]): Recipe
|
||||
for (const clip of data.animations ?? []) {
|
||||
EverythingRegistry.register<ClipJson>("animations", clip.id, clip);
|
||||
}
|
||||
for (const json of data.sounds ?? []) {
|
||||
EverythingRegistry.register<SoundJson>("sounds", json.id, json);
|
||||
}
|
||||
for (const json of data.entities) {
|
||||
EverythingRegistry.register<EntityJson>("entities", json.id, json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user