Animation clips

This commit is contained in:
2026-11-21 20:07:10 -03:00
parent 607be76ca6
commit 69ad4b80d0
10 changed files with 514 additions and 6 deletions
+4
View File
@@ -6,6 +6,7 @@
import {
type BlockJson,
choice_list,
type ClipJson,
type EffectJson,
entity_category,
type EntityJson,
@@ -64,6 +65,8 @@ export interface LoadedMod {
spawns: { file: string; json: SpawnJson }[];
entities: { file: string; json: EntityJson }[];
entity_models: { file: string; json: EntityModelJson }[];
// clips, see ANIMATION.md
animations: { file: string; json: ClipJson }[];
effects: { file: string; json: EffectJson }[];
fluids: { file: string; json: FluidJson }[];
tags: { file: string; json: TagJson }[];
@@ -98,6 +101,7 @@ export function mod_data(mod: LoadedMod): ModData {
spawns: mod.spawns.map((s) => s.json),
entities: mod.entities.map((e) => e.json),
entity_models: mod.entity_models.map((m) => m.json),
animations: mod.animations.map((a) => a.json),
effects: mod.effects.map((e) => e.json),
fluids: mod.fluids.map((f) => f.json),
tags: mod.tags.map((t) => t.json),