Repository navigation
Examples
kltyton edited this page Dec 1, 2026
·
5 revisions
The repository includes complete Blockbench .bbmodel scene projects and exported .animation.json files under examples/ so modders and animators can inspect working setups directly.
Not Bundled in Release JARs:
examples/sits completely outsidecommon/andtargets/. It is excluded from compiled mod.jarand-sources.jarartifacts.
-
Blockbench Project:
examples/duel_clash/duel_clash.bbmodel -
Exported Animation:
examples/duel_clash/duel_clash.animation.json -
Clip Name:
animation.example.duel_clash(1.6s)
Demonstrates:
- Primary subject (
body/head/right_arm/left_arm) + participantvictim(minecraft:player). -
interactive_animation:rootwhole-actor displacement and360°spin. - Both
linearandcatmullrominterpolation, plusbendchannel authoring viaright_arm_bend. - Authored
cameratrack (position&rotation). - Primary
timelinemarkers ("impact"at0.45s,"release"at1.1s). - Primary
sound_effectsarray (minecraft:entity.iron_golem.attackwithlocator: "right_arm", plusminecraft:block.anvil.land) andparticle_effects(minecraft:critwithpre_effect_script: "impact_burst"). - Participant
sound_effects(minecraft:entity.player.attack.knockback) andparticle_effects(minecraft:cloud).
-
Blockbench Project:
examples/door_interaction/door_interaction.bbmodel -
Exported Animation:
examples/door_interaction/door_interaction.animation.json -
Clip Name:
animation.example.open_door(1.4s)
Demonstrates:
- Static/block-anchored hinged
door_leafswing (catmullromeasing). - Participant
actor(minecraft:player) walking to and stepping through the doorway withinteractive_animation:root+ arm/leg rotation. -
timelinemarkers ("door_open","step_through"),sound_effects(minecraft:block.iron_door.open), and shorthandparticle_effects("minecraft:crit").
- Install AnimCue Studio (from the standalone plugin repository or the Blockbench Plugin Store) in Blockbench
5.0.0+. - Open either
.bbmodelfile directly to inspect the Outliner participant tags, camera rig, bone tracks, and Effects (timeline/sound/particle) track. - Export via the AnimCue sidebar Export button or File → Export → AnimCue Animation....
Place the .animation.json file inside your own mod's assets folder (for example assets/mymod/animations/duel_clash.animation.json), register it at startup, and handle or customize markers, sounds, and particles in PlaybackOptions:
// 1. Register during mod initialization
InteractiveScenes.register(MyMod.class, "mymod:animations/duel_clash.animation.json");
// 2. Trigger on the server
var sceneId = new SceneId("mymod:animations/duel_clash.animation.json", "animation.example.duel_clash");
var subject = SceneSubject.entity(bossEntity);
var bindings = Bindings.named(Map.of("victim", targetPlayer));
var options = PlaybackOptions.DEFAULT
.markers(marker -> {
if ("release".equals(marker.instruction())) {
marker.playback().useWorldCoordinates("victim");
}
})
.sounds(kf -> {
// Optional override; omit .sounds(...) to let AnimCue auto-play registered sounds
SceneEffects.playSound(level, kf);
})
.particles(kf -> {
// Optional override; omit .particles(...) to let AnimCue auto-spawn registered particles
SceneEffects.spawnParticle(level, kf);
});
InteractiveScenes.play(subject, sceneId, bindings, options);