[PR #2985] [MERGED] Hostile mobs: hoglin timing, crossbow aim, witch resistance, wither skulls, cobwebs, beds and the dragon as vanilla #4736

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

📋 Pull Request Information

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

Base: main ← Head: fix/hostile-mob-parity


📝 Commits (9)

  • 6c3defa Hit with a hoglin or zoglin every 40 ticks, 15 for a baby
  • 4156a6a Aim a mob's crossbow by the world difficulty
  • f9fca56 Give witches their resistance to magic
  • ad8ef0b Wither a skull's target by difficulty, and only on a hit
  • 57494e6 Slow mobs in cobwebs again
  • 5703fdf Let slimes, ghasts and calm piglins not block a bed
  • a1dfcbf Remove the dragon's flame cloud when it takes off
  • 0d7f842 Hurt the dragon with a wind charge
  • f690880 Format the hostile mob fixes

📊 Changes

10 files changed (+96 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -1)
📝 crates/horizon-client/src/game/dragon.rs (+8 -0)
📝 crates/horizon-client/src/game/potions.rs (+4 -6)
📝 crates/horizon-client/src/game/wind.rs (+7 -0)
📝 crates/horizon-client/src/game/wither.rs (+13 -5)
📝 crates/horizon-client/src/mobs.rs (+21 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+18 -3)
📝 crates/horizon-client/src/mobs/goals.rs (+14 -1)
📝 crates/horizon-client/src/mobs/illager.rs (+2 -2)
📝 crates/horizon-client/src/mobs/piglin.rs (+4 -2)

📄 Description

What and why

  • Hoglins and zoglins hit every 40 ticks (15 for a baby), not every 20.
  • Pillagers and piglins aim their crossbows by the world difficulty (14 - 4 * difficulty), not always as on Normal.
  • Witches take 15% of magic, sonic boom and thorns damage, and splash potion damage; they take nothing from their own doing.
  • A wither skull withers its target for 10 s on Normal, 40 s on Hard and not at all on Easy, and only when the hit hurt.
  • Mobs are slowed again in cobwebs (spiders and withers ignore them); the block-effects pass had dropped this.
  • Slimes, ghasts and calm zombified piglins no longer stop a player from sleeping; only monsters do (an angry zombified piglin still does).
  • The dragon's flame cloud disappears when its sitting phase ends.
  • A wind charge hurts the ender dragon's parts (crystals are not hit by wind charges).

Vanilla reference

  • HoglinAi.java:91-92, Zoglin.java:127-128 (MeleeAttack.create(40) / create(15)).
  • RangedAttackMob.java:10, CrossbowAttackMob.java:18.
  • Witch.java:209-222, #witch_resistant_to (DamageTypeTagsProvider.java:87).
  • WitherSkull.java:57-88.
  • WebBlock.java:21-28, Spider.java:119, WitherBoss.java:370, Entity.java:3058.
  • ServerPlayer.java:1310-1320, ZombifiedPiglin.java:239, Monster.java:132.
  • DragonSittingFlamingPhase.java:100-106.
  • AbstractWindCharge.java (canHitEntity, onHitEntity).

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2985 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/hostile-mob-parity` --- ### 📝 Commits (9) - [`6c3defa`](https://github.com/horizon-rust/horizon/commit/6c3defa821dd767413e421b5ada81759f83a47b5) Hit with a hoglin or zoglin every 40 ticks, 15 for a baby - [`4156a6a`](https://github.com/horizon-rust/horizon/commit/4156a6ac93363904dbabe175e4986be0ec32b80c) Aim a mob's crossbow by the world difficulty - [`f9fca56`](https://github.com/horizon-rust/horizon/commit/f9fca5688d079b797eb77aca2a5bf5282d0e6f40) Give witches their resistance to magic - [`ad8ef0b`](https://github.com/horizon-rust/horizon/commit/ad8ef0b7e84fdd682c28036a79171dcf68f554cc) Wither a skull's target by difficulty, and only on a hit - [`57494e6`](https://github.com/horizon-rust/horizon/commit/57494e6871fde1832e4b2845bca4b3dbafc8a5a9) Slow mobs in cobwebs again - [`5703fdf`](https://github.com/horizon-rust/horizon/commit/5703fdfdc498bfc10ecf38db104814e0223ec327) Let slimes, ghasts and calm piglins not block a bed - [`a1dfcbf`](https://github.com/horizon-rust/horizon/commit/a1dfcbf2b39337b8e2bafee5322f9488fc5e3aae) Remove the dragon's flame cloud when it takes off - [`0d7f842`](https://github.com/horizon-rust/horizon/commit/0d7f842b091c57b84a2adc2359faf09a78761af0) Hurt the dragon with a wind charge - [`f690880`](https://github.com/horizon-rust/horizon/commit/f69088012b8b780a7453d5cc90a2ea7674c8a482) Format the hostile mob fixes ### 📊 Changes **10 files changed** (+96 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -1) 📝 `crates/horizon-client/src/game/dragon.rs` (+8 -0) 📝 `crates/horizon-client/src/game/potions.rs` (+4 -6) 📝 `crates/horizon-client/src/game/wind.rs` (+7 -0) 📝 `crates/horizon-client/src/game/wither.rs` (+13 -5) 📝 `crates/horizon-client/src/mobs.rs` (+21 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+18 -3) 📝 `crates/horizon-client/src/mobs/goals.rs` (+14 -1) 📝 `crates/horizon-client/src/mobs/illager.rs` (+2 -2) 📝 `crates/horizon-client/src/mobs/piglin.rs` (+4 -2) </details> ### 📄 Description ## What and why - Hoglins and zoglins hit every 40 ticks (15 for a baby), not every 20. - Pillagers and piglins aim their crossbows by the world difficulty (14 - 4 * difficulty), not always as on Normal. - Witches take 15% of magic, sonic boom and thorns damage, and splash potion damage; they take nothing from their own doing. - A wither skull withers its target for 10 s on Normal, 40 s on Hard and not at all on Easy, and only when the hit hurt. - Mobs are slowed again in cobwebs (spiders and withers ignore them); the block-effects pass had dropped this. - Slimes, ghasts and calm zombified piglins no longer stop a player from sleeping; only monsters do (an angry zombified piglin still does). - The dragon's flame cloud disappears when its sitting phase ends. - A wind charge hurts the ender dragon's parts (crystals are not hit by wind charges). ## Vanilla reference - HoglinAi.java:91-92, Zoglin.java:127-128 (`MeleeAttack.create(40)` / `create(15)`). - RangedAttackMob.java:10, CrossbowAttackMob.java:18. - Witch.java:209-222, `#witch_resistant_to` (DamageTypeTagsProvider.java:87). - WitherSkull.java:57-88. - WebBlock.java:21-28, Spider.java:119, WitherBoss.java:370, Entity.java:3058. - ServerPlayer.java:1310-1320, ZombifiedPiglin.java:239, Monster.java:132. - DragonSittingFlamingPhase.java:100-106. - AbstractWindCharge.java (`canHitEntity`, `onHitEntity`). ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:34 +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#4736
No description provided.