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
This commit is contained in:
Zinedin Polic 2026-09-28 00:59:43 +02:00 committed by GitHub
parent 4d7a501943
commit 39bf330fa6

View File

@ -549,6 +549,7 @@ interface event {
position: position, position: position,
target-world: %world, target-world: %world,
spawn-reason: string, spawn-reason: string,
player: option<player>,
cancelled: bool cancelled: bool
} }