[PR #3163] [MERGED] Sulfur cubes: synchronize size metadata and adult egg spawns #4827

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3163
Author: @echo-ilovech3ss
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/sulfur-cube-spawn-egg-size


📝 Commits (5)

  • 43f2497 Sulfur cubes: synchronize size metadata and adult egg spawns
  • 2ac85c5 lan: register default size 1 for AbstractCubeMob metadata
  • d27a7cb Sulfur cubes: align babyhood and egg offspring with vanilla 26.3
  • 7daca92 rustfmt: sulfur cubes join the baby-flag group
  • 4812518 Merge main into the branch

📊 Changes

3 files changed (+24 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+4 -2)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+16 -1)
📝 crates/horizon-client/src/mobs/finalize.rs (+4 -0)

📄 Description

What and why

Fixes #3151.

When a sulfur cube is spawned from a spawn egg, SulfurCube.setSpawnSize initializes non-baby cubes at adult size 2. However, lan.rs and remote_mob_data.rs only serialized and received AbstractCubeMob.ID_SIZE (index 18) for slimes and magma cubes, omitting sulfur cubes.

Because size metadata was not synchronized over the network, sulfur cubes defaulted to size 1 (baby) on remote clients. Including minecraft:sulfur_cube in ID_SIZE metadata tracking and updating size on offspring egg spawns ensures adult cubes render and behave with their full size.

Vanilla reference

Minecraft Java 26.3:

  • net.minecraft.world.entity.monster.cubemob.AbstractCubeMob.ID_SIZE
  • net.minecraft.world.entity.monster.cubemob.SulfurCube.setSpawnSize
  • net.minecraft.world.entity.monster.cubemob.SulfurCube.setSize

Self-check

| Check | Result |
| --- | --- |
| Scope | ✅ 5 files, +42 −7 |
| Cargo.lock | ✅ unchanged |
| Public tree | ✅ pass |
| Python tests | ✅ 398 passed |
| rustfmt | ✅ pass |
| tests: horizon-client, horizon-server | ✅ 1312 passed |

🔄 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/3163 **Author:** [@echo-ilovech3ss](https://github.com/echo-ilovech3ss) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/sulfur-cube-spawn-egg-size` --- ### 📝 Commits (5) - [`43f2497`](https://github.com/horizon-rust/horizon/commit/43f2497f1fef1a19b046da6c5c247af48e55621e) Sulfur cubes: synchronize size metadata and adult egg spawns - [`2ac85c5`](https://github.com/horizon-rust/horizon/commit/2ac85c50eb462c88438ca1a514daaa8ecdcf2973) lan: register default size 1 for AbstractCubeMob metadata - [`d27a7cb`](https://github.com/horizon-rust/horizon/commit/d27a7cbce3c498fa38675e9d3760c4aabdea4c9d) Sulfur cubes: align babyhood and egg offspring with vanilla 26.3 - [`7daca92`](https://github.com/horizon-rust/horizon/commit/7daca92c4a1377c31d0cbb2a5c2177cf4a33ccd3) rustfmt: sulfur cubes join the baby-flag group - [`4812518`](https://github.com/horizon-rust/horizon/commit/4812518327cbf34ee74b228692c9d6b8561ca3d9) Merge main into the branch ### 📊 Changes **3 files changed** (+24 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+4 -2) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+16 -1) 📝 `crates/horizon-client/src/mobs/finalize.rs` (+4 -0) </details> ### 📄 Description ## What and why Fixes #3151. When a sulfur cube is spawned from a spawn egg, `SulfurCube.setSpawnSize` initializes non-baby cubes at adult size 2. However, `lan.rs` and `remote_mob_data.rs` only serialized and received `AbstractCubeMob.ID_SIZE` (index 18) for slimes and magma cubes, omitting sulfur cubes. Because size metadata was not synchronized over the network, sulfur cubes defaulted to size 1 (baby) on remote clients. Including `minecraft:sulfur_cube` in `ID_SIZE` metadata tracking and updating size on offspring egg spawns ensures adult cubes render and behave with their full size. ## Vanilla reference Minecraft Java 26.3: - `net.minecraft.world.entity.monster.cubemob.AbstractCubeMob.ID_SIZE` - `net.minecraft.world.entity.monster.cubemob.SulfurCube.setSpawnSize` - `net.minecraft.world.entity.monster.cubemob.SulfurCube.setSize` ## Self-check ``` | Check | Result | | --- | --- | | Scope | ✅ 5 files, +42 −7 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ pass | | Python tests | ✅ 398 passed | | rustfmt | ✅ pass | | tests: horizon-client, horizon-server | ✅ 1312 passed | ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:14 +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#4827
No description provided.