[PR #3946] [MERGED] Goats long jump between ledges, golden dandelions lock a baby's growth, allays remember a note block #5312

Closed
opened 2026-11-03 05:11:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3946
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-agelock-goat-allay


📝 Commits (10+)

  • 1a80673 Worldgen: structure mobs save the fields vanilla's chunk keeps
  • 52f0e38 Add the amplified, large-biome and single-biome world types
  • 22054ee Worldgen: chunk generation spawns its animals as vanilla, ticking or not
  • 729a224 Read the test registry without the explicit deref
  • 0104eea Format the world preset test
  • 815c09b Merge #2214 (world presets in the create-world screen)
  • bca77d1 Merge origin/main
  • d0b42fb Merge #2570
  • e5ebedd Merge #2585
  • bc5ec6f Structure mobs test: pass the world preset #2570 added to for_dimension

📊 Changes

247 files changed (+8463 additions, -1239 deletions)

View changed files

📝 README.md (+3 -0)
📝 crates/horizon-client-core/src/particle_type.rs (+12 -0)
📝 crates/horizon-client-render/src/assets.rs (+16 -2)
📝 crates/horizon-client-render/src/block_entity_render.rs (+12 -1)
📝 crates/horizon-client-render/src/brewing.rs (+35 -16)
📝 crates/horizon-client-render/src/chunk/block_entity.rs (+22 -0)
📝 crates/horizon-client-render/src/containers.rs (+8 -1)
📝 crates/horizon-client-render/src/datapack.rs (+46 -1)
📝 crates/horizon-client-render/src/lib.rs (+1 -0)
📝 crates/horizon-client-render/src/options_ui.rs (+99 -20)
📝 crates/horizon-client-render/src/particles.rs (+284 -3)
➕ crates/horizon-client-render/src/potent_sulfur.rs (+119 -0)
📝 crates/horizon-client-render/src/sculk.rs (+4 -0)
📝 crates/horizon-client-render/src/settings.rs (+7 -0)
📝 crates/horizon-client-render/src/signs.rs (+87 -4)
📝 crates/horizon-client-render/src/sprites.rs (+14 -0)
📝 crates/horizon-client-render/src/streaming.rs (+45 -3)
📝 crates/horizon-client-render/src/ui.rs (+15 -0)
📝 crates/horizon-client/examples/mod_port_probe.rs (+4 -3)
📝 crates/horizon-client/examples/probe/block_entity_anim_fixture.rs (+2 -1)

...and 80 more files

📄 Description

What and why

  • Goat long jump pose: a jumping goat takes Pose.LONG_JUMPING with its smaller box (scaled 0.7) and holds the friction flag, and the pose is sent to other clients like the frog's. Vanilla: Goat.getDefaultDimensions, LongJumpUtil.isClearTransition.
  • Shared long jump goals: the frog's jump goal pieces now also serve goats (friction flag, pose, default landing spot, cooldown count down). Frogs behave as before. Vanilla: LongJumpToRandomPos, LongJumpMidJump, CountDownCooldownTicks.
  • Goat jump search box: a goat looks for a landing spot in an 11 x 11 x 11 box (the frog's is 9 x 5 x 9) and does not draw from the mob's random. Vanilla: LongJumpToRandomPos.start.
  • Goat that cannot jump waits: a goat that is off the ground or in water, lava or honey waits 300 to 600 ticks before trying again, and runs this check in water too. Vanilla: LongJumpToRandomPos.checkExtraStartConditions.
  • Goat leap sound: goats play entity.goat.long_jump (screaming goats entity.goat.screaming.long_jump) when they leap. Vanilla: LongJumpToRandomPos.tick, GoatAi.initLongJumpActivity.
  • Goat landing: a landing goat keeps a tenth of its horizontal speed, plays a thud at volume 2, stands up and starts its cooldown; water does not end its flight. Vanilla: LongJumpMidJump.stop.
  • Goats long jump between ledges when their cooldown runs out (no tempting player, breed target or walk target). Vanilla: GoatAi.initLongJumpActivity, LongJumpToRandomPos.defaultAcceptableLandingSpot.
  • Goat fall damage is 10 lower, so ledge jumps do not hurt. Vanilla: Goat.calculateFallDamage.
  • Age lock is honoured: a locked baby stays a baby, a locked baby fed food does not age, a tadpole counts its own age up again, and the lock is synced to other clients (MushroomCow variant moves to entry 18 behind it). Vanilla: AgeableMob.aiStep, canAgeUp, Animal/Panda/Dolphin.mobInteract, AGE_LOCKED synched data.
  • Growth particles: a mob a golden dandelion touched shows pause or reset growth particles for 40 ticks. Vanilla: AgeableMob.makeAgeLockedParticle.
  • Age lock toggle for ageable mobs: flips AGE_LOCKED, sets the baby start age (-24000, sniffer -48000) and the particle timer. Vanilla: AgeableMob.setAgeLockedData.
  • Age lock toggle for tadpoles: flips AGE_LOCKED, resets age to 0 and starts the particle timer. Vanilla: Tadpole.setAgeLockedData.
  • Golden dandelion check: only a baby, with no particle timer running, and not a zombie horse, skeleton horse or villager. Vanilla: AgeableMob.canUseGoldenDandelion.
  • Dandelion use: consumes one (not in creative), keeps the mob from despawning when locked, plays the use or unuse sound. Vanilla: AgeableMob.setAgeLocked.
  • Using a golden dandelion on a baby animal now locks or releases its growth (scared or upside-down pandas and armadillos in their shell answer first). Vanilla: AgeableMob.mobInteract, Tadpole.mobInteract.
  • Port map updated: the golden dandelion rows are marked ported.
  • Allay listener: allays hear note blocks within 16 blocks and save the listener. Vanilla: Allay.VibrationUser, GameEventTags.ALLAY_CAN_LISTEN.
  • Liked note block memory: kept as a GlobalPos; dropped when over 1024 blocks away, in another dimension, no longer a note block or its cooldown ran out; items are thrown at the centre of the block above. Vanilla: GlobalPos.isCloseEnough, AllayAi.getItemDepositPosition.
  • Allay with a liked note block hears only that block while within 1024 blocks in its dimension. Vanilla: Allay.VibrationUser.canReceiveVibration.
  • Allays remember a note block they heard (600 tick cooldown, renewed when it plays again), so they bring items to it instead of the player. Vanilla: AllayAi.hearNoteblock.

Vanilla reference

  • Goat long jump pose: Goat.getDefaultDimensions, LongJumpUtil.isClearTransition (Goat.java, LongJumpUtil.java)
  • Shared goal pieces: LongJumpToRandomPos, LongJumpMidJump, CountDownCooldownTicks
  • Jump search box: LongJumpToRandomPos.start (LongJumpToRandomPos.java)
  • Cannot jump wait: LongJumpToRandomPos.checkExtraStartConditions (LongJumpToRandomPos.java)
  • Leap sound: LongJumpToRandomPos.tick, GoatAi.initLongJumpActivity (GoatAi.java)
  • Landing: LongJumpMidJump.stop (LongJumpMidJump.java)
  • Long jump activity: GoatAi.initLongJumpActivity, LongJumpToRandomPos.defaultAcceptableLandingSpot (GoatAi.java)
  • Fall damage: Goat.calculateFallDamage (Goat.java)
  • Age lock tick and sync: AgeableMob.aiStep, AgeableMob.canAgeUp, Animal.mobInteract, Panda.mobInteract, Dolphin.mobInteract, AgeableMob.defineSynchedData (AgeableMob.java)
  • Growth particles: AgeableMob.makeAgeLockedParticle, Tadpole.aiStep (AgeableMob.java:225)
  • Toggle: AgeableMob.setAgeLockedData (AgeableMob.java:82), Tadpole.setAgeLockedData (Tadpole.java:168)
  • Check: AgeableMob.canUseGoldenDandelion (AgeableMob.java:78)
  • Use: AgeableMob.setAgeLocked (AgeableMob.java:88)
  • Interaction: AgeableMob.mobInteract (AgeableMob.java:68), Tadpole.mobInteract, Panda.mobInteract, Armadillo.mobInteract
  • Allay listener: Allay.VibrationUser, GameEventTags.ALLAY_CAN_LISTEN (Allay.java)
  • Liked note block: GlobalPos.isCloseEnough (GlobalPos.java:31), AllayAi.getItemDepositPosition (AllayAi.java)
  • Receive filter: Allay.VibrationUser.canReceiveVibration (Allay.java:564)
  • Hear note block: AllayAi.hearNoteblock (AllayAi.java:108), Allay.VibrationUser.onReceiveVibration

Self-check

cargo check and clippy -D warnings pass for horizon-client; not run in game.

Split out of #3926.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3946 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-agelock-goat-allay` --- ### 📝 Commits (10+) - [`1a80673`](https://github.com/horizon-rust/horizon/commit/1a80673d50561657398e977cdd4618b1011a5c07) Worldgen: structure mobs save the fields vanilla's chunk keeps - [`52f0e38`](https://github.com/horizon-rust/horizon/commit/52f0e38d4157f13c1547ffebf85cc930bd914d3f) Add the amplified, large-biome and single-biome world types - [`22054ee`](https://github.com/horizon-rust/horizon/commit/22054eee9000528cec04c9c95c4885248f9a8112) Worldgen: chunk generation spawns its animals as vanilla, ticking or not - [`729a224`](https://github.com/horizon-rust/horizon/commit/729a224eefe003cf08f4b8496c6344b8bd992c99) Read the test registry without the explicit deref - [`0104eea`](https://github.com/horizon-rust/horizon/commit/0104eeaf33853c0ac6a3b56f4715c012408cc291) Format the world preset test - [`815c09b`](https://github.com/horizon-rust/horizon/commit/815c09b1f8d3a011b8f93273aa94a2c152c43ac9) Merge #2214 (world presets in the create-world screen) - [`bca77d1`](https://github.com/horizon-rust/horizon/commit/bca77d1ac4af96674a51b828d05e8247b59d4670) Merge origin/main - [`d0b42fb`](https://github.com/horizon-rust/horizon/commit/d0b42fb88e7b94341f13c8f45b09b3e9f5115613) Merge #2570 - [`e5ebedd`](https://github.com/horizon-rust/horizon/commit/e5ebeddb904c71fce6615b3b1c8de9d515a0a5eb) Merge #2585 - [`bc5ec6f`](https://github.com/horizon-rust/horizon/commit/bc5ec6fb462aa524ff26dfbdaf5a9e2e6fb3da17) Structure mobs test: pass the world preset #2570 added to for_dimension ### 📊 Changes **247 files changed** (+8463 additions, -1239 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `crates/horizon-client-core/src/particle_type.rs` (+12 -0) 📝 `crates/horizon-client-render/src/assets.rs` (+16 -2) 📝 `crates/horizon-client-render/src/block_entity_render.rs` (+12 -1) 📝 `crates/horizon-client-render/src/brewing.rs` (+35 -16) 📝 `crates/horizon-client-render/src/chunk/block_entity.rs` (+22 -0) 📝 `crates/horizon-client-render/src/containers.rs` (+8 -1) 📝 `crates/horizon-client-render/src/datapack.rs` (+46 -1) 📝 `crates/horizon-client-render/src/lib.rs` (+1 -0) 📝 `crates/horizon-client-render/src/options_ui.rs` (+99 -20) 📝 `crates/horizon-client-render/src/particles.rs` (+284 -3) ➕ `crates/horizon-client-render/src/potent_sulfur.rs` (+119 -0) 📝 `crates/horizon-client-render/src/sculk.rs` (+4 -0) 📝 `crates/horizon-client-render/src/settings.rs` (+7 -0) 📝 `crates/horizon-client-render/src/signs.rs` (+87 -4) 📝 `crates/horizon-client-render/src/sprites.rs` (+14 -0) 📝 `crates/horizon-client-render/src/streaming.rs` (+45 -3) 📝 `crates/horizon-client-render/src/ui.rs` (+15 -0) 📝 `crates/horizon-client/examples/mod_port_probe.rs` (+4 -3) 📝 `crates/horizon-client/examples/probe/block_entity_anim_fixture.rs` (+2 -1) _...and 80 more files_ </details> ### 📄 Description ## What and why - Goat long jump pose: a jumping goat takes Pose.LONG_JUMPING with its smaller box (scaled 0.7) and holds the friction flag, and the pose is sent to other clients like the frog's. Vanilla: Goat.getDefaultDimensions, LongJumpUtil.isClearTransition. - Shared long jump goals: the frog's jump goal pieces now also serve goats (friction flag, pose, default landing spot, cooldown count down). Frogs behave as before. Vanilla: LongJumpToRandomPos, LongJumpMidJump, CountDownCooldownTicks. - Goat jump search box: a goat looks for a landing spot in an 11 x 11 x 11 box (the frog's is 9 x 5 x 9) and does not draw from the mob's random. Vanilla: LongJumpToRandomPos.start. - Goat that cannot jump waits: a goat that is off the ground or in water, lava or honey waits 300 to 600 ticks before trying again, and runs this check in water too. Vanilla: LongJumpToRandomPos.checkExtraStartConditions. - Goat leap sound: goats play entity.goat.long_jump (screaming goats entity.goat.screaming.long_jump) when they leap. Vanilla: LongJumpToRandomPos.tick, GoatAi.initLongJumpActivity. - Goat landing: a landing goat keeps a tenth of its horizontal speed, plays a thud at volume 2, stands up and starts its cooldown; water does not end its flight. Vanilla: LongJumpMidJump.stop. - Goats long jump between ledges when their cooldown runs out (no tempting player, breed target or walk target). Vanilla: GoatAi.initLongJumpActivity, LongJumpToRandomPos.defaultAcceptableLandingSpot. - Goat fall damage is 10 lower, so ledge jumps do not hurt. Vanilla: Goat.calculateFallDamage. - Age lock is honoured: a locked baby stays a baby, a locked baby fed food does not age, a tadpole counts its own age up again, and the lock is synced to other clients (MushroomCow variant moves to entry 18 behind it). Vanilla: AgeableMob.aiStep, canAgeUp, Animal/Panda/Dolphin.mobInteract, AGE_LOCKED synched data. - Growth particles: a mob a golden dandelion touched shows pause or reset growth particles for 40 ticks. Vanilla: AgeableMob.makeAgeLockedParticle. - Age lock toggle for ageable mobs: flips AGE_LOCKED, sets the baby start age (-24000, sniffer -48000) and the particle timer. Vanilla: AgeableMob.setAgeLockedData. - Age lock toggle for tadpoles: flips AGE_LOCKED, resets age to 0 and starts the particle timer. Vanilla: Tadpole.setAgeLockedData. - Golden dandelion check: only a baby, with no particle timer running, and not a zombie horse, skeleton horse or villager. Vanilla: AgeableMob.canUseGoldenDandelion. - Dandelion use: consumes one (not in creative), keeps the mob from despawning when locked, plays the use or unuse sound. Vanilla: AgeableMob.setAgeLocked. - Using a golden dandelion on a baby animal now locks or releases its growth (scared or upside-down pandas and armadillos in their shell answer first). Vanilla: AgeableMob.mobInteract, Tadpole.mobInteract. - Port map updated: the golden dandelion rows are marked ported. - Allay listener: allays hear note blocks within 16 blocks and save the listener. Vanilla: Allay.VibrationUser, GameEventTags.ALLAY_CAN_LISTEN. - Liked note block memory: kept as a GlobalPos; dropped when over 1024 blocks away, in another dimension, no longer a note block or its cooldown ran out; items are thrown at the centre of the block above. Vanilla: GlobalPos.isCloseEnough, AllayAi.getItemDepositPosition. - Allay with a liked note block hears only that block while within 1024 blocks in its dimension. Vanilla: Allay.VibrationUser.canReceiveVibration. - Allays remember a note block they heard (600 tick cooldown, renewed when it plays again), so they bring items to it instead of the player. Vanilla: AllayAi.hearNoteblock. ## Vanilla reference - Goat long jump pose: Goat.getDefaultDimensions, LongJumpUtil.isClearTransition (Goat.java, LongJumpUtil.java) - Shared goal pieces: LongJumpToRandomPos, LongJumpMidJump, CountDownCooldownTicks - Jump search box: LongJumpToRandomPos.start (LongJumpToRandomPos.java) - Cannot jump wait: LongJumpToRandomPos.checkExtraStartConditions (LongJumpToRandomPos.java) - Leap sound: LongJumpToRandomPos.tick, GoatAi.initLongJumpActivity (GoatAi.java) - Landing: LongJumpMidJump.stop (LongJumpMidJump.java) - Long jump activity: GoatAi.initLongJumpActivity, LongJumpToRandomPos.defaultAcceptableLandingSpot (GoatAi.java) - Fall damage: Goat.calculateFallDamage (Goat.java) - Age lock tick and sync: AgeableMob.aiStep, AgeableMob.canAgeUp, Animal.mobInteract, Panda.mobInteract, Dolphin.mobInteract, AgeableMob.defineSynchedData (AgeableMob.java) - Growth particles: AgeableMob.makeAgeLockedParticle, Tadpole.aiStep (AgeableMob.java:225) - Toggle: AgeableMob.setAgeLockedData (AgeableMob.java:82), Tadpole.setAgeLockedData (Tadpole.java:168) - Check: AgeableMob.canUseGoldenDandelion (AgeableMob.java:78) - Use: AgeableMob.setAgeLocked (AgeableMob.java:88) - Interaction: AgeableMob.mobInteract (AgeableMob.java:68), Tadpole.mobInteract, Panda.mobInteract, Armadillo.mobInteract - Allay listener: Allay.VibrationUser, GameEventTags.ALLAY_CAN_LISTEN (Allay.java) - Liked note block: GlobalPos.isCloseEnough (GlobalPos.java:31), AllayAi.getItemDepositPosition (AllayAi.java) - Receive filter: Allay.VibrationUser.canReceiveVibration (Allay.java:564) - Hear note block: AllayAi.hearNoteblock (AllayAi.java:108), Allay.VibrationUser.onReceiveVibration ## Self-check cargo check and clippy -D warnings pass for horizon-client; not run in game. Split out of #3926. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5312
No description provided.