From 39bf330fa6aefc91c8ac61bd07d0fdbd5a5b95ac Mon Sep 17 00:00:00 2001 From: Zinedin Polic <38179177+zinedinp@users.noreply.github.com> Date: Mon, 28 Sep 2026 00:59:43 +0200 Subject: [PATCH] fix(ai): NeutralMob anger, neutral targets, daylight sun-burn (#3568) * neutral mob cleanup and reuse * spider attack * dailight grudge (coderabbit) * stale anger_target reuse in the creative/spectator check. (coderabbit) * cargo fmt * fix spider * fix can_attack override to the iron golem * CustomName parse * Entity NBT reads reset omitted keys * Spawn eggs and dispensers now apply the entity_data NBT to the mob they spawn. * /summon never calls a finalize-spawn step * spawn paths handling * alerting system for polar bear * Adult target behaviour * gate angry, bee stung * wear effected by unbreaking in sun burn * spawn as baby spawn egg disconect * fix clippy spawn as baby * Restore the entity type during deserialization * Check the full entity NBT before finalization trial spawners * e shared baby age for piglin offspring * CustomName save now calls to_nbt_tag_for_version * Literal names round-trip unchanged * dont restrict vanilla spawn eggs entity data can change * spawn egg custom data prepare egg mob * else if nested to marcro * set_custom_name client sync * nbt isBaby correct pass not age for zombie. fix sutom health * fix broken data command * removed souble damage dealing * share piglin isAgeable. DATA_BABY_ID + Zoglin * take sky light (minus sky darkening) and block light. * bee sight and anger * NoAI for Mobs and testing * Op check and order * plugin integration for permission handling * Permission node spawn for plugin * CreatureSpawnEvent tell plugins who who spawned it * update can_attack and invulnarbility check * Returns `false` when a plugin cancels the [`EntitySpawnEvent`] * Preserve the required entity ID * ghast reject iron golem can attack --- v0.1/event.wit | 1 + 1 file changed, 1 insertion(+) diff --git a/v0.1/event.wit b/v0.1/event.wit index 1d281d0..5a220b0 100644 --- a/v0.1/event.wit +++ b/v0.1/event.wit @@ -549,6 +549,7 @@ interface event { position: position, target-world: %world, spawn-reason: string, + player: option, cancelled: bool }