indicateDamage now uses main's knockback direction, which is zero when
the hit has no source position (as in dealDefaultKnockback).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both sets of level-event sounds: this branch's chorus flower and
dripstone-into-cauldron, and main's zombie door and potion splashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both entity-event handlers in remote.rs: this branch's events 20,
6/7/12/13/14/18 and 3, and main's honey slide (53).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The strider's DATA_SUFFOCATING sync is left to #2526, which sends and reads
index 19 already (lan.rs mob_freeze_meta, remote.rs), so both don't send it twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 Agent: verified against vanilla 26.3: LivingEntity.baseTick counts hurtTime down for a dead or riding player too, so the hurt tilt no longer restarts every frame and shakes the camera on the server-thread path. Tested on a tree of main + #2350 + this PR: the 33 harnesses its files reach passed, and the LAN hurt, death-while-mining and respawn checks passed with the host in-frame and on its server thread. Thanks @kacpherek!
Resolves potions.rs against main's thrower tracking: splashes keep
their indirectMagic source, and a lingering cloud keeps the thrower too
(AreaEffectCloud.getOwner), so its instant damage names them, else the
cloud.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Horizon only kept a chiseled bookshelf's saved data, so using it did
nothing. It is now a block entity with six slots and lastInteractedSlot:
- ChiseledBookShelfBlock.useItemOn / useWithoutItem: the slot comes from
the hit position on the front face (getHitSlot, 3x2). A #bookshelf_books
item goes into an empty slot (one book, the insert sounds, the used
statistic), a book comes out to the inventory or the ground, with the
pickup sounds. The slot_N_occupied states follow
(ChiseledBookShelfBlockEntity.updateState) and reach a server's clients
with the block update; the client's prediction ends the click the same way.
- Hoppers and droppers use its container: books only, one to a slot, and the
occupied state and last slot follow what they moved.
- The comparator reads lastInteractedSlot from the block entity.
block_entity_nbt moved into horizon-client-core (crate split): save.rs
reads gateway_exit across the crate boundary, so it is public. The
generated block entities now load through decode_block_entity, which
reads the gateway's exit with this PR's decode_end_gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A client of a server only draws what the server sends. Send and read the
synched data for sleeping villagers (pose and bed), horses grazing and
rearing, invisible mobs, a carried enderman block, swimming drowned, zombie
villager cures, the villager head shake, zombie drowning conversion,
hoglin and piglin conversion, charged blazes, turtle eggs, baby zoglins and
the wither's side head targets.
A wither's side heads also need a line of sight to shoot, as in vanilla.
Level.noCollision(shulker, box) keeps the entities whose
canBeCollidedWith is true for the shulker: living shulkers and adult
happy ghasts (boats and minecarts too, outside the mob world). Players
and other mobs never stop a shulker from opening or landing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The health layer spends the last of the player's health and raises the dead
flag, so Game::tick can show the death screen.
Co-Authored-By: minimax-m3.1-flash (Claude Code) <noreply@users.noreply.github.com>
MobEffectInstance's show_icon defaults to show_particles: an effect given with
hidden particles hides its icon too, and keeps doing so after a reload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fox extends Animal, and AgeableMob has two entries in 26.3 (DATA_BABY_ID 16,
AGE_LOCKED 17): DATA_TYPE_ID is 18 and DATA_FLAGS_ID 19. An int at 17 is the
wrong type for AGE_LOCKED's boolean on a vanilla client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>