Jester stomp sounds, not step !

This commit is contained in:
2026-11-22 11:08:36 -03:00
parent 8add5f852e
commit dfb110e0f8
11 changed files with 50 additions and 12 deletions
@@ -5,7 +5,6 @@
"model": "dangerous_business:jester",
"texture": "dangerous_business:jester",
"behavior": "dangerous_business:jester",
"sounds": "dangerous_business:jester",
"width": 0.8,
"height": 1.9,
"max_health": 40,
+4 -2
View File
@@ -161,8 +161,8 @@ function nearest_player(ctx: ServerContext, mob: MobRef) {
}
// what bedrock's animation controller did: idle and walk while it roams, crank, then pop, then its chase. what its
// clips did with expressions is here as code. its music box plays while it cranks, and it screams while it's popped.
// a player who comes upon it partway sees and hears it from as far as it's got, by when its state started
// clips did with expressions is here as code. its music box plays while it cranks, and it screams and stomps while
// it's popped. a player who comes upon it partway sees and hears it from as far as it's got, by when its state started
export function register_jester_animator(ctx: ClientContext) {
const clip = (name: string) => ctx.render.clip(`dangerous_business:jester/${name}`);
const idle = clip("idle");
@@ -195,6 +195,8 @@ export function register_jester_animator(ctx: ClientContext) {
theme = sound_while(state === CRANKING, theme, () => play("dangerous_business:jester/theme"));
scream = sound_while(state === AGGRO, scream, () => play("dangerous_business:jester/scream"));
},
step_sound: () =>
jester.get_client_data<number>("state") === AGGRO ? "dangerous_business:jester/stomp" : undefined,
pose(pose, time) {
if (cranking.started) {
pose.play_state(crank, cranking, time);
+1 -1
View File
@@ -1,7 +1,7 @@
{
"format_version": 1,
"sounds": {
"jester/step": { "files": ["jester/stomp_1", "jester/stomp_2", "jester/stomp_3"], "category": "entities" },
"jester/stomp": { "files": ["jester/stomp_1", "jester/stomp_2", "jester/stomp_3"], "category": "entities" },
"jester/turn_crank": {
"files": ["jester/turn_crank_1", "jester/turn_crank_2", "jester/turn_crank_3"],
"category": "entities"