[PR #2352] [MERGED] Give zombified piglins that spawn in a nether portal a portal cooldown #4231

Closed
opened 2026-11-03 04:15:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2352
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/portal-pigmen-cooldown


📝 Commits (1)

  • f25fbb6 Give zombified piglins that spawn in a nether portal a portal cooldown

📊 Changes

2 files changed (+15 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+4 -1)
📝 crates/horizon-client/src/game/nether_portal.rs (+11 -0)

📄 Description

What and why

A zombified piglin that spawned in an Overworld nether portal walked straight through it and ended up in the Nether. Vanilla gives the new piglin a portal cooldown, so it stays in the portal for 300 ticks without travelling.

Horizon spawned the piglin and set no cooldown. Now portal_spawn sets the standard 300 tick portal cooldown on it right after it spawns.

Vanilla reference

  • NetherPortalBlock.randomTick: after ZOMBIFIED_PIGLIN.spawn(...) it calls entity.setPortalCooldown().
  • Entity.setPortalCooldown / getDimensionChangingDelay (300 for non-players).

Self-check

cargo check -p horizon-client passes.


🔄 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/2352 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/portal-pigmen-cooldown` --- ### 📝 Commits (1) - [`f25fbb6`](https://github.com/horizon-rust/horizon/commit/f25fbb6f2ed110ccdd7cb5b48731bbc05f5e159d) Give zombified piglins that spawn in a nether portal a portal cooldown ### 📊 Changes **2 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+4 -1) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+11 -0) </details> ### 📄 Description ## What and why A zombified piglin that spawned in an Overworld nether portal walked straight through it and ended up in the Nether. Vanilla gives the new piglin a portal cooldown, so it stays in the portal for 300 ticks without travelling. Horizon spawned the piglin and set no cooldown. Now `portal_spawn` sets the standard 300 tick portal cooldown on it right after it spawns. ## Vanilla reference - `NetherPortalBlock.randomTick`: after `ZOMBIFIED_PIGLIN.spawn(...)` it calls `entity.setPortalCooldown()`. - `Entity.setPortalCooldown` / `getDimensionChangingDelay` (300 for non-players). ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:39 +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#4231
No description provided.