Compare commits

..
Author SHA1 Message Date
Ludovic Marie 86a9d9e669 Merge pull request #10236 from horizon-rust/fix/launcher-screenshot-memory
🤖 Agent: merging. The screenshot tiles, viewer and background no longer go through GPUI's never-evicted img(path) cache. Two 32k×16k screenshots on Home went from an 8.7 GiB peak to 277 MiB on the desktop. One risk to watch: the 2 s grace lets the budget overflow while more than 256 MiB of tiles is on screen at once (about 280 tiles with Show all), which is bounded by the list itself.
2026-11-05 21:37:05 +01:00
Horizon agentandClaude Opus 5.5 23e710f75d launcher: draw screenshots at their shown size, under a byte budget
Screenshot tiles (Overview's three newest, the Screenshots tab), the
viewer and Home's background went through gpui::img(path): GPUI decodes
the whole picture and keeps it, and its sprite-atlas copy, until the
launcher quits. One 32768x16384 screenshot is 2 GiB decoded; with two
of them Home alone reached 8.7 GiB (24 GiB reported on Linux).

- pictures (lib): PNGs are read a row at a time and box-filtered down to
  the drawn size, never held whole; other formats decode whole only
  under 256 MiB. Lru keeps made pictures under a byte budget, sparing
  those drawn in the last 2 s.
- picture_cache: makes them off the UI thread (3 at once), 640 px for
  tiles, 3840 px for the viewer and background, 256 MiB budget; evicted
  images are dropped from the window's sprite atlas.
- glass_shot_blur's blurred copies go through it too, from a shrunk read
  instead of image::open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 21:35:43 +01:00
Ludovic Marie 3d33b0299d Merge pull request #10223 from horizon-rust/feat/shop-tab-button-label
🤖 Agent: the Wardrobe button opens the launcher's Shop tab now, so its label drops "on playhorizon.dev"; the key is renamed in place in all 86 tables (no stale key left), and the i18n test passes.
2026-11-05 21:20:36 +01:00
Horizon agentandClaude Opus 5.5 2d0c715866 Launcher Wardrobe: the Shop button reads "Get more cosmetics"
It opens the launcher's Shop tab now, not the website, so the old label
"Get more cosmetics on playhorizon.dev" was wrong. The key is renamed in all 86
tables, in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 21:08:34 +01:00
Ludovic Marie f00c4c6392 Merge pull request #10139 from horizon-rust/feat/shop-tab-3
🤖 Agent: Pay checks that the checkout's uuid matches the recipient and only opens playhorizon.dev/shop/pay with a validated txn_ id; no card entry in the launcher.
2026-11-05 21:07:51 +01:00
Ludovic Marie 6e3ecedc2a Merge pull request #10138 from horizon-rust/feat/shop-tab-2
🤖 Agent: the Shop is a plain top-bar tab with no badge; it never opens by itself and isn't the start page; a catalogue failure shows one quiet line and Play is untouched; try-on uses #10153's Viewer (no second renderer).
2026-11-05 21:05:28 +01:00
Ludovic Marie c58f498288 Merge pull request #10137 from horizon-rust/feat/shop-tab-1
🤖 Agent: shop price rules (sets partly owned, items inside a set in the basket, Supporter once) match the site's pricing.ts and are tested against hand-worked values; nothing player-visible yet. Requeued after merging main (#10153's lang tails).
2026-11-05 20:39:00 +01:00
Ludovic Marie 1fdf875085 Merge pull request #9918 from oxi-does-dev/fix/interact-hit-location
🤖 Agent: Requeued on the same head: the parity run died in 1 s on the runner's missing .horizon-prepare.lock (environment, no harness ran), so it's rerunning (42040505129). The interact packet now carries the ray's hit point from the mob's feet. Union on main dd675b574 green.
2026-11-05 20:31:48 +01:00
Ludovic Marie bd340bf472 Merge pull request #9927 from CocofireHD/fix/9291-resolution-scale-shaders
🤖 Agent: With a scaled resolution, final now draws at the picture's size into its own target, and one linear copy stretches it to the window. Same-size output and packs without a final keep their old paths, so only resolution-scaled pack users take the extra pass. Union on main dd675b574 green (fmt, clippy, 4426 client tests including the render crate).
2026-11-05 20:31:43 +01:00
Ludovic Marie 6e98dae760 Merge pull request #9920 from DUzzL/fix/9899-boat-passenger
🤖 Agent: Matches LivingEntity.calculateEntityAnimation: a passenger calls walkAnimation.stop(), which zeroes speed, old speed and position, so the seat moving with the boat no longer swings the legs. Union on main dd675b574 green (fmt, clippy, 4426 client tests).
2026-11-05 20:31:39 +01:00
Ludovic Marie bff2562ec0 Merge pull request #9916 from CocofireHD/fix/9448-gl-depth-textureload
🤖 Agent: WebGPU allows binding a depth view as unfilterable-float, and textureLoad(...).r is the same texel, so Vulkan, DX12 and Metal read the same depth. The translation test now fails on any GL-run entry point that doesn't translate, except the one known glint case. Union on main dd675b574 green (fmt, clippy, 4426 client tests).
2026-11-05 20:31:35 +01:00
Ludovic Marie e3ad1ce3ee Merge pull request #9922 from MSedgeMC/test/animate-tick-neighbours
🤖 Agent: Merged main (9906 landed with the INF-seeded outline_center fold, kept from main) and ran marker_particles on this head: PASS, 2,187 cases and 462,718 lines matching the pinned client. The hive's loop now draws nextInt(1) again on the check that ends it, as BeehiveBlock.animateTick's for-condition does.
2026-11-05 20:27:42 +01:00
Ludovic Marie 5b4823c198 Merge pull request #10093 from horizon-rust/emotes/3-network
🤖 Agent: emotes, part 3 (#10069): others see your emote through the cosmetics service, now based on main. CI verify is green. Polling is bounded: at most once a second, only while Horizon players are in view, and only with Other players' cosmetics on Shown. Sending is signed and only while Show me as Horizon is on. Without horizon-cosmetics#14 deployed, the service answers 404 and the game backs off.
2026-11-05 20:07:45 +01:00
Ludovic Marie c6ad84b481 Merge pull request #10092 from horizon-rust/emotes/2-play
🤖 Agent: emotes, part 2 (#10069): the wheel and playback, retargeted to main after #10091. CI verify is green. Two clients played every emote in game; captures are in the PR. Visual only, nothing sent to game servers. #10093 follows.
2026-11-05 20:05:22 +01:00
Ludovic Marie 0508903777 Merge pull request #10091 from horizon-rust/emotes/1-format
🤖 Agent: emote format, the bottom of the emotes stack (#10069). pr_ready on the whole stack is green except the NixOS-only uname test. pose_body copies the target at full weight: 0.26–1.1 µs per emoting player and frame, measured. #10092 follows once this lands.
2026-11-05 20:01:16 +01:00
Horizon agentandClaude Opus 5.5 e7c5cb7331 Merge main (via feat/shop-tab-2) into feat/shop-tab-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:54:27 +01:00
Horizon agentandClaude Opus 5.5 5583a6bd8b Merge main into feat/shop-tab-2; the Shop tries items on in the Wardrobe's 3D view
#10153 replaced the Wardrobe's still picture with viewer::Viewer. The Shop now
uses its own Viewer (drag to turn, scroll to zoom, Reset view) instead of the
still picture and its Turn button, so there is one renderer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:54:15 +01:00
Horizon agentandClaude Opus 5.5 e15d46d371 Merge main into feat/shop-tab-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:52:52 +01:00
Ludovic Marie f2f95dad8a Merge pull request #10153 from horizon-rust/agent/wardrobe-3d
🤖 Agent: verified on the desktop at this tree: horizon-cosmetics fmt/clippy/tests (40) and the launcher's fmt/clippy/tests (695) green; pr_ready skipped because the desktop disk was under 45 GB. Point to watch: preview::render now takes a Camera (launcher is its only caller), and lib.rs will conflict by one line with the emote format PR #10091.
2026-11-05 19:38:53 +01:00
Ludovic Marie 56349b9713 Merge pull request #9926 from masa-masa-0314/feat/realms-settings-tab
🤖 Agent: Fixed to the 26.3 jar's DTOs: the region preference travels as its id (0/1/2) and the region as its nameId, so a Realm that has a preference parses again (it used to fail the whole RealmServer parse). preferredRegions reads regionDataList/regionName, and the configuration POST puts the slot under options with update_slot's RealmsSlotUpdateDto. New tests pin the POST body and the parsing; CI verify is green on this head.
2026-11-05 19:34:24 +01:00
Horizon agentandClaude Opus 5.5 4f0af1f5f2 Merge main (via feat/shop-tab-2) into feat/shop-tab-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:29:24 +01:00
Horizon agentandClaude Opus 5.5 75adf421e0 Merge main (via feat/shop-tab-1) into feat/shop-tab-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:29:22 +01:00
Horizon agentandClaude Opus 5.5 ec78951af1 Merge main into feat/shop-tab-1 (lang tables re-appended)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:29:20 +01:00
Horizon agentandClaude Opus 5.5 85056bcaaf Realms settings: rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:20:46 +01:00
Ludovic Marie ff4b4b17bd Merge pull request #9944 from MSedgeMC/fix/steering-stick-wear
🤖 Agent: wear() still fires the durability trigger after Unbreaking, and the broken stat now comes before the rod. The parity failure at ~17:00 was the playhorizon runner's dead .horizon-prepare.lock link, not this change: rerun on this head.
2026-11-05 19:09:06 +01:00
Ludovic Marie 120fe4d7e3 Merge pull request #9941 from MSedgeMC/fix/bundle-tooltip-display
🤖 Agent: The height probe and the draw share bundle_tooltip, so a hidden grid can't leave an empty box taller than its lines. The parity failure at ~17:00 was the playhorizon runner's dead .horizon-prepare.lock link, not this change: rerun on this head.
2026-11-05 19:09:02 +01:00
Ludovic Marie bebaecd65a Merge pull request #9939 from degepie/fix/name-tag-interact-trigger
🤖 Agent: The tag is copied before name_mob uses it up, like handleInteract's itemStackBefore. Follow-up gap, not this PR: vanilla also fires the trigger with an empty stack on non-item successes. The parity failure at ~17:00 was the playhorizon runner's dead .horizon-prepare.lock link, not this change: rerun on this head.
2026-11-05 19:08:58 +01:00
Ludovic Marie 674de01447 Merge pull request #9938 from degepie/fix/drink-consume-trigger
🤖 Agent: Same two calls finish_consuming makes, before the stack shrinks, as Consumable.onConsume orders them. drink_ominous_bottle awarded neither, so nothing counts twice. The parity failure at ~17:00 was the playhorizon runner's dead .horizon-prepare.lock link, not this change: rerun on this head.
2026-11-05 19:08:52 +01:00
Ludovic Marie d1dc1cb937 Merge pull request #9937 from degepie/fix/structure-tag-predicates
🤖 Agent: The pack-less structure tags are a OnceLock keyed on the first resource root, as StructureSpawns::shared is. location_structure_tags_hold_their_structures passes with prepared resources. The parity failure at ~17:00 was the playhorizon runner's dead .horizon-prepare.lock link, not this change: rerun on this head.
2026-11-05 19:08:48 +01:00
Ludovic Marie b0061bc2d3 Merge pull request #9946 from martipops/controller/pad-reach
🤖 Agent: On playhorizon (vscreen, lavapipe) every_screen_has_targets, pause_icon, erase_checkbox, controller_settings_pad and settings pass. The empty-label target can add a second target on a rect that already called target_as: drawn_targets dedups only against labelled widgets, not between targets. Nothing on main seems to do that today. Union run on playhorizon (main a1e0c0db0 + this gate's 11 PRs): fmt, clippy, all touched crates' tests pass.
2026-11-05 19:08:44 +01:00
Horizon agentandClaude Opus 5.5 b162cbaa46 Launcher: the Wardrobe's player in 3D, turned by drag, zoomed by the wheel
The Wardrobe's still picture becomes a live view of the player's own skin
(both layers, slim or wide arms) wearing their items, drawn by the same CPU
renderer (horizon_cosmetics::preview) only when something changed:

- drag to turn (followed past the view's edges while held), scroll to zoom
  up to 3x on the head, Reset view; hovering an owned item's card tries it
  on (Nothing takes the slot's off) until the pointer leaves;
- items animate (swing, bob, spin) on the game's 20-tick clock with
  Item::animate, as the game does, only while the window is in front and
  not under reduced motion (HORIZON_LAUNCHER_MOTION=always keeps them going);
- horizon_cosmetics::viewer::Stage decides each frame: nothing changed, no
  picture and no timer; at most 20 pictures a second while animating (one a
  tick), 60 while dragging. Pictures are drawn at the view's size in points
  (240x330, about 2 ms) and baked up to device pixels;
- preview::Camera holds the turn, tilt and zoom (with headroom above the
  head for tall hats and back items), Draw::item_posed keeps items on posed
  bones, and viewer::BodyMotion is the hook an emote plays through
  (Viewer::play), for the emote format in flight (#10091).

The view is a GPUI view of its own, so a new picture rebuilds it alone;
the pointer is handled by the page's element around it, since GPUI Fast
hit-tests the page's own elements. "Turn" gives way to "Reset view" and a
hint, in every language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:08:41 +01:00
Ludovic Marie 0ad6666970 Merge pull request #9942 from TheMrZZ/fix/enderman-neighbour-placement
🤖 Agent: Deferring the attempt to the event phase lets update_from_neighbour_shapes see the real level and ticks, as EndermanLeaveBlockGoal.tick does. leave_block_goal_uses_real_neighbor_shapes_and_keeps_air_placement passes with prepared resources. Still missing: canSurvive and the BLOCK_PLACE game event. Union run on playhorizon (main a1e0c0db0 + this gate's 11 PRs): fmt, clippy, all touched crates' tests pass.
2026-11-05 19:08:39 +01:00
Horizon agent 1011abe707 Merge branch 'emotes/2-play' into emotes/3-network 2026-11-05 19:04:32 +01:00
Horizon agentandClaude Opus 5.5 6f88fac9a9 Emotes: the wheel's key release and click in emote_wheel.rs (keeps game.rs's release block whole)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 19:04:32 +01:00
Ludovic Marie baa9153c82 Merge pull request #9943 from CocofireHD/fix/9439-tank-refuse-fluid
🤖 Agent: native_fluid_at now allocates the block id String on every call, drains and tank queries included. That's fine for mod helpers, but worth an &'static str if a tick path ever calls it. The fragment stamps (tests.test_stamp_native_hooks passed in the union run). I ran the native_fluids tests on this head on playhorizon, 12 passed, the new dispatch test included.
2026-11-05 19:03:54 +01:00
Ludovic Marie 936594e71b Merge pull request #10078 from horizon-rust/pvp/hud-layout
🤖 Agent: merging. The layout lines only add keys to horizon-extras.txt; files without them load as before (every widget at its default place and style). Verify is green; stacked on #10077.
2026-11-05 18:58:43 +01:00
Ludovic Marie 1e5bf4c58f Merge pull request #10077 from horizon-rust/pvp/mod-hud
🤖 Agent: merging. Every widget reads local state only (no packets, no server queries); with every widget off, draw_pvp_hud returns after Hud::any(), so a player who never turns one on pays nothing. Verify is green; pr_ready --quick on playhorizon fails only the render crash:: tests that SIGSEGV under llvmpipe there, and crash.rs is untouched.
2026-11-05 18:58:39 +01:00
Ludovic Marie 35fe345f50 Merge pull request #9923 from CocofireHD/fix/9500-shulker-close-open
🤖 Agent: open_menu already counts the guest as an opener (container_opener_event), so the raise in lan_open_container counted them twice and stopOpen never reached 0, for chests as well as shulker boxes. The author's lan_e2e shulker_menu check pins the lid open, then shut, on both host and guest. Union on main dd675b574 green.
2026-11-05 18:58:35 +01:00
Ludovic Marie a553d191a8 Merge pull request #9917 from CocofireHD/fix/8615-vibration-particles
🤖 Agent: The server now sends one minecraft:vibration LevelParticles (count 1, no spread) with the listener's PositionSource and arrival ticks, and only draws locally when the window is the client, so a server-thread world doesn't draw it twice. Tested at a729b3cfe in a union on main dd675b574 (fmt, clippy, 4426 client tests green); this head only adds the author's main merge (test helper conflict) on top.
2026-11-05 18:58:26 +01:00
Ludovic Marie 383b898652 Merge pull request #9913 from Mayonesu0/fix/native-build-smart-app-control-5911
🤖 Agent: The launcher code is identical to what I tested in a union on main dd675b574 (launcher fmt, clippy -D warnings, 699 tests green). With no check before the build, a machine whose build programs ran before Smart App Control was turned on still builds (Mayonesu0's case 1), and only an os error 4551 leads the error with the explanation.
2026-11-05 18:58:22 +01:00
Ludovic Marie a6950f2d63 Merge pull request #9819 from TheMrZZ/fix/h320-transmute-result-patch
🤖 Agent: Merged main into this branch (the conflict was in command_exec_corpus.py: the transmute group now sits beside main's mob-effect and frame-map groups, and its recipe pack stays in ISOLATED_RECIPES). The result patch is now applied after the input patch, so a '!minecraft:damage' removal wins over inherited damage, as ItemStackTemplate.apply does. Union on main dd675b574: fmt, clippy, 4426 client tests green; CI parity runs command_exec.
2026-11-05 18:58:17 +01:00
Ludovic Marie d545e9df60 Merge pull request #10068 from horizon-rust/fix/launcher-main-red
🤖 Agent: tests now check all four hosts' cargo commands on every runner (main's launcher red since #9479); launcher dry run 42072143059 green on windows-arm64 and macos-x64.
2026-11-05 18:48:10 +01:00
Ludovic Marie 169b0f55c9 Merge pull request #9934 from hildlabs/github-stars
🤖 Agent: The stars come from the registry index, so the launcher makes no new GitHub API call, and both strings go through button()'s tr() and trf(). Until horizon-mods#285 lands, every page shows "0 stars on GitHub". I ran a union on playhorizon at 8b149e665; this head only merges main and the PR diff is unchanged.
2026-11-05 18:48:06 +01:00
Ludovic Marie 23907d0741 Merge pull request #9936 from degepie/fix/query-command-feedback
🤖 Agent: Matches CommandSourceStack.sendSuccess(…, false) for every query. I ran the ignored a_silent_source_drops_query_results_but_still_stores_them with prepared resources and it passes. Union run on playhorizon (main a1e0c0db0 + this gate's 11 PRs): fmt, clippy, all touched crates' tests pass.
2026-11-05 18:48:02 +01:00
Ludovic Marie b2a67d7572 Merge pull request #9930 from NikitaMGrimm/shader-api-02
🤖 Agent: I pushed d4e13b4c0, which drops the "🤖 Agent:" markers from code comments and from the 0.2 prelude's COLOR_HELPERS text, since that text is composed into every 0.2 stage. Only 0.1's prelude digests are pinned, so they don't move. Added frame-identity now that #9900 is in. Union run on playhorizon (main a1e0c0db0 + this gate's 11 PRs): fmt, clippy, all touched crates' tests pass.
2026-11-05 18:47:58 +01:00
CocofireHDandopencode 1c712e434a Mod fluid tanks: prove a hook refusal through the dispatch
A focused test drives the public block_entity_accepts_fluid dispatch, as the game does: a water tank that refuses a mod's fluid leaves both insert passes empty and offers native_move_fluids no room, while water and a tank with no hook still fill.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 18:34:29 +01:00
Horizon agentandClaude Opus 5.5 ce9d8ae6cf Emotes: the measured cost per frame in docs/cosmetics.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:23:53 +01:00
Horizon agentandClaude Opus 5.5 4a59bae751 Emotes: the wheel reads the cursor as it is (clippy)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:23:53 +01:00
Horizon agentandClaude Opus 5.5 95244a792a Emotes: others see yours (the cosmetics service), the wheel lists the account's
- Mine: while an emote plays, the game tells the cosmetics service, signed in as for "Show me
  as Horizon" and only while that is on: `POST /v1/emote`, with a session kept an hour
  (`account::Kept`). A loop is said again every 30 s.
- Theirs: `horizon_cosmetics::Feed`, a thread, asks `POST /v1/emotes` which Horizon players in
  view play one, at most once a second and only while some are in view, then fetches the item
  files once. On failure it waits 15 s, doubling up to 10 min. Their models play the emote from
  where it is; a player who moves ends theirs at once.
- Follows "Other players' cosmetics": with anything but Shown, nothing is asked and nothing is
  drawn.
- The wheel: the account's emotes (`GET /v1/me`'s `emotes`), read when it opens, at most every
  10 minutes.

Nothing reaches game servers; vanilla clients see nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:23:53 +01:00
Horizon agentandClaude Opus 5.5 ff8997168c Emotes: horizon-ctl emote in the generated command reference
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:08:59 +01:00
Horizon agentandClaude Opus 5.5 2fed27fce9 Emotes: play one from the emote wheel, on your model and in the camera
- The wheel: Emote Wheel (`key.emote`, B by default, unbound on a controller; rebindable in
  Controls) shows up to 8 emotes around the middle of the screen. To play one: hold the key and
  release on an emote, click one, or press its number.
- The emote cancels (and fades out) on movement, an attack, mining, using an item, being hurt,
  riding, sleeping, gliding or sneaking. Only a standing player starts one.
- From first person, the camera turns to the front view and eases out from close for the emote,
  then comes back.
- Bones: `anim::setup` lays the emote over vanilla's animation, keyed bones only.
- Props: drawn with the cosmetics, growing in and out with the blend.
- `horizon-ctl emote [ID|stop]`.
- HORIZON_COSMETICS_LOCAL: the wheel offers the folder's emotes, and mannequins play its first
  one (the art and the bench).

Visual only: nothing reaches the game server.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:08:59 +01:00
Horizon agentandClaude Opus 5.5 44c14af45a Emotes: fully in, the bones take the target as it is (no quaternion round trip)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:08:58 +01:00
Horizon agentandClaude Opus 5.5 977fcfdf79 Launcher tests: check every host's build commands, on any machine
#9479 made the native-mod and toolchain tests build their Toolchain from
`rust_toolchain::host().unwrap()`. On the macOS x64 runner there is no
managed host (None: 7 panics); on the Windows ARM64 runner it is the ARM64
host, whose cargo gets its target's rustflags as `--config` before the
subcommand, which the tests' argument layout didn't expect.

The code is right on both: the rustflags are scoped to
target.aarch64-pc-windows-gnullvm and only the ARM64 host adds them. The
tests now run each check for every host the launcher ships a toolchain
for, expect the host's own arguments first, and pin that only the ARM64
host adds any.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:08:11 +01:00
hildlabsandClaude Opus 5.5 c140315d79 Merge origin/main into github-stars
Brings the branch up to date; the parity job's last run failed in the
runner's preparer (.local/.horizon-prepare.lock missing), as it did for
every PR between 14:17 and 14:41 UTC.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:05:21 +01:00
Horizon agentandClaude Opus 5.5 071feb3308 Cosmetics: the emote format (keyframed bones, root, props)
An item of the new `emote` slot carries an `emote` block: per-part tracks of keys (rotation,
offset, a prop's scale) eased smooth (Catmull-Rom), linear, in_out or step, one-shot or looping,
faded in and out over `blend` ticks. `Item::parse` checks its limits (200 ticks, 16 tracks,
32 keys a track and 192 in all, 360° turns and 8 px moves, the root 720° and 16 px, props'
reach through every key). `Emote::pose_body` poses the six bones (keys replace a bone's
rotation, keyed bones only), `pose_props` the props, and `Playing` gives an emote's time and
weight, its cancel included. Visual only, nothing random.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:04:09 +01:00
Horizon agentandClaude Opus 5.5 1fcc43f60f Realms settings: the 26.3 JSON shapes for the region preference and the configuration
RegionSelectionPreference travels as its id (0, 1, 2) and the region as its nameId, so a
Realm with a preference no longer fails to parse as a String. PreferredRegionsDto reads
regionDataList / regionName / serviceQuality, RealmsConfigurationDto posts the slot under
options with update_slot's RealmsSlotUpdateDto (worldTemplateId, worldTemplateImage), a Realm
without a preference is automatic by owner (RegionSelectionPreferenceDto.DEFAULT), and the
labels use the realms.configuration.region* keys vanilla's settings tab shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:58:19 +01:00
Horizon agentandClaude Opus 5.5 ad73e4a692 Launcher Shop: a basket, gifts, the Supporter badge, and Pay in the browser
Add to basket on the chosen card, the basket's lines and total with the
service's rules (owned items and items inside a set in the basket cost
nothing), a gift to a friend looked up by name, the Supporter badge's
amount within the catalogue's range, and "Ask whoever pays before you
buy. Refunds within 14 days for any reason." by Pay, which starts
Paddle's checkout on the service and opens playhorizon.dev/shop/pay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:52:57 +01:00
Horizon agentandClaude Opus 5.5 fac063268c Launcher: a plain Shop tab beside the Wardrobe
The catalogue's items, sets, collections and the Supporter badge as cards
with their prices, the chosen card tried on the account's own skin, and
the founder set's claim (one click where Paddle doesn't sell, else
Paddle's free checkout in the browser). No badge on the tab, it never
opens by itself, and a catalogue that doesn't load says so in one line.
The Wardrobe's one shop button now opens this tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:51:19 +01:00
Horizon agent 621d47ab6d Merge commit 'dd675b574115536446647051e29dac76f1055bc5' into cg51/pr-9922
# Conflicts:
#	crates/horizon-client/examples/probe/marker_particles_probe.rs
#	crates/horizon-client/src/animate_tick.rs
#	tools/test_marker_particles_parity.py
2026-11-05 17:50:19 +01:00
Ludovic Marie fb6121bce9 Merge pull request #9980 from horizon-rust/settings-unify/labels-fit
🤖 Agent: Extras and PvP & HUD measure each label in the screen's font, with its first values; one wider than a half-width button takes the whole row, so 'Keep channels for UI sounds' and 'Scroll wheel changes settings' no longer slide, in any language. verify green at this head; no caption, key or default changes.
2026-11-05 17:49:54 +01:00
Claude a94f171297 Merge main into fix/native-build-smart-app-control-5911
Resolves the launcher/lang/*.json conflicts: both sides added strings at
the end of each table; main's tables plus this branch's one string.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y255SLkXwxkdNVZnS8dNbf
2026-11-05 16:49:33 +00:00
Horizon agent f4382aac3f Merge commit 'dd675b574115536446647051e29dac76f1055bc5' into cg51/pr-9819
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-05 17:49:03 +01:00
Horizon agentandClaude Opus 5.5 d4e13b4c08 Drop agent markers from code comments and the 0.2 prelude
PR-comment markers do not belong in source, and the 0.2 prelude text is
part of every composed 0.2 stage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:47:38 +00:00
CocofireHD 49e8906c56 Merge remote-tracking branch 'origin/main' into fix/8615-vibration-particles 2026-11-05 17:47:05 +01:00
Ludovic Marie dd675b5741 Merge pull request #10030 from horizon-rust/fix/launcher-uninstall-move
🤖 Agent: one-word fix (closure gets move) for the Windows build error E0373 that #10003 left on main; verified with cargo check --target x86_64-pc-windows-gnu --bins --tests (mingw) on the desktop at this exact head.
2026-11-05 17:46:55 +01:00
degepieandClaude Opus 5.5 377fcceae7 Merge origin/main into fix/query-command-feedback
Both main (selector_bounds_tests) and this branch append a test module at
the end of commands.rs; both are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 21:40:22 +05:00
Horizon agentandClaude Opus 5.5 07c08509df Launcher Shop: prices, sets and the Supporter badge from the catalogue; the web checkout
The catalogue's shop fields (currencies, prices, sets, collections, the
Supporter badge), the player lookup and the web checkout in the wardrobe
client, and the basket's price rules in shop.rs, as the website applies
them. Nothing shows them yet: the Shop tab comes next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:40:05 +01:00
Ludovic Marie a1e0c0db0b Merge pull request #10027 from horizon-rust/browser-registry-filters
🤖 Agent: registry tags come from known_index(), so tags fetched before the first search finishes stay empty for that kind until the launcher restarts; searches always load the index first, so in practice the row is filled.
2026-11-05 17:38:06 +01:00
Ludovic Marie 8d9f806a18 Merge pull request #10026 from horizon-rust/browser-official-source
🤖 Agent: "from Horizon" now follows browser::horizon::official (authors ["Horizon"] + horizon-rust source, the site's isOfficial), read from the already-loaded index; the instance mod list's install-source label is left as is.
2026-11-05 17:38:00 +01:00
Horizon agentandClaude Opus 5.5 4ee8db2a44 Launcher: the window closure owns the setup mode (Windows build)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:37:26 +01:00
Ludovic Marie 9d364ca713 Merge pull request #10021 from horizon-rust/agent/launcher-wardrobe-site-link
🤖 Agent: launcher-only (plus docs), green launcher rustfmt/clippy/669 tests on the desktop at this head, i18n coverage test included. The one thing it keeps on purpose: Claim for free where Paddle doesn't sell, since the site sends those players to the Wardrobe.
2026-11-05 17:35:28 +01:00
Ludovic Marie f52d73d116 Merge pull request #10020 from horizon-rust/agent/cosmetic-name-tag-lift
🤖 Agent: verified on the desktop (pr_ready --quick at this head: clippy, 1026 tests incl. the new lift test) and on the ThinkPad's GPU (before/after shots). Point to watch: the lift is only ever added when an item is drawn on the body, so tags without tall cosmetics keep vanilla's exact 2.3 (tested); the extra per-tag cost is one max over ≤5 floats inside the existing cosmetics lookup.
2026-11-05 17:35:24 +01:00
CocofireHDandopencode 40eeef6f80 lan_e2e: state the shulker lid check in the harness docs
Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 17:26:35 +01:00
Ludovic Marie 2a013743f2 Merge pull request #10017 from horizon-rust/fix/launcher-uninstall-i18n
🤖 Agent: fixes the red launcher i18n tests that #10003 left on main (reuses already translated strings); fmt, clippy and the 579 launcher lib tests were green on the desktop for this change.
2026-11-05 17:25:52 +01:00
Horizon agentandClaude Opus 5.5 f9f15fabff Launcher: uninstall reuses existing translated strings
Every language file must hold every string the code asks for; the new wording needs
translations from the language owners, so this keeps the existing text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:23:13 +01:00
Horizon agentandClaude Opus 5.5 cb0629d42d Mod browser: "from Horizon" only on Horizon's own projects
A registry result, its page and its Installed row said "from Horizon" for
every project in the registry, so a contributor's mod read as if Horizon
made it. Now only Horizon's own projects say it (author Horizon, source
under github.com/horizon-rust: the site's "Official", the rule
browser::horizon::official already used for the trust line); a
contributor's reads "by <author>" alone. Modrinth and CurseForge keep
"from <source>".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:22:29 +01:00
CocofireHD a729b3cfe6 Merge remote-tracking branch 'origin/main' into fix/8615-vibration-particles 2026-11-05 17:18:40 +01:00
Ludovic Marie 2c6ccefcb7 Merge pull request #9859 from TiggerTakkyTTT/fix/ender-dragon-spawn-egg
🤖 Agent: Checked against SpawnEggItem.useOn/spawnMob, EntityType.spawn/create and SpawnEggItemBehavior. I pushed d7e7b9273: the spawn yaw is wrapped, Mob.finalizeSpawn's triangle and nextFloat come from the level random, and the dragon seeds its own random. The author's dispenser height (16x8 box) and growl are kept. Known gap: Horizon keeps one dragon per level, so a second egg does nothing.
2026-11-05 17:15:57 +01:00
Ludovic Marie 5ce7036f71 Merge pull request #9854 from ilguerro/fix/placement-vibrations
🤖 Agent: Checked against HangingEntityItem.useOn, ArmorStandItem.useOn, EndCrystalItem.useOn, MinecartItem.useOn and EnderChestBlockEntity.startOpen. The armor stand now falls up to two blocks (getYOffset with movedUp). I pushed ada2c6b81: drop_offset keeps its three arguments and drop_offset_from takes movedUp, so #9859's new caller compiles whichever lands first. Main is merged in, and use_item_on keeps the wake, used-stat and placement cases.
2026-11-05 17:15:51 +01:00
Horizon agentandClaude Opus 5.5 8a2e225ad3 Mod browser: filter Horizon's registry by tags, picked filters in view
On Horizon's registry, Filters already listed the kind's categories. Now:

- A Tags row lists the tags the kind's projects carry (the 30 most used,
  from the index the search read): a result has every tag picked, as for
  categories, and the search words narrow them further.
- Categories read as playhorizon.dev names them ("Game mechanics", "World
  generation", "GUI"), in the registry's order, translated where the
  launcher's tables have the words.
- While the Filters panel is closed, every picked category, tag, loader,
  version or side stays in view as a chip with a cross that removes it,
  then Clear filters (which keeps the sort).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:12:30 +01:00
Horizon agentandClaude Opus 5.5 7b9daf7bbf PvP & HUD: document the widgets' style and layout
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:10:22 +01:00
Horizon agentandClaude Opus 5.5 afc6c3c43a PvP & HUD: free widget places, sizes, text colour, opacity and shadow
Each HUD widget can leave its corner for a place kept as fractions of the
screen's free room (so it stays on screen at any size) and a size from 50
to 200%, saved as hudPlace lines in horizon-extras.txt only once moved.
The page gains the boxes' opacity, the text colour and the text shadow.
Snapping (screen edges, middle, other boxes) is here for the editor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:10:22 +01:00
Horizon agentandClaude Opus 5.5 69874aef48 PvP & HUD: no widget on, no HUD work; document the new widgets
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:10:17 +01:00
Horizon agentandClaude Opus 5.5 9f46032653 PvP & HUD: FPS, CPS, keystrokes, clock, reach and speed widgets
Six more widgets on the PvP & HUD page, off by default, each from the
client's own state: the frame counter, presses of the last second, the
movement and mouse keys while held, the local time, the distance of the
last hit the crosshair's ray measured, and horizontal speed sampled from
the player's position. Each caches its lines and rebuilds them only when
the shown value changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:10:17 +01:00
CocofireHDandopencode 463c970b13 Merge origin/main into fix/8615-vibration-particles
Resolved the one conflict, in game/lan_particles.rs: test_hub keeps the
shared helper the vibration test needs, and its guests now carry main's
Joined.expected field and bind through NetConfig::loopback. The
sculk_vibration LAN check survives main's rewrite of tools/lan_e2e.py.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 17:08:57 +01:00
Ludovic Marie d95fbb3240 Merge pull request #10003 from horizon-rust/fix/launcher-uninstall-window
🤖 Agent: launcher-only fix (Control Panel Uninstall opened nothing: the CLI parser refused 'uninstall'); fmt, clippy and tests green on the desktop at this exact head; the Windows build runs in CI.
2026-11-05 17:06:34 +01:00
Ludovic Marie db1da68bcd Merge pull request #9979 from horizon-rust/settings-unify/one-place
🤖 Agent: Video Settings... opens the graphics screen (as Sodium's), which gains vanilla's Video Settings rows it lacked and the picture extras; FOV and View Bobbing stay where vanilla has them; Horizon Settings and Extras drop their duplicate ways in. A test walks every menu and pins one place per setting and one way in per page. verify green at this head; saved keys and defaults unchanged.
2026-11-05 17:06:30 +01:00
Ludovic Marie 34881c8cca Merge pull request #9978 from horizon-rust/settings-unify/shaders-in-graphics
🤖 Agent: Shader packs (both kinds) move to a new Shaders page of the graphics screen; Horizon Settings loses its second way into the pack list. Shadow Cache moves from Performance to Shaders. verify green at this head; no saved key or default changes. Bottom of the settings-unify stack (#9979, #9980 follow).
2026-11-05 17:03:32 +01:00
CocofireHDandopencode 58263dc4a0 lan_e2e: capture the shulker lid open and closed
The shulker_menu check now keeps host and guest screenshots of the lid before and after the guest closes the menu, so a stuck lid is visible as well as asserted.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 17:03:25 +01:00
Horizon agentandClaude Opus 5.5 d523cb803b Launcher: rustfmt the uninstall changes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:43:55 +01:00
Claude 469f8d9b31 Native builds: explain Smart App Control only when it blocks (#5911)
Tested on Windows 11 with Smart App Control on (VerifiedAndReputablePolicyState
1): a build whose programs already ran before it was turned on still
succeeds, so refusing every build when the registry value is 1 stopped
builds that work. The check before the download is gone; a build that hits
os error 4551 still leads its error with what to do.

The message is translatable now, and says Windows also blocks some of the
toolchain's own programs (dlltool.exe was refused in a player's build), not
only the ones compiled on the computer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y255SLkXwxkdNVZnS8dNbf
2026-11-05 15:42:23 +00:00
Horizon agentandClaude Opus 5.5 9960bdec5a Launcher: Uninstall in Control Panel opens its window
main() ran the CLI parser before looking for the setup window, so
`horizon-launcher.exe uninstall` was refused as an unknown subcommand, with the
error going to a console Control Panel's start doesn't have: no window, nothing removed.
The setup modes are now decided first (setup_args::classify, pure and tested on every OS).
The uninstaller also asks a launcher that is still open to quit before removing its files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:41:12 +01:00
Ludovic Marie 624c4f6265 Merge pull request #9900 from NikitaMGrimm/frame-identity-harness
Frame identity harness: the picture a change leaves alone, pixel for pixel (HDR step 2a)
2026-11-05 16:32:00 +01:00
Ludovic Marie b4c92aba07 Merge pull request #9878 from ilguerro/fix/mob-vibrations
🤖 Agent: The host now forwards the mob game events vanilla's mobs post (prime_fuse, eat, container_open and close, entity_place, and entity_action beyond the armadillo's), and the sculk harness gets creeper and sheep scenarios that main fails. They run last so the catalyst scenarios' entity ids don't shift.
2026-11-05 16:30:26 +01:00
Ludovic Marie eb4291a61d Merge pull request #9876 from martipops/fix/pad-one-reader
🤖 Agent: PadRouter now adopts P1's gilrs reader and hands it back, so routing no longer opens one reader while another closes, which upset KWin's holder count. The router's reader also gets EXTRA_SDL_MAPPINGS (8BitDo Ultimate 2). It merges cleanly with #8233's triggers.rs.
2026-11-05 16:30:21 +01:00
Ludovic Marie 5215aea1b8 Merge pull request #9872 from yahya-nusseibeh/fix/windows-junction-swap
🤖 Agent: The new junction is made as current.switching before the old one goes, and the old one is restored if the rename fails, so a failed mklink no longer leaves the server with no current release. Paths are quoted through raw_arg, and % or a quote is refused. The author's Windows CI run built and tested it.
2026-11-05 16:30:16 +01:00
Ludovic Marie bf3fd2d5f0 Merge pull request #9903 from glitchsnake/fix/9744-fishing-hook-random
🤖 Agent: the catch now rolls from the table's random sequence (minecraft:gameplay/fishing, else the level random), as vanilla's LootTable.getRandomItems(LootParams) does, and test_fishing_rng_parity checks the hook's draws against a 26.3 server. I removed four tests that compared LegacyRandom with itself.
2026-11-05 16:30:12 +01:00
Ludovic Marie b9913a1902 Merge pull request #9866 from Vaspyyy/native-fit-before-install
🤖 Agent: The fit line is worked out on the search thread, not the UI's. hooks_at reads raw.githubusercontent (no API quota) and is cached per commit. The four new strings go through tr/trf. One limit: it compares only the NATIVE_HOOKS_API number, so for a revision older than the hook catalog, a mod naming hook points can read 'Builds on the Horizon you play' and still be refused at build time. horizon-mods and launcher tests pass on the desktop with this head merged into main.
2026-11-05 16:25:02 +01:00
Ludovic Marie 0f9cb34f9d Merge pull request #9977 from horizon-rust/server/prune-chunks
🤖 Agent: horizon-server's one-shot chunk prune ([prune_chunks]); one point to know: a delete run rewrites region files, so it only runs before the game starts and deletes nothing if a keep_files file can't be parsed. Checked with vanilla 26.3's RegionFile on 3,743 real chunks from the official server: kept chunks equal as NBT, nothing with InhabitedTime >= 1200 pruned.
2026-11-05 16:24:58 +01:00
Ludovic Marie 4c302fc817 Merge pull request #9880 from Swuarez/fix/8906-glide-wall-sound
🤖 Agent: Player.playSound passes the player as except, so the server's broadcast skips the glider and its own client must play big_fall or small_fall. The client's travel now plays it and still never hurts. The unit test checks both.
2026-11-05 16:24:53 +01:00
Ludovic Marie 4e140f9b60 Merge pull request #9868 from Alysia42/fall-fly-ticks-order
🤖 Agent: fallFlyTicks is counted after the movement as LivingEntity.tick does, so updateFallFlying's +1 wears the elytra on the 20th glide tick, not the 19th, for the local player and LAN guests. Main merged in (both new motion tests kept).
2026-11-05 16:24:48 +01:00
Ludovic Marie fc8ff6b378 Merge pull request #9865 from xxaxio/fix/9791-vehicle-container-close-multi-viewer
🤖 Agent: The shared vehicle stand-in at CART_KEY_Y is now removed only when no other guest's menu (or the host's container) still shows it. The items are still stored back on every close. The proof comment's container.viewers mechanism isn't in this diff; I reviewed the diff itself.
2026-11-05 16:24:43 +01:00
masa-masa-0314andZCode df263fef74 Realms: the settings tab and the region preference screen
The configuration screen's Settings tab (RealmsSettingsTab): the world's name and
description fields (the click moves the caret between them), the region preference line
and its Region Preference button, and the open/close toggle moved here from the footer
(vanilla keeps it on this tab). Leaving the tab — switching tabs or Back/Escape — saves
the changed name, description and preference through RealmsClient.updateConfiguration
(POST worlds/{id}/configuration with RealmsConfigurationDto's JSON: the active slot, its
settings, the preference and the description).

RealmsPreferredRegionSelectionScreen: the automatic choices and every manual region, a
click selects, Done writes the choice back to the tab and Cancel drops it.

RealmsClient gains getPreferredRegionSelections (GET regions/preferredRegions) and
updateConfiguration; RealmServer reads regionSelectionPreference; RegionSelectionPreferenceDto,
RegionDataDto and RealmSetting serialization join the DTOs.

The tier's render/simulation distance options and the region quality icons are the next
PRs (the icons need sprites the GUI atlas does not carry yet); the region rows say their
name for now.

Co-Authored-By: ZCode <[email protected]>
2026-11-05 23:24:38 +08:00
Ludovic Marie 126b6d06b4 Merge pull request #9864 from TheMrZZ/fix/selector-entity-bounds
🤖 Agent: Box selectors test the target's bounding box with strict AABB.intersects (EntitySelector.getPredicate), while distance and sorting stay on the origin. Dragon, fangs, spawner, cloud and other kinds keep the point test until their boxes are modelled.
2026-11-05 16:24:38 +01:00
Ludovic Marie ad24f0f79f Merge pull request #9863 from TheMrZZ/fix/h323-mob-predicate-effects
🤖 Agent: Predicate views now get the mob's live effects as (id, amplifier, duration), which MobEffectsPredicate reads. Main merged in (corpus groups kept side by side); game tests pass on the desktop in a union with main.
2026-11-05 16:24:33 +01:00
Ludovic Marie 8af85a1e54 Merge pull request #9856 from Mayonesu0/fix/8036-wool-jump-vibration
🤖 Agent: Checked against Entity.applyMovementEmissionAndPlaySound and checkFallDamage in 26.3: STEP carries the getOnPos state and HIT_GROUND the mainSupportingBlockPos state, so a carpet dampens. A mob's support is looked up only when a step is due, not every tick. Climbing still reads the block at the feet.
2026-11-05 16:24:28 +01:00
Horizon agentandClaude Opus 5.5 1e887567bd Extras: a label too wide for half a row takes the whole row
"Keep channels for UI sounds: Off", "Scroll wheel changes settings: Off"
and "Other players' cosmetics: Hidden" ran past their half-width
buttons and slid back and forth. Extras and PvP & HUD now measure each
item's label, with its first values, in the screen's font when the page
is drawn; one wider than a half-width button holds gets the whole row.
It works in every language, with no caption shortened.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:20:09 +01:00
Horizon agentandClaude Opus 5.5 557bbea813 Settings: each setting in one place, Video Settings opens the graphics screen
Options > Video Settings... now opens Horizon's graphics screen, as
Sodium's replaces vanilla's video screen. It gains the vanilla rows only
vanilla's screen had (Graphics Preset, Exclusive Fullscreen and its mode,
Menu Background Blur, Texture Filtering, Max Anisotropy) and the extras
that change the picture (Fullbright, Dynamic lights, Hide block-break
particles, still saved in horizon-extras.txt). It drops FOV and View
Bobbing, which stay where vanilla has them (Options, Accessibility).

Horizon Settings drops its second ways into the graphics screen, the
controller screen (Controls has it) and Mods (the Options screen has
it); Extras drops its PvP & HUD link and the PvP preset, which PvP & HUD
opens with. Vanilla's own Video Settings layout stays for
horizon-ctl options video-vanilla and its tests; no menu opens it.

A test walks every menu from Options and checks that each setting and
each page has one way in, and that every row of vanilla's Video
Settings is on the graphics screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:20:08 +01:00
Ludovic Marie 90a8b6efff Merge pull request #8233 from voidsipp/fix/7323-linux-triggers
🤖 Agent: Axis triggers are read only for an unmapped six-axis pad with the Xbox face layout (C and Z absent), so a generic pad's centred right stick on LeftZ/RightZ never reads as a half-pulled trigger. Main merged in beside #9830's face_buttons; game tests pass on the desktop in a union with main.
2026-11-05 16:19:19 +01:00
Ludovic Marie 87f4372520 Merge pull request #9909 from masa-masa-0314/feat/realms-worlds-slots
🤖 Agent: the slots now parse as the service sends them (a list, each slot's options a JSON string, missing world slots empty, worldTemplateId/Image), so the detail answer and the Players tab no longer fail; official Realms API only.
2026-11-05 16:19:14 +01:00
Ludovic Marie f10167a87d Merge pull request #9911 from xxaxio/fix/9902-launcher-topbar-invite-overflow
🤖 Agent: under 1380 px the tab strip only shrinks when the buttons need the room, so nothing scrolls in English where it already fit; the placeholders still go through tr() inside line_edit::content.
2026-11-05 16:19:09 +01:00
Ludovic Marie 7146e9b17f Merge pull request #9908 from DUzzL/fix/9877-team-predicate
🤖 Agent: a direct port of TeamPredicate (exact, case-sensitive name match, no team fails), filled from the real scoreboard for the player, mobs (a tamed pet answers with its owner's team) and LAN guests.
2026-11-05 16:19:04 +01:00
Ludovic Marie 3973f6b63c Merge pull request #9907 from arslanarm/shaderpacks/ftransform-order
🤖 Agent: one more mat4 x vec4 per vertex (16 FMAs), only in pack gbuffers and shadow vertex shaders: negligible next to fragment work. The GPU test tells the two rounding orders apart with exact expected bits.
2026-11-05 16:18:59 +01:00
Ludovic Marie 735bfffc0b Merge pull request #9906 from MSedgeMC/fix/wither-rose-smoke-centre
🤖 Agent: the marker_particles harness gains 27 wither rose cases that fail without the fix (x and z off by 0.5); I made outline_center bound only the shape's own boxes instead of starting from 0.5.
2026-11-05 16:18:55 +01:00
Ludovic Marie 73810bccc1 Merge pull request #9905 from senjinthedragon/shadow-depth-gather
🤖 Agent: removes the R32Float depth copy made every frame (512 MiB and about 10 ms at 8192², measured); each plain-sampler depth tap becomes one gather plus a bilinear blend, behind a uniform branch. The gather order (w,z / x,y) matches the blend.
2026-11-05 16:18:50 +01:00
Ludovic Marie cb05802dfb Merge pull request #9896 from arslanarm/shaderpacks/colortex-mipmaps-box-filter
🤖 Agent: hot path: at most 4 texel loads per mip texel (9 where both sides are odd), only for buffers that set MipmapEnabled: about 1.2M loads for a 1280x720 chain, well under 0.1 ms. Odd levels no longer skip texels.
2026-11-05 16:18:45 +01:00
Ludovic Marie ccfc6cf2be Merge pull request #9895 from arslanarm/shaderpacks/cloud-height-without-clouds
🤖 Agent: per-frame cost goes down: cloudHeight now just reads the dimension's visual/cloud_height (vanilla's EnvironmentAttributes default is 192.33), with no alpha branch; Nether and End packs stop seeing NaN.
2026-11-05 16:18:40 +01:00
Ludovic Marie e5e2bef6de Merge pull request #9893 from DUzzL/fix/9870-disconnect-layout
🤖 Agent: the layout matches DisconnectedScreen.init in the bytecode: cell padding 10 for the title and reason, 2 for the button, the reason wrapped to width - 50, the block centred. I moved wrap's doc comment back onto wrap.
2026-11-05 16:18:35 +01:00
Ludovic Marie 453f6114bd Merge pull request #9886 from DUzzL/fix/9867-advancement-targets
🤖 Agent: grant and revoke now run as each selected player's own turn (for_player), and the feedback follows CommandResponseTracker: changed players on success, every selected player on failure.
2026-11-05 16:18:31 +01:00
Ludovic Marie 200314a500 Merge pull request #9884 from xxaxio/fix/9781-map-marker-names
🤖 Agent: matches MapRenderer.render's name label in the bytecode: scale clamp(25/width, 0, 6/9), and z -0.025 then scale -1 and +0.1, so -0.125 in map space. I dropped a test that only checked its own closure.
2026-11-05 16:18:27 +01:00
Ludovic Marie cff59ae4b5 Merge pull request #9869 from arslanarm/shaderpacks/fluid-top-split
🤖 Agent: mesh-time only: one rotate_left per fluid top while a shaders/ pack is loaded, and a remesh when that changes; nothing per frame. The split rule is fitted to probe readings of Iris that was only run, not read.
2026-11-05 16:18:22 +01:00
Ludovic Marie a683d394dc Merge pull request #9838 from arslanarm/shaderpacks/shadow-caster-margin
🤖 Agent: I pushed b0f885600: this branch now merges #9772 and gives the new test's `ShadowCull` `reach: None`. Without that, whichever of the two landed second would break main's build. The union with #9772 passes every `shadow_caster_tests`. Parity's first run failed only on tab_list (its harness's missing vanilla.log) and the known lunge_motion flake, neither reached by shadow culling: rerun.
2026-11-05 16:18:18 +01:00
Ludovic Marie 9e8ad0b088 Merge pull request #9725 from vnsmoreira/extras-pregen-toggle
🤖 Agent: Off by default, and the client completion tree only gets `/pregen` when the dispatcher has it, so vanilla's command tree is unchanged until a player turns it on. Note for later: `pregen::command_tree()` duplicates the shape of `horizon_commands` in horizon-command; a change to one must follow in the other. I merged main (7899c12c4): the pregen line sits beside main's new `horizonMarks`/`cosmeticsSolo` extras, and 773e3526d queues every toggle on the server thread (no blocking `call`), with a test that a quick on-off reaches the server in order.
2026-11-05 16:18:13 +01:00
Horizon agentandClaude Opus 5.5 941d0553fd horizon-server: rustfmt and clippy for the chunk prune
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:17:22 +01:00
Horizon agentandClaude Opus 5.5 c047a7ef5a Cosmetics: rustfmt the name tag lift tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:16:46 +01:00
Horizon agentandClaude Opus 5.5 6c526709ff Fishing: drop the scenario tests that compared LegacyRandom with itself
test_fishing_rng_parity now checks the hook's draws against vanilla; the
four scenario tests seeded two LegacyRandoms alike and compared them, so
they could not fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:15:48 +01:00
Horizon agentandClaude Opus 5.5 1f43c60b85 Launcher: the Wardrobe links to the site's shop, nothing more
Ludovic (2026-11-05): the shop is on the site only; the launcher has the
Wardrobe and a link to the site. The Wardrobe already had no prices,
product lists or checkout; its "Open the shop" button becomes one plain
secondary button, "Get more cosmetics on playhorizon.dev", opening
https://playhorizon.dev/shop, by the title or, for an account that owns
nothing yet, in the empty state. Translated in all 86 languages.

Kept: what you own, equip and unequip, the preview, the purchase history
and the founder set's "Claim for free" where Paddle doesn't sell (the
site sends those players to the Wardrobe: only the launcher can prove
the account with Mojang).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:15:45 +01:00
Horizon agentandClaude Opus 5.5 e3ccd955d7 Graphics: a Shaders page holds the shader packs
The graphics screen gets a Shaders page between Performance and Advanced:
Shader Packs... opens the pack list (Horizon's .hshader packs and shaders/
folder ones, with the picked pack's options), and Shadow Cache moves there
from Performance. Horizon Settings loses its Shader Packs button, so the
list has one way in, beside the other graphics settings, as Iris hangs
off Sodium's video screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:13:39 +01:00
Horizon agentandClaude Opus 5.5 24da3cefad Cosmetics: lift the name tag over tall items
A crown's star on the head slot or an orrery on the back slot crossed the
wearer's name tag, which vanilla draws at a fixed height. Each item now
knows its top (Item:🔝 pixels above the model's neck with the bones at
rest, animations included), found in Item::parse with the reach check.
When the tallest item drawn on a player passes the tag's lowest pixel,
the whole tag (Horizon's mark and the badge row included) goes up to one
text pixel over it.

Players with no tall item, and anyone whose items aren't drawn (others'
cosmetics on Name tags only or Hidden, My cosmetics hidden, a helmet over
a hat), keep vanilla's height exactly: the lift is never added then.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:12:54 +01:00
LokiandAntigravity 78c23a4f37 tools: use lab.game_env in test_fishing_rng_parity (fixes #9744)
Co-Authored-By: Antigravity <[email protected]>
2026-11-06 00:10:36 +09:00
Horizon agentandClaude Opus 5.5 89ab731e0c horizon-server: the prune report says how long the run took
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:03:51 +01:00
Loki c22c38d8b8 Merge remote-tracking branch 'origin/main' into pr-9903 2026-11-05 23:58:45 +09:00
Horizon agentandClaude Opus 5.5 19cb6b6730 horizon-server: a pruned region file keeps the old file's permissions
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:53:36 +01:00
Ludovic Marie 66f3981f52 Merge pull request #9809 from voidsipp/fix/9742-account-refresh
🤖 Agent: Only the glass look changes: the actions move under the profile and wrap inside the 400 px card, and Night keeps its row through the same `slot_row`. Launcher fmt, clippy and 674 tests pass on the desktop with this head merged into main.
2026-11-05 15:45:35 +01:00
Ludovic Marie 83148f3849 Merge pull request #9790 from voidsipp/fix/9719-glass-launch-settings
🤖 Agent: Launch… reuses the existing translated string and the glass sliders-horizontal icon, and clearing `launch` before `toggle_launch` stops a panel left open for another instance from turning the click into Close. Launcher fmt, clippy and 674 tests pass on the desktop with this head merged into main.
2026-11-05 15:45:31 +01:00
Horizon agentandClaude Opus 5.5 ada2c6b810 Merge main into #9854: placement cases after the wake and used-stat cases
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:42:35 +01:00
Horizon agentandClaude Opus 5.5 afbc3ee1cf Merge main into #9863: keep the mob effect predicate group beside frame maps
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:42:20 +01:00
Horizon agentandClaude Opus 5.5 ff980bfed4 Merge main into #8233: face_buttons beside triggers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:42:00 +01:00
levzzzandCodex 7c085b5acd Fix fishing loot and experience RNG ordering
Use the loot table random sequence (or level fallback), preserve level draw order, and create the experience orb directly. Add vanilla server comparisons for casting, bobbing, catch timers, and retrieval.

Co-Authored-By: Codex (GPT-6) <[email protected]>
2026-11-05 19:39:19 +05:00
Horizon agentandClaude Opus 5.5 ccaa93ba2c horizon-server: [prune_chunks] server.toml round trip test, Cargo.lock
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:39:00 +01:00
Ludovic Marie 1eaf4d2e5b Merge pull request #9821 from voidsipp/fix/8583-lod-test-fixtures
🤖 Agent: Test-only, plus a `background` flag that only the bounded test turns off; the game still builds its decoration workers at idle priority.
2026-11-05 15:37:19 +01:00
Ludovic Marie 65af1daf70 Merge pull request #9772 from arslanarm/shaderpacks/shadow-distance-render-mul
🤖 Agent: The reach test prunes with the same grown box as the caster test. Packs without `shadowDistanceRenderMul` take `reach: None` and walk exactly as before. #9838 is stacked on this branch: it now contains these commits.
2026-11-05 15:37:14 +01:00
Ludovic Marie ae59c828f1 Merge pull request #9769 from arslanarm/shaderpacks/celestial-positions
🤖 Agent: The positions now come from JOML's quaternion turns, ported under the MIT notice that `camera.rs` and THIRD_PARTY_NOTICES already carry. It's a few float ops per frame, and the test pins five Iris readings bit for bit.
2026-11-05 15:37:10 +01:00
Ludovic Marie 4b1e8dfc97 Merge pull request #9756 from I114rk/fix/boot-paint-flicker
🤖 Agent: Every repaint is now one `BitBlt` from a memory DC, and every GDI object (DC, bitmap, old selection) is released on both the success and failure paths. PR CI doesn't build Windows; your Windows clippy run covers that.
2026-11-05 15:37:05 +01:00
Horizon agentandClaude Opus 5.5 5278933e3f Keep drop_offset's three-argument form; drop_offset_from takes movedUp
#9859 adds a drop_offset caller (the dispensed dragon); keeping the
existing signature lets both land in either order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:36:28 +01:00
Horizon agentandClaude Opus 5.5 d7e7b92735 Ender Dragon spawn egg: vanilla random order and the dragon's own random
EntityType.create draws the wrapped spawn yaw and Mob.finalizeSpawn the
follow-range triangle and the left-handed roll from the level random;
the dragon seeds its own random (Entity.random), not from the level one.
test_spawn_egg_fluid_parity gains the dragon egg used on a block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:34:34 +01:00
Ludovic Marie c4224839db Merge pull request #9845 from Joansitoh/fix/9778-missing-sounds
🤖 Agent: f4c4ab173 keeps `lastLevelUpTime` and `tickCount` per player entity (`LevelUpSound`, reset on respawn), as `Player.giveExperienceLevels` reads them, and `/xp points` now sounds per level crossed like `giveExperiencePoints`; the lan_e2e `levelup-sounds` check pins both players apart. Wither head particles are drawn on a following client only: the server's `particles.add` draws nothing. The guest tick loop is one add per player per tick.
2026-11-05 15:33:07 +01:00
Ludovic Marie be95b51aac Merge pull request #9841 from voidsipp/fix/9642-player-placement
🤖 Agent: I pushed c17d14c73. `GameLevel` now borrows `guest_boxes` outside a guest turn instead of cloning them on every level build. `for_turn` searches only the few borrowed ancestors (hub conns are unique), so each guest's turn is O(players), not O(players²), every tick. Your tests are unchanged and pass. Then I merged main (c4b85eaed): only the `lan_actions.rs` imports conflicted.
2026-11-05 15:33:02 +01:00
Ludovic Marie 0caddefd8e Merge pull request #9830 from martipops/fix/pad-unmapped-xy
🤖 Agent: The swap applies only on Linux, for a driver mapping with exactly the four face buttons and a non-Sony/Nintendo vendor. Pads with an SDL row aren't touched. It costs six `button_code` lookups per pad per poll.
2026-11-05 15:32:57 +01:00
Ludovic Marie a0b7ba13f1 Merge pull request #9827 from DUzzL/fix/9786-loyalty-owner
🤖 Agent: Matches `ThrownTrident.tick`'s `isAcceptibleReturnOwner` (checked in the decompiled source): a dead or spectating owner drops the trident (unless creative-only) and discards it, and an owner not in this level still keeps the old any-player pickup.
2026-11-05 15:32:52 +01:00
Ludovic Marie dcb0962c58 Merge pull request #9818 from Swuarez/fix/8038-breeding-xp
🤖 Agent: I pushed 8cff8f837: with the vanilla data present, the new test failed because the llamas weren't tame (`AbstractHorse.canParent`), so they never bred. Without the data it returned early, which is why it passed for you. Both llamas are now tamed, and it passes on real data.
2026-11-05 15:32:47 +01:00
Ludovic Marie d52ff7a6f7 Merge pull request #9812 from rison1337/native-hook-stamp-selected
🤖 Agent: `--only` keeps first-parent order and leaves the other 18 fragments and their markers byte-identical. The pending signatures in #9431 and #9649 belong to other fragments, so stamping 410/411 doesn't settle them early. If another stamp lands first, regenerate.
2026-11-05 15:32:42 +01:00
Ludovic Marie c8e4f35717 Merge pull request #9807 from BPMichon/feat/toast-add-hook
🤖 Agent: With no listener, `toast_allowed` is one dispatch over an empty list, and it's asked only when a toast is created, not per frame (a cancelled hint is remembered). Updates to a shown toast are not re-asked, as with vanilla's addOrUpdate. I pushed 6fa2c9933: main added `Hint::SocialInteractions` (#9796), so `Hint::name` needed the arm to build, and that toast now also goes through `toast_allowed` (listed in the docs as `socialInteractions`).
2026-11-05 15:32:37 +01:00
Ludovic Marie 989bfacfe2 Merge pull request #9802 from lightcodegit/fix/crafter-trigger-box
🤖 Agent: I pushed cfa94ac87: vanilla's `AABB.intersects` is strict (`minX < maxX && maxX > minX`), so a player box that only touches a face of the 17-block box is out. The test is now `<`/`>`.
2026-11-05 15:32:33 +01:00
Ludovic Marie 4cfa08e49f Merge pull request #9797 from voidsipp/fix/9524-physical-pack-folder
🤖 Agent: `dunce` is already in Cargo.lock (MIT/Apache/CC0) and is Windows-only. The Help link now goes through `open_uri`, so a URL is no longer canonicalized as a folder path.
2026-11-05 15:32:28 +01:00
Ludovic Marie eede50452a Merge pull request #9765 from arslanarm/shaderpacks/atlas-linear-mipmaps
🤖 Agent: Only the block atlas gets the new sampler, and only when filtering is on: normals, specular and Horizon's own packs keep `NearestRepeat`. The GPU test pins the 0.5/0.25 level blends. I merged main (latest b859bcf31): the conflicts were only the test-module list in `pack_post.rs`.
2026-11-05 15:32:23 +01:00
Horizon agentandClaude Opus 5.5 5d9bd56ec8 horizon-server: prune barely visited chunks ([prune_chunks], #9949)
A one-shot step before the game starts, switched on in server.toml: chunks
with InhabitedTime under min_inhabited_ticks (1200) are deleted from region/,
entities/ and poi/, files rewritten compacted and emptied ones deleted.
Chunks near the spawn, named by keep_files (SMP claims and homes), that can't
be read, and a ring around every kept chunk stay. mode = "dry-run" only
writes the report while the game runs; either mode turns itself off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:32:19 +01:00
Ludovic Marie b1ba47e910 Merge pull request #9751 from TheMrZZ/fix/h317-frame-map-detach
🤖 Agent: This matches `ItemFrame.readAdditionalSaveData`: the old map is detached only when the old stack is non-empty and `ItemStack.matches` fails (count, item, components), and a glow frame keeps its type. I merged main (latest 5d54563cc), following your keep-both note: both isolation sets, the `expect_map` guard, and `frame_map_state`, `mob_anger` and #9848's `menu_state` all in the record accounting.
2026-11-05 15:32:18 +01:00
Ludovic Marie 361527bc07 Merge pull request #9743 from TheMrZZ/fix/map-decoration-type-namespace
🤖 Agent: Only a bare `type` is qualified, through the existing Identifier parser, at both the decode and the encode boundary, which matches `MapDecorationType.CODEC`'s holder-by-name read. #9814 (already merged) handles the empty default separately. I merged main (latest b9df50777), keeping your `canonical_other_component` beside #9814's empty-default filter in `encode_components`, and your fixture flags beside #9848's piglin ones.
2026-11-05 15:32:13 +01:00
Ludovic Marie 653aef535a Merge pull request #9737 from ilguerro/fix/villager-stand-up
🤖 Agent: The villager now uses the same `findStandUpPosition` search as the player, with its own 0.6 x 1.95 box and vanilla's fallback (0.1 above the block over the bed). The player path is a move with no change, and the `1.0E-5F` border inset is now the float vanilla uses. I merged main (8bbedb4d4): the use_item_on harness keeps your wake cases and #9775's used-stat cases as two separate seeded streams, so neither changes the other's cases.
2026-11-05 15:32:07 +01:00
Ludovic Marie bc243f7208 Merge pull request #9722 from lightcodegit/fix/splitscreen-pause-ticks
🤖 Agent: `pauses_game` now reads the same `split_players` list `set_paused` already uses, so the window can no longer stop ticking while the server thread runs on for P2. Solo, LAN and guest windows take the old path.
2026-11-05 15:32:00 +01:00
Ludovic Marie c8bfb81f9c Merge pull request #8709 from Akirabane/feat/7484-control-release
🤖 Agent: The release names its hand-over, so a stale or repeated `player-release` cannot remove a player who is playing again, and `remove_guest` only skips the leave line when `quiet_leave` is set: ordinary leaves are unchanged. Your rebase (ebfab7fc8) is the same patch; checked in a 21-PR union on main: fmt, clippy -D warnings, workspace tests.
2026-11-05 15:31:55 +01:00
CocofireHDandopencode f8d0840cd7 lan_e2e: prove a sculk sensor's vibration reaches the host and a guest
VibrationSystem.Ticker.trySelectAndScheduleVibration sends one vibration particle to every player within 32 blocks; the check asserts both the host's window and a LAN guest make it (#8615).

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 15:30:45 +01:00
MSedgeMC e51fd1dff4 port_map: ItemStack.hurtAndConvertOnBreak is the steering stick's rod
The row was `missing`; the conversion was in `use_steering_stick` but
built a fresh plain rod and skipped `hurtAndBreak`.
2026-11-05 14:24:14 +00:00
MSedgeMC c135993a63 test: a steering stick that breaks leaves the rod the stick was
`transmuteCopyIgnoreEmpty`: at 18 + 7 of 25 the carrot on a stick becomes
a fishing rod that kept its custom name and starts whole, where the old
path wrote a fresh plain rod. Wear that Unbreaking took away (0) breaks
nothing, and a stack with no durability never breaks.
2026-11-05 14:24:12 +00:00
MSedgeMC c942e133da fix: a steering stick's wear goes through the item's durability rules
`FoodOnAStickItem.use` wears the stick with
`ItemStack.hurtAndConvertOnBreak`, which runs `hurtAndBreak` - and
`hurtAndBreak` asks `processDurabilityChange` first, so Unbreaking has its
say before any damage lands.

`use_steering_stick` added the whole 7 (carrot on a stick) or 1 (warped
fungus on a stick) straight onto `stack.damage`, so an Unbreaking stick
lasted exactly as long as a plain one, and it never reached the mods'
item-damaged hook.
2026-11-05 14:23:55 +00:00
CocofireHDandopencode 8df11ffe4c Mod fluid tanks: let a tank refuse a fluid
A mod tank can now refuse a fluid through native_block_entity_accepts_fluid (NeoForge's IFluidHandler.isFluidValid). The server asks it before filling a tank in both insert passes and before native_move_fluids counts a tank's room; every tank accepts every fluid unless a mod cancels. A water tank can take no create:chocolate, and a removed mod leaves no fluid id it cannot use behind.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 15:21:31 +01:00
Horizon agentandClaude Opus 5.5 daf49b24bb rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:18:21 +01:00
Horizon agentandClaude Opus 5.5 f6f95b6900 rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:18:21 +01:00
Loki 22c2b843c5 Merge remote-tracking branch 'origin/main' into fix/9744-fishing-hook-random 2026-11-05 23:18:03 +09:00
Ludovic Marie c04c5ccf90 Merge pull request #9940 from horizon-rust/docs/telemetry-presence-exception
🤖 Agent: docs only. telemetry.md now lists Show me as Horizon (on by default) as the second exception to 'nothing without consent', which settles socksprox's point on #9440.
2026-11-05 15:15:50 +01:00
Horizon agentandClaude Opus 5.5 6968e9dd97 docs: telemetry.md names Show me as Horizon as the second exception to 'nothing without consent'
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:14:40 +01:00
MSedgeMC 3ef40bc92f port_map: BundleItem.getTooltipImage names the tooltip display rule
The row pointed at the geometry and carried the missing rule as a gap;
the grid now goes through `item_tooltip::bundle_tooltip`, which asks
`TooltipDisplay::shows("minecraft:bundle_contents")` before the layout.
2026-11-05 14:12:07 +00:00
hildlabsandClaude Opus 5.5 8b149e6657 Launcher: a registry project's GitHub stars, and a Star on GitHub button
A registry project's page said "0 followers": followers are Modrinth's,
and the registry has none. Its creators collect stars on their GitHub
repository instead, so the index gets `projects[].stars` (the source
repository's stars, which horizon-mods' publish job reads every hour, as
it adds `downloads`; absent when 0, the schema unchanged) and the page
shows "{count} stars on GitHub" there, with a "Star on GitHub" button
beside "Sign in with GitHub to rate" that opens the repository, where
the player stars it. No sign-in or permission is added.

`browser::horizon::github_repo` reads the repository from `source` (a
folder of it, `.git`, a query or an anchor are the same repository;
another host or a name GitHub doesn't allow gets no button). A project's
details now go to the page as the `Arc` it keeps them in, so the larger
`Details` doesn't make `Loaded` a large enum. Both strings are in every
language's table.

Fixes #9929

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:11:58 +01:00
MSedgeMC 875b657878 test: a bundle grid hidden by the tooltip display
`minecraft:bundle_contents` in `hidden_components`, and `hide_tooltip`,
both take the grid away; a display that hides `minecraft:lore` leaves it.
2026-11-05 14:11:58 +00:00
MSedgeMC 2ec1ce0480 fix: a bundle's contents grid follows the tooltip display
`BundleItem.getTooltipImage` returns nothing when the stack's
`minecraft:tooltip_display` hides `minecraft:bundle_contents`, so a
bundle given with `hide_tooltip` or with that component hidden drew no
grid. Horizon drew the grid for every bundle, and the tooltip box grew to
hold it.

`item_tooltip::bundle_tooltip` asks the display first and then defers to
`bundle::tooltip_layout`; the tooltip draw uses it for the height probe
and for the draw alike.
2026-11-05 14:11:58 +00:00
CocofireHDandopencode 4993bc83ac Shaders: upscale the scaled pack target to the full surface
A Resolution Scale leaves the pack's picture smaller than the window. Its final pass drew at the window's size, so a shader using gl_FragCoord as texel coordinates (Photon's final) only filled a quarter of the screen. Draw final at the picture's size into an offscreen texture and copy it once to the window with a screen-row fullscreen pass; the no-pack path and same-size output are unchanged.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 15:10:10 +01:00
Florian ERNSTandCodex eb0193cb34 Normalize Enderman carried states before placement
Run neighbor-shape updates on the authoritative level before the existing eligibility checks, and clear the verified carrier after the handled placement.

Co-Authored-By: Codex <[email protected]>
2026-11-05 15:06:31 +01:00
levzzzandCodex GPT-6 aa19826c39 Fix dispensed dragon spawn height and sound
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 19:06:15 +05:00
levzzzandCodex GPT-6 773e3526dd Test queued pregeneration toggle changes
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 19:05:08 +05:00
Ludovic Marie a61e02d362 Merge pull request #9915 from horizon-rust/fix/gl-terrain-uint-select
🤖 Agent: fixes the OpenGL startup crash on old AMD drivers (#9892), a regression from #9584 in Nightly f319701. The new test fails on main and passes here.
2026-11-05 15:05:02 +01:00
CocofireHDandopencode 2816f17962 Shulker boxes: close the block entity when its menu is removed
A guest's use raised its opener count twice: open_menu counted the block entity's startOpen, then lan_open_container counted it again once the menu was sent. Closing lowered it once, to one, so stopOpen never ran and the lid stayed open with its raised collision (#9500).

The guest open path now relies on the count open_menu already made; the harness keeps the lid open and closed checks for both host and guest.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 15:01:27 +01:00
MSedgeMC afad8241b6 port_map: the two BeehiveBlock tick methods
animateTick and trySpawnDripParticles are block_animate_tick and beehive_drip;
the animateTick row records the attempt bound the loop re-reads.
2026-11-05 14:00:10 +00:00
MSedgeMC 677e00c72f test: a floor, a fluid and a whole sample box for the animateTick zoo
The tick cases' stand-in world stopped at y 32..96 and x/z -32..31, one block
short of every sample the loop takes and of the neighbours those samples read,
so a block at the edge compared air against the oracle's unending world: that
is where the beehive, the redstone ore and the pointed dripstone differences
came from. Fill the whole box plus a block either way, let a case name the
floor below y = 64, hand the loop the state's own fluid (a waterlogged block
has a water source, which it ticks and drips) and bind the client jar's block
tags in the oracle the way a datapack load does, which a bare bootstrap leaves
empty. Then add the families that read a neighbour, a shape or their own fluid:
dried ghast over soul sand, soul soil, stone and air; hives and a nest embedded
and hanging; a lit redstone ore and a deepslate one embedded and over air; and
stalactite tips over stone and water. 2,097 cases and 456,747 output lines
become 2,187 and 462,718.
2026-11-05 14:00:10 +00:00
MSedgeMC 9d11ae8abb fix: a hive asks the level random for its attempt bound until the loop ends
BeehiveBlock.animateTick is a `for (i = 0; i < random.nextInt(1) + 1; i++)`
loop, so the bound is drawn again on the check that ends it: a hive always
spends two nextInt(1) draws around its single trySpawnDripParticles attempt.
Horizon hoisted the bound out of the loop and spent one, which left the level
random a draw ahead of vanilla from the first hive the ambient loop touched:
every particle after it moved, and the honey drip of a hive hanging over air
came out at the wrong column.
2026-11-05 14:00:10 +00:00
MSedgeMC 25cb339d57 port_map: WitherRoseBlock.animateTick is block_animate_tick
The row records where the smell test sits now: three smoke puffs about the
centre of the pick shape, moved by the flower's per-column model offset.
2026-11-05 14:00:10 +00:00
MSedgeMC 3555aa81d3 test: a wither rose world in the marker-particles parity suite
The corpus had no wither rose case at all. Add a world that is all wither rose,
run the whole ClientLevel.animateTick loop over it and compare every smoke puff
by exact position bits in call order: twenty-seven cases, three seeds and
twenty-four at random ones. The probe now supplies the flower's per-column model
offset the way the client's mesh tables do (a case without it would compare a
shape the game never shows). 2,070 cases and 402,440 output lines become 2,097
and 456,747.
2026-11-05 14:00:10 +00:00
MSedgeMC af128082f4 fix: centre the wither rose's smoke on its pick shape
WitherRoseBlock.animateTick reads its centre off getShape(state, level, pos,
CollisionContext.empty()), a flower's own box whose bounds centre is 0.5/0.5
before the block's per-column model offset. AnimateContext::shape_y answers with
the collision shape, which is empty for every flower, so the centre came out as
0 and the whole smoke column sat half a block towards the block's north-west
corner. Take the centre from the pick shape's boxes (BlockFacts::outline) and
keep the model offset on top of it.
2026-11-05 14:00:10 +00:00
Nikita Maximilian GrimmandClaude Opus 5.5 67382d8ed2 Shader API 0.2 reference: the lit colour may pass white, tonemap's picture size
Surface.color's "0..1" stays in the 0.1 reference only; the tonemap stage's
`previous` is the post chain's window-size picture, or the world's at the
world's size without a chain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:58:52 +01:00
Horizon agentandClaude Opus 5.5 f03c416ebc Shader test: name the handle type the select check reads
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:57:58 +01:00
levzzzandCodex 3bba1744e6 Format shader validation test
Co-Authored-By: Codex <[email protected]>
2026-11-05 18:55:33 +05:00
Horizon agentandClaude Opus 5.5 b4d0f716e3 Merge main into #9868: keep both new motion tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:51:55 +01:00
Horizon agentandClaude Opus 5.5 479cfd7f17 Realms worlds tab: read the slot list as the service sends it
The detail answer's slots are a list (RealmsServer.slotList) whose options
are a JSON string each (RealmsWorldOptionsJsonAdapter); a map of objects
failed the whole answer, players tab included. Missing world slots 1 to 3
are empty (finalizeSlots), unset options keep new RealmsWorldOptions()'s
values, and the template fields are worldTemplateId and
worldTemplateImage, in the update too. Cycle labels join through
options.generic_value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:51:51 +01:00
Horizon agentandClaude Opus 5.5 c8bf7d1993 Wither rose smoke: bound the pick shape from its own boxes
The fold started from 0.5 on every side, so a shape that does not cover
the block's centre would have been stretched to reach it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:49:08 +01:00
Horizon agentandClaude Opus 5.5 7a378e5d69 Map marker names: drop a test that only checked its own closure
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:48:55 +01:00
Horizon agentandClaude Opus 5.5 8d44fe96f8 Disconnect screen: keep wrap's doc comment on wrap
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:48:44 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 bd186dc732 Shader API 0.2: linear light, the display fields, [tonemap] and [frame] blend
Step 2 of docs/design/hdr-linear-light.md in horizon-shader-api. The line is a
value (`Api`), and `check` and `horizon-shader` serve 0.1 and 0.2. Under 0.2
the preludes and entries decode colours at the stage boundary (a 2.2 power,
negatives and NaN made 0 first) and encode what the frame stores; `Frame`
gains hdr, headroom, paper_white, peak and black_level, padded to WGSL's size
in Rust only, and 0.1's prelude still declares only its 49 fields. A
`[tonemap]` stage and `[frame] blend` are 0.2-only manifest keys.

0.1 does not move: its preludes and entries are pinned by digest, and
shaders-reference.md is unchanged; 0.2 has shaders-reference-0.2.md. The game
refuses 0.2 packs and `blend = "linear"`, and the registry refuses 0.2, each
with a message saying why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:48:24 +01:00
DUzzL 61a74fdd0a Stop the walk animation of a player riding a boat 2026-11-05 14:48:21 +01:00
martipopsandClaude Opus 5.5 e58ee9c714 Controllers: icon buttons and two checkboxes take the focus, and a screen with no targets fails a test
An icon-only button recorded nothing, so the pad could not reach the pause
menu's Report Bugs, Feedback and Player Reporting icons, or Realms' icons. An
active button with an empty label is now a focus target. So are the
Multiplayer warning's "Do not show again" box and Optimize World's Erase
Cached Data box, which A now ticks.

tools/pad_menu_e2e.py gains every_screen_has_targets, which walks the title's
submenus and every options page and fails on a focus screen with no targets.
Replay Studio is allowlisted because it registers nothing yet. New pause_icon
and erase_checkbox cases press the new targets. The pause menu now has
unlabelled widgets, so splitscreen_e2e's setup scenario reads labels with get.
controller_settings_pad's check for a Navigation page now matches exactly: it
tripped on the General page's Navigation Repeat rows.

docs/controllers.md no longer says every rectangle registers itself or that
both modes reach every screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:46:36 -05:00
CocofireHDandopencode 6492b16a7b Send minecraft:vibration particles from the server to nearby clients
Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 14:46:21 +01:00
CocofireHDandopencode 2cb008e118 Shaders: read depth as an unfilterable float so GLSL translates
The world's depth was bound as a depth texture and read with textureLoad, which naga's GLSL backend cannot emit, so TAA, the depth blit and the shader depth test failed to build on OpenGL. Bind those views as unfilterable float textures instead: wgpu accepts a depth view there, and textureLoad returns the same depth texel on every backend (Vulkan, DX12, Metal, GL).

The shader translation test now fails on any shader the GL backend runs that cannot translate, and pins fs_taa and fs_blit; the HUD's glint, which fails for an unrelated two-samplers-per-image naga limit, is the one allowed exception.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-05 14:45:43 +01:00
Horizon agentandClaude Opus 5.5 b859bcf312 Merge origin/main into shaderpacks/atlas-linear-mipmaps
Keeps atlas_mip_tests beside #9764's wrong_type_uniform_tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:45:36 +01:00
Horizon agentandClaude Opus 5.5 7812fb0460 Terrain shader: scalar selects for the corner offset, so old AMD OpenGL drivers compile it (#9892)
#9584 replaced FXC-rejected dynamic component stores with a select between uvec3s on a
bvec3. naga writes that as GLSL's mix(uvec3, uvec3, bvec3), which needs GLSL 4.5 or
EXT_shader_integer_mix; AMD's 2016 driver for the Radeon HD 7400M resolves it to the float
overload and rejects the 'Terrain solid (flat)' vertex shader, so the game no longer starts
there. One scalar select per component compiles to ?: on every backend.

The shader translation test now refuses any select between integer vectors on a bool vector.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:45:29 +01:00
Horizon agentandClaude Opus 5.5 5d54563cc6 Merge origin/main into fix/h317-frame-map-detach
The command_exec harness records frame_map_state and #9848's
menu_state ops alike.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:45:02 +01:00
Horizon agentandClaude Opus 5.5 b9df50777c Merge origin/main into fix/map-decoration-type-namespace
Keeps the map decoration namespace flags beside #9848's piglin anger
memory flags in the command_exec harness.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:44:09 +01:00
levzzzandCodex GPT-6 b33e54cb46 Compare PNG pixel formats in frame identity
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:41:36 +05:00
Ludovic Marie 6ec78cc425 Merge pull request #9910 from horizon-rust/fix/native-build-needs-hook-catalog
🤖 Agent: launcher-only fix, green on the desktop at d984823 (cargo fmt --check, clippy --all-targets -D warnings, cargo test: 559 + 102 passed). One point to watch: the catalog is fetched from raw.githubusercontent only when a hooked mod uses named hook points, so builds of raw-target mods make no new request.
2026-11-05 14:41:21 +01:00
oxi-does-dev 0c897e3e33 Interact: send the point the ray hit, as vanilla does
MultiPlayerGameMode.interact sends EntityHitResult.getLocation() minus
entity.position() in every ServerboundInteractPacket. Horizon sent a
fixed [0.0, 1.0, 0.0] for mobs, a point in their middle: armour stands,
saddles, leashes and anything else that reads the click carried
interactAt to the wrong place, unlike vanilla, and a server's reach or
ghost-hand checks saw clicks that vanilla never makes.

mob_hit and the spear's attack_range pick now return the point along
the view ray where the mob's box was met, measured from its feet, and
every caller destructures the third element. A regression test checks
the packet's point against the ray.
2026-11-05 16:40:43 +03:00
degepieandClaude Opus 5.5 770e4461f8 Mobs: naming one or dyeing a sheep fires player_interacted_with_entity
ServerGamePacketListenerImpl.handleInteract fires the trigger with the
held stack as it was before the interaction whenever an item interaction
succeeds. NameTagItem.interactLivingEntity and DyeItem.interactLivingEntity
both succeed, but interact_mob returned after name_mob and after the sheep
dye before reaching the shared trigger call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 18:40:41 +05:00
Ludovic Marie 868039b457 Merge pull request #9897 from horizon-rust/registry-v2/required
🤖 Agent: with levzzz5154's commits an entry's icon must be exactly icons/<id>.png, so one project can't show another's icon; all 94 entries on horizon-mods main already comply and none is incomplete.
2026-11-05 14:36:43 +01:00
AxxioandAntigravity 6cd586555f launcher: fix top bar action button clipping and invite field overflow (fixes #9902)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 14:36:15 +01:00
Ludovic Marie 42aad46379 Merge pull request #9733 from martipops/controller/settings-screen
🤖 Agent: The new pages go through the same English-as-key lang::get scheme as graphics_ui, and the detected glyph style now follows the named device's vendor before that pad has been used. fmt, clippy and the controller and settings tests pass merged with main.
2026-11-05 14:34:12 +01:00
levzzz 80c4551ac7 Merge pull request #9850 from UMCEKO/fix/lan-e2e-server-thread-name
lan_e2e: drop datapack-recipe's guard on the removed SERVER_THREAD flag
2026-11-05 18:33:39 +05:00
levzzzandCodex GPT-6 f4c4ab173c Keep level-up sounds on each player clock
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:33:16 +05:00
masa-masa-0314andZCode 85b037f347 Realms: the worlds tab with slot switching and world options
The configuration screen's Worlds tab: the four slots as vanilla lays them out (the
active one 80 square, the others 50, 16 apart), each with RealmsWorldOptions.getSlotName's
name; a click on another non-empty slot asks first, then RealmsClient.switchSlot
(PUT worlds/{id}/slot/{slotId}).

World Options opens RealmsSlotOptionsScreen: the world name (the default one stored as
empty), difficulty and game mode cycles, force game mode and spawn protection 0-16, with
vanilla's disabled states (a hardcore slot locks difficulty, game mode and force mode; a
world that is not NORMAL keeps its stored spawn protection and force mode). Done saves
through RealmsClient.updateSlot (POST worlds/{id}/slot/{slotId}, RealmsSlotUpdateDto's
JSON) and the tab reads the detail again.

RealmsServer reads the detail's slots (RealmsSlot, RealmsWorldOptions, RealmsSetting and
isHardcore). Slot images come with the pack-icon-slot PR; until then a slot is its frame
and name. The spawn-protection slider takes a click on its track: this screen has no drag
event yet.

Co-Authored-By: ZCode <[email protected]>
2026-11-05 21:32:31 +08:00
Ludovic Marie 867e9f0495 Merge pull request #9836 from masa-masa-0314/feat/realms-worlds-tab
🤖 Agent: The new calls go only to the official Realms service through the existing RealmsClient, and the UUID path segment must be 32 hex digits. Main is merged in to clear GitHub's criss-cross conflict after #9714 landed.
2026-11-05 14:29:56 +01:00
levzzzandCodex GPT-6 62c9562dc1 Require each expected frame identity screenshot
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:29:44 +05:00
Horizon agentandClaude Opus 5.5 d984823e56 Launcher: native mods with named hook points need the revision's catalog
A mod naming hook points (blockscope 0.3.1: hooks 2, all five by name) beside
one pinning 5e391eb (shulker_peek 0.1.0) built on the pin: 5e391eb already had
hook points v2, but native-hooks.json only came in d3e0774, still v2. So
horizon-mixins stopped with E_HOOK_CATALOG ("a named hook needs
native-hooks.json at the workspace root"), on every platform.

A revision now fits such a mod only when its native-hooks.json lists each named
hook point and version the mod injects at; otherwise the build moves on as it
does for missing hook points (the mods' tested commit, else the game's), and
the pinned mod waits for Build anyway.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:29:02 +01:00
Arslan ArmanulyandClaude Opus 5.5 c749ff3764 Shader packs: ftransform() applies the model-view matrix, then the projection, as Iris does
Read back with probe packs of ours, Iris 1.11.7's ftransform() has the bits of
gl_ProjectionMatrix * (gl_ModelViewMatrix * gl_Vertex) at every vertex our
probes read. Horizon multiplied the vertex by the product matrix formed once
per draw, which rounds differently in the last bits. With it, on a stack with
the other open #8464 PRs, a strip of water tops at ow_birdseye_noon read the
shadow map up to 73 units of 2^-24 from Iris's coordinates, and 35,632 and
50,761 of the texels our probe reads back differed from Iris's. How last bits
move a whole strip is not established.

The GPU test reads ftransform() back from a gbuffers and a shadow program with
matrices that tell the two orders apart (one rounding against two).

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:26:43 +05:00
Horizon agentandClaude Opus 5.5 19f6c2c382 Controllers: the detected-style test module goes last in options.rs
clippy's items_after_test_module (denied in CI) rejects the module
before windowed_again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:26:29 +01:00
degepieandClaude Opus 5.5 a85fb7c819 Advancement predicates read structure tags
A location predicate whose `structures` named a tag
(`#minecraft:shipwreck`, or a data pack's own `#pack:village`) never
matched: the predicates' tag lookup had no `worldgen/structure` case and
the world's pack tags didn't hold that registry. The world's tables now
load the structure tags with the packs' over the game's own, like the
entity type, biome and damage type tags, and a world without packs
reads the game's own structure tags (loaded once).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 18:26:17 +05:00
degepieandClaude Opus 5.5 ab4f48abfe Potions: drinking one awards the used statistic and fires consume_item
Consumable.onConsume awards the item's used statistic and fires the
consume_item trigger for a server player before the consumable's listeners
run and the stack shrinks. A potion and an ominous bottle finish through
finish_drinking, which did neither; food, honey bottles and milk go
through finish_consuming, which already does both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 18:26:14 +05:00
Ludovic Marie 38609b7b1f Merge pull request #9848 from TheMrZZ/fix/piglin-live-anger-memory
🤖 Agent: The angry_at memory is written only while this live guarded-block event owns it, and removed once the anger ends, so a stale raw Brain value cannot come back. Main is merged in, with both sides' recorded ops and fixtures (mob_anger, menu_state, map decoration) kept.
2026-11-05 14:24:36 +01:00
Ludovic Marie ad3442b001 Merge pull request #9764 from arslanarm/shaderpacks/builtin-uniform-wrong-type
🤖 Agent: read_as is only checked for built-ins while a shaders/ pack binds its programs, so nothing changes without a pack. Main is merged in, and wrong_type_uniform_tests now sits beside main's atlas_name and unknown_sampler test modules.
2026-11-05 14:24:31 +01:00
Ludovic Marie b38f983f88 Merge pull request #9901 from horizon-rust/registry-v2/launcher-4
🤖 Agent: native mods update only in the start's run; Play then runs the existing build_native(false) (stays on the instance's Horizon, mismatch notice as usual) and plays only if it succeeds; Nightly-pinned instances are left alone.
2026-11-05 14:24:27 +01:00
levzzzandCodex GPT-6 60b7ca324f Keep pregeneration toggle updates ordered
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:24:02 +05:00
levzzzandCodex GPT-6 69c5efdd99 Refresh native mod fit after a rebuild
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 14:23:36 +01:00
VaspyyyandClaude Opus 5.5 4caabfd21a Mod browser: say before install whether a native mod fits your Horizon
The registry's index now lists a native mod's hook points version
(`hooks`), and the browser and `mods search` compare it, or the mod's
pinned commit, with the Horizon the instance plays: builds there, needs
newer hook points, moves the game to its commit, or clashes with the
pins of mods turned on (Build anyway). Closes #9860.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:23:36 +01:00
MSedgeMC 7cb6fc552f port_map: WitherRoseBlock.animateTick is block_animate_tick
The row records where the smell test sits now: three smoke puffs about the
centre of the pick shape, moved by the flower's per-column model offset.
2026-11-05 13:23:18 +00:00
MSedgeMC 3b923fde88 test: a wither rose world in the marker-particles parity suite
The corpus had no wither rose case at all. Add a world that is all wither rose,
run the whole ClientLevel.animateTick loop over it and compare every smoke puff
by exact position bits in call order: twenty-seven cases, three seeds and
twenty-four at random ones. The probe now supplies the flower's per-column model
offset the way the client's mesh tables do (a case without it would compare a
shape the game never shows). 2,070 cases and 402,440 output lines become 2,097
and 456,747.
2026-11-05 13:23:17 +00:00
MSedgeMC 392b786d38 fix: centre the wither rose's smoke on its pick shape
WitherRoseBlock.animateTick reads its centre off getShape(state, level, pos,
CollisionContext.empty()), a flower's own box whose bounds centre is 0.5/0.5
before the block's per-column model offset. AnimateContext::shape_y answers with
the collision shape, which is empty for every flower, so the centre came out as
0 and the whole smoke column sat half a block towards the block's north-west
corner. Take the centre from the pick shape's boxes (BlockFacts::outline) and
keep the model offset on top of it.
2026-11-05 13:23:17 +00:00
Claude 918db2564f Explain Smart App Control blocking native builds (#5911)
Windows 11's Smart App Control lets only signed programs run, and a native
build runs programs it has just compiled (build scripts, horizon-mixins, the
game), so every build failed with os error 4551 and an opaque cargo error.

The launcher now checks Smart App Control before downloading anything
(VerifiedAndReputablePolicyState 1) and says how to turn it off; a build
that hits os error 4551 anyway leads its error with the same explanation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y255SPgcPcs89pQpqu1eES
2026-11-05 13:21:51 +00:00
levzzzandCodex 2a2cd81378 Format registry test assertions
Co-Authored-By: Codex <[email protected]>
2026-11-05 18:20:15 +05:00
levzzzandCodex 1f5ec291b3 Enforce each listed project icon path
Co-Authored-By: Codex <[email protected]>
2026-11-05 18:19:08 +05:00
Ludovic Marie d929725893 Merge pull request #9898 from horizon-rust/registry-v2/launcher-3
🤖 Agent: the content-id guard runs after index::check_file and before the rename, so a held update leaves the installed .hmod and its list entry untouched; the replaced file is kept until the next start for rollback.
2026-11-05 14:18:15 +01:00
Loki 4741885f8e Merge remote-tracking branch 'origin/main' into fix/9744-fishing-hook-random
# Conflicts:
#	crates/horizon-client/src/game/fishing.rs
2026-11-05 22:18:09 +09:00
DUzzL 0cc73f7550 Advancement command: count targets without a turn, restore the quiet flag 2026-11-05 14:16:22 +01:00
degepieandClaude Opus 5.5 18abadd471 Commands: query results go through the source's success feedback
A command run by a data pack function printed its query result in the
chat: `time query`, `seed`, `gamerule <rule>`, `difficulty`,
`experience query`, `list` and `help` wrote a system message directly,
past the silent source a function runs with. They now take
`feedback_unbroadcast` (`CommandSourceStack.sendSuccess` without the
broadcast to operators, as TimeCommand, SeedCommand, GameRuleCommand,
DifficultyCommand, ExperienceCommand, ListPlayersCommand and
HelpCommand send them): a silent source says nothing, a command block
keeps the line as its last output, and `send_command_feedback` off hides
it from a player. The returned value still reaches `execute store`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 18:16:15 +05:00
levzzzandCodex GPT-6 2896e005b0 Fix detected glyphs for the displayed controller
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:15:31 +05:00
SenjinandClaude Opus 5.5 4c44b57727 Shader packs: filter shadowtex through a plain sampler without copying it
A pack reading shadowtex0/1 through a plain filtering sampler got an
R32Float copy of the shadow depth every frame, made through a buffer
(#8999: wgpu filters a depth format only in a comparison). At a large
shadowMapResolution that is most of a frame: 8192² costs 512 MiB (the
buffer and the copy) and about 10 ms a frame on an RTX 2080.

The translator now sends texture calls on shadowtex0, shadowtex1,
shadow and watershadow declared as sampler2D to helpers that gather the
four texels and blend them bilinearly, as the filtering sampler did,
reading the depth itself. A uniform of ours, hz_depth_linear, says per
name whether it filters (shadowtexNNearest unset) or takes the nearest
texel. The pack's own functions given one of them as a sampler argument
carry its flag in an extra parameter (-1 for any other texture, which
then reads with the built-in the pack called). The copies, their buffer
and textures are gone, and devices without FLOAT32_FILTERABLE now filter
too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:15:19 +01:00
Ludovic Marie 48cf423414 Merge pull request #9820 from Ente3/feat/colored-singes
🤖 Agent: Each colour run is its own text call, and plain lines are still one call each. Plain lines now skip the component round trip every frame, and edits keep the old line's root style as SignBlockEntity.setMessages does.
2026-11-05 14:14:14 +01:00
Horizon agentandClaude Opus 5.5 8aeda11f56 Mod registry: a listed project needs a description, a category and its own icon
Registry v2, step 4 (docs/design/registry-v2.md): registry build refuses a
listed project with a description under 50 characters, no category, no
icon, or images that aren't kept in the registry (icons/, screenshots/).
The site and the launcher then load images only from the registry's host.
Lands once every entry on horizon-mods main is backfilled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:12:39 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 74d3e1482c Frame identity harness: build the base for hook fragments, check the HDR pack
horizon-mod-api-gen generates Rust from tools/native-hook-fragments/, so
a change there builds the base instead of reusing the change's binaries.
Golden Hour with HDR on is checked against hdr_toggle's first shots (the
same settings without the pack), sidecars included, so a pack that only
fails under HDR doesn't pass as identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:12:08 +01:00
levzzzandCodex GPT-6 9ee022d926 Fix map marker name depth
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 18:11:05 +05:00
Horizon agentandClaude Opus 5.5 abb78e4e3a Launcher: native registry mods update at start, then build before Play
With automatic updates on, the start's run also updates native mods
(.hnmod), except for an instance that keeps a Nightly or a native build
made on one. The next Play of an instance whose native mods moved on
builds its game again first (the Mods page's Build), then plays it.
Play's own run never updates native mods: no build would follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:10:40 +01:00
Horizon agentandClaude Opus 5.5 fb642d816c Launcher: registry mods update automatically
A setting, on by default (Settings > Game > Update registry mods
automatically): at start (every Horizon instance) and before Play (the
instance it starts), what the browser installed from Horizon's registry
moves to Index::installable, checked as an install is.

Never updated automatically: a modpack's profile (its .hpack pins each
mod by SHA-256), native mods (they need a build), data packs, a version
for another Minecraft, anything older than what is installed. A content
mod whose new version drops a block, item, entity, effect, menu or
creative tab waits for the player, with a notice naming them. The file
an update replaces is kept in mod-browser/replaced/ until the next
start, which puts it back if the update was cut short.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:10:07 +01:00
Ludovic Marie 3533cfb186 Merge pull request #9894 from horizon-rust/registry-v2/launcher-2
🤖 Agent: screenshots go through gallery_of, which drops any URL images::refuse rejects, so the image host allowlist stays as it was; the Gallery tab hides when a project has none.
2026-11-05 14:08:46 +01:00
DUzzL 599452907b Add TeamPredicate to entity_properties predicates 2026-11-05 14:08:36 +01:00
Horizon agent 09d8772fd8 rustfmt 2026-11-05 14:06:43 +01:00
Horizon agentandClaude Opus 5.5 b03d15d147 Mod browser: registry screenshots in a project's gallery
A registry project's `screenshots` (mirrored into the registry, served
from its Pages beside the icons; other hosts are left out) fill its
page's Gallery. The Gallery tab shows one image large, a click on it
shows the next, arrows and a strip of thumbnails pick another; a project
without images has no Gallery tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:06:43 +01:00
Horizon agentandClaude Opus 5.5 7899c12c4c Merge origin/main into extras-pregen-toggle
Keeps the pregen extra next to main's solo cosmetics entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:06:25 +01:00
Arslan ArmanulyandClaude Opus 5.5 4b6cd5e23c Shader packs: colortex mipmaps are a box filter of the level above
A buffer's mip level was one bilinear sample of the level above at the
centre of each destination texel. Along an odd side (45 rows of a
1280x720 buffer's fourth level, 11 of its sixth, 5 of its seventh) that
sample lands near one texel's centre instead of between two, so a small
bright spot was skipped: a probe pack of ours lost a 26x22-pixel square
of 10.0 entirely from level 7 down, where Iris 1.11.7 kept it down to
its 1x1 level, the buffer's mean.

Each level is now a box filter of the level above (OpenGL 4.6, 8.14.4,
recommends one): two texels along an even side, and three along an odd
side of 2d + 1 texels, weighted d - i, d and i + 1 over 2d + 1, so every
texel above counts as much. Our probes' Iris values fit this within
0.1 % at levels 6 and 7 and 1.5 % at level 10, in all 16 colortex
buffers, in 10 formats. Iris's level 5 of that buffer fits it in rows
but not in columns (undiagnosed).

Fixes #9891
Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:05:56 +05:00
Horizon agentandClaude Opus 5.5 1b1e29d48a Merge origin/main into extras-pregen-toggle
Keeps the pregen extra next to main's Horizon marks entries in the
extras file and the menu-only item list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:04:54 +01:00
Ludovic Marie d0cd32780b Merge pull request #9889 from horizon-rust/registry-v2/launcher-1
🤖 Agent: registry data packs reuse install_datapack but go through index::check_file first (signature and pack.mcmeta/data/), so they get the registry's full check, not just the SHA-256 Modrinth files get.
2026-11-05 14:04:44 +01:00
Ludovic Marie 77b5818638 Merge pull request #9885 from horizon-rust/registry-v2/service
🤖 Agent: the ownership point to watch is Edit project: page edits are allowed only to an owner matched by numeric GitHub ID (Ownership::ById), never by login alone, and an image upload always makes an update a reviewed one rather than an owner update.
2026-11-05 14:04:39 +01:00
Ludovic Marie c0de7a9fc3 Merge pull request #9888 from horizon-rust/feat/cosmetics-single-player
🤖 Agent: With the switch off, single player now asks the service nothing for the player's own model. Before, it asked /v1/worn about the offline UUID, which the service never knows. The cost when off is one bool test, on a path that runs only for the player's own model.
2026-11-05 14:04:35 +01:00
DUzzL 590148a5d3 Lay out the disconnect screen like vanilla so the button stays below the reason 2026-11-05 14:04:33 +01:00
Arslan ArmanulyandClaude Opus 5.5 ae9f02e676 Shader packs: cloudHeight reads the dimension's cloud height without clouds
A shader pack's `cloudHeight` read NaN in a dimension whose cloud colour
has no alpha (the Nether, the End), as ShaderDoc describes it. Probe
packs of ours read 192.33 there in Iris 1.11.7, in every program kind
they read it from (gbuffers_terrain, gbuffers_textured_lit,
gbuffers_skybasic, shadow, prepare, deferred, composite and final).
`cloudHeight` is now the dimension's `visual/cloud_height` with or
without clouds: `EnvironmentAttributes.CLOUD_HEIGHT`'s default, 192.33,
where the dimension doesn't set it.

Fixes #9890
Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 18:04:29 +05:00
Horizon agentandClaude Opus 5.5 8bbedb4d4d Merge origin/main into fix/villager-stand-up
Keeps the villager wake cases and #9775's used-stat cases as two
separate streams in the use_item_on harness.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:03:09 +01:00
Ludovic Marie 5b58aaa152 Merge pull request #9440 from horizon-rust/feat/horizon-player-mark
🤖 Agent: The Horizon mark and the badge share one lock look per name tag (Frame::horizon beside Frame::worn), so the name tag cost did not move on playhorizon (eg_name_tags median 0.027-0.029 ms with the mark on and off). The Founder gem is the service's texture (horizon-cosmetics#8), so deploy that right after this merges.
2026-11-05 14:02:09 +01:00
LokiandAntigravity c2b3c2d103 fishing: draw hook tick, bite timers and catch from hook's own random (fixes #9744)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 22:01:42 +09:00
Horizon agentandClaude Opus 5.5 6fa2c99334 toast_add: ask for main's new socialInteractions tutorial hint too
Merging main brought Hint::SocialInteractions (#9796); Hint::name was no
longer exhaustive. The first-server hint is now asked like the others, and
is still spent when cancelled, as vanilla sets joinedFirstServer either way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:00:54 +01:00
Horizon agent 65326a0d84 Merge remote-tracking branch 'origin/main' into cg45/9807 2026-11-05 14:00:32 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 5934f591ee Frame identity harness: named only, run by the frame-identity label
It fails any change that moves the picture on purpose, so no automatic
selection may pick it (parity-main would bisect every visual fix to it).
A pull request that must leave the picture alone carries the
frame-identity label, which parity.yml reads as an input and then runs
the harness by name after the selected ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:56:00 +01:00
Florian ERNSTandCodex 41acd427ee Refresh main after selector validation
Co-Authored-By: Codex <[email protected]>
2026-11-05 13:53:36 +01:00
Horizon agent 425321db3d rustfmt 2026-11-05 13:51:31 +01:00
Florian ERNSTandCodex 8e7bb2dc6d Merge main and preserve both command fixture dispatches
Co-Authored-By: Codex <[email protected]>
2026-11-05 13:48:06 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 e60be31a02 Frame identity harness: the base's and the change's pictures, pixel for pixel
tools/test_frame_identity_parity.py builds the base (BASE_SHA, else the merge-base
with origin/main) in a worktree and target folder of its own under
.local/frame-identity/, draws fixed scenes offscreen with it and with the change
under HORIZON_STILL=1, and requires identical decoded pixels, writing a diff image
where they differ: HDR off (day over water, night with light sources, stained
glass, the Nether), Golden Hour (API 0.1) in SDR and with offscreen HDR output,
and HDR turned off in a running game. Each session checks it drew what it is for,
so a pack that fails to load, or HDR that stays off, in both builds can't pass.
Lavapipe where it is installed, else the same adapter for both builds. A change
that touches no file a game binary is built from reuses the change's binaries.

The differential screenshot test of docs/design/hdr-linear-light.md (Tests 1, 2),
first of the shader API 0.2 series (#9861).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:45:58 +01:00
AkirabaneandClaude Opus 5.5 ebfab7fc89 dedicated: player-release ends a hand-over on the source server
`player-release <uuid> <hand-over> moved [announce]` takes a player that
`player-export <uuid> freeze` froze out of the world, because another
server has it now: the others see its entity and its list entry go, no
player file or record is written, the log and the leave event record the
departure ("moved to another server"), and the connection is closed. The
"left the game" line is neither sent nor logged unless `announce` is
added. `player-release <uuid> <hand-over> abort` lifts the freeze.

Both name the hand-over id the export returned, and are refused for a
player who is not in a hand-over, for another hand-over than its current
one, and for a player who died while frozen. Once the freeze has run out
the hand-over is over and a late `moved` is refused: the player has
played on since, and the target's record is older. So a stale or
repeated release cannot remove someone who is playing again.

A frozen player takes no damage (Abilities.invulnerable, which the void
and /kill still pass) and picks up no items, arrows or experience orbs,
so its record stays true until the release. A player who dies while
frozen all the same ends the hand-over with a warning.

Refs #7484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:44:53 +01:00
Riccardo Guerriero 27f2e4ebe6 Merge origin/main into fix/placement-vibrations 2026-11-05 13:42:40 +01:00
AxxioandAntigravity b1e666ae8c game: render marker names under named banners on maps (fixes #9781)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 13:42:03 +01:00
Ludovic Marie dfba9cab74 Merge pull request #9882 from horizon-rust/fix/tab-list-cape-failure
🤖 Agent: queued. tab_list passes 1000/1000 on this head on top of main 3d9ad5214 (playhorizon); main has 964/1000 (#9834). The change brings back vanilla's SkinManager.registerTextures allOf rule: a cape or elytra that fails gives the default skin. The retry and the decode-before-cache from #9420 are kept.
2026-11-05 13:41:41 +01:00
Horizon agentandClaude Opus 5.5 fd452b052f Cosmetics: shorter caption for the single-player switch
"Cosmetics in single player: On" was cut off on the Extras button; the
Cosmetics header already names it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:41:40 +01:00
Ludovic Marie c0d3bbe914 Merge pull request #9844 from DUzzL/fix/9808-zpiglin-anger
🤖 Agent: requeued at the same reviewed code (cg-47 passed it). I pushed an empty commit only because GitHub had lost this PR's head ref.
2026-11-05 13:41:37 +01:00
Ludovic Marie 0ec8f4971e Merge pull request #9785 from UMCEKO/fix/hoglin-cannot-be-hunted-saved
🤖 Agent: queued. `python3 tools/parity.py save_roundtrip` on this head merged into main 3d9ad5214 (playhorizon): PASS, 0 unexplained differences; the hoglin's `CannotBeHunted` DIFF from the nightly audit (#9833) is gone, the 35 ignored categories are the same as on main. Matches `Hoglin.addAdditionalSaveData`, which writes the boolean unconditionally. Also closes #9833.
2026-11-05 13:41:33 +01:00
Horizon agentandClaude Opus 5.5 ed0de5149a Mod registry form: images uploaded into the registry, Edit project, no repository listings
Registry v2 (docs/design/registry-v2.md), the submission service:
- The form uploads the icon (square PNG) and up to 8 screenshots; the service
  checks them (horizon_mods::index::page) and writes them on the submission
  branch as icons/<id>.png and screenshots/<id>/<n>.<ext>, so the site and the
  launcher load them only from the registry. An icon address is refused.
- Categories and tags go into the entry; a new project needs a description of
  50 characters or more, a category and an icon. A shaderpack needs the
  submitter's statement that it is theirs to hand out.
- "Edit project" (`edit: true`, no file): an owner by GitHub ID changes the
  page without a new version; pull request edit/<id>-<time>, label owner-edit.
- The registry follows no repository any more (orchestrator decision): the
  form refuses a repository listing, and `registry review` refuses a new entry
  with `repo`. Every version is a submitted, pinned file.
- A retry takes up its own branch when every commit on it is the form's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:41:32 +01:00
Ludovic Marie 4611a56790 Merge pull request #9840 from Alysia42/travel-in-air-client
🤖 Agent: travelInAir's client branch now sees the real client side and the dimension's min Y, so a client over an unloaded chunk falls at 0.1 * 0.98. The new unit test runs with prepared resources on playhorizon.
2026-11-05 13:41:30 +01:00
Ludovic Marie 2c90d369ab Merge pull request #9829 from DUzzL/fix/9788-join-leave-team
🤖 Agent: Join and leave messages now use player_display_name, team prefix and nickname included, as PlayerList.placeNewPlayer's getDisplayName does. Chat already went through it.
2026-11-05 13:41:26 +01:00
Ludovic Marie 350ea131a7 Merge pull request #9824 from ilguerro/fix/item-used-stats
🤖 Agent: Each award sits in the branch vanilla counts in (FoodOnAStickItem's PASS, a cast but not a reel-in, trident and armor only on the server). The use_item_on harness's 400 new cases pin them.
2026-11-05 13:41:22 +01:00
Ludovic Marie 8459e4acd7 Merge pull request #9768 from arslanarm/shaderpacks/shadow-projection-planes
🤖 Agent: shadow_ortho reproduces the measured bits with JOML's setOrtho and invertAffine (MIT, credited in THIRD_PARTY_NOTICES). Horizon's own packs keep their depth range, now written as explicit planes.
2026-11-05 13:41:17 +01:00
Ludovic Marie 9414faf069 Merge pull request #9847 from senjinthedragon/lazy-flip
🤖 Agent: The second texture is decided once at load (doubled), and a single-sided buffer's B is a clone of A's view. The clear of the alt side and the alpha-1 start both skip single-sided buffers, so A is never attached twice in one pass.
2026-11-05 13:41:13 +01:00
Ludovic Marie 5990d6f3d1 Merge pull request #9755 from lightcodegit/fix/fishing-triangle-double
🤖 Agent: RandomSource.triangle is mean + spread * (nextDouble() - nextDouble()) in 26.3, and the local copy drew two floats. The cast and fishAngle now take vanilla's draws, and the change merges cleanly with #9740.
2026-11-05 13:41:09 +01:00
Ludovic Marie 8f6f2d78ca Merge pull request #9749 from lightcodegit/fix/camel-riding-sprint
🤖 Agent: A rider's sprint now goes through LocalPlayer.isSprintingPossible's vehicle branch (canSprint and local authority), so only camels keep a sprint, and boats and carts stop it as in vanilla. The released-key case is covered by drive_mount reading player.sprinting.
2026-11-05 13:41:04 +01:00
Ludovic Marie c31a5b73ff Merge pull request #9740 from Alysia42/fishing-hook-random
🤖 Agent: FishingHook.<init> draws the throw's three triangle values from the hook's own Entity.random (a fresh RandomSource), so the level's random no longer advances on a cast. #9755 sits on the adjacent lines and merges cleanly on top.
2026-11-05 13:41:00 +01:00
Horizon agentandClaude Opus 5.5 3a9c721478 Empty commit: make GitHub rebuild this PR's head ref
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:37:25 +01:00
Horizon agent cf368aa50e Merge remote-tracking branch 'origin/main' into cg47/fix-9764
# Conflicts:
#	crates/horizon-client-render/src/gfx/pack_post.rs
2026-11-05 13:37:19 +01:00
Ludovic Marie 20186e4044 Merge pull request #9479 from megabytesme/codex/issue-9407-native-mods-arm64
Build native mods on Windows ARM64
2026-11-05 13:37:13 +01:00
Horizon agent 0dfa7840d1 Merge remote-tracking branch 'origin/main' into cg47/fix-9848
# Conflicts:
#	tools/test_command_exec_parity.py
2026-11-05 13:37:09 +01:00
Horizon agent bf07ce2b17 Merge remote-tracking branch 'origin/main' into cg47/fix-9836 2026-11-05 13:36:42 +01:00
Horizon agentandClaude Opus 5.5 c4b85eaed1 Merge main into #9841 (lan_actions imports)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:34:28 +01:00
Horizon agentandClaude Opus 5.5 a388925037 Merge main into #9765 (both test modules)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:33:56 +01:00
Horizon agentandClaude Opus 5.5 8be857dcce Merge main into #9751: keep the frame-map fixture beside #9720's wolf anger
Both isolation sets, both observation ops in the record accounting, and the
expect_map guard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:33:14 +01:00
Horizon agentandClaude Opus 5.5 fd5dd184f6 Merge main into #9743 (keep both fixture flags)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:32:21 +01:00
Riccardo GuerrieroandClaude Opus 5.5 cd834b8128 Creepers, grazing, creakings, turtles, wolves, shulkers and vexes make vibrations
Creeper.tick's PRIME_FUSE, Mob.ate's EAT, Creaking's ENTITY_ACTION
(activate, deactivate, freezing, a heart-bound hit), Turtle.aiStep's and
Wolf.tick's ENTITY_ACTION, Shulker.setRawPeekAmount's CONTAINER_OPEN /
CONTAINER_CLOSE and an evoker's vexes' ENTITY_PLACE are posted, and the
host forwards them (it dropped all but entity_action and flap).

sculk gains `ignite mN` and `ate mN` actions and four scenarios, run
last since vanilla merges experience orbs by global entity id (439/439;
1/4 of the new ones on main's gameplay code). Unit tests cover the
creaking, wolf and shulker.

Part of #9776

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZzq8LUjYucp4kaN6UfSg7
2026-11-05 13:31:45 +01:00
martipopsandClaude Opus 5.5 e954d45940 Merge 5605b86b3 into controller/settings-screen: splitscreen_e2e keeps both scenarios
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:30:56 -05:00
Ludovic Marie 402fb8b1f4 Merge pull request #9815 from voidsipp/fix/9154-cleanroom-default-fallback-20261105
🤖 Agent: An unsupported initializer such as double(2.0) now leaves its uniform at zero with a note at its file and line, and the program still loads. Supported defaults and conflict errors behave as before.
2026-11-05 13:29:34 +01:00
Ludovic Marie ab326e3018 Merge pull request #9811 from voidsipp/fix/9284-firework-lead-sound
🤖 Agent: The lead snap now uses the entity-bound packet on NEUTRAL and excludes nobody, as FireworkRocketItem.use's playSound(null, player, ...). The ignored game test passes with prepared resources on playhorizon.
2026-11-05 13:29:30 +01:00
Ludovic Marie 17afb222ee Merge pull request #9805 from vnsmoreira/fix-shader-horizon
🤖 Agent: The box is drawn only for a shaders/ pack's skybasic program at the far plane, so terrain stays in front and Horizon's own sky is untouched. The design comes from the public shaders.properties docs, nothing copied.
2026-11-05 13:29:26 +01:00
Ludovic Marie 9eff6af707 Merge pull request #9801 from lightcodegit/fix/tnt-explodes-gamerule
🤖 Agent: With tnt_explodes off, the overlay now reaches the acting player and the item gets PASS, as in TntBlock.useItemOn. Redstone, fire and a finished fuse are gated by the same rule as TntBlock.prime and PrimedTnt.explode.
2026-11-05 13:29:22 +01:00
Ludovic Marie 42d83f8723 Merge pull request #9796 from voidsipp/fix/9732-social-tutorial
🤖 Agent: The hint follows Minecraft.tick's isMultiplayerServer: shown on a real server, or once a single-player world is published, never just because the client uses memory networking. joinedFirstServer is saved so it shows only once.
2026-11-05 13:29:18 +01:00
Ludovic Marie 715f591b2a Merge pull request #9774 from lightcodegit/fix/spectator-loot-table-open
🤖 Agent: Spectators now open neither a block container nor a chest boat with a pending loot table (BaseContainerBlockEntity.canOpen, AbstractChestBoat.createMenu). The boat roll clears LootTable and LootTableSeed from the raw NBT before filling, as unpackChestVehicleLootTable does.
2026-11-05 13:29:13 +01:00
Ludovic Marie 6b2be8534f Merge pull request #9771 from arslanarm/shaderpacks/terrain-origin-rounding
🤖 Agent: The 65536ths rounding is applied only to section origins while a shaders/ pack draws terrain or shadow. Culling, sorting and Horizon's own rendering keep the exact camera.
2026-11-05 13:29:07 +01:00
Ludovic Marie 35e2f588fc Merge pull request #9843 from DUzzL/fix/9787-dealt-absorbed
🤖 Agent: I moved the award into hurt_by_player, which melee, sweep and spear hits all go through. tick_stats runs with the host's statistics, so a guest's absorbed damage went to the server's Game; it now goes to the attacker inside its own as_guest turn. Tenths from other kinds of hits are cleared first, so they never reach the next attacker, and tick_stats no longer walks every mob.
2026-11-05 13:29:04 +01:00
Ludovic Marie 3b8012e529 Merge pull request #9839 from arslanarm/shaderpacks/terrain-vertex-32768ths
🤖 Agent: The floor to 32768ths runs only in the pack's terrain vertex stage (hz_Vertex), so Horizon's own drawing and at_midBlock stay exact. Whole blocks and sixteenths are already on that grid.
2026-11-05 13:28:59 +01:00
Ludovic Marie 8daeb30580 Merge pull request #9832 from martipops/test/native-post-rounding
🤖 Agent: 0.75 maps to 191.25, which no driver can round two ways, while 0.5 maps to 127.5, which is exactly half way. Only the test changes.
2026-11-05 13:28:54 +01:00
Ludovic Marie db29213c59 Merge pull request #9828 from arslanarm/shaderpacks/sky-fragment-depth
🤖 Agent: The sky now writes gl_FragDepth = 1.0, so the depth test still keeps it behind the world, and gl_FragCoord.z stays the geometry's own. One cost: a fragment that writes depth loses early-Z, so a pack's sky program now runs under terrain as well (Iris pays the same, since it draws the sky first). A noperspective depth varying with the old far-plane z would keep early-Z (follow-up #9857).
2026-11-05 13:28:49 +01:00
Ludovic Marie b55d0bd8ed Merge pull request #9724 from TheMrZZ/fix/armor-stand-honey-slide
🤖 Agent: The slide check reads block cells with the 1e-5 deflated box and the 0.4375 + half-width overlap, as HoneyBlock.isSlidingDown does, and markers and NoGravity stands keep skipping it. The cost is a few cell reads per falling stand per tick.
2026-11-05 13:28:45 +01:00
Ludovic Marie f184d9fd40 Merge pull request #9823 from DUzzL/fix/9789-sweep-postattack
🤖 Agent: The sweep now ignites each swept player only after mob_hits_player lands, after the knockback, the same order doPostAttackEffects runs in Player.doSweepAttack. It uses the same ignite lookup as the direct hit.
2026-11-05 13:28:41 +01:00
Ludovic Marie b8470c60e0 Merge pull request #9720 from TheMrZZ/fix/h316-wolf-live-anger
🤖 Agent: A live /data write now restarts the wolf's anger counter from anger_end_time at the level clock, the same conversion load_mob uses, so a future end no longer saves as -1. The resource-backed game test passes on playhorizon.
2026-11-05 13:28:37 +01:00
martipopsandClaude Opus 5.5 924c7015df Controllers: one pad reader for a session, so KDE's pointer emulation stays paused
Entering a world opened the split's gilrs and closed P1's. gilrs opens a pad twice
at once, which inotify can merge into one event, and closes it twice apart. KWin
counts those events to pause its emulation, so its count could reach zero while
Horizon still held the pad, and the left stick also moved the mouse.

The router now takes P1's reader and gives it back. Its reader also gets the extra
SDL rows, which it was missing.

Refs #9730

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:28:34 -05:00
Horizon agentandClaude Opus 5.5 867d876b6b Mod browser: registry data packs into a world, categories and tags
Horizon's registry now serves the Data packs tab (beside Modrinth): a
`datapack` project is checked against the index like every registry file,
then goes into the world picked under the search, through the same
install_datapack flow Modrinth's use. On the registry, Filters lists the
kind's categories (horizon_mods::index::page::categories), search words
also match a project's tags, and a project's page shows its categories.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:27:03 +01:00
DUzzL b116ef75cb Apply advancement grant/revoke to each selected player 2026-11-05 13:25:20 +01:00
Horizon agentandClaude Opus 5.5 9ae108b54d Merge main into #9743: keep the namespace normalisation beside #9814's empty-default elision
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:25:20 +01:00
Ludovic Marie 85d8e283f6 Merge pull request #9814 from TheMrZZ/fix/empty-map-decoration-patch
🤖 Agent: The empty map_decorations is dropped only for minecraft:filled_map, after components_tag returns, so the stone and empty-map controls and the explicit !map_decorations removals still save as before.
2026-11-05 13:22:34 +01:00
Ludovic Marie 5c4a6885be Merge pull request #9810 from voidsipp/fix/9728-split-player-render
🤖 Agent: skin_slots.forget() runs on both renderer swaps (entering and leaving splitscreen), so the kept skin images upload again to the new atlas, the same way they do after a device loss.
2026-11-05 13:22:29 +01:00
Ludovic Marie 6a30d171e4 Merge pull request #9803 from lightcodegit/fix/cushion-name-potion-infinite
🤖 Agent: An infinite effect (duration -1) now shows effect.duration.infinite, as MobEffectUtil.formatDuration does after addPotionTooltip's endsWithin(20) check. A named cushion keeps CustomName in its NBT and on the dropped item.
2026-11-05 13:22:25 +01:00
Ludovic Marie 03237c755f Merge pull request #9798 from TheMrZZ/fix/disconnected-guest-crafting-drops
🤖 Agent: Only HostEvent::Left takes the Disconnected removal: cursor and grid inputs are dropped before the guest is saved, and the untaken result is not. A live close still puts items back in the inventory.
2026-11-05 13:22:21 +01:00
Ludovic Marie 531035e0c1 Merge pull request #9794 from voidsipp/fix/9644-modpack-row-translations
🤖 Agent: The coverage report keeps its English text through Row::plain_text, and the launcher translates the fixed sentences plus the separate waiting count. An older report without the waiting field still shows its own text.
2026-11-05 13:22:14 +01:00
Ludovic Marie 85c51b36cb Merge pull request #9773 from lightcodegit/fix/split-pad-join-controller-off
🤖 Agent: Only the joining guest gets controller.enabled = true, and only when it joined from a pad. P1's own settings are not touched.
2026-11-05 13:22:06 +01:00
Ludovic Marie 7290cadc75 Merge pull request #9770 from arslanarm/shaderpacks/shadow-model-view-angle
🤖 Agent: shadowAngle keeps its bits, and the matrix now turns by (shadowAngle - 0.25) * 360 in f32 (+360 when negative). The test pins Iris's bits at 7297, 7300, 16000 and 7303 with sunPathRotation 30.
2026-11-05 13:22:01 +01:00
Ludovic Marie 61282fe1c7 Merge pull request #9766 from arslanarm/shaderpacks/sampler-texture-unit-0
🤖 Agent: The unit-0 remap happens in bindings() at pack load, so it costs nothing per frame. The real_packs output is unchanged on all 40 packs.
2026-11-05 13:21:56 +01:00
Ludovic Marie a663667eb1 Merge pull request #9761 from Hiuoy/feat/8622-trader-template
🤖 Agent: Nothing outside the template lists changes: the content root and MobTypes::load already accept any template's species. The new test checks that a mod trader saves the same keys as a vanilla trader.
2026-11-05 13:21:49 +01:00
Ludovic Marie d0b685a570 Merge pull request #9754 from xxaxio/fix/9477-duplicate-nametag-riders
🤖 Agent: I moved the EntityAttachment.NAME_TAG doc comment back onto name_tag_at (collect_vehicle_ids had been inserted between it and its function). The vehicle set is built once per frame and stays linear in the entity count.
2026-11-05 13:21:43 +01:00
Ludovic Marie 9d53f882a2 Merge pull request #9747 from lightcodegit/fix/flaky-drop-test
🤖 Agent: The wait now ends when the held job leaves the queue, so drop(reg) always has a running job to wait for. The 10 s bound fails with a message instead of hanging.
2026-11-05 13:21:38 +01:00
Ludovic Marie 217d7453e7 Merge pull request #9739 from JulesB40/fix/glide-exit-crawl-slowdown
🤖 Agent: moving_slowly now follows LivingEntity.isVisuallySwimming, which also counts a FallFlying pose with fall_flying off. The 0.0196 against 0.00588 acceleration in the body is exactly that 0.3 factor.
2026-11-05 13:21:34 +01:00
Ludovic Marie 5a6411c864 Merge pull request #9726 from Hiuoy/feat/8622-structure-templates
🤖 Agent: The palette pick matches StructureTemplate.getRandomPalette with settings.getRandom(pos) (a LegacyRandomSource seeded with Mth.getSeed), and ids with a . or .. part are refused before template_entry reads the world's generated folder.
2026-11-05 13:21:29 +01:00
Horizon agentandClaude Opus 5.5 8cff8f8373 Breed xp test: tame both llamas (AbstractHorse.canParent)
With the vanilla data present the untamed pair never bred, so the
test failed; without it the test returned early and passed vacuously.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:21:26 +01:00
Ludovic Marie 6d6c5aa7d6 Merge pull request #9723 from GabrielNichols/codex/windows-firewall
🤖 Agent: The loopback default only applies through lab.game_env and the HORIZON_TEST_LOOPBACK=1 variable, so a player's LAN keeps binding 0.0.0.0. On Windows the launcher now copies the version folder (minus .local) into run/<home hash>/game on every start; that is a launch-time cost, not a per-frame one.
2026-11-05 13:21:24 +01:00
Ludovic Marie 3dbc8b178c Merge pull request #9714 from masa-masa-0314/feat/realms-configure-screen
🤖 Agent: The two new Realms calls go through the existing RealmsClient (GET worlds/{id}/subscription, DELETE worlds/{id}), and Delete is only offered on an expired Realm, behind its question, as RealmsSubscriptionTab does.
2026-11-05 13:21:20 +01:00
SwuarezandOpenCode f99a55995e motion: a client's own glide into a wall plays its fall sound (fixes #8906)
LivingEntity.handleFallFlyingCollisions's playSound of getFallDamageSound runs on both sides; only the hurt is the server's alone. Horizon pushed the sound event only from the server-side run, and a glider's own travel is client-side (and the server broadcast excludes the glider), so the glider never heard entity.player.big_fall / small_fall.

Co-Authored-By: OpenCode <[email protected]>
2026-11-05 20:20:58 +08:00
yahya-nusseibehandClaude Opus 5.5 e249683ac9 horizon-server update on Windows: swap the current junction safely
point() removed the `current` junction before making the new one, so a
failed mklink left the server with no current release, and std quotes an
argument only when it holds a space, so a folder like D:\mc&co\ reached cmd
unquoted and & split the command.

- The new junction is made first as current.switching; the old one is
  removed and the new one renamed into place; if that rename fails the
  old junction is put back.
- mklink runs as `cmd /D /S /C "mklink /J "link" "target""` with
  raw_arg, both paths quoted; paths holding % or " (which keep a meaning
  inside quotes) are refused with a message.

- Test (Windows only): real junctions in a folder named with `&`:
  current moves v1 -> v2 and reads each release's file, the old release
  is untouched, no current.switching is left, and a release whose path
  holds % is refused with current unchanged.

Compiled, linted (clippy -D warnings) and tested on GitHub's
windows-latest runner: all 146 horizon-server tests, the two junction
tests among them. The Unix build and tests pass too.

Split from #9129.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 14:20:43 +02:00
Horizon agent 9874105f26 Merge remote-tracking branch 'origin/main' into cg48-9479
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 13:20:05 +01:00
Ludovic Marie 31b11c7c37 Merge pull request #9871 from horizon-rust/registry-v2/schema
🤖 Agent: the compatibility point is the extension check: released launchers refuse the whole index when a version's extension mismatches its kind, which is why .zip shader-folder packs are a new 'shaderpack' kind instead of riding on 'shader'; all new entry fields stay optional until HORIZON_REV moves.
2026-11-05 13:17:45 +01:00
Horizon agentandClaude Opus 5.5 13eaff707e rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:16:16 +01:00
Horizon agentandClaude Opus 5.5 d7dce68a27 fix(skins): a failed cape or elytra shows the default skin, like vanilla
SkinManager.registerTextures joins the skin, cape and elytra downloads with
CompletableFuture.allOf, so any one failing (or a URL with no hash) fails the
profile's PlayerSkin and createLookup shows the default skin. #9420 kept the
skin when only the cape failed; tab_list caught it (36/1000 lists, #9834).
The retry of failed downloads and the decode-before-cache from #9420 stay.

Fixes #9834

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:14:59 +01:00
Arslan ArmanulyandClaude Opus 5.5 47a9eeb1ce Shader packs: fluid tops are split into triangles as Iris splits them
Vanilla's FluidRenderer puts a fluid top's corners NW, SW, SE, NE and the
quad indices join corner 0 to 2, so every top is split north-west to
south-east. Our probe packs' readings of Iris 1.11.7 fit this rule: a top
is split along the diagonal whose corners differ more in height, and
north-east to south-west when its north-west and south-east corners are
level. It is a fit, not Iris's code. Block faces keep vanilla's split in
Iris too.

Under a shaders/ pack (Mesher::shader_pack, any loaded pack), a top that
Iris splits the other way now starts from its south-west corner: same
winding, its 0-2 diagonal running south-west to north-east. Horizon's own
drawing keeps vanilla's order.

The fit covers every lava top we read, every still top but one, and 317
of 343 water tops; the misses are undiagnosed.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 17:13:44 +05:00
Ludovic Marie 3d9ad5214d Merge pull request #9804 from voidsipp/fix/9651-launcher-update-guidance
🤖 Agent: Package installs (/usr, /nix/store, /app, not /usr/local) lose Download again and get package-manager advice, and other stuck copies are told to move to Downloads. The path check now runs once per launch instead of on every sidebar draw.
2026-11-05 13:09:32 +01:00
Ludovic Marie 1af2daee6b Merge pull request #9695 from anthra123x/feature/launcher-glass-blur-and-layout-fixes
🤖 Agent: The window backdrop is baked once per generation/viewport at main's 4 px texel density with a one-texel border, so scrolling no longer rebuilds a piece per plate. The scene's animation doesn't bump generation, so idle frames do no extra work. The layout/dropdown changes were reverted (duplicate glass Sort by, design-system radii).
2026-11-05 13:09:28 +01:00
Alysia Zappavigna 7f16f6a885 Count fallFlyTicks after aiStep, as LivingEntity.tick does (fixes #9858) 2026-11-05 23:09:00 +11:00
AxxioandAntigravity 4021e7bc06 lan: preserve vehicle container stand-in while other viewers remain open (fixes #9791)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 13:07:35 +01:00
Horizon agentandClaude Opus 5.5 b3fce0c2c5 TNT: the disabled overlay reaches the acting player, and the item lights its fire
TntBlock.useItemOn sends block.minecraft.tnt.disabled to the player who
clicked (ServerPlayer.sendOverlayMessage), and returns PASS, so flint and
steel or a fire charge then lights a fire as its useOn does. The overlay
went to the server thread's own HUD, which no player sees. The overlay
helper moves from debug_stick.rs to titles.rs for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:06:56 +01:00
Florian ERNSTandCodex 2d11bd857a Use stored entity bounds for supported box selector targets
Keep point distance and sorting, and retain the unresolved special-kind fallbacks.

Co-Authored-By: Codex <[email protected]>
2026-11-05 13:04:55 +01:00
Ludovic Marie f319701e8c Merge pull request #9684 from yahya-nusseibeh/fix/nightly-v2-signatures
Nightly: sign each build for its own version (SHA256SUMS.v2.sig)
2026-11-05 12:57:48 +01:00
TheMrZZandCodex gpt-6.1-sol 18f6f8f3c9 Populate active mob effects in entity predicate views
Project live effect IDs, amplifiers and durations into the existing view.
Cover named if/unless predicates and actual Game view construction.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 12:56:32 +01:00
Ludovic Marie eaaf9891ec Merge pull request #9862 from horizon-rust/fix/registry-zip-9
🤖 Agent: zip 2.6.1 was only the registry's test fixture writer (uploads already went through horizon-mods' 9.1.3); the new pre-check runs zip 9's validate_header_consistency, which by_name/by_index_raw skip by default, so a cloaked local header is refused before any kind's reader opens the upload.
2026-11-05 12:51:37 +01:00
Horizon agentandClaude Opus 5.5 aefbe1defb Mod registry: zip 9 and a check of the upload's zip
zip 2.6.1 (Dependabot #9 critical, #23, #24) was the registry's dev-only
fixture writer; the service already parsed uploads with horizon-mods' zip
9.1.3. Move zip to a normal dependency at 9.1.3, the version horizon-mods
and the main workspace use, so the lock holds one zip.

Before any kind's reader opens an upload, src/archive.rs now refuses a
local header that disagrees with the central directory, duplicate and
case-insensitive duplicate paths, overlapping entries, symlinks and other
special files, encrypted entries, over 100 000 entries and over 1 GiB of
declared uncompressed bytes. Tests craft each case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:49:38 +01:00
TiggerTakkyTTTandCodex 704fde5f75 Fix Ender Dragon spawn egg
Route Ender Dragon spawn eggs through the dedicated dragon entity implementation for hand and dispenser spawns.

Fixes #9799

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-05 18:45:20 +07:00
Horizon agentandClaude Opus 5.5 ddce4effe1 Mod registry: datapack and shaderpack kinds, optional categories, tags and screenshots
Step 1 of registry v2 (docs/design/registry-v2.md): the new entry and index
fields are optional, so nothing in horizon-mods changes until HORIZON_REV
moves. Values present are checked: categories from the kind's list (1-3),
plain lowercase tags (<= 10, nothing about gambling), a description under
10,000 characters, square PNG icons and bounded PNG/JPEG screenshots served
from the registry's site like icons. Data packs (pack.mcmeta + data/) and
shaders/-folder packs get their own checks; cargo horizon-mod check tells a
zip's kind by its content. The launcher offers shaderpacks as shader packs
and keeps data packs back until it installs them into a world.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:43:46 +01:00
Horizon agentandClaude Opus 5.5 809af9425d Containers: a spectator opens no chest boat with a loot table to roll
AbstractChestBoat.createMenu returns no menu for a spectator while the
boat's lootTable is set, so the table stays for the first player who
opens it, as BaseContainerBlockEntity.canOpen does for blocks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:43:36 +01:00
Horizon agentandClaude Opus 5.5 69962b601b Signs: a plain line skips the component round trip each frame
sign_text_calls runs for every visible sign every frame. A line read as
plain text has no saved component, so it is drawn from its text at once
instead of going NBT -> JSON -> component each time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:43:13 +01:00
Horizon agent f71ad19eb2 Merge remote-tracking branch 'origin/main' into cg48-9479
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 12:42:34 +01:00
Horizon agentandClaude Opus 5.5 f1f964f510 launcher: keep this PR to the glass backdrop bake
The version cards' radius and spacing and the mods sort dropdown are
back to main's:
- glass already draws its own Sort by beside the search
  (glass_mods_sort), so showing mods_sort_dropdown in glass gave two
  buttons sharing one sort_menu flag;
- the classic theme is square (theme::RADIUS = 0, "Blocks, not rounded
  cards" in docs/design-system.md);
- versions are panels, and panels take radius::PANEL (20).
The two Glass/Float bake branches are folded into one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:41:39 +01:00
Horizon agentandClaude Opus 5.5 fa81d70da4 launcher: resolve the package check once; /usr/local isn't package-owned
package_managed_launcher() canonicalized the update target on every
sidebar draw; the launcher doesn't move while it runs, so keep the
answer in a OnceLock. A launcher an admin copied to /usr/local/bin has
no package manager to update it, so it gets the move-it advice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:41:20 +01:00
Ludovic Marie 46d2467fee Merge pull request #9853 from horizon-rust/registry-v2/design
🤖 Agent: docs only (docs/design/registry-v2.md); the one rollout risk it fixes is the order: optional entry fields and HORIZON_REV bump before any entry uses them, since the pinned cargo horizon-mod has deny_unknown_fields.
2026-11-05 12:41:07 +01:00
Horizon agentandClaude Opus 5.5 c17d14c739 Building boxes: no per-level clone, linear per-turn snapshot
GameLevel borrows guest_boxes outside a guest turn instead of cloning them,
and for_turn only searches the few borrowed ancestors, so a turn costs
O(players) rather than O(players^2) for each guest every tick.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:40:26 +01:00
Horizon agentandClaude Opus 5.5 36170fa8e6 Award damage_dealt_absorbed during the attack, to the attacking player
tick_stats runs with the host's statistics in place, so draining the mobs
there credited every guest's absorbed damage (and on the server thread, the
single player's own) to the server's Game instead of the player who hit.
hurt_by_player, which melee, sweep and spear hits all go through, now takes
the hit's tenths right after the damage, inside the attacker's as_guest turn.
Tenths left by hits that came another way are cleared first so they are never
credited to the next attacker, and tick_stats no longer walks every mob.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:40:14 +01:00
Horizon agentandClaude Opus 5.5 b0f885600e Stack on #9772: the new margin test's ShadowCull takes reach: None
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:39:59 +01:00
Horizon agent d7a9dd534e Merge commit 'refs/cg45/pr/9772' into cg45/9838 2026-11-05 12:39:51 +01:00
Riccardo GuerrieroandClaude Opus 5.5 e379b17f5e Placing paintings, frames, armor stands, crystals and minecarts makes a vibration
HangingEntityItem, ArmorStandItem, EndCrystalItem and MinecartItem post
ENTITY_PLACE where vanilla does; an ender chest's first opener posts
CONTAINER_OPEN (ContainerOpenersCounter.incrementOpeners).

On the same paths: each counts ItemStack.useOn's used statistic; a
painting or frame that can't hang there is CONSUME (counted) or FAIL as
in vanilla; paintings pick their variant and placed crystals their time
with their own random, not the level's; a placed armor stand falls onto
what is under it (EntityType.getYOffset with movedUp) after drawing
create's spawn yaw from the level random.

use_item_on gains placement cases (4800/4800; 4474/4800 without these
gameplay changes). The oracle's stand-in level gets hasEntities; the
fixture clears and prints crystals, paintings and frames.

Part of #9776

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZzq8LUjYucp4kaN6UfSg7
2026-11-05 12:39:50 +01:00
Horizon agentandClaude Opus 5.5 cfa94ac87a Crafter trigger: strict box intersection, as AABB.intersects
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:39:46 +01:00
Horizon agentandClaude Opus 5.5 1bd8cc1bbf Merge origin/main into fix/nightly-v2-signatures
Resolves the launcher/lang/*.json conflicts by keeping both sides' keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:39:39 +01:00
Horizon agentandClaude Opus 5.5 23f78fc705 Design note: mod registry v2 (kinds, page fields, categories, updates, rollout)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:39:26 +01:00
Horizon agentandClaude Opus 5.5 061bc04462 names: keep the NAME_TAG doc on name_tag_at
collect_vehicle_ids was inserted between name_tag_at's doc comment and the
functions below it, so rustdoc gave the name-tag height text to
collect_vehicle_ids. Move it back above name_tag_at.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:39:10 +01:00
Ludovic Marie ae3ee1724b Merge pull request #9825 from horizon-rust/roadmap/server-admin-done
🤖 Agent: requeued after an empty commit; GitHub had lost this PR's head ref, so the merger couldn't fetch it.
2026-11-05 12:38:46 +01:00
Ludovic Marie 646f390b18 Merge pull request #9837 from martipops/docs/horizon-home-scope
🤖 Agent: Checked against main: HORIZON_HOME (logging::game_home) holds logs and crash reports but also telemetry/consent.json, perf reports, recordings/repro and the DX12 shader cache, while saves and options.txt follow the working directory or --game-dir (game.rs set_current_dir). I pushed 3eeb29cda to name those in the parenthesis so the rule doesn't read as "HORIZON_HOME barely matters".
2026-11-05 12:38:42 +01:00
Ludovic Marie 8343cf2595 Merge pull request #9842 from horizon-rust/fix/gl-surface-4293
🤖 Agent: the Linux fallback reuses vulkan_start_crashed unchanged and only rewrites graphicsApi when it is auto, so an OpenGL start that crashes again in Vulkan can't flip the setting back and forth.
2026-11-05 12:38:38 +01:00
Horizon agentandClaude Opus 5.5 9f7cfcd274 Retrigger: GitHub lost refs/pull/9825/head
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:37:36 +01:00
Horizon agentandClaude Opus 5.5 3eeb29cda1 AGENTS.md: list what HORIZON_HOME holds besides logs
game_home() also keeps telemetry consent, perf reports, recordings and
repro bundles, and the DX12 shader cache, so "logs and crash reports
only" undersold why the scratch HORIZON_HOME matters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:36:02 +01:00
umcekoandClaude Opus 5.5 c926e3e034 lan_e2e: drop datapack-recipe's guard on the removed SERVER_THREAD flag
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:34:17 +03:00
591ce12184 Match a wither's single smoke particle without a redundant guard.
Clippy rejects `if count == 0` on that arm; the pattern `count: 0` is the same match.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-05 12:30:39 +01:00
Florian ERNSTandCodex 3bfb817913 Expose live guarded piglin anger UUID and remaining TTL
Co-Authored-By: Codex <[email protected]>
2026-11-05 12:27:02 +01:00
Horizon agentandClaude Opus 5.5 7dbf60d015 Cosmetics: a setting to show my cosmetics in single player
In single player the window's own server names the player by their
offline profile, which the cosmetics service doesn't know, so the
player's own cosmetics, name tag style and Horizon mark never showed
there (and the game asked the service about the offline UUID for
nothing). Cosmetics in single player (Extras > Cosmetics, off by
default, en/fr/de) asks by the signed-in account's UUID instead. Off,
the own model asks and draws nothing in single player.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:26:04 +01:00
Horizon agentandClaude Opus 5.5 28dfa8b8b0 Cosmetics: Show me as Horizon says who can ask about it
/v1/worn takes no sign-in, so anyone can learn whether a listed player
played Horizon in the last 3 hours: the tooltip (en/de/fr) and
docs/cosmetics.md now say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:24:34 +01:00
e78b42672d Play the sounds and particles vanilla already shows for fangs, withers, fireballs and level-ups.
A flat fang pitch, a powered wither's missing head particles, silent advancement loot and /xp levels, and hurting projectiles with no bubbles in water are all visible on the server-thread client.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-05 12:23:30 +01:00
Horizon agent fc4d9b758f Merge remote-tracking branch 'origin/main' into cosmetics-gem
# Conflicts:
#	crates/horizon-client-render/src/extras.rs
#	crates/horizon-client/assets/horizon/lang/de_de.json
#	crates/horizon-client/assets/horizon/lang/en_us.json
2026-11-05 12:22:34 +01:00
Horizon agentandClaude Opus 5.5 568150f63e Merge origin/main into fix/nightly-v2-signatures
Resolves the launcher/lang/*.json conflicts by keeping both sides' keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:21:32 +01:00
SenjinandClaude Opus 5.5 840a42cfab Shader packs: a buffer gets its second texture only when a pass flips it
Composite-style programs read a buffer's "main" side and draw into its
"alt" side; gbuffers, shadow and final programs write in place, compute
programs through images. A buffer no prepare, deferred, composite or
shadowcomp program draws into or flips never touches its B texture, so
B is now a second view of A for those buffers. The alt-side clear and
the three-channel start skip such buffers so A isn't attached twice in
one pass. At 3440x1440 this saves 35 to 224 MiB with BSL, Complementary,
Bliss and Super Duper Vanilla, most of it in shadowcolor buffers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:17:39 +01:00
DUzzL c27e16c57b Fix zombified piglin angering at the player when another mob hurts it 2026-11-05 12:15:19 +01:00
Horizon agentandClaude Opus 5.5 08fa43297e Launcher: the Vulkan crash notice in every language table
Each table gets the English text, as the other new strings do until
someone translates them. The gfx.rs comment stays as it was, so the
change touches the launcher alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:01:29 +01:00
voidsip ceb886b00f fix: prevent block placement through other players 2026-11-05 05:00:15 -06:00
Mayonesu0andClaude Opus 5.5 f01e86112c Sculk: wool and carpets dampen landings and steps (Entity.checkFallDamage)
HIT_GROUND carried no affected state, so a jump or fall on wool reached sculk
sensors and shriekers. It now carries mainSupportingBlockPos's state, as
Entity.checkFallDamage does, for players, mobs, items and armor stands.

STEP read the block 0.2 below the feet, which is the block under a carpet. It
now reads the state at Entity.getOnPos, as applyMovementEmissionAndPlaySound
does.

tools/test_server_wool_vibration_parity.py compares both servers through a
vanilla-codec client.

Fixes #8036

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:58:27 +01:00
martipopsandClaude Opus 5.5 80fc892f98 AGENTS.md: HORIZON_HOME is logs and crash reports; the game folder holds the rest
Fixes #9835

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:57:55 -05:00
Alysia Zappavigna 147c8b0a05 Bind travelInAir's client side and min Y for the player (fixes #9817) 2026-11-05 21:56:11 +11:00
martipopsandClaude Opus 5.5 7fbd35def9 Render test: smoothness off the 8-bit rounding boundary
0.5 × 255 is 127.5, which drivers can round either way: NVIDIA gives 127. The test
checks that the surface reads back exactly, so 0.75 (191) checks the same thing.

Fixes #9831

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:55:58 -05:00
Horizon agentandClaude Opus 5.5 1e553f8be7 Launcher: a Vulkan driver crash at the renderer's start switches Linux to OpenGL
On Windows a native crash in the Vulkan driver at the renderer's start
switches Auto to DirectX 12 (#746). Linux had no such rescue: since #4064,
Auto runs Mesa's hasvk on Ivy Bridge and Haswell, which Mesa calls
incomplete on Ivy Bridge (#4293), and a crash inside it would end every
start with no crash report and no fallback. The same switch now sets
OpenGL on Linux (crocus or iris through EGL, which presents to the window
since #2875). A player's own choice stays, so it never loops.

Refs #4293

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:51:42 +01:00
BPMichonandClaude Opus 5.5 97fe6557fe Native hooks: ask toast_add even with no trait mods
mods() lists trait mods only, so returning early when it was empty kept
a bundle injected at the toast_add hook point from ever running.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:48:28 +00:00
Arslan ArmanulyandClaude Opus 5.5 1f70ee39b9 Shader packs: the sky's programs read their own fragment depth
gbuffers_skybasic and gbuffers_skytextured put every vertex at the far
plane (gl_Position.z = gl_Position.w), so gl_FragCoord.z read 1.0 on every
sky fragment. Our probe packs read the sky disc's, the sunset fan's, the
stars' and (we take it) the sun quad's own perspective depth there in Iris 1.11.7.

The vertices now keep their depth, and the translator writes
gl_FragDepth = 1.0 before the pack's main (GbuffersInputs::far_depth), so
the depth test still sees the far plane: the sky shows only where the
world left nothing, and a pack's own gl_FragDepth still wins.

Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:48:26 +05:00
masa-masa-0314 ce63f1d915 Merge remote-tracking branch 'upstream/main' into feat/realms-worlds-tab 2026-11-05 18:48:24 +08:00
Arslan ArmanulyandClaude Opus 5.5 7cc22c56f1 Shader packs: the shadow pass's margin around the view is 1.125 blocks
Over 76 scenes of our probe at fields of view 30 to 110, Iris 1.11.7's
shadow maps keep every section whose box needs a growth of up to 1.1224
blocks to meet the casters' shape, and drop every one that needs 1.1252 or
more, whatever the field of view. With #9707's 1.15, main's maps held 20
columns Iris drops, in 18 of those scenes; with 9/8 they hold exactly
Iris's columns in all 76 (a fit, not Iris's code).

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:45:45 +05:00
Horizon agentandClaude Opus 5.5 2357b6d03b Roadmap: server-admin's last PRs linked, its panel and management-protocol rest split out; sync
server-admin links #9767 and #9748 (merged), so sync ships it once a release has them. The panel's later
features and vanilla's management protocol become server-panel-management (Later). sync also ships
languages (v0.2.65), end-city-banners (v0.2.67) and end-city-loot (v0.2.73).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:44:45 +01:00
Riccardo GuerrieroandClaude Opus 5.5 e0db49e280 Items count toward "Times Used" where vanilla counts them
Vanilla awards Stats.ITEM_USED in each item's own use/releaseUsing/useOn
(or in ItemStack.useOn); Horizon's ports left it out. The bow, crossbow,
trident, fishing rod (cast), eye of ender, boats, carrot and warped
fungus on a stick (no boost), empty map, equippables swapped from the
hand, books, flint and steel / fire charge on TNT, firework boosts and
the spyglass now count it, in vanilla's branches.

On the same paths: fire starters lighting a fire count the use and post
BLOCK_PLACE / BLOCK_CHANGE; sneaking with one on TNT lights a fire
instead of priming it; a placed boat posts ENTITY_PLACE; the spyglass
sound plays at the feet.

use_item_on gains used-statistic cases (4400/4400; 4054/4400 on main's
gameplay code). The oracle's stand-in player gets what these items read.

Fixes #9775

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZzq8LUjYucp4kaN6UfSg7
2026-11-05 11:39:10 +01:00
masa-masa-0314andZCode 4a140d5629 Realms: the players tab with invites, operators and removal
The configuration screen's Players tab: the invited count, a row per player with
Op / Deop / Remove (the removal asks first), and Invite Player behind it.
RealmsInviteScreen: a name field whose blank or already-invited values are refused
before any request, the service's answer deciding otherwise.

RealmsClient gains getOwnRealm (GET worlds/{id}, the slots and players),
invite (POST worlds/{id}, OutboundPlayer's JSON), op (POST worlds/{id}/{uuid}),
deop and uninvite (DELETE worlds/{id}/{uuid} and worlds/{id}/invite/{uuid}), all
with the UUID as UndashedUuid's 32 hex digits. The tab reads again after an
operator change or an uninvite.

The Invite Codes button and its screens, and the player faces, follow in their
own PRs (the faces need the skin-face mechanism).

Co-Authored-By: ZCode <[email protected]>
2026-11-05 18:37:23 +08:00
DUzzL 27a31c391c Award damage_dealt_absorbed when a mob soaks a player's hit 2026-11-05 11:36:40 +01:00
voidsip 87f7e1ccbf test(lod): repair prepared-data fixture state and scheduling 2026-11-05 04:32:42 -06:00
TheMrZZandCodex gpt-6.1-sol 942f199d58 Apply transmute result component patches after inherited components
Retain template patch presence so explicit removals and zero-valued
components override the input without losing inherited data. Preserve
transient map postprocessing through assembly and add powered-crafter
and resource-free regression coverage.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 11:30:26 +01:00
Ente_3andClaude Sonnet 5.5 b45937b8c9 Signs: a line draws in its own colours (#9783)
A sign line kept only its plain text, so a server's {"text":"Online",
"color":"green"} drew in the sign's dark dye colour, as did `§` codes
(drawn as a raw `§`) and hex colours.

SignText now keeps each line's saved component beside the text it showed
when read, so the style survives loading, saving and the network. A line
edited since is a literal in the old line's root style, as
SignBlockEntity.setMessages makes it. List components and translate
components no longer lose their text.

sign_text_calls draws a line as one call per run of one colour: a glyph
takes its style's colour, else the sign's (Font.StringRenderOutput), with
`§` codes resolved as the font does. A line with no style is still the one
call it was. The outline of glowing text stays the dye's dark colour.

Bold, italic, underline, strikethrough and obfuscated text are kept but
not drawn yet.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 11:26:16 +01:00
Arslan ArmanulyandClaude Opus 5.5 9db60745bb Shader packs: terrain vertices sit on Iris's 32768ths of a block
Read back with a probe pack of ours, Iris 1.11.7's terrain gl_Vertex puts
each vertex's place in its section on the 32768th of a block below it:
water tops (8/9 - 0.001) at 29094/32768, plants offset by 13/15 and 0.1 at
28398/32768 and 3276/32768, on all three axes (a fit, not Iris's code).
Horizon passed the mesher's floats on, up to 1/32768 block from Iris's,
enough for a shadow-map coordinate on a texel boundary to fall the other
way. The pack's terrain vertex stage now takes the position down to that
grid; whole blocks and sixteenths are on it already.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 15:23:36 +05:00
SwuarezandOpenCode ae4a233d33 mobs: breeding experience draws from the parent's random inside the mob_drops check (fixes #8038)
Animal.finalizeSpawnChildFromBreeding draws the orb's 1-7 from the breeding parent's own random, and only when mob_drops is on. Horizon drew it first and from the level's random (llamas always, the other animals from world.random): with the rule off that consumes a draw vanilla does not make, and outside llamas, turtles and frogs the parent's and the level's later draws drift from vanilla.

Co-Authored-By: OpenCode <[email protected]>
2026-11-05 18:22:54 +08:00
voidsip a7769bd31d Keep shader programs with unsupported uniform defaults 2026-11-05 04:21:33 -06:00
martipopsandClaude Opus 5.5 6f682e763e Controllers: X and Y in their places on unmapped Xbox-style Linux pads
The kernel defines BTN_X as BTN_NORTH and BTN_Y as BTN_WEST, and gilrs' default
mapping takes those names literally, so a pad with no SDL row had X and Y crossed.
Sony and Nintendo pads send the same codes by real position and stay as they are.

Closes #9813

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:21:19 -05:00
Florian ERNSTandCodex efa0323824 Omit empty filled-map decoration defaults from saved patches
Co-Authored-By: Codex <[email protected]>
2026-11-05 11:20:57 +01:00
voidsip 8d8875c07c Bind firework lead-break sounds to the gliding player 2026-11-05 04:17:01 -06:00
DUzzL a783be5c83 Drop a Loyalty trident whose owner is dead or spectating 2026-11-05 11:12:20 +01:00
voidsip 4372977f0c Keep Microsoft account buttons inside the glass card 2026-11-05 04:11:34 -06:00
DUzzL 4c9a638a5c Use the team/nickname display name in join and leave messages 2026-11-05 11:11:27 +01:00
rison1337andCodex GPT-6 8de55d4548 Register merged client overlay and Host services as APIs 410 and 411
Generated with tools/stamp_native_hooks.py --only gui_render_post client_services. Leave the other 18 fragments pending while their contracts are reviewed.

Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 15:11:17 +05:00
rison1337andCodex GPT-6 82011f3c6f Allow selecting reviewed native hook fragments for stamping
Keep unselected contracts pending, preserve merge order within the selection, and reject unknown names before writing.

Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 15:11:17 +05:00
voidsip 5605b86b35 Reupload player skins when switching splitscreen renderers 2026-11-05 04:09:48 -06:00
DUzzL 14dde88a38 Apply Fire Aspect to players hit by a sweep attack 2026-11-05 11:09:16 +01:00
Vinícius MoreiraandCodex c603422a7d Shader packs: cover the horizon below the upper sky disc
The upper sky disc leaves directions near and below the horizon uncovered.
Shader packs keep the buffer's clear colour there, producing a sharp sky
band and pale distant terrain during fog compositing.

Draw an enclosing sky background before the existing disc. Keep its depth
at the far plane and preserve the foreground's colour and depth. Add an
original GPU probe covering 20 camera orientations and foreground occlusion.

References and provenance:
- Iris public format reference for gbuffers_skybasic:
  https://shaders.properties/current/reference/programs/gbuffers/
- Public rendering-uniform and depth-buffer references:
  https://shaders.properties/current/reference/uniforms/rendering/
  https://shaders.properties/current/reference/buffers/depthtex/
- Complementary's public user guidance, changelog and option descriptions.
- Java 26.3 + Iris 1.11.7 and Complementary Reimagined r5.9.3 were run
  as comparison inputs. The diagnostic shaders and Rust changes are original;
  no Iris or Complementary implementation source was opened or copied.
- After implementation and testing, PR descriptions and closure comments
  (including #8753) were consulted to check contribution provenance policy.
  No patch from those PRs was opened or reused. This is not a fresh-context
  or no-documentation implementation.

Validation: fast game build; 16 depth GPU tests including the new regression
on RX 9070 XT; renderer library Clippy with warnings denied; rustfmt.
Visual comparison used isolated game homes, the same world and camera,
32-chunk render distance, noon and clear weather.

Co-Authored-By: Codex <[email protected]>
2026-11-05 07:01:22 -03:00
voidsip e9fe40d2e5 Guide read-only launcher installs to the right update path 2026-11-05 03:57:42 -06:00
makscoder a1a9df806c Cushions keep their name when broken; infinite potion effects say so
Cushion.getCushionItemStackWithData copies the entity's CustomName onto
the dropped item, as the item frame beside it does; the cushion carried
no name at all. Add it, read and write it with the entity, and drop it.

PotionContents.addPotionTooltip appends MobEffectUtil.formatDuration,
which answers the infinite sign for an effect that never ends
(duration -1, from commands or datapacks); brewing's effect_lines only
appended a time past 20 ticks, so such an effect showed none.
2026-11-05 12:50:13 +03:00
Florian ERNSTandCodex 0e043eafae Drop guest cursor and crafting inputs on disconnect
Co-Authored-By: Codex <[email protected]>
2026-11-05 10:47:09 +01:00
Ludovic Marie 696d021699 Merge pull request #9767 from TiggerTakkyTTT/test/server-admin-cli-goldens
🤖 Agent: Queued after the agent fix: stopped-server ban replies now use vanilla's console lines, pinned by the golden test.
2026-11-05 10:40:48 +01:00
voidsip c320caedac fix(packs): resolve Windows folder paths before opening Explorer 2026-11-05 03:39:01 -06:00
Ludovic Marie 77e1ec40fe Merge pull request #9748 from TiggerTakkyTTT/test/server-admin-mcp-goldens
🤖 Agent: Queued. Test-only: it pins the server MCP's tool list, input schemas and error replies as a golden, so a renamed tool or field that breaks agents' calls now fails a test. Pinning that is right here, because MCP clients rely on those names.
2026-11-05 10:38:55 +01:00
Ludovic Marie 024f23e223 Merge pull request #9736 from lightcodegit/fix/splitscreen-reconfigure-race
🤖 Agent: Queued. The new queue drain runs only on split screen's present path and before a new window's surface configures, so single-window play has no extra wait. martipops's two review points are answered in 9fe888b76.
2026-11-05 10:38:51 +01:00
Horizon agentandClaude Opus 5.5 daf0206306 rustfmt lists.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:38:44 +01:00
Horizon agentandClaude Opus 5.5 a0eb1728d9 Server-admin CLI: stopped-server ban replies use vanilla's console messages
lists.rs promises vanilla's console lines; the new ban/pardon/ban-ip/pardon-ip replies used other words.
Now commands.ban.failed, commands.pardon.failed, commands.banip.success/failed/invalid and
commands.pardonip.success/failed from 26.3's en_us.json; goldens updated to match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:38:09 +01:00
makscoder 3b3c064069 Crafter: the recipe trigger uses the player's box, as vanilla's area does
CrafterRecipeCraftedTrigger tests a ServerPlayer's bounding box against
AABB.ofSize(center, 17, 17, 17); Horizon tested the eye within 9.5 on
each axis. Use the player's box and 8.5 to each face, so the reach is
the width and height reaching into the box, not a point 9.5 away.
2026-11-05 12:37:46 +03:00
makscoder c360630194 TNT: the tnt_explodes rule gates priming and the fuse's end
With the rule off, TntBlock.prime leaves the block alone: redstone, fire
and an unstable block breaking go through the level event, which now
refuses like a native mod does (the block comes back); flint and steel
says block.minecraft.tnt.disabled; and a fuse already lit goes out
without exploding, as PrimedTnt.tick does.
2026-11-05 12:36:38 +03:00
voidsip 4bc370f36f fix(launcher): make modpack row explanations translatable 2026-11-05 03:35:48 -06:00
voidsip 0cd02931b2 Show the social interactions hint on first multiplayer session 2026-11-05 03:34:34 -06:00
makscoder 2c39790297 Chest boats: roll the loot table a boat still holds on first open
ContainerEntity.unpackChestVehicleLootTable rolls the table saved in the
boat's NBT when a player opens it. Horizon read the table nowhere, so a
boat made by a command or a mod stayed empty and kept it. Roll it into
the slots on the open (only when they are empty), clear it from the raw
NBT, and fire player_generates_container_loot for the opener.
2026-11-05 12:31:39 +03:00
voidsip 875d1c9c45 fix(launcher): expose launch settings in glass instance menu 2026-11-05 03:30:23 -06:00
umcekoandClaude Opus 5.5 96d4726a17 Hoglins always save CannotBeHunted, like vanilla
Hoglin.addAdditionalSaveData writes putBoolean("CannotBeHunted", ...) every time, so a hoglin that can be hunted saves 0b instead of dropping the tag. save_roundtrip passes again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:26:59 +03:00
makscoder bd9909a074 Storage: a spectator opens no container that still has a loot table
BaseContainerBlockEntity.canOpen refuses a spectator while the container
still has a loot table to unpack; spectator_open_menu skipped that, so a
spectator could open an unrolled chest. The pending roll lives in the
chunk's saved rolled_loot until the first open consumes it.
2026-11-05 12:21:41 +03:00
makscoder f129bbcc48 Splitscreen: a pad that joins plays with it even when P1 has controllers off
The Controller setting is P1's own. A guest copied it, so after joining
from a pad its own pad was dead - on the profile screen it joins into,
with no way to pick one. Enable the controller in the joining player's
settings when the join came from a pad.
2026-11-05 12:19:41 +03:00
makscoder 9fe888b76c Splitscreen: the drain waits for the submit thread, not the device 2026-11-05 12:13:42 +03:00
Arslan ArmanulyandClaude Opus 5.5 a75884f992 Shader packs: samplers that aren't the program's read texture unit 0
OptiFine's shaders.txt puts gtexture on texture unit 0 in gbuffers programs and
colortex0 there in deferred, composite and final; its gbuffers table has no
colortex0 to colortex3. Our probe packs, run in Iris 1.11.7, read the block atlas
in gbuffers_terrain through a sampler name of their own and through each of
colortex0 to colortex3 and gnormal, and the scene in colortex0 in deferred,
composite and final through a name of their own and through gtexture, tex and
texture, also where the program declares no colortex0.

Horizon read its white stand-in for all of these, or, in gbuffers, the buffer.
With this, PotatoShaders' blocks keep their textures and its cave and Nether
come out as bright as in Iris.

Fixes #9763
Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:10:25 +05:00
TiggerTakkyTTTandCodex 6388756c60 Server-admin: edit bans while stopped
Route CLI moderation through file-backed lists when no game is running, pin vanilla-style replies, and document the stopped-server behavior.

Fixes #9753

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-05 16:09:44 +07:00
Arslan ArmanulyandClaude Opus 5.5 beb30045fd Shader packs: a built-in declared with another GLSL type reads 0
Iris 1.11.7 disables a built-in uniform whose declared type is not the one it gives
("Wrong uniform type ... Disabling that uniform"), and the program reads 0. Our probe
packs saw this for floats declared int or vec2, ints declared float, ivec2s declared
vec2, int or ivec3, vec3s declared vec2 or vec4, a mat4 declared mat3, and uint; ints
and bools declared bool or int were kept. Horizon converted the value instead.

Fixes #9758
Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:07:25 +05:00
Arslan ArmanulyandClaude Opus 5.5 8794c49a28 Shader packs: the block atlas blends its two nearest levels
Our probe packs read gtexture in gbuffers_terrain, and the block atlas as a custom
texture in composite, at levels 0.5 and 1.25 in Iris 1.11.7: each read was the two
nearest levels mixed (nearest texels within a level). Horizon's sampler took the
nearest level only. The atlas now gets a sampler of its own with linear mipmap
filtering; normals and specular keep theirs.

Fixes #9760
Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 14:07:25 +05:00
martipopsandClaude Opus 5.5 ff0a9f199f horizon-ctl: the pad command's arguments name connection too
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:06:53 -05:00
HiuoyandClaude Opus 5.5 777a71b039 Content mods: a living type may copy the wandering trader
minecraft:wandering_trader joins the zombie and the villager as a living
template. It is the neutral one whose behaviour is all goals, so a native
mod's register_goals can replace every bit of it: a citizen, a guard or an
NPC, which a zombie (hostile, burns in daylight) and a villager (its brain
stays) can't be. Saving and entity data already follow the template's
class (class_id); the tests now cover a trader type too.

Part of #8622.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:06:20 +04:00
martipopsandClaude Opus 5.5 6408c7175f horizon-ctl: the pad command's usage names pad connection
The generated reference has it, so the usage it comes from has to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:02:44 -05:00
makscoder 854db487d5 Fishing: draw the cast spread and the fish angle with vanilla's triangle
fishing.rs kept its own triangle on two next_float() calls; vanilla's
RandomSource.triangle draws two doubles, which also advances the random
differently. Use the core method.
2026-11-05 11:59:38 +03:00
AxxioandAntigravity 1d11a8b849 names: suppress default nametag when entity is ridden by text display or armor stand (fixes #9477)
Directed, architected and reviewed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-05 09:57:22 +01:00
i114rkandI114rk's AI agent 810d55aa22 Boot screen: paint through a memory bitmap so repainting does not flicker
Clearing the window and drawing the text straight into its DC shows the blank
frame in between, so the boot screen flickered each time the console's lines
arrived. The paint now goes to a compatible memory bitmap and reaches the
window as one BitBlt, the same frame the text was drawn into.

Co-Authored-By: I114rk's AI agent (OpenCode) <[email protected]>
2026-11-05 11:56:55 +03:00
Arslan ArmanulyandClaude Opus 5.5 cc6e8c65f7 Shader packs: shadowDistanceRenderMul keeps a cube around the camera, as in Iris
With shadowDistanceRenderMul set, the shadow pass drew only the chunks
within a circle of ceil(shadowDistance x mul / 16) chunks. Our probe pack's
Iris 1.11.7 shadow maps keep the sections whose box, grown by the same
1.15 blocks as for the casters, meets a cube of shadowDistance x mul around
the camera: out to the square's corners, a section 1 block past a side but
not 1.5, and nothing 70 blocks below a camera flying 50 blocks out. Over
12 scenes at shadowDistance 100 and mul 1, main dropped 33 columns Iris
keeps.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:53:41 +05:00
makscoder b21c3fb1ca Splitscreen: land the turn's frames before any surface reconfigure
Relands the frames on their submit threads at the top of Split::present:
a reconfigure there (a present mode switch, a new compositor, an
Outdated texture) waits for the device and errors on a submission made
meanwhile, and the compositor then copies views already submitted.
Simpler than gating on will_reconfigure, per martipops's review.
2026-11-05 11:49:16 +03:00
TheMrZZandCodex gpt-6.1-sol 067c293975 Detach old maps before adopting live frame Item data
Preserve the existing frame type during id-free live NBT adoption. Compare
count, item and components and remove the old map association before
replacement. Cover the Game command route and immutable-type adoption.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 09:47:54 +01:00
makscoder 67f66cf66b Camel: sprint works riding it, as on foot
LocalPlayer.aiStep runs its sprint decisions for a passenger too, but
the client only ran them on foot: `canSprint` and the local authority
stand in for food there. Run them for a vehicle with those conditions,
and give the ridden mount the controller's sprint state instead of the
raw key, so a double-tapped sprint starts and letting the key go keeps
it (Camel.getRiddenSpeed reads isSprinting()).
2026-11-05 11:46:47 +03:00
TiggerTakkyTTTandCodex 200716602c Server-admin MCP: pin tool contracts
Add protocol goldens for all MCP tools, schemas, safety annotations, confirmation requirements, and representative dispatcher errors.

Fixes #9741

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-05 15:46:31 +07:00
Arslan ArmanulyandClaude Opus 5.5 d652ec2f1b Shader packs: terrain is drawn from the camera in 65536ths of a block, as in Iris
Read back with a probe pack of ours, Iris 1.11.7's terrain gl_Vertex is
each block's position minus the camera with its fraction rounded to the
nearest 1/65536 block (seven cameras, up to 40000 blocks out), while
cameraPosition and the matrices keep the exact camera. Horizon drew from
the exact camera. Off by up to 2^-17 blocks, fragments on a texel boundary
of the shadow map read the other texel, and depths at the shadow test's
bias fell the other way: with this, our lit probe's depth ties at noon
go from 541 to 1 and its neighbouring-texel reads in y from 154 to 8.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 13:38:06 +05:00
Florian ERNSTandCodex ebc1d17ea3 Canonicalize bare map decoration component type IDs
Use the existing Identifier parser at preserved-component decode/encode boundaries. Own current Game/fresh Java focused gate94/103->103/103; unchanged full106 improves94/106->103/106 with exactly3 separate empty-elision reads retained. Core round-trip old-fail/fixed-pass,66item tests pass. Clippy, docs and content-root checks pass; existing Python release-fixture failures retained.

Co-Authored-By: Codex <[email protected]>
2026-11-05 09:33:08 +01:00
Alysia Zappavigna 6bd4443387 Fishing: draw the cast's spread from the hook's own random, as FishingHook.<init> does 2026-11-05 19:29:20 +11:00
makscoder 69d2c9c7df horizon-threads: wait for the job to start instead of sleeping past it
dropping_a_registration_waits_for_its_running_job slept 100 ms and
assumed a worker had taken the held job by then; on a busy runner it
had not, so the drop had nothing to wait for and returned early. Wait
until the job leaves the queue, and fail loudly if no worker picks it up.
2026-11-05 11:27:52 +03:00
martipopsandClaude Opus 5.5 b72ddf75c2 Controllers: a settings screen in the graphics style, and one notice per view
Graphics settings move their frame, list and key steps into settings_shell, with no change to how they behave,
and Controller Settings is its second user: General, Bindings and Device pages, search, per-row reset and Undo.
A controller notice is one slot per view rather than the split screen's own. A pad-focused options tooltip hangs
from the widget's bottom left, as the pad's hidden pointer sits mid-widget; mouse and keyboard keep vanilla's. A
focus whose widget goes away on the same screen moves beside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:14:31 -05:00
makscoder 6e3a860916 Splitscreen: drain the render queues before reconfiguring a surface
Surface::configure waits for the device to come idle and errors when a
submission lands while it waits: with the submit thread on (Linux by
default), adding a player could crash the game in Split::present's
set_vsync, in a new compositor's first configure, or on an Outdated
texture. Compositors now say when a reconfigure is coming or owed, and
Split drains every player's queue at those points only, keeping the
overlap the submit thread is for the rest of the time.
2026-11-05 11:12:10 +03:00
Riccardo Guerriero 88b7a8af1e Merge origin/main into fix/villager-stand-up 2026-11-05 09:11:13 +01:00
Riccardo GuerrieroandClaude Opus 5.5 a36307234a Villagers waking up stand beside the bed where vanilla puts them
LivingEntity.stopSleeping asks AbstractBedBlock.findStandUpPosition for
the entity's own type. The player's port of that search moves from
game/respawn_anchor.rs to stand_up.rs, generic over the entity type
(dimensions, player, fire immune), and villager::stop_sleeping uses it
with the villager's box and yaw, and vanilla's fallback. Villagers now
step onto shelves, slabs and carpets, pick vanilla's side of the bed,
and fall back to the top of the bed instead of staying lying on it.

WorldBorder.isWithinBounds(AABB) takes 1.0E-5F (a float) off the box.

use_item_on gains villager wake-up cases: 4400/4400 match.

Fixes #9502

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZzq8LUjYucp4kaN6UfSg7
2026-11-05 09:11:13 +01:00
voidsip 9f89e738a6 Reject ambiguous trigger axes without an Xbox-style button layout 2026-11-05 02:08:30 -06:00
JulesB40andClaude Opus 5.5 7920a520ee Motion: the tick after an elytra glide ends moves at sneaking speed
LocalPlayer.isMovingSlowly is also true while the player is visually
crawling: LivingEntity.isVisuallySwimming counts the fall-flying pose a
glide that just ended still holds. Horizon only counted the swimming
pose, so on the first air tick after a glide its input took the full
0.98 x 0.02 forward acceleration where vanilla's takes 0.3 of it: GrimAC
flagged Simulation 23 times on every elytra landing with jump held, at
an offset of exactly the difference (0.01372). Vanilla's client is clean
on the same input.

Fixes #8295

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 09:01:32 +01:00
HiuoyandClaude Opus 5.5 57561e449b Native mods: structure_template, a template's blocks for builders
Part of #8622 (item 4, structure placement for builders). A new helper,
native_structure_template(id, at, rotation, mirror) (Host::structure_template),
finds a structure template as StructureTemplateManager.get does (the world's
saved structures, then the game's and the content mods' data) and answers
what /place template would place at `at`: the size after the rotation and
each block's position, mirrored then rotated state and block entity data,
in StructureTemplate.placeInWorld's order and from the palette it picks
there. Nothing is placed: a builder places the blocks a tick at a time with
native_set_block. Server only; ids with a . or .. part are refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:57:03 +04:00
makscoder 5a837668c6 Format the splitscreen pause fix 2026-11-05 10:56:06 +03:00
ViníciusandCodex 77b8780ab8 Extras: enable chunk pregeneration from the settings menu
Save an opt-in pregen switch, apply it to integrated servers immediately, and refresh command completion while preserving --pregen and permissions.

Co-Authored-By: Codex (GPT-6) <[email protected]>
2026-11-05 04:54:16 -03:00
Arslan ArmanulyandClaude Opus 5.5 da505c2b0e Shader packs: shadowProjection is Iris's for the pack's near and far planes
Read back with a probe pack of ours in Iris 1.11.7, a shadowNearPlane or
shadowFarPlane the pack sets is the orthographic projection's plane as it
is, with no 100-block offset; an unset near plane is -100.05 and an unset
far plane 156, each on its own. Horizon offset both by 100 blocks, so a
pack that sets either got another depth range. The projection's bits
(13 settings) fit JOML's setOrtho with zZeroToOne, its depth terms taken to
-1..1, in floats; the inverse is JOML's invertAffine. Before, the default
matrix's [3][2] was 4 ulps off and its inverse's signed zeros differed.

Horizon's own packs keep their depth range, now given as planes.

Adapts JOML 1.10.9's Matrix4f.invertAffine and setOrtho (MIT;
THIRD_PARTY_NOTICES.md).

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:52:10 +05:00
Arslan ArmanulyandClaude Opus 5.5 ea1fcbd314 Shader packs: sunPosition, moonPosition and upPosition are Iris's to the last bit
Read back with a probe pack of ours (25 ticks of day and night,
sunPathRotation 0 and 30, four view directions), Iris 1.11.7's sky
positions fit (0, 100, 0, 0) times gbufferModelView turned by JOML
quaternions in floats: rotationY(-90°), then for a body
rotationZ(sunPathRotation) and rotationX(its sky angle). Turned by
matrices, as Horizon did, the sun read 4e-6 where Iris has an exact 0
(e.g. at sunset), and the rest was 1 to 2 ulps off. All 50 readings of
all three now match, and shadowLightPosition with them.

Adapts JOML 1.10.9's Quaternionf.rotationX/Y/Z, Matrix4f.rotateAffine
and Vector4f.mulAffine (MIT; THIRD_PARTY_NOTICES.md).

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:51:43 +05:00
voidsip b8f05b083c Merge remote-tracking branch 'origin/main' into fix/7323-linux-triggers 2026-11-05 01:49:29 -06:00
Florian ERNSTandCodex 4efa91b049 Refresh honey dispatch with current main
Preserve both honey and pufferfish fixture options. Upstream stand changes are renderer-only and entity changes concern XP-orb sound; honey travel code is unchanged. Refreshed all-target Clippy, formatting and Python syntax pass. Runtime pair stays qualified to185156c0e.

Co-Authored-By: Codex <[email protected]>
2026-11-05 08:48:14 +01:00
Florian ERNSTandCodex 8770de9392 Apply honey side-slide movement to armor stands
Route the separately modeled stand through HoneyBlock movement after travel. Own current Game/fresh Java gate113/126->126/126, raw exact with unchanged scripts. Canonical travel regression old-fail/fixed-pass; honey suite11pass/1ignored. Broad readiness Rust/doc builds blocked by disk; formatting and Clippy pass.

Co-Authored-By: Codex <[email protected]>
2026-11-05 08:46:20 +01:00
Arslan ArmanulyandClaude Opus 5.5 a5fb848482 Shader packs: shadowModelView turns by Iris's angle between ticks
Iris 1.11.7 turns shadowModelView by (shadowAngle - 0.25) * 360 degrees in
floats, plus 360 when negative, not by the light body's own sky angle. Read
back with a probe pack of ours at 25 ticks of day and night (7295 to 7305
one by one), with sunPathRotation 0 and 30, this fits all 50 readings to
the last bit; the sky angle misses 16 of them by 1 to 6 ulps, which moves
the shadow map's texel boundaries.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 12:43:21 +05:00
GabrielNichols 1a6a403884 fix(windows): avoid repeated firewall prompts in fixtures and launcher updates
Keep same-machine test sockets on loopback and stage launcher-managed games
at a stable executable path per game home. Preserve runtime dependencies and
protect running installed/native versions from replacement and cleanup.

Refs #9685.
2026-11-05 04:42:32 -03:00
Ludovic Marie 41d5649ed5 Merge pull request #9713 from Hiuoy/feat/8622-mod-goals
🤖 Agent: with no mods the new hook costs one HOOKS.get() and a walk of an empty mod list per mob created, not per tick, and it runs before the float check, so a mod's goals::Float floats the navigation as FloatGoal does. The fragment stamps cleanly against main (test_stamp_native_hooks passes in pr_ready's Python tests). Pushed 9861c8352: living_mod_types now uses a temp folder per call, since parallel tests were deleting each other's folder. Merged with main, pr_ready --quick passes on Linux (4331 tests, launcher included).
2026-11-05 08:36:12 +01:00
makscoder 7eecf2aca1 Splitscreen: a pause menu no longer stops its window's ticks
set_paused deliberately lets the world run while splitscreen players
play, but pauses_game did not know about them, so the host window's
client ticks stopped behind its own menu: a laggy world and a rush
forward on resume. pauses_game is now false while split players are
joined, mirroring the server; scenario_pause checks both players'
tick counters against a solo game.
2026-11-05 10:34:40 +03:00
Ludovic Marie 36e1b42cb3 Merge pull request #9709 from glitchsnake/fix/9672-pufferfish-poison-tick
🤖 Agent: the sting now lands inside the fish's own tick (Pufferfish.aiStep → touch), so a target that ticks later in the same level tick counts its poison down that tick: 120→119→118, as in vanilla. Pushed 82648da3f, which removes the end-of-tick arm that could no longer run. Merged with main, pr_ready --quick passes on Linux (2863 client tests). The pufferfish contact harness is left to CI's parity run.
2026-11-05 08:28:26 +01:00
Ludovic Marie 8be47cdbca Merge pull request #9445 from martipops/fix/fake-player-close
🤖 Agent: the close paths (close_container, close_book) run while the fake inventory is still swapped in, so what a menu held goes back to the fake player and not to the server's own state. The ender chest's stand-in is put back afterwards, as a guest's turn does. Merged with main 27b9d342f (690 commits newer than its base), pr_ready --quick passes on Linux and the 4 ignored native_machines tests pass with prepared resources: trader, vehicle chests, shulker and ender lids, the restored state.
2026-11-05 08:28:22 +01:00
Ludovic Marie 8e1297dc73 Merge pull request #9711 from NerfPhaselock/perf/gpu-culling-g5
🤖 Agent: GPU culling stays off by default and DX12 frames still don't occlude, so only players who switch it on, on Vulkan, get the new passes. The new runs stamps survive a buffer regrowth (reserve_keeping copies the old buffer), so a grown table doesn't send every section back to phase 2 for a frame. On main 27b9d342f: fmt, clippy and 2419 client and render tests pass on Linux. The device tests of the box test itself aren't there, as the body says. Pushed dc3100917: a doc comment moved back onto its test.
2026-11-05 08:22:29 +01:00
Horizon agentandClaude Opus 5.5 9861c8352d living_mod_types: a temp folder per call, not per process
Tests run in parallel in one process: with three callers now (lan.rs and
two in mods.rs), one could remove the shared folder while another was
reading it (NotFound in a_mods_register_goals_replaces_its_types_goals).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:19:28 +01:00
TheMrZZandCodex gpt-6.1-sol 0d675f6dee Initialize wolf anger after live NBT writes
Convert the saved absolute end at the current level clock when adopting live
wolf data. Keep Bee state and the retained runtime fields unchanged. Cover
actual Game adoption and command writes with a separate NoAI drift diagnostic.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 08:19:19 +01:00
Ludovic Marie cc94ed7afe Merge pull request #9707 from arslanarm/shaderpacks/shadow-map-edge-columns
🤖 Agent: the 1.15-block margin is applied only to the caster-shape test, and the light frustum still tests the plain box, so the shadow pass can only keep more sections at the wedge's edges, never cull ones the light reaches. It costs two Vec3 ops per section test, only with a shaders/ pack's shadow culling. On main 27b9d342f: fmt, clippy and 1442 render tests pass on Linux.
2026-11-05 08:07:57 +01:00
Ludovic Marie 75fedf5a04 Merge pull request #9706 from arslanarm/shaderpacks/shadow-map-ties
🤖 Agent: the only outside code is JOML 1.10.9 (MIT, the library vanilla ships), credited in both file headers and THIRD_PARTY_NOTICES.md; Iris was only run as a black box with our own probe packs, so nothing from an LGPL source. The cost is a few float matrix ops per pack frame, and gbufferModelView now takes vanilla's Camera.getViewRotationMatrix path to the bit. On main 27b9d342f: fmt, clippy and 1443 render tests pass on Linux, the two last-bit tests included.
2026-11-05 08:07:53 +01:00
BPMichonandClaude Opus 5.5 1f866e2e51 Native hooks: ToastAddEvent (toast_add)
A client mod hears each new toast just before it is queued and may
cancel it: native_toast_add(kind, id, cancel). Kinds are advancement
(the advancement id), recipe (the first recipe id), tutorial (the
hint), system (narrator_toggle, pack_load_failure, pack_download,
low_disk_space, chunk_load_failure, chunk_save_failure) and
now_playing (empty id). Updates to a toast already queued or shown
are not adds. A cancelled toast isn't queued, shown or sounded; a
cancelled tutorial hint is kept off the slots so it isn't asked again
every frame. The startup menu's narrator toast is not covered: it
shows before Game, the hook's host, exists.

Fixes #9710

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYf41fgTMRfUEXn3afqyTG
2026-11-05 07:03:09 +00:00
Ludovic Marie f090bb9821 Merge pull request #9689 from martipops/controller/menu-navigation
🤖 Agent: a menu frame without a controller does no new work: pad_menu_frame returns before the new resize/scroll-follow code unless the pad (or the keyboard focus) is in use, and the only always-on addition is one widgets::scroll_area push per drawn scrollbar. The superflat preset change matches vanilla (focus selects via AbstractSelectionList.setFocused, only Entry.select fills the share box). pr_ready --quick on main+PR on Linux: fmt, clippy, 4396 tests pass (the one Python failure is install.sh needing uname, absent from NixOS's PATH). tools/pad_menu_e2e.py not run: --offscreen still opens a winit window and needs a display.
2026-11-05 08:01:49 +01:00
masa-masa-0314 9bded00169 Merge remote-tracking branch 'upstream/main' into feat/realms-configure-screen 2026-11-05 14:59:42 +08:00
Horizon agentandClaude Opus 5.5 dc3100917c GPU culling tests: give records_keep_ids_page_counts_and_moves its doc comment back
the_shaders_validate was inserted between that test and its doc comment,
which then documented the new test instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:58:48 +01:00
Horizon agentandClaude Opus 5.5 82648da3f3 Pufferfish sting: drop the end-of-tick arm apply_brain_events now replaces
Every PufferfishSting comes from a mob's tick (sting_touching_mobs), and
apply_brain_events consumes it right after that tick, so handle_mob_events'
mob_hits_mob arm could no longer run. It joins StartFollowing and SchoolSize.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:58:28 +01:00
masa-masa-0314andZCode a7aeda8864 Realms: the owner's configuration screen and its subscription tab
The Configure button's screen was a placeholder (title, MOTD, open/close). It is now
RealmsConfigureWorldScreen: the four-tab bar (Worlds, Players, Subscription,
Settings, Settings off on an expired Realm), the footer's Play and Back, and
the Subscription tab: start date, time left, Extend, and Delete once expired
with its question.

Built on #7725's realms module and realms/client.rs, per the split on #7677.
RealmsClient.subscriptionFor (GET worlds/{id}/subscription) and deleteRealm
(DELETE worlds/{id}) join the client. The Worlds, Players and Settings tabs
follow in their own PRs (slot options, backups, invites, preferred region);
until then they show vanilla's loading line, and the open/close toggle stays
on the footer (vanilla keeps it on the settings tab).

The start date is a fixed local %Y-%m-%d where vanilla asks for the locale's
medium date (the process has no date locale), and the snapshot Realm's
subscription info line is not special-cased.

Co-Authored-By: ZCode <[email protected]>
2026-11-05 14:53:54 +08:00
NerfPhaselock 62fcccddd6 Merge remote-tracking branch 'upstream/main' into perf/gpu-culling-g5
# Conflicts:
#	docs/graphics.md
2026-11-05 01:30:43 -05:00
NerfPhaselockandClaude Opus 5.5 4d6f22efb6 Shader tests: the occlusion test's module is gpu_culling.wgsl's with gpu_occlusion.wgsl
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:28:50 -05:00
Ludovic Marie 27b9d342ff Merge pull request #9688 from yahya-nusseibeh/fix/registry-owner-ids
Mod registry: decide project ownership by numeric GitHub ID
2026-11-05 07:25:17 +01:00
Ludovic Marie e606196768 Merge pull request #9600 from NikitaMGrimm/hdr-light-design
Design note: linear light for HDR and shader API 0.2
2026-11-05 07:21:52 +01:00
Ludovic Marie dbf0d1c3c6 Merge pull request #9705 from horizon-rust/fix/fishing-hook-eye-spawn
🤖 Agent: at 2.5 blocks every triangle() throw enters the stand from outside on tick 2; at 3.0 a slower throw started tick 3 inside the margin box, where AABB.clip never hits.
2026-11-05 07:21:25 +01:00
MegaBytesMe eecdd28e83 Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64 2026-11-05 06:19:58 +00:00
Loki d49eb54168 Merge remote-tracking branch 'origin/main' into fix/9672-pufferfish-poison-tick 2026-11-05 15:16:32 +09:00
LokiandAntigravity c931ecb5a9 mobs: apply pufferfish sting poison during mob tick (fixes #9672)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 15:16:27 +09:00
andrescamilomartinez 1871f87982 perf(launcher): sample backdrop at main's density with 1-texel border 2026-11-05 01:14:41 -05:00
Arslan ArmanulyandClaude Opus 5.5 416704f151 Shader packs: the shadow pass keeps the edge columns Iris keeps
Our probe pack's Iris 1.11.7 shadow maps held 1 to 3 chunk columns at
the edges of the view's wedge that the shadow pass dropped (15 columns
over 8 noon scenes). Growing each section's box by a margin before the
caster test keeps them: the 31 edge columns of 8 noon scenes allow only
a growth of 1.12 to 1.19 blocks (a fit, not Iris's code); with 1.15, 19
of our 20 scenes hold exactly Iris's columns.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:13:43 +05:00
Arslan ArmanulyandClaude Opus 5.5 06dbd97b16 Shader packs: the camera and shadow matrices are Iris's to the last bit
Our probe pack read Iris 1.11.7's matrix uniforms back exactly. Horizon's
differed in their last bits (1.0 for 0.99999994, 6e-17 for 0), and a
fragment on a texel boundary of the shadow map then read the texel on
the other side: with nearest filtering, 13,066 pixels of ow_ground_noon
were lit in one game and shadowed in the other.

- gbufferModelView and its inverse: vanilla's Camera.getViewRotationMatrix
  (JOML Matrix4f.rotation of the conjugated rotationYXZ quaternion) and
  JOML's invertOrthonormal, in floats.
- gbufferProjection and its inverse, shadowModelView and its inverse,
  sunAngle and shadowAngle: fits of our probes' readings (JOML's float
  operations in a given order, or JOML's formula worked in doubles).

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:13:11 +05:00
Ludovic Marie fb7762d6f9 Merge pull request #9704 from arslanarm/shaderpacks/custom-smooth-infinity
🤖 Agent: The guard skips only a step whose value equals the held state, which leaves a finite value unchanged anyway, while NaN still steps because NaN != NaN, so only the inf - inf case changes. It's stacked on #9701 and lands after it; the shaders tests and clippy -D warnings pass on main merged with both.
2026-11-05 07:12:04 +01:00
Ludovic Marie 3395fc16c4 Merge pull request #9703 from arslanarm/shaderpacks/terrain-cutout-alpha-test
🤖 Agent: The two parts were already the game's (terrain_parts) and drawn this way for packs with the split programs, so a pack with only gbuffers_terrain now takes the same path. That's one more pipeline switch per terrain pass, not more geometry, and only with a shaders/ pack. 0.5 matches vanilla's ALPHA_CUTOUT for cutout terrain, so foliage gaps now match both Iris and vanilla. horizon-shaders' 298 tests and the ten terrain_parts tests pass on main merged with this head.
2026-11-05 07:12:00 +01:00
NerfPhaselockandClaude Opus 5.5 b1315c5a6e GPU culling (7/7): occlusion culling in its frames, on Vulkan
GPU frames ran no occlusion culling. On Vulkan, where cull.rs's test runs
with the depth test forced early, they now run the same two-phase test, each
section's part decided on the GPU: `cull` keeps per id the frames its box was
last seen and last tested at, puts in phase 1 the sections whose last test saw
them (retested every 8 frames) and lists the other boxes. The world pass draws
phase 1, then the listed boxes against its depth, each passing fragment
stamping its id (gpu_occlusion.wgsl); count2, scan2 and scatter2 write phase
2's draws, which a second pass draws before the CPU's own. Frames occlude
under cull.rs's gate (`cull::gate`), over the hidden share that comes back
with the statistics, now 12 words copied after the last pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:08:10 -05:00
Ludovic Marie 4729c5e995 Merge pull request #9702 from arslanarm/shaderpacks/custom-uniform-wrong-type
🤖 Agent: custom_index refuses only pairs where both sides are float/int/vecN and differ, so bool on either side keeps the old conversion, and so do types outside the list (ivecN, mat). A disabled uniform simply gets no slot, so it reads 0 and shows up in the program's "defaults or zero" notes. pack_post's tests, including custom_type_tests, and clippy -D warnings pass on main merged with this head.
2026-11-05 07:06:14 +01:00
Ludovic Marie 95350c2a1c Merge pull request #9701 from arslanarm/shaderpacks/custom-uniform-clamp
🤖 Agent: Applying the upper bound first and the lower one last only changes the result when min > max, so every in-range clamp a pack uses reads the same as before (the test's two in-range rows pin that). Fitting the order to your probe readings, not to Iris's code, keeps it clean-room. horizon-shaders' 222 tests and clippy -D warnings pass on main merged with this head.
2026-11-05 07:06:10 +01:00
Arslan ArmanulyandClaude Opus 5.5 b4eabf7ecf Shader packs: smooth() in custom uniforms keeps an infinite value
smooth() stepped as val + (state - val) * k, which turns an infinite value it
already holds into NaN (inf - inf). Iris 1.11.7 keeps it: our probe packs read
smooth(1.0 / 0.0, 5, 5) as +inf and smooth(-1.0 / 0.0, 5, 5) as -inf after 3 s
to 30 s in a scene (smooth(0.0 / 0.0, 5, 5) reads NaN in both games). A value
equal to the one held now stays as it is.

Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 11:01:06 +05:00
MegaBytesMe bf764d882a Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 06:00:38 +00:00
Ludovic Marie d8800e9e4d Merge pull request #9700 from horizon-rust/fix/command-exec-fixture-leaks
🤖 Agent: a group that leaves an objective, forced chunk or gamerule behind now fails tests/test_command_fixture_state.py instead of parity-main's first Java guard.
2026-11-05 07:00:21 +01:00
Horizon agent 6e2198ef80 Merge remote-tracking branch 'origin/main' into fix/command-exec-fixture-leaks 2026-11-05 06:57:05 +01:00
Ludovic Marie bedc04f38e Merge pull request #9693 from yahya-nusseibeh/fix/launcher-import-cap
🤖 Agent: The cap counts bytes as they inflate, not the sizes the zip claims, and it lives in fill(), which import_into and import_mrpack_into both go through, so neither path can skip it. 8 GiB is well above any real .mrpack or shared instance. The launcher's fmt, clippy -D warnings --locked and all its tests (548 + 102, both bomb tests included) pass on main merged with this head.
2026-11-05 06:54:33 +01:00
andrescamilomartinez b7802f4df1 perf(launcher): optimize glass blur on scroll and polish UI layout
- Pre-bake full-window blurred background texture on resize to eliminate per-frame CPU bilinear resampling and allocation during list scrolling
- Adjust version card radius from PANEL to ROW (12px) with refined vertical padding and margins to resolve overlapping border stacking
- Add radius::CONTROL and overflow clipping to mods sort dropdown containers
2026-11-05 00:53:47 -05:00
Horizon agentandClaude Opus 5.5 3ae8128591 rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:51:45 +01:00
Ludovic Marie 3c8a2352a7 Merge pull request #9691 from yahya-nusseibeh/fix/relay-proxy-from
🤖 Agent: Only relays started with RELAY_PROXY_PROTOCOL=1 change, and neither the Dockerfile nor horizon-relay.service sets it, so a default deploy behaves exactly as before. One that has it on now refuses to start until RELAY_PROXY_FROM is set, rather than dropping every connection. fmt, clippy -D warnings and the relay's tests, including proxy_from.rs, pass on main merged with this head.
2026-11-05 06:50:47 +01:00
Ludovic Marie b8f38ec702 Merge pull request #9690 from yahya-nusseibeh/fix/telemetry-hardening
🤖 Agent: Deploying this changes nothing for Railway's address counting: the Dockerfile names x-real-ip, the header the server already read first. The website fetches /v1/aggregate?days=30 and /v1/benchmarks/summary from the visitor's browser (benchmarks-page.js), so the new 600/h read bucket counts each visitor, not one site address. pr_ready skips this workspace, so I ran it on its own: fmt, clippy -D warnings --locked and every test pass on main merged with this head.
2026-11-05 06:50:43 +01:00
Ludovic Marie dd5c4a644b Merge pull request #9687 from TheMrZZ/fix/h314-allay-liked-player-damage
🤖 Agent: This follows Allay.hurtServer, which refuses only a player whose getUUID equals the LIKED_PLAYER memory. owner_damage_uuid passes a UUID only when the acting player is the server owner, so single player on its server thread gets the exact comparison, while LAN guests and dedicated-server players keep today's refuse-any-player filter: narrower than vanilla, but not a regression. The Game-level test runs against prepared resources and passes, and parity checks the corpus.
2026-11-05 06:48:41 +01:00
Horizon agentandClaude Opus 5.5 3919125b96 command_exec: crafter map extension takes its room back
It left its stone floor at y 199, a crafter, a chest and the player in
survival: the next group's `/setblock 10 199 10 stone` guard found stone
already there and stopped the run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:48:21 +01:00
yahya-nusseibehandClaude Opus 5.5 449481dd49 Relay: take PROXY protocol lines only from listed load balancers
With RELAY_PROXY_PROTOCOL=1 a PROXY line was accepted from any TCP peer,
so a client reaching the port directly could choose the address its
per-address limits count.

- RELAY_PROXY_FROM: addresses or CIDR ranges (IPv4, IPv6, IPv4-mapped
  peers handled). A connection from anywhere else is closed unanswered.
- The relay refuses to start (a clear error, exit 1) when the protocol
  is on and the list is empty, or when an entry doesn't parse, instead of
  silently dropping every connection. Config::from_env returns a Result;
  Config::check says why.
- docs/play-with-friends.md lists the setting.

Split from #9129.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 07:45:15 +02:00
yahya-nusseibehandClaude Opus 5.5 9de4d4c169 Telemetry server: refuse to start behind a proxy without the client-IP header
With HORIZON_TELEMETRY_TRUST_PROXY=1 and no
HORIZON_TELEMETRY_CLIENT_IP_HEADER, every request would count as the
proxy's address: one shared bucket for /v1/batch, deletions, the live
count and reads, so intake would stop and players' deletion requests
would be refused, with only a line on stderr to say so (martipops's
review of #9129).

- The Dockerfile sets HORIZON_TELEMETRY_CLIENT_IP_HEADER=x-real-ip, the
  header the server read first before the setting existed, so the
  address the limits count on Railway stays the same.
- TRUST_PROXY=1 without the header now refuses to start (exit 1), as the
  relay does without RELAY_PROXY_FROM: a deployment missing it fails its
  /healthz check instead of going live with one bucket.
- README: both settings, and the refusal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 07:43:48 +02:00
Horizon agentandClaude Opus 5.5 18d5d5f53b Fishing hook spawns at the eye; its entity harness no longer rolls the hit
FishingHook(Player, ...) snaps the hook's position (its feet) to the owner's
eye; Horizon put it 0.125 lower. The harness cast at a stand 3 blocks away,
which vanilla's randomised throw reaches only on ~80% of casts: Horizon's own
run missed with the same odds and was never retried. At 2.5 blocks every
throw hooks the stand and the boat on its second tick, so the harness leaves
the known-flaky list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:43:26 +01:00
Horizon agentandClaude Opus 5.5 5aeedfa347 command_exec: crafter map extension releases its chunk; name isolated groups
crafter map extension forced chunk (0,0) and left it, which moved the next
`/forceload add` guard that covers it. The groups the full run leaves out
(reinforcements, recipe overlays) are now named once in the corpus, so the
harness and the fixture-state test skip the same ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:41:48 +01:00
HiuoyandClaude Opus 5.5 178bf207c6 Native mods: register_goals, a new mob's goals (Mob.registerGoals)
A trait mod's register_goals hook is asked for every new mob, after its
species added its goals and before its saved data is read. It may clear
the goal and target selectors and add Goal types of its own, which steer
the mob with its navigation (nav_move_to, create_path_to) and controls.
A mod's living type from #9667 thus gets its own AI. The hook runs before
the float check, so a mod's Float goal floats the navigation as
FloatGoal's constructor does.

The hook is a free function in the client library, so it goes through
NativeClientHooks as living_breathe does. mod_api re-exports Mob,
MobWorld, Goal, GoalSelector and Cx; the generator's dispatch tests get
a Mob stub and the catalog test knows mobs/ai.rs.

Part of #8622.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 09:41:21 +04:00
Ludovic Marie 43fdfb9de4 Merge pull request #9679 from yahya-nusseibeh/fix/reviewer-ids
CI commands: authorize trusted reviewers by numeric GitHub ID
2026-11-05 06:40:53 +01:00
Ludovic Marie 9756f9dcf7 Merge pull request #9686 from DUzzL/fix/9680-tick-freeze-visuals
🤖 Agent: This matches Minecraft.runTick and tick: the texture clock advances only inside isLevelRunningNormally, while GameRenderer.tick (the lightmap flicker) runs on every unpaused tick, and Horizon only calls tick() when !self.pause, so a paused game still freezes both. The flicker draws from FogState's own random, so moving the call doesn't shift any other draw.
2026-11-05 06:40:30 +01:00
Horizon agent c93c226ed6 Merge remote-tracking branch 'origin/main' into fix/command-exec-fixture-leaks 2026-11-05 06:38:57 +01:00
Horizon agentandClaude Opus 5.5 ff1d51d66a command_exec: mob suffocation group restores mob_griefing
mob partial block suffocation set mob_griefing false and random_tick_speed 0
and left them, so every later group ran without mob griefing: no piglin in
piglin pickups picked anything up on either side, and the gold's fate became
a race. A unit test now checks every group leaves the world rules it found.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:33:39 +01:00
Arslan ArmanulyandClaude Opus 5.5 e0e48c363e Shader packs: cutout terrain cuts at alpha 0.5 and solid terrain not at all, as in Iris
A pack without gbuffers_terrain_solid/_cutout drew all terrain in one pass
with an alpha test of 0.1, and alphaTestRef read 0.1. Iris 1.11.7, with probe
packs of ours writing one alpha per screen strip, drew solid terrain with no
alpha test (alpha 0.0 kept) and alphaTestRef 0, and cutout terrain keeping
alpha above 0.5 only (0.5 and 0.49 discarded, 0.51 kept) with alphaTestRef
0.5, through gbuffers_terrain alone and through the split programs alike.
Vanilla 26.3 cuts cutout terrain at 0.5 too (RenderPipelines.CUTOUT_TERRAIN).

Every pack now draws solid and cutout terrain apart, as packs with the split
programs already did: without them, both parts draw with gbuffers_terrain's
chain. The cutout part's default test is alpha > 0.5.

Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:33:24 +05:00
TheMrZZandCodex gpt-6.1-sol aa99b2a2b0 Merge current main after owner-damage validation
Retain upstream item, recipe and rendering changes alongside the scoped
Allay identity bridge. The owner damage and Allay source paths are unchanged.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 06:27:35 +01:00
Horizon agentandClaude Opus 5.5 d6644b03ad Scores leave the board with any destroyed entity, not only mobs
ServerLevel.EntityCallbacks.onDestroyed calls Scoreboard.entityRemoved for
every entity kind. Only dying mobs did here, so an item, an area effect
cloud or a projectile that had a score kept it after it was gone, and
/scoreboard players list kept listing its UUID (command_exec's scores and
social groups after carpet farms and loaded potion clouds). Once a tick,
the UUIDs that hold a score or a team are checked against the live
entities; unloaded and travelling ones leave persist.uuids first, so they
keep theirs, as in vanilla. Nothing runs while no entity holds one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:26:29 +01:00
Horizon agentandClaude Opus 5.5 5507e73158 command_exec: keep three checks off state the two sides load differently
- entities, piglin pickups: their falling-block and item selectors spanned
  the whole world. The Rust side block-ticks a ring of terrain (--radius 4)
  that the oracle never loads, and at chunk (-5, -2) generated kelp breaks
  and gravel falls into a flooded cave there, as vanilla's own does once
  that chunk ticks (checked with both forced loaded). Those drops are no
  fixture's: the checks now look near the fixture.
- execute: `execute in the_end if block 0 64 0` expected an unloaded chunk.
  The oracle's settle keeps its tickets for the rest of the run, so since
  gateway passengers settles in the End, 0 64 0 stays loaded on the Java side
  only. The check keeps its point (another dimension, an unloaded position)
  at 1000 64 1000.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:26:29 +01:00
Horizon agent 88d9a1e58b Merge main into ci/trusted-reviewer-ids 2026-11-05 06:23:06 +01:00
Ludovic Marie 3c945f9d30 Merge pull request #9682 from glitchsnake/fix/9604-xp-orb-lava-burn-sound
🤖 Agent: As in Entity.lavaHurt, the orb draws its pitch from its own random only after a hurt that lands (the early health <= 0 return covers isInvulnerableToBase's isRemoved), so the random order matches vanilla. The sound goes through the same audio.play path as the boats' lava_hurt_sound. Orbs don't track Silent yet, so a /summon'd Silent:1b orb still sizzles; that's a small gap left for later.
2026-11-05 06:21:33 +01:00
Ludovic Marie b7235f00c3 Merge pull request #9681 from masa-masa-0314/fix/debug-options-interrupt
🤖 Agent: This follows KeyboardHandler.handleDebugKeys: an open DebugOptionsScreen closes, otherwise canInterruptScreen (shouldCloseOnEsc by default) decides, and the interrupted screen runs its own close first, so a container gives its items back before the debug screen opens. The credits keep their screen, a deliberate gap from vanilla because their close can fail; the doc comment says so.
2026-11-05 06:21:29 +01:00
Ludovic Marie 3b47b51f81 Merge pull request #9678 from NerfPhaselock/fix/gpu-culling-device-loss
🤖 Agent: The flag is set only when the last frame before the loss was GPU-culled (old.gpu_frame()), so a device lost in an ordinary CPU-culled frame still gets GPU culling offered after recovery, and the saved setting is never written. It's a Relaxed AtomicBool read once per renderer build, so it costs nothing per frame.
2026-11-05 06:21:25 +01:00
Ludovic Marie a90988dc29 Merge pull request #9677 from Hiuoy/fix/9671-world-recipe-paths
🤖 Agent: In 26.3 recipes are a registry, and RecipeManager.finalizeRecipeLoading builds the stonecutter list and unpackRecipeInfo numbers the displays by walking recipes.values(), so sorting by registration_key in every table (and in the LAN copy the guest's stonecutter picks from) gives the order vanilla shows. The three reads moved to the world's table were the only places still showing the base table's result while handing over the pack's.
2026-11-05 06:21:21 +01:00
Ludovic Marie 4e166dc57e Merge pull request #9675 from arslanarm/shaderpacks/gl-fog-density
🤖 Agent: gl_Fog.density now reads the fogDensity value Horizon already sends, which is 0 everywhere, so a pack's exp-fog maths sees what Iris gives it in the scenes your probe measured. Nothing else in the struct changes, and packs without shaders/ never read it.
2026-11-05 06:21:17 +01:00
MegaBytesMe 53eb50dd02 Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64 2026-11-05 05:15:53 +00:00
Arslan ArmanulyandClaude Opus 5.5 4c4558d84d Shader packs: a custom uniform declared with another GLSL type reads 0
A custom uniform of shaders.properties was converted to whatever type the
program's GLSL declared it with. Iris 1.11.7 disables it instead ("Wrong
uniform type for X: Iris is providing FLOAT but the program expects INT.
Disabling that uniform.") and our probe packs read 0: a float declared int,
an int declared float, a vec3 declared vec2 and a vec2 declared vec3. A float,
int, vecN custom uniform now binds only to a GLSL uniform of its own type
among those; pairs involving bool keep the conversion (a float of 2.5
declared bool read true in both games).

Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:15:34 +05:00
martipopsandClaude Opus 5.5 4828bea53c Controllers: tabs, lists, stick and crosshair reach everything in a menu
The bumpers switch every tabbed screen, and turn the recipe book's pages; its triggers change category.
The right stick only scrolls: the focus stays on its row, no value changes, and nothing scrolls under the
on-screen keyboard. The D-pad walks a list's hidden rows, stops at a list's edge without changing a value, and
a held direction stops at the edge of the slots it's on. The crosshair stays on its target as the screen changes,
A held with the D-pad spreads a stack, and a list's scrollbar says how far its rows moved.

The arrow keys share the focus step, so they walk hidden rows too, and the superflat and single-biome rows
become focus targets for them. Focus on a preset selects it and leaves the share box to a press, as vanilla does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:14:05 -05:00
yahya-nusseibehandClaude Opus 5.5 65ce92e233 Nightly: sign each build for its own version (SHA256SUMS.v2.sig)
Every Nightly was signed for the constant "horizon release nightly", and
the version a launcher installed it as came from the unsigned GitHub
title, so anyone able to edit the release could serve an older signed
Nightly as tonight's.

- nightly-build.yml signs SHA256SUMS twice with the same key(s):
  SHA256SUMS.sig for the channel, as before, for installed launchers;
  SHA256SUMS.v2.sig for nightly-<date>-<commit>, the version the title
  names (sign_release.sh ALSO_FOR). Both are verified before publishing.
- horizon-release-sign: nightly_title_version() parses the title
  strictly (no fallback to published_at); nightly_digest() takes that
  version and checks SHA256SUMS.v2.sig for exactly it; is_nightly_build();
  SIGNATURE_V2. `verify --signature <file>` checks the v2 file.
- Every installer that checks a Nightly moves in the same step: the
  launcher, horizon-server update and packaging/server/install.sh refuse
  a Nightly whose title doesn't parse and install it only with a v2
  signature for that version. install.ps1 checks no signature (only
  GitHub's SHA-256), so it has nothing to move.
- An older Nightly still installs on request as a rollback with a
  warning; the launcher's update never moves the selection back to it,
  and horizon-server prints a rollback notice for --version.
- Nightlies from before this change have no v2 signature: the refusal
  now says so and names `horizon-server rollback`, and docs/security.md
  "Nightly signatures" describes the changeover (martipops's review of
  #9129). The launcher's new messages go through trf(), in every
  language table in English until translated.
- tests/install_sh_signature.sh: a v2 Nightly installs as its version; a
  Nightly with only the channel signature, an older Nightly retitled as
  a newer one, and an unreadable title are refused (all three installed
  before this change).

Split from #9129, as martipops's review suggested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 07:12:20 +02:00
Ludovic Marie 57ddb7c5c7 Merge pull request #9676 from yahya-nusseibeh/fix/nightly-apply-args
Nightly: call apply() with the six arguments it takes
2026-11-05 06:11:01 +01:00
TheMrZZandCodex gpt-6.1-sol 6ff0152b94 Merge main and retain synchronous command reinforcements
Keep the reinforcement request collection and post-hit drain around the
verified-owner damage adapter, and preserve all upstream corpus groups.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 06:09:51 +01:00
TheMrZZandCodex gpt-6.1-sol f8b6c21390 Compare liked-player UUIDs in owner Allay damage routes
Pass verified owner identity through the existing command and normal attack
adapters while preserving the legacy filter for unresolved damage callers.
Cover live command feedback/state and both adapter and compatibility APIs.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 06:09:06 +01:00
DUzzL a68e475a4c Hold animated textures under /tick freeze, keep light flicker running (#9680) 2026-11-05 06:08:45 +01:00
Arslan ArmanulyandClaude Opus 5.5 b67bb9d9cd Shader packs: clamp() in custom uniforms takes the lower bound when the bounds cross
A custom uniform's clamp(x, min, max) applied min first and max last, so with
min > max it gave max. Iris 1.11.7 gives min: our probe packs read
clamp(5.0, 3.0, 1.0), clamp(0.0, 3.0, 1.0) and clamp(2.0, 3.0, 1.0) as 3, and
clamp(vec2(5.0, 0.5), vec2(3.0, 0.0), vec2(1.0, 1.0)) as (3, 0.5), in three
scenes. Apply max first and min last.

Part of #9307

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 10:08:38 +05:00
Ludovic Marie ea14b8b65b Merge pull request #9646 from TheMrZZ/fix/h312-noai-allay-healing
🤖 Agent: This matches Allay.aiStep: the heal sits after super.aiStep with no NoAI gate (only isClientSide and tickCount % 10). The unit test pins both paths: NoAI heals and keeps its hold timers, and normal AI still heals only once.
2026-11-05 06:08:11 +01:00
Horizon agentandClaude Opus 5.5 806a600656 Command harness: settle refreshes the chunk tickets
Since #9482, /execute if loaded reads the ticket levels, which only a tick
recomputed. The harness's settle loads terrain without ticking, so a group
that moved the player and forced chunks (large fireball fire) still saw the
previous group's tickets: chunk column x=5 was resident and lit but not
entity-ticking. The oracle's settle takes its tickets at once (getChunk runs
the DistanceManager updates), so the probe's settle now refreshes them too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:07:46 +01:00
Horizon agentandClaude Opus 5.5 7c397e8587 /item … from block: a non-container block entity is no source
ItemCommands.getContainer rejects any block entity that is not a Container
("Source position … is not a container"). The source check only asked
whether a block entity existed, so a sign, lectern, campfire or beacon got
"The source does not have slot …" instead. Use the same container test as
the target side.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:07:46 +01:00
Ludovic Marie 33686f33ce Merge pull request #9530 from abit-foggy/codex/studio-a2a3-browser
🤖 Agent: Recording is opt-in (/studio or the control socket), filters before writing and fails closed on unknown packets. With no recording running, the network thread now pays one uncontended lock per packet instead of a copy of every payload.
2026-11-05 06:05:42 +01:00
yahya-nusseibehandClaude Opus 5.5 f2ec6394cc Launcher: cap what a shared instance or a .mrpack may unpack to
import.rs inflated every entry of a dropped .mrpack or game-folder zip
with no byte limit, so a few kilobytes of zip bomb could fill the disk
before the half-made instance was removed.

- fill() counts the bytes actually inflated across all entries (a zip's
  sizes are its own claim) and stops past MAX_IMPORT (8 GiB); the error
  removes the instance as before.
- The cap sits in fill(), which import_any() calls for both
  import_into() and main's newer import_mrpack_into() (a Java instance
  takes every path a pack carries), as martipops's review of #9129
  asked when rebasing.
- The message goes through trf(), in every language table in English
  until translated.
- Tests with a 16 KiB limit: a compressed bomb is refused and leaves
  nothing, for a shared instance and for a .mrpack; the limit is for all
  files together.

Split from #9129.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 07:05:39 +02:00
Horizon agentandClaude Opus 5.5 332c3170e8 Merge main into fix/h312-noai-allay-healing
groups(): keep main's crafter map extension group and the allay one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:05:05 +01:00
yahya-nusseibehandClaude Opus 5.5 337cb194af Mod registry: owners and owner_ids must name the same accounts
Once an entry has owner_ids, only an ID in them makes an owner, so adding
a co-owner to `owners` alone, the obvious edit, would silently lock them
out, and the refusal would list their own login among the owners
(martipops's review of #9129).

- Entry::check_fields refuses an entry whose owner_ids is non-empty and
  not as long as owners, with how to find the missing ID, so the registry
  CI catches it when the change is made.
- docs/api/owner-update-v2.md: the registry repository has no
  owner-update workflow yet, so nothing merges on its own today; and the
  backfill script runs only once a maintainer has read it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 07:00:11 +02:00
yahya-nusseibeh 7aceb1cbf9 Mod registry: decide project ownership by numeric GitHub ID
Owners were GitHub logins, and a login can be claimed by someone else once
its owner renames or deletes the account. For a project without a key, a
reclaimed login could publish an owner update that merges on its own.

- Entry gains `owner_ids` (#[serde(default)], omitted when empty). The
  form records the lister's ID for new projects (file and repository
  listings). The registry review notes any change to it.
- ownership(): when an entry has owner_ids, only an ID in them is an
  owner, so a matching login on another account is refused. Without
  owner_ids (older entries) the login matches, but the update always waits
  for a reviewer and the pull request says so.
- The automatic owner update requires an ID match.
- update_trailer is v2: `owner-update-v2` message with the submitter's
  numeric ID, and `format: v2` / `submitter_id:` lines in the trailer.
- tools/registry_backfill_owner_ids.py: one-off, dry run by default,
  resolves owners' logins to IDs, cross-checks them against the IDs the
  form recorded in the entry's commits, and leaves alone (and prints)
  any entry it can't resolve completely.
- docs/api/owner-update-v2.md: what the registry repository's
  owner-update workflow must check, and the deployment order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit 526bfcbbe1)
2026-11-05 06:59:35 +02:00
Ludovic Marie 1fe029d88c Merge pull request #8941 from elythepreciouscat/perf/entity-occlusion-culling-pipeline
🤖 Agent: Entity occlusion culling stays Off by default. prepare_occlusion_culling only builds a culler when the mode isn't Off, so the default frame skips both the voxel paths and the new section-graph rejection. A budget that runs out still fails open (visible). One push from me: main's new ItemFrame.custom_name field added to the PR's bounds test, which was what broke verify. Desktop: clippy -D warnings is clean (client, client-lib, client-render) and 2835 client tests pass. Benchmarks: the author's stationary and moving runs above.
2026-11-05 05:54:51 +01:00
rdbtCVS d9340502f3 fix(telemetry): box blocking task error responses
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
(cherry picked from commit 75b4ce1062)
2026-11-05 06:54:39 +02:00
yahya-nusseibeh 6c019a2349 Telemetry server: read the client's address from one configured header
With TRUST_PROXY=1 the rate limits were keyed on X-Real-IP, else the last
X-Forwarded-For entry, whatever the platform guarantees. Railway's edge
has let clients set X-Real-IP in the past, and puts the CDN's address
there when Fastly is in the path.

- HORIZON_TELEMETRY_CLIENT_IP_HEADER names the one header the proxy
  overwrites (x-real-ip on Railway); its last comma-separated entry is
  the client. No other header is read.
- TRUST_PROXY=1 without it counts the TCP peer, and the server prints a
  warning at start saying every client then shares one bucket; a header
  set without TRUST_PROXY is reported as ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit bd420535e0)
2026-11-05 06:54:39 +02:00
yahya-nusseibeh 3483117549 Telemetry server: keep SQLite off the async workers, bound the totals' cost
The server runs two async workers and did every SQLite call on them, and
GET /v1/aggregate had no rate limit and cached per `days` (366 keys),
while DELETE /v1/installs/<any id> emptied every cache: a cheap way to
stall every handler.

- blocking(): batch storage (zstd inflate included), install deletion,
  the totals, the benchmarks summary, the live history, the upkeep and
  the live count's minute sample run on tokio's blocking pool.
- /v1/aggregate and /v1/benchmarks/summary take a per-address read
  bucket (READS_PER_HOUR, 600); uncached totals builds have a global
  budget (AGGREGATE_BUILDS_PER_HOUR, 600) and answer 503 past it.
- AGGREGATE_DAYS (e.g. 7,30,90,366) restricts the windows answered; unset
  keeps every value from 1 to 366. It is left unset by default because
  the website's own requests (private horizon-site) couldn't be checked.
- A deletion invalidates the cached totals only when it deleted rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit a29c16a169)
2026-11-05 06:54:38 +02:00
Horizon agentandClaude Opus 5.5 7f509a7229 Entity bounds test: give the item frame its custom_name
Main added ItemFrame.custom_name (a named frame drops with its name); the test initializer predates it and stopped verify from compiling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:52:59 +01:00
Loki 3202ebb565 Merge remote-tracking branch 'origin/main' into fix/9604-xp-orb-lava-burn-sound 2026-11-05 13:52:08 +09:00
LokiandAntigravity d199e5ece5 entities: play generic burn sound when xp orb takes lava damage (fixes #9604)
Co-Authored-By: Antigravity <[email protected]>
2026-11-05 13:52:05 +09:00
Horizon agentandClaude Opus 5.5 a9b34d89b0 Studio: record only while a recording runs; translate the browser
The privacy filter ran on every packet before the recorder was looked at, so
with no recording it still copied each payload (chunk data too) and
re-encoded every AddEntity with a fresh random UUID. It now runs only while a
recording is active, and keeps the packets it allows without copying them.

The recordings browser's title, empty state, buttons and server labels go
through the language table (gui.done, menu.singleplayer and
menu.multiplayer are vanilla's). The row's "Edit" hint is removed: this
PR has no editor to open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:48:50 +01:00
Ludovic Marie 5f064c53b4 Merge pull request #9670 from TheMrZZ/fix/noai-pufferfish-mob-contact
🤖 Agent: The NoAI branch now calls only sting_touching_mobs, after super.aiStep's work, as Pufferfish.aiStep does without a NoAI gate, and the unit test checks that ordinary AI still stings exactly once. The 119 vs 118 poison duration your diagnostic keeps is #9672.
2026-11-05 05:48:20 +01:00
Ludovic Marie a9d017d822 Merge pull request #9669 from DUzzL/fix/9660-spectate-f5
🤖 Agent: The name tags now use posed_rotation, which camera_orientation already trusts and which is already turned round for the front view. The only change is that a spectated entity's rotation is kept even when it equals the vanilla view, so the mouse no longer turns the tags.
2026-11-05 05:48:16 +01:00
Ludovic Marie e38e3af593 Merge pull request #9667 from Hiuoy/feat/8622-living-entity-templates
🤖 Agent: class_id() is the type's own id for every vanilla type, so mob_to_nbt and mob_meta change nothing without content mods. The loot-table fix (ruby:entities/ghoul) matches EntityType.getDefaultLootTable. The 25 slow content-root tests pass with prepared resources.
2026-11-05 05:48:13 +01:00
Ludovic Marie 0fcc1c5f72 Merge pull request #9663 from arslanarm/shaderpacks/shadow-map-terrain
🤖 Agent: The caster test can only add planes to the light's box, and a plane that doesn't fit the array is dropped, which keeps more, so the shadow pass never loses terrain the old box drew for a view it can shade. It applies only to Iris-format packs with shadow.culling unset. Fitting Iris's maps from screenshots, not its code, keeps this clean-room.
2026-11-05 05:48:08 +01:00
Ludovic Marie 6e714b46ff Merge pull request #9373 from TheMrZZ/fix/crafter-map-extension
🤖 Agent: The crafter now matches map-extension recipes against the level's live saved maps (MapExtendingRecipe.matches reads the map's scale). An unknown or max-scale map no longer extends, and the lookup goes through the world's recipe table. The author's refresh has the same Rust as my tested merge, where clippy -D warnings is clean and the crafter, menu and command_harness tests pass. Its corpus builds 117 groups with no duplicates.
2026-11-05 05:48:04 +01:00
Horizon agentandClaude Opus 5.5 5c4e9a381d Merge main into fix/h312-noai-allay-healing
groups() in command_exec_corpus.py: main added the zombie reinforcement
groups where this branch adds the allay one; keep all of them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:47:46 +01:00
Horizon agent 070422e205 Merge remote-tracking branch 'origin/main' into cg42b/8941 2026-11-05 05:46:30 +01:00
NerfPhaselockandClaude Opus 5.5 37fcc000cd Keep GPU culling off after a device loss in one of its frames
The game rebuilds the renderer after a device loss, and the new one offered
GPU culling again: a fault in its frames could lose the device after every
recovery, until a second loss within a minute ended the session. A loss while
the last frame was GPU-culled now makes every renderer after it report
GpuCullingOffer::DeviceLost, until Horizon restarts; the switch greys out and
says why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:44:57 -05:00
rdbtCVS dd63f7ba94 ci: resolve existing reviewer and owner accounts to numeric IDs
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
(cherry picked from commit 52612f0c35)
2026-11-05 06:44:12 +02:00
yahya-nusseibehandClaude Opus 5.5 c0f53a324f CI commands: authorize trusted reviewers by numeric GitHub ID
/nightly, the triage commands and /claim decided who may act by the
comment author's login. GitHub hands a renamed or deleted account's login
to whoever claims it next, so a reclaimed reviewer login could pick
unreviewed pull requests into the signed Nightly.

- trusted-reviewers.txt lines become `<id> <login>`; one shared parser
  (nightly_set.read_reviewers) for all three commands. Any other line,
  bare logins included, grants nothing and is reported on stderr.
  `paused` keeps its meaning.
- All three workflows pass AUTHOR_ID (github.event.comment.user.id);
  without it the scripts refuse. Ludovic is OWNER_ID, and his threads are
  recognised by user.id in triage.
- tools/ci/resolve_reviewer_ids.py fills in the IDs (and OWNER_ID);
  --check reports renames and deleted accounts.

No review requirement is added: a Nightly still takes any open pull
request to main, as decided on 2026-10-30 (NoReviewNeededTests).

Split from #9129, as martipops's review suggested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 06:44:04 +02:00
masa-masa-0314 556864a921 Merge remote-tracking branch 'upstream/main' into fix/debug-options-interrupt 2026-11-05 12:43:25 +08:00
masa-masa-0314andZCode ab43fcc32e Debug options: F3+F6 interrupts every screen its Esc would close (canInterruptScreen)
Vanilla 26.3 (KeyboardHandler.handleDebugKeys, the keyDebugDebugOptions branch)
closes an open DebugOptionsScreen, else when Minecraft.canInterruptScreen()
passes closes the current screen (Screen.onClose; canInterruptWithAnotherScreen
defaults to shouldCloseOnEsc) and opens the debug options over it. Horizon only
opened over the game and the bare pause menu (Fixes #9664).

- debug_options_interrupts: the canInterruptScreen classification, one arm per
  Screen; the death screen, the level teardown, the text-box screens, the
  credits (fallible close) and a playing overlay keep theirs.
- toggle_debug_options closes the interrupted screen the way its Escape does
  (a container hands its state back, creative clears pad focus and the carried
  stack, a mod's screen hears the close) before opening.
- The F3+F4 switcher passes F3+F6 on to the debug options screen.
- A unit test pins the classification.

Co-Authored-By: ZCode <[email protected]>
2026-11-05 12:43:24 +08:00
HiuoyandClaude Opus 5.5 d1a4f0a6b2 Recipes: world table for the grid, dyes and campfire; registration order for every recipe list
- The crafting grid's result, breeding's dye mixing and the campfire's
  cooked item read the world's table, as menu_click and the campfire's
  placement already did.
- Recipes::from_sources sorts every table (crafting, cooking, mods' own
  types) in registration order, the key #9406 sorted crafting by, now
  crafting::registration_key; StationRecipes sorts stonecutting and
  smithing by it.
- RecipeIndex numbers recipe-book displays in registration order.
- The LAN copy sends the stonecutter list and numbers groups in that
  order, so a guest's stonecutter button indexes the host's list.

Fixes #9671.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:43:16 +04:00
MegaBytesMe e8cc426080 Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 04:42:54 +00:00
yahya-nusseibehandClaude Opus 5.5 62572a0b18 Nightly: call apply() with the six arguments it takes
command() still passed read_reviewers(reviewers).logins to apply() after
c527d60b7 dropped that parameter, so every /nightly comment that got past
authorize(), status included, ended in TypeError and was never answered.

- Drop the leftover argument.
- Test: command() run as nightly-command.yml runs it, with GitHub and the
  state branch stubbed, answers /nightly status. It fails on main with the
  TypeError.

Split from #9129, as martipops's review suggested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stK8iXVDXqoi7midcqd
2026-11-05 06:39:53 +02:00
Arslan ArmanulyandClaude Opus 5.5 cf56244594 Shader packs: gl_Fog.density reads 0, as in Iris
The compatibility gl_Fog gave packs a density of 1. Iris 1.11.7 gives 0
there, in gbuffers_terrain and in deferred, in a cave and in the Nether,
where fogDensity also reads 0 in both games (read back with a probe pack
of our own).

Fixes #9674

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 09:38:49 +05:00
ElyTheCat 76e92e12de Merge branch 'main' into perf/entity-occlusion-culling-pipeline 2026-11-05 08:05:40 +03:30
Ludovic Marie 185156c0eb Merge pull request #9662 from horizon-rust/agent/security-fixes-from-9129
🤖 Agent: Four standalone fixes from #9129, with authorship kept. The control token now comes from getrandom. Token files are written owner-only (write_private). Ban-list dates are checked instead of taken as they are. A relay bridge frees its slot when it ends. None of them is on a hot path. The server-files, relay, server and control tests pass on playhorizon.
2026-11-05 05:33:24 +01:00
Florian ERNSTandCodex 55b2752d15 Keep map and light observations after reinforcement merge
All-target Clippy, formatting, Python options and Java oracle compilation pass at main 61afe4fa8. Captured runtime proof remains unchanged.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:31:21 +01:00
Ludovic Marie 61afe4fa8e Merge pull request #9452 from TheMrZZ/fix/command-damage-zombie-reinforcements
🤖 Agent: A zombie hit by /damage now sends its reinforcements before the command returns, as vanilla's hurtServer does inside the command, so a following command sees the reinforcements. The isolated reinforcement groups run only with --only, so the generic corpus is unchanged. The author's refresh onto main keeps both fixture isolations. Clippy -D warnings is clean and the reinforcement tests pass.
2026-11-05 05:29:09 +01:00
Florian ERNSTandCodex 470503d7a9 Preserve world recipe lookup and map context on crafter refresh
Keep H295 active world recipe selection with H298 saved-map matching and system post-process. Preserve all shared corpus groups, datapack fixtures, map copy controls and player observations. Formatting, all-target Clippy, Python and Java compile checks pass; original runtime qualifications remain unchanged.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:27:59 +01:00
Horizon agentandClaude Opus 5.5 9bc2a60c10 Remove leaked command_exec objectives and forced chunk
Java's fixture guards read counts: `/scoreboard objectives add` returns how
many objectives exist after the add, and `/forceload add` how many chunks it
newly forces. Four groups left state behind for the next ones:

- mob baby attribute reads kept h227 and allay invalid Brain retention kept
  h226, so rewrite_hit, hitstate and audit got 3 instead of 1;
- both advancement loot groups kept chunk (0, 0) forced, so item
  stack-size override merges forced 7 chunks instead of 8.

parity-main stopped on "Java fixture control failed" for each of them once
#9514 fixed the /fill floor guard (#9587). Each group now removes what it
added. A unit test replays every group's objectives and forced chunks and
checks each count guard against what earlier groups leave.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:27:39 +01:00
Florian ERNSTandCodex 5801a60185 Keep both reinforcement and recipe fixture isolation on main refresh
Formatting, all-target Clippy, Python options and Java oracle compilation pass at main 898d3e165. Preserve captured runtime qualifications.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:25:55 +01:00
Florian ERNSTandCodex f60a109738 Refresh reinforcement command fix against main
Keep reinforcement and advancement-loot corpus groups, all diagnostic options, and light/player observations. The reinforcement fixture function is byte-identical. Formatting, all-target Clippy, Python compilation/options/registration and Java oracle compilation pass. Original runtime proof remains qualified to its captured base.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:24:59 +01:00
Ludovic Marie 898d3e1654 Merge pull request #9406 from TheMrZZ/fix/crafting-recipe-selection-order
🤖 Agent: The recipe order now follows ResourceManagerRegistryLoadTask's sort by file id (path, then namespace). It runs once per load, and find_with is unchanged, so lookups cost nothing more. The prepared 26.3 recipe folder has no '-' or '.' names, so vanilla's own recipes keep their order. Main merged in, both fixture sets kept.
2026-11-05 05:24:49 +01:00
Florian ERNSTandCodex 1ab3333cef Refresh H313 with server API test coverage
The final main checkpoint changes server API tests only; the checked pufferfish source and fixture are unchanged.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:21:20 +01:00
Ludovic Marie 998b4710a4 Merge pull request #9655 from Vaspyyy/perf/collision-scan-memo
🤖 Agent: The one memo keeps vanilla's chunk requests (a missing chunk is asked again unless the world promises it stays missing), and may_reach_out, now asked once per non-empty section, is a pure query. An A/B on the desktop (dedicated server, 1500 pigs on the ground, 3 interleaved rounds, main f5565f1 against main plus this PR) gave a 5.30 ms median per tick on main and 5.33 ms with this PR: below the run-to-run noise (±0.3 ms), so your instruction counts are the finer measure. The far-move cost (+16%) is a fair trade for every mob's ground move.
2026-11-05 05:20:42 +01:00
Ludovic Marie 5c06efc139 Merge pull request #9398 from NikitaMGrimm/deterministic-capture
🤖 Agent: With HORIZON_STILL off, every new branch reduces to the old expression and the variable is read once through a OnceLock, so there's no per-frame cost. The main merge keeps the border ticking only while the level runs, as main has it. Checks: clippy -D warnings, shader tests, clock tests.
2026-11-05 05:20:37 +01:00
Ludovic Marie 30482e153f Merge pull request #9338 from NerfPhaselock/perf/gpu-culling-g4
🤖 Agent: Off by default and in no preset; with the setting off there is no readback buffer and no poll. The device-loss follow-up from the review (turn GPU culling off for the session after a loss in a GPU frame) is worth its own PR. Union build passed.
2026-11-05 05:20:34 +01:00
Horizon agentandClaude Opus 5.5 370f0314be Merge main into fix/h312-noai-allay-healing
Both sides add a group to command_exec_corpus.groups(): keep both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:19:15 +01:00
Florian ERNSTandCodex 0fcaef94e3 Refresh H313 against current mob and UI changes
Upstream changes add frog travel, player equipment visibility and UI/server work; the NoAI pufferfish caller and sting handler are unchanged. Preserve all fixture options and qualify the captured runtime pairs to d158e4473.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:19:07 +01:00
Horizon agent 8380643533 Merge commit 'refs/cg42/a9398' into cg42b/9398 2026-11-05 05:17:57 +01:00
Horizon agent e384f63540 Merge remote-tracking branch 'origin/main' into cg42b/9406
# Conflicts:
#	tools/command_exec_corpus.py
#	tools/test_command_exec_parity.py
2026-11-05 05:13:08 +01:00
Ludovic Marie 28d25be3f0 Merge pull request #9159 from TiggerTakkyTTT/test/server-api-auth-command-goldens
🤖 Agent: main merged in. The new auth/command goldens test now sits beside main's observability and config golden tests in api.rs, and both sides are kept whole. It drives the real HTTP listener, so missing/wrong token, wrong Host and malformed commands are checked over the wire. horizon-server: 150 tests pass, clippy -D warnings is clean.
2026-11-05 05:12:28 +01:00
Florian ERNSTandCodex 26ec6c900b Refresh H313 from main and verify overlapping cod contact
Preserve the unchanged canonical 218 and strict 220 scripts. Add an independently validated same-position pig/cod control rather than infer contact from the original cod placement. Keep landed H311 player contact and all current fixture options.

Co-Authored-By: Codex <[email protected]>
2026-11-05 05:11:44 +01:00
Horizon agent 7b0a85e775 Merge remote-tracking branch 'origin/main' into cg42b/9398
# Conflicts:
#	crates/horizon-client/src/game/remote.rs
2026-11-05 05:11:17 +01:00
Ludovic Marie 614ebb30cd Merge pull request #9661 from horizon-rust/agent/finished-8918-world-canvas
🤖 Agent: Carries #8918 unchanged, with main merged in. Only the mod_api export list conflicted, and both sides are kept. The depth-tested world text and atlas quads go through the existing native world-draw hook, so a game without mods costs nothing extra. It passed fmt, clippy and tests in union3.
2026-11-05 05:10:20 +01:00
Ludovic Marie dc5173c2bd Merge pull request #9384 from DUzzL/fix/9368-riptide-dry-use
🤖 Agent: Matches TridentItem.use: FAIL (about to break, or Riptide while dry) doesn't start using and lets the off hand try, as Minecraft.startUseItem does. game.rs's single-player use chain now also falls through on FAIL. Union build passed.
2026-11-05 05:10:16 +01:00
Ludovic Marie 5280f96229 Merge pull request #9365 from Joansitoh/t3/pig-strider-boost-sync
🤖 Agent: The boost now starts from the synced DATA_BOOST_TIME (index 18, after AgeableMob's two), as ItemBasedSteering.onSynced does, instead of the rider's client guessing it. Union build passed.
2026-11-05 05:10:12 +01:00
Ludovic Marie 3b49e970f0 Merge pull request #9362 from Joansitoh/t3/armor-stand-minecart-push
🤖 Agent: Matches ArmorStand.pushEntities: only RIDABLE_MINECARTS within distanceToSqr <= 0.2 are pushed, and the stand riding the cart is skipped as Entity.push skips a shared vehicle. Union build passed.
2026-11-05 05:10:09 +01:00
Ludovic Marie 51b70481c0 Merge pull request #9360 from Joansitoh/t3/item-frame-custom-name-drop
🤖 Agent: Matches ItemFrame.getFrameItemStackWithData: the dropped frame (glow frames too) takes CUSTOM_NAME from getCustomName, and the name now round-trips through the frame's NBT. Union build passed.
2026-11-05 05:10:04 +01:00
Ludovic Marie ab41e568b1 Merge pull request #9359 from Joansitoh/t3/frog-travel-in-water
🤖 Agent: Matches Frog.travelInWater: moveRelative(getSpeed()), move, then scale 0.9, with no gravity or water drag. Minor: the test's `let _ = ran;` passes silently without vanilla data. Union build passed.
2026-11-05 05:10:00 +01:00
Ludovic Marie 3f61f093a5 Merge pull request #9351 from Joansitoh/t3/fix-mob-visibility-head-range
🤖 Agent: Matches LivingEntity.getVisibilityPercent: each worn stack's mob_visibility applies only when its equippable slot matches and the looker's type is listed, then Mth.clamp(0, 10). The chest/legs/feet fields cost three Arc clones per PlayerView. Union build passed.
2026-11-05 05:09:56 +01:00
Ludovic Marie 153d4f654d Merge pull request #9344 from MSedgeMC/test/explosion-victims
🤖 Agent: The non-player victims carry NoGravity so the blast's push is the only motion compared, and Pos/Motion are compared at 9 decimals as server_knockback does. Union build passed.
2026-11-05 05:09:52 +01:00
Ludovic Marie 3325da4253 Merge pull request #9340 from Joansitoh/fix/9336-honey-landing
🤖 Agent: HoneyBlock.fallOn plays the slide sound (the guest's own client plays it for the guest) and broadcasts event 54 to everyone, the lander included. Union build passed.
2026-11-05 05:09:48 +01:00
Ludovic Marie 508f933a63 Merge pull request #9331 from BPMichon/feat/health-hud-state-helpers
🤖 Agent: native_health_hud_state hands out &mut HealthHud, so a mod calling layout twice a frame double-advances the heart blink; the docs say once a frame, which is the right contract. Stamp test and union build pass.
2026-11-05 05:09:44 +01:00
Ludovic Marie 7cfa9f9f7c Merge pull request #9319 from lightcodegit/fix/peaceful-despawn
🤖 Agent: Matches Mob.checkDespawn: peaceful discards a disallowed type on its own despawn check, even when persistent; Horizon's check_despawn already does that first, so the three instant purges were the only difference. Union build passed.
2026-11-05 05:09:40 +01:00
DUzzL 7658eb5a2d Billboard name tags and camera-facing effects to the spectated camera entity 2026-11-05 05:09:23 +01:00
Horizon agent adaf038bd3 Merge remote-tracking branch 'origin/main' into cg42b/9159
# Conflicts:
#	crates/horizon-server/src/api.rs
2026-11-05 05:07:26 +01:00
Ludovic Marie 6c5eece90d Merge pull request #8700 from Akirabane/feat/7484-control-read
🤖 Agent: main merged in after #9062. The config golden now lists the new [transfer] section with its defaults (enabled false, expect 10 s, max 60 s, 64 players, freeze 30 s). horizon-server tests: 149 pass.
2026-11-05 05:04:28 +01:00
Ludovic Marie 3a919c7d32 Merge pull request #9381 from gigamans442/feat/weather-depth-contract-20261104
🤖 Agent: An explicit rain.depth=false now skips the weather depth write; omitted and malformed values keep main's behaviour. Spectrum and Luculent are MIT and disclosed. Union build passed.
2026-11-05 05:04:24 +01:00
Ludovic Marie 524aa03ee9 Merge pull request #9176 from arslanarm/shaderpacks/terrain-solid-cutout
🤖 Agent: Each part clips the other's quads in the vertex stage, so packs with gbuffers_terrain_solid/_cutout pay double terrain vertex work (noted in the earlier review); packs without them take the old single draw. Union build with 44 PRs passed, including horizon-shaders and render tests.
2026-11-05 05:04:20 +01:00
Ludovic Marie a6937b0eae Merge pull request #9652 from voidsipp/fix/9382-sound-entity-lookups
🤖 Agent: Mob sounds now return the mob-index state before level_entity runs, so the dragon's metadata Mob can't shadow its Dragon, and silence and removal still come from the Mob. The once-per-tick cache is keyed by id inside one call, and a removed sound never revives when its id is reused.
2026-11-05 05:04:16 +01:00
Ludovic Marie a09f16910f Merge pull request #9659 from horizon-rust/fix/9239-review-fixes
🤖 Agent: queued; a chunk unload now drops only that chunk's sleepers, so idle furnaces elsewhere stay asleep instead of all ticking again.
2026-11-05 05:04:11 +01:00
Ludovic Marie 049c9d25db Merge pull request #9658 from horizon-rust/fix/9271-review-fixes
🤖 Agent: queued; a dolphin now drowns if kept under water past 4800 ticks, as in vanilla (it is not in #can_breathe_under_water).
2026-11-05 05:02:12 +01:00
Ludovic Marie 8c45bbac89 Merge pull request #9656 from horizon-rust/fix/9222-9229-review-fixes
🤖 Agent: queued; the drop_tool key is the machine's own position, so a neighbour broken in the same call no longer rolls the machine's tool or its silk touch.
2026-11-05 05:02:09 +01:00
Horizon agentandClaude Opus 5.5 8ea4669674 Config golden: add the [transfer] section
#9062 pinned the config reply before this PR added [transfer]; the GET reply now lists it with its defaults.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:02:07 +01:00
Ludovic Marie ea93759d41 Merge pull request #9457 from voidsipp/fix/9382-sound-port-ledger
🤖 Agent: Ledger only: SoundInstance::tick and the bound-entity note match what #9382 merged. Nothing else found.
2026-11-05 05:02:04 +01:00
Ludovic Marie c015efcdc3 Merge pull request #9645 from HrafnaValkyrja/fix/8589-raid-sweat
🤖 Agent: entity_event_burst is now the only list, and no other branch of the EntityEvent handler draws for 38 or 42, so nothing draws twice. The cost is the existing mob search, now for every entity event instead of eight ids; entity events are rare enough that this doesn't show.
2026-11-05 05:01:59 +01:00
Ludovic Marie 42417e3d4b Merge pull request #9453 from GabrielNichols/codex/stale-harness-verdict
🤖 Agent: The old verdict is removed before carry mutates content, and an interrupted harness can no longer leave a stale green one. Union build passed.
2026-11-05 05:01:55 +01:00
Ludovic Marie 6c2c0f9c5b Merge pull request #9441 from NikitaMGrimm/windows-exact-sin
🤖 Agent: Measured on the desktop: exact::sin + cos takes 110 ns a pair against libm's 10 ns (11x). The 27 jmath sin/cos call sites are per mob or per feature, never per vertex, so that is microseconds a tick, on Windows only. Union build passed.
2026-11-05 05:01:50 +01:00
Ludovic Marie 3497ab4654 Merge pull request #9429 from itarqos5/perf/far-light-one-span-a-run
🤖 Agent: A previewed far-terrain column spends one span; the dampening is per run, measured −13 % far sampling memory. Union build passed.
2026-11-05 05:01:46 +01:00
Ludovic Marie a9b1bc2649 Merge pull request #9420 from phexuss/fix/skins-transient-failures
🤖 Agent: A failed cape no longer drops the skin, a failed download retries after 60 s instead of never, and only bodies that decode reach the disk cache. Union build passed.
2026-11-05 05:01:42 +01:00
Ludovic Marie d4fe63cbb7 Merge pull request #9415 from DUzzL/fix/9390-game-master-break
🤖 Agent: Matches ServerPlayerGameMode.destroyBlock: a GameMasterBlock stays without canUseGameMasterBlocks. Vanilla also sends a block update there; the guest's break acknowledgement covers that here. Union build passed.
2026-11-05 05:01:38 +01:00
Ludovic Marie 7d8176bc00 Merge pull request #9394 from oxi-does-dev/fix/control-chat-client-commands
🤖 Agent: The control socket's chat and command go through handle_chat_input and the client mod command path, the same as typed chat, so client mods see them. Union build passed.
2026-11-05 05:01:35 +01:00
Ludovic Marie 1d5ec41a8a Merge pull request #9393 from TheMrZZ/fix/h294-mob-nbt-hit-cooldown
🤖 Agent: Entity.load mutates the existing living entity and never reads its damage cooldown or last hurt amount, so a /data merge no longer resets them. The corpus case covers it against Java. Union build passed.
2026-11-05 05:01:30 +01:00
Ludovic Marie 67d37c698e Merge pull request #9388 from phexuss/fix/png-size-guard
🤖 Agent: The header's width × height is checked before decoding, so a crafted PNG can no longer ask for a huge allocation. Union build passed.
2026-11-05 05:01:26 +01:00
Ludovic Marie 62242ccd02 Merge pull request #9372 from arslanarm/shaderpacks/smooth-untaken-branch
🤖 Agent: if() now evaluates conditions up to the first true one plus that branch only, so a smooth() in an untaken branch keeps its state. Iris was only run with your own probe packs, which our rules allow. Union build passed.
2026-11-05 05:01:23 +01:00
Ludovic Marie 51a1af2436 Merge pull request #9366 from Joansitoh/t3/dragon-flying-hit-knockback
🤖 Agent: Matches EnderDragon.knockback: LivingEntity.knockback only when the phase isn't sitting, power 0.4F from dealDefaultKnockback, and the vertical stays (noPhysics never sets onGround). Arrow hits still don't push, as before. Union build passed.
2026-11-05 05:01:19 +01:00
HiuoyandClaude Opus 5.5 d579acfa15 Content mods: living entity types from a zombie or villager template
A content mod's entity type could only copy minecraft:snowball, so a mod
had no way to add a mob. It may now copy minecraft:zombie or
minecraft:villager, as NeoForge's EntityType.Builder.of(Zombie::new, ...)
makes a type of a vanilla class, with its own default attribute values
(EntityAttributeCreationEvent) in an `attributes` map, for attributes the
template has. A thrown type still names its item; a living one has none.

The mod's row in entity-types.json is its template's with `template`
added and its attribute bases in place of the template's, every other
value kept as the template's text. MobTypes::load makes a row naming a
template into that species' MobType under the mod's id, so registry and
network ids, /summon and remote spawns, which already went through the
table and the registry, pick it up. What a class saves and syncs of its
own (a zombie's IsBaby, CanBreakDoors and conversion times, its entity
data, the villager's) follows MobType::class_id, the template's id for a
mod type; the saved and sent id stays the mod's.

A mob's default loot table, and /loot ... kill, now keep the type's
namespace (EntityType.getDefaultLootTable): ruby:ghoul rolled
minecraft:entities/ruby:ghoul, and rolls ruby:entities/ghoul. Nothing
changes without content mods: no row has a template, and class_id is the
type's own id.

First slice of #8622; goals, navigation and structure placement stay
open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:00:38 +04:00
Nikita Maximilian GrimmandClaude Opus 5.5 052e130539 Merge origin/main into deterministic-capture
Keep main's world border rule from #9396 (it ticks only while the level
runs, which already covers HORIZON_STILL's hold) instead of the
branch's hold gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 05:00:25 +01:00
Ludovic Marie 1802dc9713 Merge pull request #9301 from degepie/fix/custom-enchantment-names
🤖 Agent: The synced enchantment table is built once per registry sync, not per tooltip; a literal-text description of a data-pack entry now shows instead of the raw id. Union build passed.
2026-11-05 04:57:22 +01:00
Ludovic Marie 4cc927ec8e Merge pull request #9199 from Mayonesu0/fix/8779-powered-wither-wind-charge
🤖 Agent: Matches WitherBoss.hurtServer: a powered wither refuses a direct WindCharge, and a breeze's BreezeWindCharge (a sibling class) still hurts it; the test pins exactly half health. The only parity failure was #9511, fixed by #9514 (merged), so parity runs again.
2026-11-05 04:57:18 +01:00
Ludovic Marie e7f54ff0da Merge pull request #8924 from Delete228/create-owned-sounds-pr
🤖 Agent: Merged in a 45-PR union build (fmt, clippy, tests pass). Ticking::Native only changes who advances a sound instance; vanilla's SoundEngine.tickInGameSound order is unchanged for every non-native sound.
2026-11-05 04:57:14 +01:00
Ludovic Marie 3747a6c2cb Merge pull request #9421 from phexuss/fix/wardrobe-session-reuse
🤖 Agent: I merged main (wardrobe tests on both sides kept, 95124d4). The session is reused until the service answers 401, then signs in once more; Mojang's join is made once per service session instead of on every refresh. Union build passed.
2026-11-05 04:57:10 +01:00
Ludovic Marie 4a67ce5b0c Merge pull request #9427 from JulesB40/perf/surface-rule-once
🤖 Agent: I merged main and carried main's new OreVein positive_y through fold_biomes (3bbcda7); it depends on the rule, not the chunk. The measured win is in the carvers stage (−16 to −18 % ms/chunk), with snapshots identical to main. Union build passed.
2026-11-05 04:57:07 +01:00
Ludovic Marie f52f7edf1b Merge pull request #9364 from Joansitoh/t3/firework-elytra-leash-break
🤖 Agent: Matches FireworkRocketItem.use: dropAllLeashConnections(null) while fall-flying, then LEAD_BREAK when something dropped. I fixed the ignored resource test, which no longer compiled after main made the audio capture a struct (86d09bf). Union build passed.
2026-11-05 04:57:02 +01:00
Horizon agent 10209ee6bb Merge remote-tracking branch 'origin/main' into cg42b/8700 2026-11-05 04:57:00 +01:00
Ludovic Marie f9d353f860 Merge pull request #9450 from DUzzL/fix/9437-consume-no-swing
🤖 Agent: The tamable arm was the wrong way round: Wolf/Cat/Parrot.mobInteract answer SUCCESS for sitting down, and for food that heals a hurt tame wolf or cat or tames a cat, so those swing. AbstractHorse.fedFood and Panda answer SUCCESS_SERVER (no client swing). Fixed in a pure mob_swings with a test (0d8d49d), main merged. Union build passed.
2026-11-05 04:56:58 +01:00
Ludovic Marie baa7e75c90 Merge pull request #9405 from degepie/fix/dp-block-nbt
🤖 Agent: I merged main. block_entity_nbt now reads a live moving piston first, as #9617 made /data do, so block predicates see the same NBT (de85911). Union build passed.
2026-11-05 04:56:54 +01:00
Ludovic Marie 993843b164 Merge pull request #9403 from degepie/fix/dp-entity-tags
🤖 Agent: I merged main and changed one thing: a registry whose pack tags fail to load now keeps the game's tags. Before, it stored an empty table, so even vanilla's #tags matched nothing in advancement predicates (167f156). Union build passed.
2026-11-05 04:56:49 +01:00
Ludovic Marie 50c220db84 Merge pull request #9304 from degepie/fix/dragon-death-vibration
🤖 Agent: Matches EnderDragon.kill and tickDeath: remove, then gameEvent(ENTITY_DIE). I merged main, which now asks is_fight_dragon before the dragon is taken (0b6621e). Union build passed.
2026-11-05 04:56:46 +01:00
Ludovic Marie 9c09a461b8 Merge pull request #9349 from TheMrZZ/fix/h293-mob-team-command-names
🤖 Agent: I merged main (corpus groups from both sides kept, every def checked present). Mob command names now take the team's prefix, suffix and colour, as Entity.getDisplayName via PlayerTeam.formatNameForTeam. Union build passed.
2026-11-05 04:56:42 +01:00
Ludovic Marie e8b8a0103f Merge pull request #9356 from TheMrZZ/fix/advancement-world-loot-rewards
🤖 Agent: Advancement loot rewards now read the world's data-pack tables, as ServerAdvancementManager's reward resolution does through the reloadable registries. Union build passed.
2026-11-05 04:56:38 +01:00
Ludovic Marie 9c3c363f0d Merge pull request #9397 from NikitaMGrimm/entity-own-phase
🤖 Agent: Item bob and end crystal phases come from the entity's own random, as the ItemEntity and EndCrystal constructors draw them, instead of a shared stream. Union build passed.
2026-11-05 04:56:34 +01:00
Arslan ArmanulyandClaude Opus 5.5 a66f8fa25a Shader packs: the shadow pass draws only terrain that can shade the view
Our probes' Iris 1.11.7 shadow maps (shadow.culling unset) fit keeping
only the sections whose shadow can fall into the camera's view: under a
noon sun a wedge of chunks in front of the camera, with a low sun ahead
nothing behind it. Horizon's held every section in the light's box.

For Iris-format packs, the shadow pass now also culls sections with the
camera's frustum stretched without end toward the light (the faces turned
toward the light, plus a plane along the light through each silhouette
edge), and tests whole 16-block sections there, a guess that matched our
probe with the camera looking straight up. shadow.culling=false and the
voxel distance of shadow.culling=reversed keep everything, as before.
Horizon's own packs are unchanged.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 08:56:30 +05:00
Ludovic Marie 244e5320b0 Merge pull request #9396 from NikitaMGrimm/frozen-sky-flash
🤖 Agent: Matches ClientLevel.tick: the sky flash fades every tick, and the world border lerps only while the level runs. Union build passed.
2026-11-05 04:56:30 +01:00
Ludovic Marie 2eb57c2ad6 Merge pull request #9151 from TiggerTakkyTTT/test/server-api-observability-goldens
🤖 Agent: Test-only: the uptime line is masked to <dynamic>, the rest of the metrics text stays exact. Union build passed.
2026-11-05 04:56:26 +01:00
abit-foggy 6d295f04b8 Merge remote-tracking branch 'upstream/main' into codex/studio-a2a3-browser 2026-11-04 17:53:09 -10:00
Ludovic Marie f5565f1a3c Merge pull request #9075 from TiggerTakkyTTT/test/server-api-moderation-goldens
🤖 Agent: Test-only: pins the moderation replies' status codes and bodies with independent literals. Union build passed.
2026-11-05 04:50:53 +01:00
Ludovic Marie 740d472acb Merge pull request #9072 from TiggerTakkyTTT/test/server-api-event-goldens
🤖 Agent: Test-only: the event replies' goldens are written by hand, so a serializer change has to show up here. Union build passed.
2026-11-05 04:50:49 +01:00
Ludovic Marie 437ff774c7 Merge pull request #9062 from TiggerTakkyTTT/test/server-api-config-goldens
🤖 Agent: Test-only: the config replies are pinned against literal JSON, not the serializer under test. Union build with 44 other PRs passed.
2026-11-05 04:50:45 +01:00
abit-foggyandCodex bb61e27267 fix(studio): harden recording privacy
Exclude packets that carry player identity or private text, randomize entity UUIDs in recorded AddEntity packets, and fail closed on unrecognized packets. Keep recording metadata free of server addresses and player names. Correct the recordings browser tooltip to match its current behavior.

Co-Authored-By: Codex <[email protected]>
2026-11-04 17:48:42 -10:00
Florian ERNSTandCodex 9fbc1c6398 Dispatch puffed pufferfish mob contacts with NoAI
Reuse the existing contact helper from the NoAI Mob.tick branch without changing ordinary-AI order or accepted-hit handling. Add actual Mob.tick and guarded Game/Java contact regressions; retain the independent poison-duration diagnostic.

Co-Authored-By: Codex <[email protected]>
2026-11-05 04:47:11 +01:00
Ludovic Marie 36134aa077 Merge pull request #9640 from voidsipp/fix/9346-sculk-setup
🤖 Agent: Ten inactive ticks in a row is longer than any vibration in flight takes to arrive inside the 8-block range, so the walk starts from a quiet sensor. The movement and activation checks on both clients are unchanged, and the three trace tests cover the vibration still travelling, a second vibration and a setup that never settles.
2026-11-05 04:46:09 +01:00
VaspyyyandClaude Opus 5.5 1174737b8f Collision scan: one memo for the last cell's chunk and section
#9598 made far moves cheap by passing empty sections and missing
chunks a row segment at a time, but every cell of a mob's box paid for
it: a second cache search on top of the reach cache, and more state in
the cell loop. On the ground a mob's move cost about 7.5% more
instructions than before #9598.

The scan now keeps one memo, the last cell's chunk with its section's
facts (empty, may reach out), so a cell in the same chunk and section
costs one comparison. Both facts live in one eight-section cache,
asked once per section. Where the world's chunks stay as they are for
the scan (missing_chunks_stay_missing), it also keeps the chunk before,
so a row across a chunk border goes back and forth without asking
again. Worlds without that promise ask as vanilla's BlockCollisions
does, including again after a missing chunk.

Fixes #9653

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:45:11 +01:00
Ludovic Marie cfe6b9ef76 Merge pull request #9638 from KBroneZ/claude/fix-9629-coverage
🤖 Agent: The headline is counted from the rows' own status, class and tier, so it can't disagree with the numbers under it, and the launcher's tr() lines are tested against Summary::lines. The per-row plain sentences are still English report data, like `reason`; translating them is #9644.
2026-11-05 04:42:16 +01:00
Ludovic Marie 4649ff391b Merge pull request #9637 from KBroneZ/claude/fix-9628-copy-from
🤖 Agent: The CurseForge rows now reuse #9583's curseforge_instance_target (minecraftinstance.json first, manifest.json only if it has no version), so copy-from and `instance others` read the same triple the pack import does. A loader Horizon doesn't name, or one without a version, stays none, as before.
2026-11-05 04:42:10 +01:00
Ludovic Marie d594f449d8 Merge pull request #9639 from KBroneZ/claude/fix-9630-errors
fix(launcher): say what to do next in three common errors
2026-11-05 04:41:10 +01:00
Horizon agentandClaude Opus 5.5 266d52a6cd Mobs: dolphins hold their breath, copper golems breathe under water
Dolphins ran WaterAnimal's air rule, which set their air to 300 every tick
in water: air never fell under 140, so they never surfaced for air nor
drowned, and #9271 now sent that 300 to every viewer. Dolphin's
handleAirSupply is empty and it isn't in #can_breathe_under_water, so it
now takes LivingEntity.baseTick's air from its 4800 (and stops taking
drowning damage on land on top of drying out). The breathing list follows
the tag: copper golems in, ghasts, blazes and snow golems out (no override
keeps their air; the iron golem's decreaseAirSupply does). A saved mob
without an Air tag loads with its species' maximum (Entity.load), not 300.
From martipops's review of #9271.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:33:32 +01:00
Horizon agentandClaude Opus 5.5 7218bd0680 rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:33:32 +01:00
Ludovic Marie bd054c2682 Merge pull request #9648 from horizon-rust/fix/9311-review-leftovers
🤖 Agent: verified on playhorizon merged with main: launcher fmt, clippy -D warnings, 541 lib + 102 binary tests. The failure file's tag line is what keeps a launcher already at that release from showing a stale 'update failed'; files from older installers have no tag and still show.
2026-11-05 04:33:32 +01:00
Horizon agentandClaude Opus 5.5 37477f99ec Sleeping block entities: tests run the real tick on every idle case; chunk unloads keep sleepers asleep
The idle tests restated the predicate. The furnace, brewing stand and
campfire tests now run the tick the block runs on each idle case and
check nothing changed, and that an awake one changes, so an idle() that
drifts from its tick fails. Unloading chunks used retain, which wakes
every sleeping block entity of the level, so with moving players most
idle machines ticked anyway: unload removes only the gone ones. From
martipops's review of #9239.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:33:13 +01:00
voidsip ba1e658704 Resolve bound sounds from live indexed entity state 2026-11-04 21:31:59 -06:00
Horizon agent 6b54c6f50b Merge remote-tracking branch 'origin/main' into cg40b/review-fixes-launcher-update 2026-11-05 04:31:12 +01:00
Ludovic Marie 7ac27e71f0 Merge pull request #9473 from horizon-rust/fix/known-packs-as-vanilla
🤖 Agent: #9298 merged; main merged in (clean, nothing since the verified tree touches net.rs, remote.rs or the wire tools). Verified on playhorizon at the stack's top 72f38687b: all five vanilla_wire_e2e rules pass against vanilla 26.3 with the Login held 1 s, known-packs-as-vanilla and known-data-used included; fmt, clippy -p horizon-client --all-targets -D warnings, 910 horizon-client tests.
2026-11-05 04:30:35 +01:00
Ludovic Marie c626fc0b1a Merge pull request #9428 from martipops/fix/launcher-checks
Launcher: run the binary's tests in PR checks
2026-11-05 04:30:07 +01:00
Horizon agentandClaude Opus 5.5 5890a75541 docs: Host carries play_sound and send_particles; change_mod_block_entity on a client is local
Also fixes the borrow in drop_resources_now from the machine-tool commit
(the target check is a bool now, so popping can borrow the level).
From martipops's review of #9222.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:29:55 +01:00
Horizon agent f03a34e508 Merge remote-tracking branch 'origin/main' into cg40b/9473b 2026-11-05 04:28:56 +01:00
Horizon agentandClaude Opus 5.5 d160024a85 Launcher: an update failure isn't shown once its release is in; a data move drops a staged update
The failure file now starts with the release that failed, and a launcher
already at it or newer (another copy, the command line or the site put it
in) doesn't say its update failed. Moving the data folder quit the window
with an update still staged, so the installer could start while the
relocation worker copied the folder holding the stage; the move now
drops the staged update and its stage, and the restarted launcher checks
again. From martipops's review of #9311.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:27:42 +01:00
Ludovic Marie fb683da6ac Merge pull request #9631 from TheMrZZ/fix/pufferfish-player-contact
🤖 Agent: The contact now follows Player.aiStep (inflate 1/0.5/1, or the vehicle union inflated 1/0/1) and Pufferfish.playerTouch (doTeamsAllowDamage, hurt first, then poison with the fish as source), and it runs per guest even with a frozen level. One gap left for later: vanilla sends PUFFER_FISH_STING to the player only when the hurt lands, while the sting sound here still comes from the fish AI every 10 ticks.
2026-11-05 04:26:16 +01:00
Ludovic Marie 89ea0a8c81 Merge pull request #9627 from Vaspyyy/fix/launcher-mod-list-paths
🤖 Agent: Every place that removes or renames a listed file now goes through Entry::path, which accepts only plain names under the five install folders (mods, resourcepacks, shaderpacks, horizon-mods, horizon-native-mods), and imports from packs or other launchers can no longer bring their own mod-browser.json. Data packs never enter that list, so nothing the browser installs today is dropped.
2026-11-05 04:26:12 +01:00
Ludovic Marie a12a1a156d Merge pull request #9626 from Vaspyyy/fix/friends-relay-guess-limit
🤖 Agent: The wrong-guess total and the retired-code count now last for the whole sharing session, and only as many relayed key exchanges run at once as wrong guesses are left, so re-registering no longer resets the relay's chances (at most 50 guesses at 20-bit secrets). Counting every failed exchange as wrong is the right call: the host sends its confirmation first, so a peer that hangs up after checking it has had its guess.
2026-11-05 04:26:08 +01:00
TheMrZZandCodex gpt-6.1-sol b696d86470 Merge current main while retaining Allay healing coverage
Keep all upstream corpus groups and restore the Allay fixture area after its measurements.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 04:26:05 +01:00
ElyTheCat be4c480e9c Merge branch 'main' into perf/entity-occlusion-culling-pipeline
# Conflicts:
#	crates/horizon-client/src/game/item_draw.rs
2026-11-05 06:53:56 +03:30
Ludovic Marie 86a2f2516e Merge pull request #9298 from horizon-rust/fix/client-information-as-vanilla
🤖 Agent: #9297 merged; main and its harness fix merged in (clean). Verified on playhorizon on the stack's top (#9473, which carries this head): the five vanilla_wire_e2e rules against vanilla 26.3 with the Login held 1 s pass, including brand-before-information and no-play-information from this PR; fmt, clippy -p horizon-client --all-targets -D warnings, 910 horizon-client tests.
2026-11-05 04:22:48 +01:00
Ludovic Marie d26c7fd7de Merge pull request #8498 from utophii/fix/2282-musl-build
feat: add musl linux release build
2026-11-05 04:21:41 +01:00
ElyTheCatandCodex gpt-6.1-sol e62b4a1eae perf(entity-culling): hide entities in sections the graph never reached
Reject an entity whose padded render bounds lie entirely in terrain sections the renderer's visibility graph cannot reach, before any per-entity occlusion query runs; the graph must know the camera's own section, and unknown cells fail open to the existing paths. Add tests for the graph's answer and the bounds-to-section span, and tidy the fully-qualified occlusion calls in the culling tests.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 06:51:14 +03:30
HrafnaValkyrjaandClaude Sonnet 5.5 051322cd22 Entity events: the particle table decides which ones draw
The client forwarded an entity event to the particle code only if its id was
in a hand-written list in remote.rs. The table that says what each event draws
(entity_event_burst) already had rows for villager 42 (raid sweat) and dolphin
38, but the list did not, so neither showed. The list repeated the table and
had drifted from it. It is removed: entity_event_particles already looks the
event up in the table and draws nothing when there is no row.

Fixes #8589

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 22:19:45 -05:00
Horizon agentandClaude Opus 5.5 af82f65855 mod API: scenes shade and cull block entity quads as the world does; a stale state id can't crash
Mod quads, cubes, items and text come with their colour baked; the scene
shaded them a second time (an east face of a cube at 0.30 against the
block model's 0.6, glowing text dimmed). It now shades only what
entity.wgsl shades (|normal.w| >= 0.5) and culls only what it culls
(CULL_BACK, SHADED_CULL_W), so a flat quad or text seen from behind and a
mirrored part draw as in the world. A degenerate quad takes its vertex
normal. A state the registry doesn't know no longer panics in the face
culling. The docs list the scene's limits. From martipops's review of
#9229.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:19:25 +01:00
Horizon agentandClaude Opus 5.5 9f83f20c74 mod API: chunk tickets refuse chunks past the world's edge; held chunks generate between ticks
A ticket past /forceload's 30,000,000-block edge is refused (the ring's
arithmetic overflowed near i32::MAX). pump_chunks kept the workers fed
between ticks for /forceload only; a mod's held chunks get the same. The
docs say where tickets differ from NeoForge's and what they can't do yet
(lazy Nether/End, pausing servers, free owners, cost). From martipops's
review of #9226.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:18:41 +01:00
Ludovic Marie 41ace47be5 Merge pull request #9433 from martipops/fix/staged-update-install
🤖 Agent: verified merged with main (81dad4693, with #9428 on top) on playhorizon: launcher fmt, clippy --all-targets --locked -D warnings, 538 lib tests and 101 of 102 binary tests (the one failure is main's stale docs/launcher-commands.md, fixed on #9428). One point checked by hand: an older window hands the new installer no HORIZON_LAUNCHER_UPDATE_SHA256 only if the file in place changed under it, and then already_in_place returns Ok before the empty hash is looked at, so a mixed-version pair restarts instead of failing. Real placement on macOS and Windows is still unrun.
2026-11-05 04:18:07 +01:00
Horizon agentandClaude Opus 5.5 00922e5c8d mod API: a machine's tool rolls only its own block; no ore experience with silk touch
drop_tool and drop_into applied to every dropResources inside the
machine's with_level, so blocks popping off with the break (grass on the
dirt) dropped with the machine's tool and went into its list. They now
drop as with no tool and pop, as Level.destroyBlock does for neighbours.
A silk touch tool no longer collects ore experience
(EnchantmentHelper.processBlockExperience, after the xpRange draw), which
made an unlimited experience farm. From martipops's review of #9223.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:18:05 +01:00
Horizon agentandClaude Opus 5.5 2ec49e8bc2 mod API: Host::equipment(MainHand) is the selected slot in an off-hand pass
held() is the acting hand: during the off-hand pass of a use it is the
off hand, so equipment(MainHand) answered the off-hand stack.
LivingEntity.getItemBySlot doesn't depend on the hand acting. From
martipops's review of #9222.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:17:18 +01:00
MegaBytesMe 6e3073863e Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64 2026-11-05 03:17:05 +00:00
Ludovic Marie 9540aaeb86 Merge pull request #9435 from martipops/fix/data-remove-loot-table
🤖 Agent: verified merged with main 81dad4693 on the desktop: clippy -p horizon-client --lib --tests -D warnings, 29 command tests, and the ignored loot_table_tests run against prepared 26.3 resources (passes; with take_loot_table's old bare retain put back it fails with the table still in the saved chest, so the test pins the fix). Matches vanilla: RandomizableContainer.tryLoadLootTable loads a tag without LootTable as a plain, empty container. The run-parity label adds opened_loot as asked.
2026-11-05 04:15:17 +01:00
Horizon agentandClaude Opus 5.5 1f6cd059ce docs: regenerate launcher-commands.md (game-architecture key)
The reference test lives in the launcher's binary, which --bins now runs in
CI: main's copy missed the game-architecture setting from #8274, so this
PR's own check would fail on it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:14:14 +01:00
Horizon agent 7dc38db5bd Merge remote-tracking branch 'origin/main' into cg40b/9428 2026-11-05 04:14:13 +01:00
voidsip 50cad6717c Wait for setup vibrations before checking player sculk movement 2026-11-04 21:14:00 -06:00
KBroneZandClaude Sonnet 5.5 9cf673ffb9 fix(launcher): fewer language-table lines for #9630
Insert the new keys before each table's last entry (no comma changes), fold
the instance-name sentence into one key, and give copy-from its --as hint as
plain text after it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 05:11:21 +02:00
yahya-nusseibeh 0785a988df Relay: reserve a bridge slot at the match, give it back on every exit
max_bridges compared against bridges already running, so joins waiting
(up to attach_wait) for their host's attach all passed the check and a
burst could exceed RELAY_MAX_BRIDGES.

- BridgeSlot, taken under the lookup lock when a guest is matched with
  its host, counts toward max_bridges from then on; dropping it gives it
  back, so every way out of a join (no attach, a refused or forged
  attach, an error inside bridge(), a panic) releases it.
- counts().bridges now includes matched joins awaiting attach.
- tests/bridge_slots.rs: a waiting join holds its slot (a second guest
  gets Full); the count returns to 0 after a timeout, after a forged
  attach, and after a bridge closes; refusals never take one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit 91d35fcae0)
2026-11-05 04:11:20 +01:00
yahya-nusseibeh e42e8b5497 Ban lists: checked arithmetic for hand-edited dates
parse_date multiplied and added the fields of banned-players.json and
banned-ips.json dates as plain i64, so a huge year, month, day or time
panicked in a debug build and wrapped in a release one, turning a ban's
expiry into an arbitrary date. Every step is now checked, years are bounded
before days_from_civil, and a date out of range is None, like one that
doesn't parse. Lenient month overflow (month 13) still works.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit 184ea41194)
2026-11-05 04:11:20 +01:00
yahya-nusseibeh 0b974a2f9c Write token files through a private temporary file and a rename
write_private (the control API's .horizon/api.json, the game's control
endpoint, the management protocol's generated key) opened the path with
create+truncate and mode 0600, which applies only when the file is new:
an existing, wider-readable file kept its permissions and got the new
token, and a link at the path was followed.

- horizon_server_files::private_file::write_private, shared by
  horizon-server and horizon-client: writes a create_new 0600 temporary
  file beside the path, syncs it and renames it over the path (a link
  there is replaced, not followed); the temporary file goes on failure.
- Tests: an old 0644 file comes out 0600; a link's target is untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit 9cb9d76054)
2026-11-05 04:11:20 +01:00
yahya-nusseibeh 55345332a3 Game control endpoint: draw its token from the OS random generator
The TCP control endpoint's token (it gates full control of the running
game) was two SipHash outputs of RandomState over the time and the process
ID. RandomState's keys are OS-seeded, but std doesn't promise it is a
cryptographic generator. It now comes from getrandom::fill, as
horizon-server's and the relay's tokens do (getrandom 0.3, already in the
lockfile, added to horizon-client-lib, which compiles control.rs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SJ3stH5q6PgMAVUSmJqKDe
(cherry picked from commit aa89153fc0)
2026-11-05 04:11:20 +01:00
TheMrZZandCodex gpt-6.1-sol e34841176c Heal Allays without enabling their AI
Keep passive healing on the ten-tick entity cadence for NoAI Allays. Reuse the existing heal operation and preserve normal-AI ordering and the independent duplication countdown.

Add guarded command-oracle coverage for both AI modes and health-cap boundaries, plus a reachable Mob tick regression.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 04:10:38 +01:00
Horizon agentandClaude Opus 5.5 86d09bfcb7 Read the captured lead snap through CapturedSound's fields
Main made the audio capture a struct; the ignored resource test still
compared tuples and no longer compiled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:08:08 +01:00
Horizon agent eb7e1af600 Merge remote-tracking branch 'origin/main' into cg42b/9364 2026-11-05 04:07:48 +01:00
Horizon agent 95124d4a75 Merge remote-tracking branch 'origin/main' into cg42b/9421
# Conflicts:
#	launcher/src/wardrobe/tests.rs
2026-11-05 04:07:33 +01:00
KBroneZandClaude Sonnet 5.5 a4c0f82c7a fix: read the recorded target when --folder names one CurseForge instance
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 05:06:05 +02:00
Horizon agentandClaude Opus 5.5 3bbcda7ad5 Carry an ore vein's positive_y through the shared rule's biome fold
Main gave CompiledRule::OreVein the y bounds of its positive density; the
fold copies them, as they depend on the rule and not on the chunk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:05:37 +01:00
Horizon agent a434181f20 Merge remote-tracking branch 'origin/main' into cg42b/8918
# Conflicts:
#	crates/horizon-client/src/mod_api.rs
2026-11-05 04:01:46 +01:00
Ludovic Marie 0c62a47e9a Merge pull request #9297 from horizon-rust/fix/client-tick-end-needs-level
🤖 Agent: requeued after martipops's harness finding: vanilla_wire_e2e now records the held Login when the client gets it. On playhorizon against vanilla 26.3 with a 1 s hold, this head passes no-play-before-login and the same tree with main's r.joined condition fails it with 27 client_tick_end before Login. Merged with main 81dad4693 (impl Remote conflict, both sides kept): fmt, clippy -p horizon-client --all-targets -D warnings, 910 horizon-client tests.
2026-11-05 04:01:32 +01:00
Horizon agent ba520f9237 Merge remote-tracking branch 'origin/main' into cg42b/9450
# Conflicts:
#	crates/horizon-client/src/game/remote_mob_use.rs
2026-11-05 04:00:26 +01:00
Horizon agent 72f38687bd Merge branch 'cg40b/9298' into cg40b/9473 2026-11-05 04:00:26 +01:00
Horizon agent af15fa9bba Merge branch 'cg40b/9297' into cg40b/9298 2026-11-05 04:00:15 +01:00
KBroneZandClaude Sonnet 5.5 f6e407e16c fix(launcher): say what to do next in three common errors
No version installed: name `horizon-launcher install latest`.
Instance name taken: ask for another name; `instance copy-from` names `--as`.
Play gate: name where to sign in (Settings in the window, `account sign-in` on the CLI).
No change in behaviour; messages go through tr()/trf().

Fixes #9630

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 04:59:42 +02:00
Horizon agent 5ef75a930e Merge remote-tracking branch 'origin/main' into cg42b/9427
# Conflicts:
#	crates/horizon-world/src/worldgen/material_stage.rs
2026-11-05 03:58:07 +01:00
Horizon agent 7c3e86ec82 Merge remote-tracking branch 'origin/main' into cg42b/9349
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-05 03:53:56 +01:00
Horizon agentandClaude Opus 5.5 de859115ed Merge origin/main into #9405; block_entity_nbt reads a live moving piston first
#9617 made /data read a live moving piston's block entity before the ordinary
ones. The shared getter keeps that order, so block predicates see it too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:53:15 +01:00
Horizon agentandClaude Opus 5.5 167f156560 Merge origin/main into #9403; a registry whose pack tags fail keeps the game's own
A load_tags error used to store an empty table for that registry, so every
#tag of it, vanilla's included, matched nothing in advancement predicates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:52:41 +01:00
KBroneZandClaude Sonnet 5.5 32a64fc70c feat(launcher): say in plain words whether a modpack will work
The coverage report read "0 ported, 52 partial, 264 not yet" with reasons such
as "needs mod API 0.4". A player could not tell what comes over.

coverage.md and the Modpacks page now open with a headline counted from the
report's own rows and tiers: how many of the mods that need porting come over,
how many more Port can carry over, how many need mod support Horizon does not
have yet, and how many are not sorted yet; plus what "partial" means. Each row
gets its reason in plain words (`plain` in coverage.json, a last column in
coverage.md, a line above the technical one on the page). Counts, statuses and
the technical `reason` are unchanged. An older coverage.json without `plain`
still reads.

The three headline lines go through tr() with English values in the language
tables; the per-row sentences are English, like the reasons they sit beside.

Fixes #9629

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 04:52:39 +02:00
Horizon agent 0b6621e274 Merge remote-tracking branch 'origin/main' into cg42b/9304
# Conflicts:
#	crates/horizon-client/src/game/dragon.rs
2026-11-05 03:52:07 +01:00
Ludovic Marie a295df1fd7 Merge pull request #9277 from martipops/controller/menu-actions
🤖 Agent: verified merged with main 81dad4693 on the desktop: fmt, clippy -D warnings on the four client crates (all targets) and the --no-default-features server build, 2750 horizon-client/-lib tests and 1358 render tests pass. One point checked by hand: with no glyph a button's label is centred exactly where it was (x + floor(w/2) equals the old x + 2 + floor((w - 4)/2)), so mouse players see vanilla's buttons unchanged. pad_menu_e2e not rerun here (windowed, no display over ssh).
2026-11-05 03:51:41 +01:00
Florian ERNSTandCodex 81c9870f01 Keep pufferfish and moving-piston test options together
Refresh from main without changing the H311 runtime fixture or contact implementation.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:50:06 +01:00
KBroneZandClaude Sonnet 5.5 663c1efb70 fix: copy-from reads a CurseForge instance's Minecraft version and loader
The CurseForge app's instances were listed with no version and no loader, so
`instance copy-from` demanded --minecraft and the copy lost its loader. They
now use curseforge_instance_target (minecraftinstance.json, else manifest.json).
--minecraft still overrides; the Modrinth App path is unchanged.

Fixes #9628

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 04:47:54 +02:00
Florian ERNSTandCodex 79271db8c0 Refresh crafting-priority branch from main
Keep isolated recipe worlds, advancement controls and current shared command fixture routes together.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:47:08 +01:00
Horizon agentandClaude Opus 5.5 0d8d49d825 Swing for a tame wolf, cat or parrot sitting down, and for food that heals or tames
Wolf.mobInteract and Cat.mobInteract answer SUCCESS for sitting down, for
food that heals a hurt tame one and for food that tames a cat, before
Animal.mobInteract is reached. AbstractHorse.fedFood and Panda answer
SUCCESS_SERVER, which swings on the server only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:46:03 +01:00
Florian ERNSTandCodex 50fd4a8d1f Refresh world-loot reward branch from main
Preserve the focused, full inline, named admission and valid-empty diagnostics alongside current shared command fixtures.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:44:35 +01:00
Horizon agentandClaude Opus 5.5 5a10e12a10 vanilla_wire_e2e: hold the Login before recording it
The proxy wrote the Login's line and then slept, so whatever the client sent
during the hold landed after the Login in the capture, where
no-play-before-login stops looking: a client sending tick ends for the whole
hold could pass. Sleep first, then record (martipops's review on #9297).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:41:43 +01:00
Horizon agent 042c8b4b44 Merge remote-tracking branch 'origin/main' into cg40b/9297
# Conflicts:
#	crates/horizon-client/src/game/remote.rs
2026-11-05 03:41:42 +01:00
Ludovic Marie d158e44736 Merge pull request #9632 from DUzzL/fix/9607-scaffolding-sight
🤖 Agent: Line of sight now clips with the viewer's collision context, as LivingEntity.hasLineOfSight's ClipContext(COLLIDER, entity) does, so scaffolding is open from below and solid from above. I ran the new test against prepared resources too: it builds the world and passes, not vacuously.
2026-11-05 03:40:07 +01:00
abit-foggyandCodex ba7f8a3f40 Merge upstream/main into codex/studio-a2a3-browser
Co-Authored-By: Codex <[email protected]>
2026-11-04 16:39:48 -10:00
Florian ERNSTandCodex 123d271505 Refresh crafter map branch while preserving shared item-use fixtures
Retain map metadata and max-scale controls alongside current fixture groups and explicit boat-use packet actions.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:37:57 +01:00
Florian ERNSTandCodex 37b303bb1d Keep reinforcement and moving-piston fixture options together
Co-Authored-By: Codex <[email protected]>
2026-11-05 03:33:55 +01:00
Florian ERNSTandCodex becdc3d7d3 Refresh reinforcement command branch from main
Keep current shared oracle and corpus fixtures alongside the unchanged H300 room, light observations and immediate/once diagnostics.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:33:35 +01:00
Ludovic Marie 81dad4693e Merge pull request #9617 from TheMrZZ/fix/h309-live-piston-data
🤖 Agent: Moving-piston NBT is read from the live tick entry with the existing piston serializer, and writes are still refused before any detached block entity exists. The ordered pretty-print context applies only to a live piston's requested subtree, so other /data get output is unchanged.
2026-11-05 03:32:32 +01:00
Ludovic Marie 122149ae5c Merge pull request #9625 from Vaspyyy/fix/relay-hosts-per-address
🤖 Agent: The per-address host cap mirrors the existing rate limits (off when the relay can't see addresses; IPv6 counted per /64 with a 4x /48 cap). HostSlot gives the slot back on every way out of host(), and the integration test holds connections open to prove it.
2026-11-05 03:32:29 +01:00
Ludovic Marie 8a8b5674db Merge pull request #9624 from Vaspyyy/fix/client-malformed-server-data
🤖 Agent: The tree check follows ClientboundCommandsPacket.validateEntries: one pass over redirects (canBuild) and one over children (canResolve), so vanilla's own execute-run-to-root redirect still passes. It is iterative, so a long chain cannot overflow either.
2026-11-05 03:32:25 +01:00
Ludovic Marie 8edbc6dbe5 Merge pull request #9623 from Vaspyyy/fix/dialog-url-scheme
🤖 Agent: Dialog open_url now goes through the same untrusted_http_url check as chat click events (ExtraCodecs.UNTRUSTED_URI: http/https only), so file:, UNC and protocol-handler links never reach open_uri.
2026-11-05 03:32:22 +01:00
Ludovic Marie 76a26cc628 Merge pull request #9622 from Vaspyyy/fix/lan-owner-login
🤖 Agent: The owner's window always joins its integrated server through memory, so refusing the owner's UUID over the network costs the host nothing and closes the offline-name takeover. Splitscreen seats already had this rule.
2026-11-05 03:32:18 +01:00
Ludovic Marie 24f537709a Merge pull request #9621 from Vaspyyy/fix/item-nesting-depth
🤖 Agent: The depth guard is a thread-local counter around read_added and effect_details, released on drop, so an error leaves nothing counted. 64 levels still decode, and one guarded Cell per component costs nothing next to the decoding itself.
2026-11-05 03:32:13 +01:00
Ludovic Marie 926b36ee9d Merge pull request #9611 from Vaspyyy/perf/ore-sphere-loop
🤖 Agent: Along each axis the rounded squares fall and then rise, so the cells inside a sphere form one run per row. Skipping the rest changes no draw or query (vanilla only draws for inner cells), and your snapshots of 4 decorated worlds match byte for byte.
2026-11-05 03:32:09 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 acdf8d5304 docs: HDR design note: decisions for Ludovic with recommendations
Turn the open questions into three decisions, each with options, a
recommendation, the reason and the step it blocks. State what the HDR
pass does with a shaders/ pack's alpha today, and move the full-screen
peak and light-source info for post stages to the later additions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:29:53 +01:00
MegaBytesMe a0a3ac2524 Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64
# Conflicts:
#	docs/native-mods.md
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 02:28:56 +00:00
Florian ERNSTandCodex 6328ba1dc5 Refresh H311 after the current proof batch
Preserve all landed fixture routes and one declaration of the shared scratch/reference options. Runtime pair remains qualified to 21c7f4597.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:27:17 +01:00
Ludovic MarieandClaude Opus 5.5 a82b1427c6 Merge #9617 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:22:37 +01:00
Ludovic Marie c20465a997 Merge pull request #9597 from TheMrZZ/fix/boat-item-exact-hit
🤖 Agent: Boat items now clip like Item.getPlayerPOVHitResult (float view vector, OUTLINE, Fluid.ANY) through the shared ray code instead of 0.05-block fluid sampling; the new boat_item_hit harness runs in CI parity.
2026-11-05 03:22:09 +01:00
Florian ERNSTandCodex 6ae2f17402 Dispatch pufferfish player contact from the live player tick
Keep accepted-hit gating and attach the actual fish to poison effect criteria, independently of fish AI and frozen world ticks.

Co-Authored-By: Codex <[email protected]>
2026-11-05 03:21:58 +01:00
Ludovic Marie 2cd9e2c910 Merge pull request #9598 from Vaspyyy/perf/collision-scan-skip-missing
🤖 Agent: The same hits come in the same order, with the budget kept (both tests compare against the cell-by-cell walk). Measured: +0.07 ms per tick with 1500 ground mobs (palette check per section), noise for flying mobs, and the far-teleport worst tick goes 2290 → 160 ms.
2026-11-05 03:17:36 +01:00
VaspyyyandClaude Opus 5.5 d342803768 Dialogs: open_url takes only http and https links
A server dialog's open_url action, from a show_dialog packet or a
show_dialog click in chat, took any string. A click went to open_uri, which
hands it to ShellExecute on Windows and to xdg-open or open elsewhere. A
button naming file:///C:/.../cmd.exe, a UNC path to an .exe on the
attacker's share, or a custom protocol handler could start a program. The
link prompt is on by default but shows only the raw string; with "Prompt on
Links" off it opened at once.

Vanilla's ClickEvent.OpenUrl takes an ExtraCodecs.UNTRUSTED_URI (http and
https only). Chat components already applied that check; dialogs now share
it, and a refused link leaves the button with no action.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:16:27 +01:00
Ludovic MarieandClaude Opus 5.5 47fb24cdfb Merge main into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:15:52 +01:00
DUzzL 7588ad80ea Use the viewer's collision context for mob line of sight (scaffolding) 2026-11-05 03:13:44 +01:00
Ludovic Marie 24008dfaa4 Merge pull request #9608 from KBroneZ/claude/fix-9585-trapdoor
🤖 Agent: Vanilla's trapdoor ladder rule is instanceof TrapDoorBlock, so a tagged block with no open or facing is now just not a trapdoor. A real ladder still needs valid facing, and the tests cover the three non-trapdoor shapes.
2026-11-05 03:08:50 +01:00
Ludovic Marie ffd9ffb995 Merge pull request #9601 from rison1337/native-client-services
🤖 Agent: The client services are owned snapshots with no authoritative writes, and every lifecycle hook is empty without a mod. The menu_background result is clamped to a finite 1..64, so a mod cannot hand the blur a bad radius. I dropped the enable_older_servers helper (see my comment).
2026-11-05 03:08:46 +01:00
TheMrZZandCodex gpt-6.1-sol 5f4cff260b Merge current main while preserving piston command coverage
Keep upstream corpus groups and opt-in loaded-fixture controls alongside the live-piston contract and full presentation diagnostic.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 03:05:13 +01:00
VaspyyyandClaude Opus 5.5 ac66f3bdf9 LAN: the owner joins only through memory
A host without a Microsoft account opens the world in offline mode, where a
player's UUID is offline_uuid(name). The owner's UUID is offline_uuid of the
host's name too, and the login gate let that UUID in from anywhere. So a LAN
or friends player who logged in under the host's name passed the gate, the
duplicate-login handling kicked the host's own window, and the guest played
on as the owner: operator level 4, the owner's player data, and the
movement checks the owner skips.

Apply the splitscreen seats' rule to the owner: the owner's UUID is let in
only over the in-memory connection. Vanilla never reaches this state because
IntegratedServer always authenticates LAN guests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:03:33 +01:00
VaspyyyandClaude Opus 5.5 d9b42b1267 Protocol: refuse item data nested past 64 levels
Item stacks can hold stacks in their components (bundle contents, charged
projectiles, use_remainder, container), and a mob effect can hold a hidden
effect. The decoders called each other with no depth limit. A payload a few
hundred thousand levels deep fits in one 2 MiB frame and overflows the
decoding thread's stack. In Rust that aborts the whole process instead of
failing the packet: one creative-slot packet from any player stopped a
dedicated server or a LAN host (with the host's own window), and one slot
packet from a server stopped the client. Vanilla's decoder turns the
StackOverflowError into a disconnect.

Count nesting per thread in read_added, which every stack-in-a-stack passes
through, and in effect_details, and return an error past 64 levels. The
packet then fails like any other bad packet and only that connection
closes. Survival bundles nest about 16 deep at most.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 03:03:33 +01:00
MegaBytesMe 2daf7fd6fe fix(launcher): statically link ARM64 Rust unwinder 2026-11-05 01:58:53 +00:00
abit-foggyandCodex 185826582d feat(studio): add saved recordings browser
Co-Authored-By: Codex <[email protected]>
2026-11-04 15:58:15 -10:00
VaspyyyandClaude Opus 5.5 98cec87e34 relay: cap the hosts one address holds open
The relay only rate-limited host registrations (6 a minute per
address) against the global `max_hosts` (1000). A host that answers
pings keeps its slot as long as it likes, so one client could register,
hold every control connection open and fill all slots: in under three
hours from one IPv4 address, in seconds from an IPv6 /48 (limits count
by /64, and a /48 holds 65536 of them). Every real host then got
`Full`.

Now the limiter also counts the hosts each address key holds open:
at most 4 (`RELAY_MAX_HOSTS_PER_ADDRESS`), and an IPv6 /48 at most four
times that, however many /64s it spreads over. A registration past the
cap gets the existing `Full` reply. The count goes up when a host
registers and back down through an RAII guard (`HostSlot`) when its
connection ends, on every way out of `host`, panics included. Like the
other per-address limits it is off with `RELAY_PER_ADDRESS_LIMITS=0`.

Filling the default 1000 slots now takes 250 IPv4 addresses or 63 IPv6
/48s, not
one client.

Tests: an integration test registers the cap's worth of hosts from one
address, sees the next refused with `Full`, closes one and gets its
slot back; a limiter test covers the /64 and /48 caps, a freed slot and
the limits switched off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:58:08 +01:00
VaspyyyandClaude Opus 5.5 4f682369c4 friends: bound a relay's guesses at the short code's secret
A short code's secret is 20 bits, and the docs promise the relay can't
get into the world. But the host gave a relay (or anyone driving its
joins) unlimited online guesses:

- after five wrong secrets the code was retired, but the wrong count
  was reset on every registration and `run_relay` registered again at
  once, so each cycle bought five fresh guesses for one round trip;
- a guess was only counted when the guest's confirmation failed to
  verify. The host sends its own confirmation first, so a peer could
  check it against its guess offline and hang up: an uncounted guess;
- the five-guess limit was checked after the fact, so joins sent all
  at once ran any number of key exchanges in parallel.

Now the host keeps the wrong guesses for the whole sharing session
(`Guesses`): a count per code (reset when it registers), a total that
never resets, and a reservation for each key exchange in progress, so
only as many run at once as wrong guesses are left. Every relayed key
exchange that ends without a confirmation counts. After a retired code
the host waits 1 s, 2 s, 4 s ... (at most 5 minutes, `retire_delay`)
before registering again, and after 50 wrong guesses in one session it
leaves the relay (`HostEvent::RelayStopped`; the game says so through
a new translation key). The full code keeps working directly.

The math: each short code has a fresh secret, so every guess hits with
probability 2^-20 and guesses don't narrow anything down.
- With the cap, a relay gets at most 50 guesses per sharing session:
  50 / 2^20, about 1 in 21,000. Spending them takes at least
  1+2+...+256 s = 511 s of waits.
- With the backoff alone (capped at 5 min, 5 guesses a cycle), the
  steady rate is 60 guesses an hour; a 50 % chance needs
  ln 2 * 2^20 = ~727,000 guesses, about 12,100 hours (~505 days) of
  continuous sharing. Before: one round trip a guess, hours.

Tests: the per-code count starts over at each registration while the
total stays, the waits double (1 s ... 256 s) until the host stops at
50; exchanges in progress count against the limit; `retire_delay`
doubles up to 5 minutes. The relay's tunnel test still sees a new code
after five wrong secrets (now after 1 s).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:57:12 +01:00
VaspyyyandClaude Opus 5.5 4cdbd962a3 Ore placement: visit only the cells inside each sphere
OreFeature.doPlace scanned each sphere's whole box and divided for every
cell, although a cell's square along one axis depends on that coordinate
alone. Each axis's squares are now worked out once per sphere with
vanilla's expression, so every sum is bit for bit the same, and each row
visits only its run of cells inside the sphere: along an axis the squares
fall and then rise, so the passing cells form one run around the smallest.

The cells tested, the world queries and the random draws stay the same
and in the same order. A test compares the walk with vanilla's full box
scan over 20,000 spheres, including ones whose edge sums to exactly 1.

Fixes #9609

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:56:53 +01:00
VaspyyyandClaude Opus 5.5 6b1d342294 Client: refuse light layers, command trees and dimension shapes vanilla refuses
Three things a server sends were decoded without vanilla's checks, and each
let a server crash or stall the client:

- A light layer shorter than 2048 bytes: the column-top sky light indexes the
  layer directly, so an empty layer panicked the main thread. Vanilla's
  DataLayer constructor refuses any other length; Layers now does too.
- A command tree whose children (or redirects) loop: the usage hint followed
  the loop when the player typed "/" and overflowed the stack. Commands now
  runs ClientboundCommandsPacket.validateEntries' check ("Server sent an
  impossible command tree"), as an O(n) depth-first walk so a long chain
  can't make the check itself slow.
- A dimension type's min_y and height went unchecked into the chunk format,
  so a height of 2^31 made the client allocate gigabytes for light. A shape
  outside DimensionType's codec (multiples of 16, at least 16 high, inside
  -2032..=2031) now keeps the named type's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:55:57 +01:00
Ludovic MarieandClaude Opus 5.5 6d54bb04f8 Merge main into native-client-services
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:52:21 +01:00
Ludovic MarieandClaude Opus 5.5 1f8f9f8467 Native client services: leave the older-server switch to HORIZON_OLDER_SERVERS
The older-server adapters are off by default while they are incomplete, and
only the environment turns them on. A Host helper that turns them on for the
whole process would let any installed mod do that for its players; it is
left out of this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:52:20 +01:00
Ludovic Marie 78a7e6a712 Merge pull request #9562 from degepie/fix/player-predicate-stats
🤖 Agent: The player predicate now tests stats, advancements, recipes and level, and player_entity_for_any stays &self, so #9494's compound is added only by the &mut self caller.
2026-11-05 02:49:43 +01:00
Ludovic Marie 743aad7dc3 Merge pull request #9482 from TheMrZZ/fix/execute-loaded-ticket-status
🤖 Agent: /execute if loaded now also needs the entity-ticking status and saved entities applied, which matches ExecuteCommand.isChunkLoaded (FullChunkStatus.ENTITY_TICKING && areEntitiesLoaded). The simulation permission tracker is untouched.
2026-11-05 02:49:39 +01:00
Ludovic Marie 354cf20b02 Merge pull request #9592 from janibert1/host-send-map
🤖 Agent: This is a fragment only: Host::send_map wraps the existing native_send_map, and tests.test_stamp_native_hooks passes with it.
2026-11-05 02:48:41 +01:00
Ludovic Marie 32e5a325a7 Merge pull request #9563 from xxaxio/feat/9547-sources-dawn-client
🤖 Agent: Dawn Client is only one more place to find the player's own 26.3 jar and assets (cache/minecraft under .dawn). The tests check that nothing is fetched from Mojang.
2026-11-05 02:48:37 +01:00
Ludovic Marie 15be9febca Merge pull request #9534 from Joansitoh/fix/9528-server-pack-replace-loop
🤖 Agent: A replaced pack becomes a new entry and the old one is unloaded, as ServerPackManager.pushNewPack marks it SERVER_REPLACED, so the reload ends instead of looping.
2026-11-05 02:48:33 +01:00
Ludovic Marie 9207297b65 Merge pull request #9589 from DUzzL/fix/9569-ghast-seats
🤖 Agent: The four seats match the passengerAttachments of HAPPY_GHAST in 26.3's EntityTypes, and the index clamps as EntityAttachments.getClamped does.
2026-11-05 02:48:30 +01:00
Ludovic Marie 5efec909a5 Merge pull request #9519 from Delete228/data-driven-damage
🤖 Agent: No-pack worlds keep the existing preload. Only an overlay with damage-type definitions seeds SyncData at world entry, so the default path is unchanged.
2026-11-05 02:48:26 +01:00
VaspyyyandClaude Opus 5.5 cb9205a34f launcher: keep the mod browser's list from deleting files outside the game folder
The mod browser records what it installed in `mod-browser.json` in the instance folder, and
Update, Remove and turning a mod off act on each entry's `file` through `home.join(file)`.
Nothing checked that path: an absolute path replaces `home`, and `..` climbs out of it. A Java
modpack (`.mrpack` with a loader) copies every relative path from `overrides/` into the new
instance, so a pack could plant its own `mod-browser.json` with an entry such as
`"file": "/home/me/.ssh/id_ed25519"`, and the launcher would delete or rename that file when the
player clicked Update, Remove or the on/off toggle on the fake entry. Copying a Prism/MultiMC
instance folder could plant the same file.

- `Installed::load` now leaves out (and logs) any entry whose `file` isn't a relative path of
  plain names inside a folder the browser installs into (`mods/`, `resourcepacks/`,
  `shaderpacks/`, `horizon-mods/`, `horizon-native-mods/`), with at least one name below it.
- `Entry::path` applies the same check where files are removed or renamed (update, remove,
  toggle, Java ports, registry installs), so an entry that didn't come from `load` can't reach
  outside either.
- A modpack import never writes `mod-browser.json` (any case), and the other-launcher copy skips
  it.

Tests: a planted list with an absolute path, a `..` path, a path climbing out through `mods/`
and a bare `horizon-mods` keeps only the valid `mods/x.jar` entry; Remove and toggle leave a
file outside the instance untouched. A Java `.mrpack` with `overrides/mod-browser.json` imports
its mods but not the list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:48:10 +01:00
Ludovic MarieandClaude Opus 5.5 f87de22790 Merge main into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:46:31 +01:00
Ludovic Marie 3242adcfbb Merge pull request #9596 from xxaxio/fix/9391-native-mods-conflicting-pins
🤖 Agent: The mod id is read from the mixins.incoming/<id>/ path that stage_mixins writes, so the culprit named for E_MODULE_CONFLICT is right. I removed the Fixes lines for #9016 and #9414, which this PR does not fix.
2026-11-05 02:43:17 +01:00
Ludovic Marie 3c41dc04b8 Merge pull request #9525 from valkdzx/perf/behaviour-snapshot-key
🤖 Agent: The snapshots now key on a build.rs hash of the world sources, so a relink no longer throws them away, while a change to those sources still does.
2026-11-05 02:43:13 +01:00
Ludovic Marie 8ab7482d2f Merge pull request #9595 from Mayonesu0/fix/9465-launcher-game-tools-fallback
🤖 Agent: The launcher's own endpoint still wins when both games answer. A crashed game's file no longer counts (a TCP endpoint must accept its token), and a change of endpoint restarts the horizon-ctl child, whose Drop kills the old one.
2026-11-05 02:43:09 +01:00
Florian ERNSTandCodex 2ab3fcd728 Refresh H311 paired-proof checkpoint
Co-Authored-By: Codex <[email protected]>
2026-11-05 02:42:28 +01:00
Florian ERNSTandCodex 8738762519 Refresh H311 fixture branch from main
Co-Authored-By: Codex <[email protected]>
2026-11-05 02:38:45 +01:00
Ludovic Marie 21c7f45978 Merge pull request #9544 from dfrnoch/fix/atlas-animated-any-path
🤖 Agent: Animated strips are now cut to their first frame for every atlas directory source, not only item/ and block/, so a pack's own folder (wynn/) animates as vanilla's does.
2026-11-05 02:38:39 +01:00
Florian ERNSTandCodex 5bdab6c046 Add a frozen-player pufferfish contact fixture
Co-Authored-By: Codex <[email protected]>
2026-11-05 02:36:59 +01:00
Ludovic Marie 7716494c9a Merge pull request #9512 from CocofireHD/fix/9434-mcpr-crash-recovery
🤖 Agent: Recovery keeps only whole frames: the crashed .tmcpr.tmp is cut at its last complete packet record before it becomes an .mcpr, and a writer that may still be alive (its pid is checked) is left alone.
2026-11-05 02:35:29 +01:00
Ludovic Marie 249f21e8ba Merge pull request #9476 from itarqos5/perf/far-detail-off-the-frame
🤖 Agent: Applying detail now stops at DETAIL_BUDGET (3 ms) per frame and the rest waits in detail_backlog; with #9515 the widths reduction runs on the worker, so neither the burst nor its first read lands on the frame.
2026-11-05 02:35:24 +01:00
Ludovic Marie 6804926c56 Merge pull request #9483 from voidsipp/fix/9284-server-entity-sounds
🤖 Agent: Captured server sounds keep their entity, category and excluded player and go out between the entity's add and remove, so a client always knows the emitter when the sound arrives.
2026-11-05 02:35:20 +01:00
Ludovic Marie 6cdb23ac34 Merge pull request #9561 from degepie/fix/entity-killed-player
🤖 Agent: entity_killed_player fires from the guest's death with the blow read before the death message, as ServerPlayer.die does; the killer view stays on &self on top of #9494.
2026-11-05 02:35:15 +01:00
Ludovic Marie f8b542ecd3 Merge pull request #9478 from voidsipp/fix/end-gateway-passengers
🤖 Agent: End gateways now keep a same-level vehicle live and teleport it with its passengers. As you note, #9461's temporary mob_can_use_gateway restriction is no longer needed with this.
2026-11-05 02:35:11 +01:00
Ludovic Marie dd31fddcbf Merge pull request #9474 from voidsipp/fix/passenger-dimension-transitions
🤖 Agent: The whole vehicle tree moves through Entity.teleportCrossDimension's calculatePassengerTransition, with UUIDs and mount links restored, so riders keep their vehicles across /execute in … run tp.
2026-11-05 02:35:07 +01:00
Ludovic Marie 651e4de726 Merge pull request #9462 from voidsipp/fix/carpet-farm-regression
🤖 Agent: The coral-fan carpet fixture is coverage only (all 96 observations already matched on main), and it stays in the command-exec stack.
2026-11-05 02:35:03 +01:00
Ludovic Marie 541a186944 Merge pull request #9583 from KBroneZ/claude/cf-instance-metadata-1896a7
🤖 Agent: The version and loader are read from the instance's own files only when mmc-pack.json gave none, so MultiMC and Prism imports read as before.
2026-11-05 02:34:59 +01:00
Ludovic Marie 6589f8b5ac Merge pull request #9532 from DUzzL/fix/9509-crumbling
🤖 Agent: ModelBakery.DESTROY_STAGES_OIT exists in 26.3. The OIT crack sprites are picked only with improved transparency on, so the default look is unchanged.
2026-11-05 02:34:55 +01:00
Ludovic Marie 837df857b7 Merge pull request #9529 from Delete228/fix/macos-native-metadata
🤖 Agent: native-mods.json is refreshed through a fresh hardlink and an atomic rename, so nothing is written through the old link. native-data is a relative symlink inside the app bundle.
2026-11-05 02:34:51 +01:00
Ludovic Marie 708374adb8 Merge pull request #9527 from CocofireHD/fix/9454-started-riding-all-passengers
🤖 Agent: started_riding now fires for every ServerPlayer the vehicle carries (Entity.getIndirectPassengersStream), not only for the player who boarded.
2026-11-05 02:34:47 +01:00
Ludovic Marie 275566a6e9 Merge pull request #9579 from GabrielNichols/codex/native-build-culprit
Launcher: name mods in injected-helper compiler errors
2026-11-05 02:32:16 +01:00
Ludovic Marie 77c2adcc03 Merge pull request #9480 from megabytesme/codex/issue-9408-launcher-arch-choice
Launcher: choose game architecture independently on Windows ARM
2026-11-05 02:32:10 +01:00
Ludovic Marie e39fd11f76 Merge pull request #9510 from CocofireHD/fix/9332-world-name-space
🤖 Agent: The focused field now gets the space before any screen shortcut sees it, so typing a world name no longer switches the Create New World tab.
2026-11-05 02:31:26 +01:00
Ludovic Marie f4e1f960f3 Merge pull request #9504 from Ragbie/fix/summoned-dragon-gateway
🤖 Agent: The fight keeps dragon_uuid (vanilla's save key) and ticksSinceDragonSeen, as EnderDragonFight.tick does. A summoned dragon that dies after the fight no longer opens a gateway or gives 12000 XP.
2026-11-05 02:31:22 +01:00
Ludovic Marie e16d3d514d Merge pull request #9486 from loicpiller/bugfix/9472-pack-float32-targets-gl
🤖 Agent: renderable_float swaps only a float target the adapter cannot render (to 16-bit float, then Rgba8Unorm). Vulkan, Metal and DX12 keep the pack's declared format.
2026-11-05 02:31:18 +01:00
Ludovic Marie 00ad11cc8f Merge pull request #9485 from loicpiller/bugfix/9472-shader-pack-gl-rgba32float
🤖 Agent: The native pack surface only holds bit patterns, written with blend: None and read with textureLoad. Rgba32Uint keeps the same bits and can be rendered on wgpu's GLES backend.
2026-11-05 02:31:14 +01:00
Ludovic Marie d35137a08a Merge pull request #9481 from vnsmoreira/fix/lava-complementary-investigation
🤖 Agent: Fluid blocks win the material vote only for their own still and flowing sprites. Voting for every other sprite is unchanged, and the new test covers the shared fluid sprite.
2026-11-05 02:31:10 +01:00
Ludovic Marie e1d3361a55 Merge pull request #9468 from CocofireHD/fix/9455-dualsense-hid-crash
🤖 Agent: Any hidapi error now drops the output handle, so hid_write is never called on a handle whose pad has gone. Input reading is untouched.
2026-11-05 02:31:06 +01:00
Ludovic Marie 8aaec9379b Merge pull request #9466 from CocofireHD/fix/9088-management-protocol-timeout
🤖 Agent: The harness now fails on a server that is still up after server/stop (the #8245 regression the issue names), and it runs the same check on Windows paths.
2026-11-05 02:31:02 +01:00
Ludovic Marie cd62fe430a Merge pull request #9460 from loicpiller/bugfix/9089-peaceful-summon-zombie-horse-health
🤖 Agent: At midnight monsters_burn is false, so isSunBurnTick returns before its RNG draw on both sides. The zombie horse reference stops being random, and the comparison itself is unchanged.
2026-11-05 02:30:59 +01:00
Ludovic Marie f99c7f026a Merge pull request #9578 from Cheezer1656/native/client-entity-refs
🤖 Agent: On a client, entity handles read only what the server synced. Writes (set_velocity, merge_nbt, tags) return false, and a handle from another level's epoch reads None, so a client copy changes only when the server says so.
2026-11-05 02:30:54 +01:00
Ludovic Marie eaf8caba79 Merge pull request #9575 from Vaspyyy/labpbr-map-budget
🤖 Agent: With the default texture budget, map_bytes is still exactly 64 MiB, so nothing changes until a player raises textureBudgetMiB. The unit test pins both cases.
2026-11-05 02:30:50 +01:00
Ludovic Marie f31d71f9e3 Merge pull request #9568 from Cheezer1656/feat/world-primitives-hook
🤖 Agent: The primitives get their own pipeline at the end of the world pass, before the hand. With no subscribing mod the batch is empty and prepare() returns before any upload or draw.
2026-11-05 02:30:47 +01:00
Ludovic Marie 24c3886a70 Merge pull request #9567 from Cheezer1656/feat/mod-entity-outline
🤖 Agent: native_entity_outline starts from vanilla's own answer (team colour or white) and costs nothing without a listener; masking above 24 bits keeps the colour in range.
2026-11-05 02:30:43 +01:00
Ludovic Marie f748e51444 Merge pull request #9560 from degepie/fix/lenient-lang
🤖 Agent: Language.loadFromJson parses with a lenient Gson reader in 26.3, so packs with comments and unquoted keys now load their lang files instead of being dropped silently.
2026-11-05 02:30:38 +01:00
Ludovic Marie 9e86daa984 Merge pull request #9549 from Vaspyyy/fix/8049-entity-team
🤖 Agent: Team joins happen in remember_uuid, which every entity load goes through. An entity loaded without a UUID gets one first, since the scoreboard keys entities by UUID, as Entity.load does.
2026-11-05 02:30:35 +01:00
Ludovic Marie 662dafce77 Merge pull request #9548 from Vaspyyy/fix/8048-hoglin-cannot-be-hunted
🤖 Agent: The hoglin reads CannotBeHunted and writes it back only when set (Hoglin.addAdditionalSaveData), so bastion hoglins from the template are no longer hunted by their own piglins.
2026-11-05 02:30:31 +01:00
TheMrZZandCodex gpt-6.1-sol 0722c2498b Merge current main while preserving piston read coverage
Keep the upstream piston entity-tick-order group and the independent
live-piston presentation diagnostic.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 02:30:12 +01:00
TheMrZZandCodex gpt-6.1-sol 72535840fc Expose live moving-piston NBT to read commands
Read the authoritative tick entry with command metadata and source-aware
pretty ordering. Preserve default output and reject unsupported writes.
Cover the original pulse, a normal sticky pull, and scoped diagnostics.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 02:29:43 +01:00
Ludovic Marie 4724fc5d4f Merge pull request #9580 from TheMrZZ/fix/h307-named-smoke-predicate
🤖 Agent: The named predicate now uses the existing campfire smoke helper (CampfireBlock.isSmokeyPos: lit tagged campfire, first-blocker exception), and the real game command harness covers it.
2026-11-05 02:25:41 +01:00
Ludovic Marie db3193f31b Merge pull request #9556 from rison1337/native-gui-render-post
🤖 Agent: gui_render_post has a read-only host and draws nothing without a subscriber; the fragment is pending, so the API number is assigned at build time.
2026-11-05 02:25:37 +01:00
Ludovic Marie 841076d774 Merge pull request #9554 from gigamans442/fix/callable-macro-boundary-20261104
🤖 Agent: The replacement is rescanned together with the following source, as the C preprocessor does, and per-token hiding still stops recursion.
2026-11-05 02:25:33 +01:00
Ludovic Marie 63b5c2bbf7 Merge pull request #9545 from gigamans442/fix/terrain-chunk-fade-20261104
🤖 Agent: mc_chunkFade is injected only when the renderer supplies it and the pack's vertex program reads it, so packs that don't ask compile as before. The disclosed inputs are an MIT pack's API names only.
2026-11-05 02:25:28 +01:00
Ludovic Marie 36070a818e Merge pull request #9543 from JohnUzoka/perf/worldgen-noise-fill
🤖 Agent: The values are bit-identical (tabulated perlin corners, 4-column interpolation rows, branch-free range choice), and your noise snapshots compare byte for byte.
2026-11-05 02:23:14 +01:00
Ludovic Marie 5c2322455b Merge pull request #9541 from JohnUzoka/perf/worldgen-surface-pass
🤖 Agent: The surface pass gives the same blocks: positive_y_bounds only skips bands where the vein density is provably <= 0, and the material_condition probe covers the column reads.
2026-11-05 02:23:10 +01:00
Ludovic Marie a7e2844af7 Merge pull request #9538 from Vaspyyy/fix/8055-sound-ids
🤖 Agent: The three new ids exist in 26.3's sounds.json and SoundEvents, and the old ones were silent. Only the event names change.
2026-11-05 02:23:06 +01:00
Ludovic Marie 0201bf30db Merge pull request #9537 from JohnUzoka/fix/in-bed-chat-keyboard
🤖 Agent: Only the in-bed chat is left out of pad_auto_keyboard. Opening chat by hand still brings up the on-screen keyboard.
2026-11-05 02:23:02 +01:00
Ludovic Marie 5bbd72231e Merge pull request #9535 from JohnUzoka/feat/pad-nintendo-letters
🤖 Agent: nintendoLetters is off by default, and splitscreen's join prompts still go by position, so no existing pad layout changes.
2026-11-05 02:22:58 +01:00
Ludovic Marie d59b1e6dfc Merge pull request #9533 from JohnUzoka/fix/leave-bed-focus
🤖 Agent: Leave Bed is now recorded as a widget, so pad focus, the D-pad and Tab all reach it. The drawing is unchanged.
2026-11-05 02:22:53 +01:00
Ludovic Marie 21f674bce9 Merge pull request #9514 from TheMrZZ/fix/command-fixture-floor-isolation
🤖 Agent: Tooling only. Clearing the floor to air right before the exact stone fill makes the 256-block guard independent of the scenarios that ran earlier.
2026-11-05 02:22:48 +01:00
Ludovic Marie b1cf1085ba Merge pull request #9499 from degepie/fix/data-merge-vehicles
🤖 Agent: /data merge and /data modify now reload minecarts (the new Minecart::load) and boats, which matches EntityDataAccessor.setData running Entity.load on every entity but a player.
2026-11-05 02:22:44 +01:00
Ludovic Marie c369c0d07f Merge pull request #9498 from degepie/fix/minecart-display-offsets
🤖 Agent: MinecartChest.getDefaultDisplayOffset is 8 in 26.3. The exhaustive match over CartKind makes any new kind choose its own offset.
2026-11-05 02:22:40 +01:00
Ludovic Marie b9c47ac7d9 Merge pull request #9497 from degepie/fix/loot-location-check
🤖 Agent: Biome tags now load with the same pack overlay as the other loot tags, and location_check reads biomes through holder_set (#tag, one id or a list), the HolderSet codec LocationPredicate uses.
2026-11-05 02:22:36 +01:00
Ludovic Marie 033bd81cff Merge pull request #9496 from degepie/fix/item-component-bare-keys
🤖 Agent: keyed() compares full(key) for the four keys item predicates read, and the potion_contents value is normalised the same way, as the registry codecs behind ItemPredicate do.
2026-11-05 02:22:32 +01:00
Ludovic Marie af0ad4003a Merge pull request #9495 from degepie/fix/chicken-egg-event
🤖 Agent: This matches Chicken.aiStep: the sound and entity_place come only after a drop. One small RNG note: the pitch floats are still drawn before the loot roll, which only differs for a data pack that empties chicken_lay.
2026-11-05 02:22:29 +01:00
Ludovic Marie 8572e1a893 Merge pull request #9494 from degepie/fix/entity-nbt-predicate
🤖 Agent: No vanilla advancement has an nbt or reference predicate, so mob_to_nbt only runs for data packs that ask for it (Tree::index_nbt). player_entity_for now takes &mut self; #9561 and #9562 are stacked on that.
2026-11-05 02:22:25 +01:00
Ludovic Marie 9d48f1a3ce Merge pull request #9463 from TheMrZZ/fix/h299-mob-rider-navigation
🤖 Agent: riders::tick returns at once for a mob with no mount, so lending the vehicle's navigation costs nothing outside ridden vehicles. #9597's branch also carries this head (their oracles meet in the same switch).
2026-11-05 02:22:20 +01:00
Ludovic Marie 95dc9bddb8 Merge pull request #9458 from voidsipp/fix/piston-entity-tick-order
🤖 Agent: Piston block entities now tick after entity travel, the order ServerLevel.tick uses (entities, then blockEntityTicks). The new 6-tick wither skeleton fixture covers both stone and slime, and it matches all 24 observations.
2026-11-05 02:22:15 +01:00
rison1337andCodex GPT-6 5b1505425b Native mods: client Host services and lifecycle events
Expose owned client/window, entity/head and profile snapshots, GUI painting, persisted mod bindings, local action bars and older-server opt-in through Host. Add startup, disconnect, shutdown and menu-background notifications without changing default gameplay.

Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 06:19:22 +05:00
KBroneZandClaude Sonnet 5.5 b97abf48b4 docs: fix the block count in the climbing test fixture comment
The fixture lists three non-trapdoor blocks (bridge, pier, odd), not four.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 03:14:56 +02:00
Ludovic MarieandClaude Opus 5.5 ed84f8c172 Merge #9597 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:14:04 +01:00
Ludovic MarieandClaude Opus 5.5 bfe4d37504 Merge #9463 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:13:47 +01:00
ElyTheCatandOpenAI Codex 5e9c0a708f bench: add entity occlusion release captures
Add FPS-overlay captures from the release OpenGL benchmark for PR #8941. The measured source revision is d87992b.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-05 04:39:35 +03:30
KBroneZandClaude Sonnet 5.5 fad60b1924 fix: a mod block tagged as a trapdoor without open or facing no longer stops the start
ClimbingRegistry::new returned "invalid trapdoor open state" (or "invalid
climbing facing") for any state of a block in minecraft:trapdoors that lacked
a valid open or facing property. Macaw's Bridges adds blocks that are not
trapdoors (rail bridges with facing/powered, a pier with no properties) to
minecraft:wooden_trapdoors, so All the Mods 10 and Craftoria exited before the
window opened.

Vanilla's LivingEntity.onClimbable tests `instanceof TrapDoorBlock`, not the
tag, so such a block is not a trapdoor and never climbs. A tagged state now
counts as an open trapdoor only with facing and open=true; otherwise it is
skipped. The ladder's facing check is unchanged.

Fixes #9585

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 03:07:28 +02:00
Ludovic MarieandClaude Opus 5.5 3da7f7a2a5 Merge #9562 onto #9561 and #9494
Both #9494 and #9562 index advancement triggers (nbt, player facts) and widen
the player's view: kept both. player_entity_for adds the compound on &mut self;
player_entity_for_any (#9562) stays &self for its &self callers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:59 +01:00
Ludovic MarieandClaude Opus 5.5 af07813fe1 Keep the killer's view on &self after #9494
#9494 makes player_entity_for take &mut self to build the player's compound;
guest_entity_view (#9561) is &self, so it reads what the player looks at only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:39 +01:00
Ludovic MarieandClaude Opus 5.5 d4c48baf8c Merge #9561 onto #9494
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:32 +01:00
VaspyyyandClaude Opus 5.5 25b8c5d099 Collision scan: pass the cells of missing chunks and empty sections a row segment at a time
A far move (one move packet thousands of blocks away) made the server's
collision sweep walk every cell of the swept box, one query per cell:
a 2.3 s tick for a hop of 8,000 blocks, growing with the square of the
distance.

Two opt-in provider hooks let the scan pass, after one query, the rest of
a row inside the same chunk (at most 16 cells):

- missing_chunks_stay_missing: a chunk missing once stays missing for the
  scan (SceneCollisions, EntityCollisions, EmptyCollisions).
- section_is_empty: no state in the section's palette has a collision
  shape (SceneCollisions, cached per section in the scan).

Both default to false, so the parity probe, which records every query,
sees the same calls. Skipped cells yield nothing, so the collisions and
their order are unchanged.

Fixes #9594

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:19 +01:00
Ludovic MarieandClaude Opus 5.5 bd8d2916b7 Merge #9588 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:07 +01:00
Ludovic MarieandClaude Opus 5.5 793f2ead2b Merge #9552 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:07 +01:00
Ludovic MarieandClaude Opus 5.5 7ae746e633 Merge #9550 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:07 +01:00
Ludovic MarieandClaude Opus 5.5 080fd9da02 Merge #9531 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:06 +01:00
Ludovic MarieandClaude Opus 5.5 76f1c176f1 Merge #9516 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:06 +01:00
Ludovic MarieandClaude Opus 5.5 870e7b1cdd Merge #9513 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:06 +01:00
Ludovic MarieandClaude Opus 5.5 e45e23fc36 Merge #9482 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:05 +01:00
Ludovic MarieandClaude Opus 5.5 4e32a8ba35 Merge #9478 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:05 +01:00
Ludovic MarieandClaude Opus 5.5 f889e41fee Merge #9503 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:05 +01:00
Ludovic MarieandClaude Opus 5.5 de275afd6d Merge #9474 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:04 +01:00
Ludovic MarieandClaude Opus 5.5 08db1a74b8 Merge #9462 into the command-exec stack
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:05:04 +01:00
Florian ERNSTandCodex cdd00e29a3 Place boat items at the exact server POV hit point
Co-Authored-By: Codex <[email protected]>
2026-11-05 02:01:51 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 c724742f38 docs: HDR design note: clear coverage on blur, headroom read per frame
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:00:06 +01:00
Ludovic MarieandClaude Opus 5.5 d687fe6cad Merge #9515 (worker-side widths reduction) into the detail budget
Both add a test at the end of lod's tests; kept both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:58:17 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 fc15467786 docs: HDR design note: HUD coverage in its own target, alpha left as today
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:57:02 +01:00
Ludovic MarieandClaude Opus 5.5 a97b284ddb Studio: drop a needless return (clippy)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:56:49 +01:00
Ludovic MarieandClaude Opus 5.5 530635f250 Format the LabPBR budget test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:53:01 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 e770b6a684 docs: HDR design note: HUD in gamma on a unorm backdrop with explicit coverage, blur keeps light
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:52:59 +01:00
AxxioandAntigravity 57c29198e5 launcher: name the mod in E_MODULE_CONFLICT and log conflicting pins (fixes #9391, #9016, #9414)
Managed, architected and reviewed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-05 01:52:07 +01:00
Ludovic MarieandClaude Opus 5.5 8944278cdb Merge origin/main into fix/9284-server-entity-sounds
dispense_fixture: main's event_sound lines with this branch's CapturedSound fields.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:50:03 +01:00
JanandClaude Sonnet 5.5 f9e5774b2c Native mods: Host::send_map, the drawn-map sender (native_send_map) as a Host helper
native_send_map (API 132) sends a 128 x 128 map picture to a player but was
not in the helper catalog, so a trait mod could not call it. One catalog
fragment adds it to Host as send_map(uuid, map_id, colors) -> bool.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 01:44:46 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 207adf0d13 docs: HDR design note: linear blending in 0.2, exact HUD composite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:42:18 +01:00
MegaBytesMe 1f55f9ecfc fix(launcher): select ARM64 resource tools for native builds 2026-11-05 00:41:18 +00:00
Ludovic Marie b368b50c60 Merge pull request #9577 from xxaxio/fix/9505-dx12-terrain-flat-fxc
🤖 Agent: binding the slot origin to a let first matches vs_section_flat_opaque/cutout; it is compatible with #9584's packed_corner change, which fixes the other X3500 site in the same shader.
2026-11-05 01:40:01 +01:00
Ludovic Marie 1936541d03 Merge pull request #9584 from DUzzL/fix/9551-fxc-terrain
🤖 Agent: checked the select() rewrite of packed_corner: rel = (i - axis) mod 3 gives the axis component +side, the next +du, the last +dw, the same values as the old indexed stores, with no dynamic l-value for FXC.
2026-11-05 01:39:56 +01:00
Mayonesu0andClaude Opus 5.5 7975ff7942 Launcher MCP: reach a game started from its window with Agent Control on
The launcher's game_* tools only looked at the endpoint in its data folder,
so a game the player started, which listens on the game's default endpoint,
answered "not running under agent control". Each call now goes to the first
endpoint where a game answers, the launcher's own first, restarting the
horizon-ctl child when that changes: an installed horizon-ctl keeps the
endpoint it started with.

Whether a game answers is now tested on Windows too, with the endpoint's port
and token, rather than by the file existing: a crashed game leaves the file.

Fixes #9465

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:39:00 +01:00
Florian ERNSTandCodex 194324b652 Support live item component contents slot sources
Co-Authored-By: Codex <[email protected]>
2026-11-05 01:34:11 +01:00
Ludovic Marie 0d0bf67a24 Merge pull request #9436 from xxaxio/fix/8689-change-instance-icon
🤖 Agent: Queued. The home icon and the new ⋯ Edit instance item open the existing edit dialog. In the palette, the instance's saved picture stays offered after another icon is picked, so the player can go back to it without choosing the file again. Both new labels already have translations in launcher/lang.
2026-11-05 01:32:57 +01:00
Ludovic Marie 422ad93339 Merge pull request #9518 from xxaxio/fix/9507-launcher-join-button-overlap
🤖 Agent: Queued. The invite field's right padding now follows the Join label's width (14 px padding each side, about 8.5 px per character at 14 px), so the longest translations (Bulgarian and Latvian, 15 characters) get 175 px instead of 84 and the button no longer covers the code. In the wide layout the field grows by the same amount (340 to 431 px at most), which comes out of the row's flexible gap. English stays at 84 px.
2026-11-05 01:32:53 +01:00
abit-foggyandCodex 99c629e96e feat(studio): add recording capture
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:29:52 -10:00
DUzzL 69f4bdb829 Seat each happy ghast passenger at its own attachment point 2026-11-05 01:29:29 +01:00
Ludovic Marie 1f2658e5a5 Merge pull request #9487 from xxaxio/fix/9438-container-loot-tables
🤖 Agent: Queued after a small fix on the branch. On main, barrels, shulker boxes, hoppers, dispensers and droppers already load as BlockEntity::Chest, so #9189 already covered them. This PR's real change is that a LootTable id the codec rejects no longer counts as a table, which matches vanilla 26.3's tryLoadLootTable (KEY_CODEC read, then null). I folded the four copied tests into one table test and made roll_loaded_loot read the id the same way, so an invalid table with no items rolls nothing. Desktop run: clippy -D warnings clean, horizon-client-core 63 tests, horizon-client 895 tests, horizon-client-lib 1718 tests.
2026-11-05 01:29:18 +01:00
Ludovic Marie b8d113b761 Merge pull request #9251 from horizon-rust/pvp/preset
🤖 Agent: the preset only sets PvP & HUD options and vanilla's toggle-crouch, and turns on the official fps/keystrokes mods only if they are installed. Verify passes at 41c0e4080 (the stack's top: workspace clippy -D warnings clean on the desktop).
2026-11-05 01:29:14 +01:00
Cheezer1656 5ea6d5415e Merge remote-tracking branch 'upstream/main' into feat/world-primitives-hook
# Conflicts:
#	crates/horizon-client/src/game/native_hooks.rs
2026-11-04 17:27:48 -07:00
Ludovic MarieandClaude Opus 5.5 604991a5c9 save: one table test for the randomizable containers, and roll_loaded_loot reads the table as tryLoadLootTable does
The barrel, shulker, hopper, dispenser and dropper copies of the chest test
become one table-driven test. A loaded container whose LootTable the codec
rejects now rolls nothing, as vanilla keeps no table for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 01:27:21 +01:00
Ludovic Marie 16ea866df9 Merge pull request #9250 from horizon-rust/pvp/chat
🤖 Agent: after martipops's review, the chat search puts the typed text aside and gives it back on every exit path, a compact repeat keeps a reader's scroll, and search and copy skip legacy § codes (tests for the last two). Compact chat still never merges signed messages. Verify passes at 4984cc061.
2026-11-05 01:26:42 +01:00
Ludovic Marie 763e220a0f Merge pull request #9249 from horizon-rust/pvp/view-time-weather
🤖 Agent: the own time of day and weather change only what this client draws (sky, lightmap, rain); the world's day_time and weather, and everything that plays by them, stay the server's, and nothing is sent. Off by default. Verify passes at cd788cd4c.
2026-11-05 01:24:08 +01:00
Ludovic Marie c8e787810c Merge pull request #9248 from horizon-rust/pvp/visual-tweaks
🤖 Agent: the visual tweaks (low fire, clear water/lava fog) are off by default and stop at the clearest view vanilla itself gives. docs/pvp.md now says they can matter on strict servers (from martipops's review on #9250). Verify passes at d2dafa504.
2026-11-05 01:21:44 +01:00
Ludovic Marie 8db0b47cff Merge pull request #9247 from horizon-rust/pvp/numeric-enchants
🤖 Agent: numeric enchantment levels change only the tooltip's displayed numeral (off by default); the enchantment data and the rest of the tooltip stay vanilla. Verify passes at 6eae1c73b.
2026-11-05 01:19:19 +01:00
Ludovic Marie 7298c80f8f Merge pull request #9246 from horizon-rust/pvp/hud-info
🤖 Agent: after martipops's review, the combo counts a hit only when the server's damage event names this player as the direct entity (spear jabs included, teammates' hits and fire ticks not), the off server widget no longer allocates each frame, and ping shows nothing before the first latency update. Verify passes at 3842a7aee.
2026-11-05 01:16:56 +01:00
Ludovic Marie aff293b08a Merge pull request #9245 from horizon-rust/pvp/hud-items
🤖 Agent: the armour, held-item and effects widgets read only what the client already holds, and the effects widget replaces vanilla's icons only while it is on (all off by default). Verify passes at f9f1b5abf, with main 6319cb701 merged in; no harness is touched, so parity-main covers it.
2026-11-05 01:14:28 +01:00
TheMrZZandCodex gpt-6.1-sol 9d95fe645b Use campfire smoke rules in named location predicates
Delegate the predicate view to the existing lit and occlusion-aware smoke
helper. Cover both predicate signs, callback stores, slab exceptions and
positive world guards through the real command runtime.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 01:10:40 +01:00
DUzzL ae257923c1 Fix FXC X3500 in terrain shader: no dynamic vector component stores 2026-11-05 01:10:06 +01:00
KBroneZandClaude Sonnet 5.5 10c3813399 fix(port-pack): read version and loader from a CurseForge app instance
Importing a CurseForge app instance folder left minecraft, loader and
loader_version empty, because instance() read them only from
mmc-pack.json. Fill them from minecraftinstance.json (gameVersion,
baseModLoader.name), falling back to manifest.json via the existing
curseforge() parser. minecraftinstance.json wins: it records what the
instance runs, while manifest.json is the pack author's copy and goes
stale when the player changes version or loader in the app. A Fabric or
Quilt id's trailing Minecraft version is not part of the loader version.
Missing or broken files never fail the import; mmc-pack.json behaviour
is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-05 02:07:02 +02:00
MegaBytesMe 4631d96891 Merge remote-tracking branch 'upstream/main' into codex/issue-9408-launcher-arch-choice
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-05 00:01:36 +00:00
AxxioandAntigravity af3026b999 gfx: bind flat terrain slot origin to local variable for FXC (fixes #9505)
In vs_section_flat (crates/horizon-client-render/src/terrain.wgsl), passing the nested dynamic storage buffer expression slot_origins[block_slots[s.slot >> 8u]] directly into corner_vertex(s.c, ...) causes Direct3D 12's HLSL compiler (FXC for SM 5.1) to fail during 'Terrain solid (flat)' pipeline creation with: error X3500: array reference cannot be used as an l-value; not natively addressable.

Like vs_section_flat_opaque and vs_section_flat_cutout, bind the sampled origin to an intermediate local variable first, letting naga emit a load into a temporary r-value before the function call.

Co-Authored-By: Antigravity <[email protected]>
2026-11-05 01:01:18 +01:00
GabrielNichols 99035b09ad fix(launcher): attribute injected-helper compiler errors 2026-11-04 20:59:20 -03:00
Claude ce86945277 Size LabPBR maps from the texture budget
LabPBR normal and specular maps had a fixed 64 MiB budget, so with about
1300 block layers they always loaded at 64 px, however high
textureBudgetMiB was set. They now get a quarter of the current budget:
the default budget keeps the old 64 MiB, and 1536 MiB gives 256 px maps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XnU6QPo9BpqkYWfY6y5Nwu
2026-11-04 23:55:03 +00:00
Cheezer1656andClaude Opus 5.5 9002abcdea Native mods: entity handles and menu stacks on a client
native_entity and the entity_*/living_* reads now work against the
entities the server shows the window (own player, other players, mobs,
armor stands with their custom names and equipment, tracked-only
entities by type and position); a fresh epoch per client level keeps
handles from crossing levels or sides. Writes are refused and saved
data and tags read as None on a client. native_menu_stacks gives the
open server menu's stacks, with components, by server slot number.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:54:14 -07:00
ElyTheCatandOpenAI Codex d87992bdf3 perf(entity-culling): reduce occlusion query overhead
Skip doomed async work while the camera moves, reduce synchronous voxel-plane lookups, and cull dynamic block entities before generating their geometry. Reuse chest state and remove dye-prefix sorting from the block-entity hot path.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-05 03:23:26 +03:30
Ludovic MarieandClaude Opus 5.5 41c0e40804 Merge 4984cc061b into pvp/preset
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:29 +01:00
Ludovic MarieandClaude Opus 5.5 4984cc061b Merge cd788cd4c7 into pvp/chat
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:29 +01:00
Ludovic MarieandClaude Opus 5.5 cd788cd4c7 Merge d2dafa504c into pvp/view-time-weather
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:28 +01:00
Ludovic MarieandClaude Opus 5.5 d2dafa504c Merge 6eae1c73b4 into pvp/visual-tweaks
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:28 +01:00
Ludovic MarieandClaude Opus 5.5 6eae1c73b4 Merge 3842a7aee2 into pvp/numeric-enchants
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:28 +01:00
Ludovic MarieandClaude Opus 5.5 3842a7aee2 Merge f9f1b5abfc into pvp/hud-info
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:27 +01:00
Ludovic MarieandClaude Opus 5.5 f9f1b5abfc Merge 6319cb701e into pvp/hud-items
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:48:27 +01:00
Ludovic Marie 6319cb701e Merge pull request #9244 from horizon-rust/pvp/outline-hit
🤖 Agent: block outline and hit colour stay render-only and off by default; verify and parity pass at 4adfac92b. The composter fix #9508 is merged in. pack_screen's failures came from the playhorizon runner missing 142 vanilla lang files: the files were copied there and it passes now.
2026-11-05 00:48:10 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 10566037aa docs: HDR design note: per-channel tint factor for the vignette
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:46:43 +01:00
Ludovic Marie 11aa3b57ce Merge remote-tracking branch 'origin/main' into cg41/9487 2026-11-05 00:46:04 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 66ec8716b3 docs: HDR design note: keep the vignette on light above white
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:44:02 +01:00
Cheezer1656andClaude Opus 5.5 9897711a34 Native mods: world primitives hook (lines, boxes, beams, text)
native_world_primitives runs once per world frame and hands a client mod a
batch of world-coordinate primitives: lines with a width, box outlines and
filled boxes in ARGB, beacon-style beams and camera-facing text in the game
font (optionally scaling with distance). Each can be seen through walls.

The game tessellates them camera-relative and the renderer draws them with
its own pipelines (gfx/world_primitives) at the end of the world pass,
after the entities and before the first-person hand: the world's reversed
depth, draw resolution and TAA jitter. A GPU test shows depth-tested quads
and lines hidden behind a wall while see-through ones show.

Closes #9555

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:41:21 -07:00
Nikita Maximilian GrimmandClaude Opus 5.5 670c72c42c docs: HDR design note: keep 0.1 on today's path, HUD as today, rebuild on frame changes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:41:01 +01:00
Cheezer1656andClaude Opus 5.5 a23690ed84 Native mods: force or remove an entity's glowing outline; budget visuals per mod
native_entity_outline(entity_id, kind, outline) lets a client mod make any
mob, player, dropped item or projectile glow in its own colour, or take the
outline away (Fabric/NeoForge isCurrentlyGlowing and team colour overrides).
Vanilla's answer comes in; only what the client draws changes.

native_visuals no longer shares 8 rims and 256 edges between all mods: each
trait mod is dispatched on its own and gets 256 rims, 4096 rim edges and
8 lights. A panic in a mod dispatched alone still names the right mod.

Closes #9553

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:40:08 -07:00
AxxioandAntigravity d9869348a5 launcher: auto-detect Minecraft 26.3 installs from Dawn Client (fixes #9547)
Dawn Client stores its official vanilla Minecraft assets, libraries, and client jar in .dawn/cache/minecraft/ rather than the default .minecraft directory.

Add Dawn Client default folders to known_folders, include cache/minecraft in find(), resolve Dawn sync/instance directories upwards to the launcher root in resolve(), and update troubleshooting advice.

Co-Authored-By: Antigravity <[email protected]>
2026-11-05 00:37:16 +01:00
rison1337andCodex GPT-6 f48484a37a Native mods: final GUI overlay and current-frame camera
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-05 04:31:17 +05:00
Nikita Maximilian GrimmandClaude Opus 5.5 cf82881271 docs: design note for linear light in HDR and shader API 0.2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:29:14 +01:00
Florian ERNSTandCodex 6077d43cc9 Round-trip generic mob home NBT through live state
Co-Authored-By: Codex <[email protected]>
2026-11-05 00:28:10 +01:00
TheMrZZandCodex gpt-6.1-sol 5639d42a34 Handle boat callers in execute on leasher
Read the boat's existing resolved leash state and reuse the holder
conversion already used for mobs. Keep pending saved UUIDs separate.

Cover pending, live and unleashed contexts through the real Game command
path, with typed subjects, callbacks, stores and measured clocks. Retain
movement as a separate raw diagnostic and isolate the harness directory.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-05 00:21:42 +01:00
degepieandClaude Opus 5.5 5b94ce351c Advancements: a guest's death triggers read the blow before the death message
The death message takes the combat record's entries and leaves them
empty, so entity_killed_player and kill_mob_near_sculk_catalyst, which run
after it in guest_die, saw no killing blow while show_death_messages was
on: any killing_blow condition failed. ServerPlayer.die reads the
CombatTracker for its triggers before recheckStatus clears it at the end,
so the blow is now taken before the message is built.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 04:13:33 +05:00
gigamans442andCodex 53aeeaff45 Preserve recursive hiding through empty paste operands
Keep the nonempty operand's token metadata when pasting with an empty operand.
Original GCC/Clang controls and the pristine-main control retain the following
call's parentheses; add that regression to the boundary suite.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-04 18:13:10 -05:00
dfrnochandClaude Opus 5.5 77c059b347 Resource packs: an animated item sprite outside item/ and block/ shows one frame in the GUI
A pack's items or blocks atlas can list its own folders (Wynncraft's `wynn/...`). Their animated
strips were packed whole, so a 16x32 two-frame item drew both frames squashed into its slot.
They now keep their first frame and animate, as vanilla does for every sprite of those atlases;
a still texture there stays whole.

Fixes #9540.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:12:00 +01:00
VaspyyyandClaude Opus 5.5 13766ed75d Entities join the team their Team key names when they load
Entity.load: a string Team adds the entity's UUID to that scoreboard team
when it exists, so /summon ... {Team:"red"} and structure or data pack
entities join it. Team is only read, as in vanilla, so the kept compound
drops it.

Fixes #8049

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:09:32 +01:00
VaspyyyandClaude Opus 5.5 f5af9d2d45 Hoglins keep CannotBeHunted, and piglins don't hunt the ones that have it
Hoglin.readAdditionalSaveData/addAdditionalSaveData keep the CannotBeHunted
flag (a bastion's hoglins are placed with it), and Hoglin.canBeHunted is
false for them: PiglinSpecificSensor never picks them as prey and a hit
from one doesn't rally the piglins around.

Fixes #8048

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:09:30 +01:00
gigamans442andCodex 47684e0f4a fix(shaders): route terrain fade through pulled geometry vertices
Initialize the implicit input per source vertex and isolate it from geometry-stage globals, with original paired and GPU controls.

Co-Authored-By: Codex (GPT-6.1 Sol) <[email protected]>
2026-11-04 18:08:03 -05:00
John Uzoka 5ee6d9da54 Controllers: a Nintendo pad can go by its letters (A confirms)
A Nintendo pad's face buttons are lettered the other way round from an Xbox pad's: A sits on
the right and B at the bottom. Going by position (SDL's layout, the default), B confirms and
jumps and A goes back, while the Switch's own menus and keyboard confirm with A.

PadSettings::nintendo_letters (`nintendoLetters` in horizon-controller.txt; off unless set, on
in a build for the Switch itself) reads a Nintendo pad's face buttons by their letters: A plays
South (confirm, jump), B East (back, drop), X West, Y North (Button::by_letter,
PadState::by_letter). It applies to a player's pad state, read from the pad or fed by
splitscreen's router, before horizon-ctl's virtual pad is merged; splitscreen's join and
lost-controller prompts, which a controller nobody holds yet answers, stay by places. Bindings
still name the part, so they mean the same either way. With Nintendo glyphs, the binds list and
the on-screen keyboard's hints name the button that plays each part (OptionsUi::pad_by_letter).
docs/controllers.md describes the setting.

Test: horizon-client-input gamepad::tests::a_nintendo_pad_by_its_letters_confirms_with_a, and
the settings round trip.

(cherry picked from commit fb2490c02, reworked onto main)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:37 -06:00
John UzokaandClaude Opus 5.5 e4d981d3d5 Controllers: Leave Bed takes the focus on the in-bed chat
On the in-bed chat (InBedChatScreen) the pad and the keyboard could only reach the chat box:
Leave Bed was drawn with screen_draw::button, which registers no widget, and focus only lands on
what a frame registers (key_focus::drawn_targets). Game::leave_bed_draws records it as a button
at the bounds the click checks, so the pad's focus starts on it (pad_first_target's first
button), D-pad up from the chat box reaches it, the keyboard's Tab reaches it as vanilla's does,
and A or Enter wakes the player.

Test: game::chat::tests::leave_bed_is_a_focus_target_above_the_chat_box.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:35 -06:00
John UzokaandClaude Opus 5.5 0d2fb5307e Controllers: the in-bed chat doesn't open the keyboard by itself
A sleeper gets InBedChatScreen, a chat screen the game opens on its own. With a pad in use,
pad_auto_keyboard opened the on-screen keyboard over it (Steam's on a Steam Deck) as if the
player had opened chat to type, every time the player lay down. The keyboard now waits for A
on the chat box there; chat the player opens still brings it up. docs/controllers.md says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:32 -06:00
John Uzoka fe47a52ef0 Storage: packed reads and writes inline into other crates
PackedStorage::read and write are the per-block word accesses of section
fills and lookups in horizon-world (BlockSection::set and fill_run, the
terrain fill's solid runs, surface column reads). Without #[inline] each
was an out-of-line call across the crate boundary that recomputed the
slot; inlined, the caller's loop keeps the slot arithmetic and word
access in place. Behavior is unchanged.

(cherry picked from commit 680cabdba245cd9c373fde94164377353c952785)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:30 -06:00
John Uzoka 2dbfdf9faf Density: a bulk range choice selects with a branch-free loop
The in-range/out-of-range merge stored the out-of-range value only where
the selector was outside the range, a conditional store LLVM leaves as a
branch per value (unpredictable for noise selectors). It now writes
every value as a select between the in-range and out-of-range samples,
which vectorizes; the selected values are the same.

(cherry picked from commit 5434c4113f94d6fa98a56f581eea1f8d27ac1352)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:30 -06:00
John Uzoka 671e36dd9e Density: interpolation fills a cell's four-column rows side by side
A block volume's interpolated values come from repeated addition down
each column, one dependent chain per column. A cell row four columns
wide (every row of a 4-wide cell inside the volume) now advances its
four chains together, writing each column's value before adding its
increment, so their additions overlap instead of waiting on each other.
Each column keeps the same operations in the same order. Corner samples
are read through precomputed column offsets instead of a checked 3D
index per corner. Partial rows, and rows whose columns fail validation,
keep the one-column-at-a-time loop and its error order.

(cherry picked from commit 11964a2c3ed6dc8752ef46f3a05ed27d0c36602d)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:30 -06:00
John Uzoka 5f39ba3424 Noise: a perlin volume tabulates its corner terms when y cells change often
A column's corner XZ dot products and Y gradients depend on the y cell
only through each corner's gradient index. When a volume's y samples
change cell at least four times, each column tabulates the sixteen
gradients' terms once (the same operations as before) and every cell
change reads them, instead of loading three gradient components and
computing two products per corner. The per-y cells, fades and offsets
are kept as separate lanes. High-frequency octaves (the top ten of the
blended noise's limits) gain the most; values are bit-identical.

(cherry picked from commit f3bf17341351a1e02028434765195f5c252b2d24)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:29 -06:00
John UzokaandClaude Opus 5.5 2af20b88de Docs: ore veins are sampled and applied only within the y range their density can be positive
(cherry picked from commit 066ecb8b40a849cb597ad484d01fd6926a182a5d)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:27 -06:00
John Uzoka 40971a96a5 Density: a y gradient fills a volume by copying one computed column
Volumes are laid out with y contiguous in each column, so the y-axis
gradient computes the first column and copies it into the others,
instead of storing each value at a stride across every column. The
values, and the error on a zero-period gradient, are as before.

(cherry picked from commit b01ee5606dc23caea2713954a71987aa76c37a00)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:27 -06:00
John Uzoka 3872944113 Worldgen: the surface walk reads each column by section runs and keeps block kinds
A column is filled from its sections: an all-air or one-state part at
once, a mixed section from its storage. Beside each id the cache keeps
whether the block is air, fluid or solid, so the walk and its
stone-depth look-ahead no longer look the properties up per read. The
band is stepped down as the walk descends instead of searched per block,
and the column's minimum surface level is read once.

(cherry picked from commit a88b3f32dfd283741de6e149708b5325a90a4386)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:27 -06:00
John Uzoka a5fec952dd Worldgen: ore veins leave the surface bands where their density cannot be positive
An ore vein places nothing where its density is not positive, and
returns before drawing its positional random there. Rule libraries read
from the density graph where that holds (DensityGraph::positive_y_bounds:
a range choice on a clamped y gradient whose out-of-range value is a
constant <= 0, as vanilla's copper and iron veins are), so datapack
ranges are followed. The surface pass splits its y bands at those
bounds, drops each vein from the bands outside them, makes each band's
variant on first use, and does not set up a block whose variant gives
nothing. The veins' up-front densities are sampled over one shared
volume cut at the highest y a vein reaches; cutting a volume's top
leaves the values below it as they were.

(cherry picked from commit 8c101d76d544e84987274b8c01b44a0811430eb9)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:27 -06:00
John Uzoka bf29005bb2 Worldgen: the surface pass skips heightmap updates that cannot change anything
A write at or below a heightmap's first available y - 2 leaves it as it
is (Heightmap::update returns early). Each surface column now carries
that bound per stage map, as fill_noise does, refreshes it when a map
changes, and calls Heightmap::update directly above it, without the
repeated registry and ensure_heightmap checks. A missing map still goes
through set_block_worldgen, which primes it.

(cherry picked from commit 2015977dfeb33f38d64be64b9b643a3059544d2a)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:59:27 -06:00
Florian ERNSTandCodex c44b53ebaf Apply server lava-contact damage to XP orbs
Co-Authored-By: Codex <[email protected]>
2026-11-04 23:58:27 +01:00
JoansitohandClaude Sonnet 5.5 5bcabf145e Server packs: a reload names its packs by identity, so a replaced pack ends (#9528)
ServerPackManager keeps packsToLoad and packsToUnload as ServerPackData
objects; the port kept ids, and a pack pushed again with an active pack's id
was set active again after every reload: an endless resource reload.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 23:52:13 +01:00
VaspyyyandClaude Opus 5.5 7bcb47b1e9 Play the turtle egg break, conduit short ambient and campfire douse sounds under their 26.3 ids
Three sounds were played under ids that 26.3's sounds.json doesn't have,
so they were silent: block.turtle_egg.break (entity.turtle.egg_break),
block.conduit.ambient_short (block.conduit.ambient.short) and
block.generic.extinguish_fire (entity.generic.extinguish_fire).

Fixes #8055

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:50:38 +01:00
DUzzL c1e5d33c42 Use the OIT destroy-stage sprites for breaking cracks with improved transparency 2026-11-04 23:50:18 +01:00
degepieandClaude Opus 5.5 c66ca9f1f6 Advancements: the player predicate tests stats, advancements, recipes and level; inventory_changed tests its player
PlayerPredicate's stats, advancements (done or per criterion), recipes and
level were read by nothing, so criteria using them were granted to anyone.
They are now tested as PlayerPredicate.matches does. The player's records
are copied into its view only for the triggers whose criteria may ask
(Tree::player_facts_asked) and for the command predicates that name them
(facts_asked_in); a field asked of records not filled fails.
inventory_changed now also tests the criterion's player conditions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKjxbXfo4yzskjMcNq
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 03:48:28 +05:00
degepieandClaude Opus 5.5 3e0d3737b1 Advancements: a player's death fires entity_killed_player
ServerPlayer.die calls awardKillScore on the entity
getKillCredit names, which fires ENTITY_KILLED_PLAYER (KilledTrigger) for
the dying player with that entity and the death's damage source. Nothing
fired it: guest_die, every server-side player death, now does, between
the deathCount scores and the deaths statistic.

The killer lookup and the killing blow the sculk catalyst trigger built
for the same death move into shared helpers, and KilledTrigger's matching
into advancements::killed, unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKfuWtefRGy97WTU4a
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 03:47:20 +05:00
gigamans442andCodex 78e6faaf23 Merge accepted main for current-base qualification
Refresh the accepted base before publication. The shader/core/backend inputs
and contribution/build rules are unchanged; rerun required checks on this head.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-04 17:45:19 -05:00
CocofireHDandopencode e8f5473926 Fire started_riding for every player on the vehicle
Entity.startRiding(entityToRide, force, sendEventAndTriggers) runs
CriteriaTriggers.START_RIDING_TRIGGER for every ServerPlayer in
entityToRide.getIndirectPassengersStream() once the rider link is set, not
only for the entity that mounted. Horizon fired the trigger at each mount
site for the acting player alone.

Route every rider-link change through Game::start_riding /
note_started_riding, which queues the vehicle and fires
trigger_started_riding for each server player aboard (directly or through a
mob rider). A guest's turn defers the pass to tick_lan, where every player is
back in place. The per-site trigger_player calls are gone; cushions,
minecarts, /ride on a mob and mobs boarding boats/carts now fire it too.

The new boarding test pins the indirect-passenger set (direct rider, rider of
a rider, and an unrelated vehicle).

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 23:43:17 +01:00
Delete228andCodex 69e6298905 Fix macOS game bundle native build companions
Refresh the native build receipt independently of the executable and expose runtime data through a relative directory link. Remove stale companions for vanilla builds and preserve unexpected app-side data on errors.

Fixes #9521

Co-Authored-By: Codex <[email protected]>
2026-11-05 01:41:13 +03:00
valkdzx cdbb5792d5 Merge remote-tracking branch 'origin/main' into perf/behaviour-snapshot-key 2026-11-05 00:37:31 +02:00
valkdzxandClaude Opus 5.5 56e06994d3 Startup: keep the behaviour and registry snapshots across rebuilds
The snapshots in .horizon-cache keyed on the executable's modification
time, so every rebuild of the game threw them away and the first start
parsed facts.json and block-behaviours.json again. They now key on a hash
of the code that resolves them (horizon-world and horizon-core sources,
their manifests, Cargo.lock, profile, target and rustflags), computed by
horizon-world's build.rs.

Fixes #9522

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:37:31 +02:00
gigamans442andCodex df1c2f8fd3 Fix callable macro expansion across source boundaries
Rescan replacement tokens with the remaining source while preserving per-token
recursion hiding through argument substitution and pasting. Recognize calls
continued after expanded names and retain their original source locations.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-04 17:33:51 -05:00
Florian ERNSTandCodex e1255d97f0 Handle unprepared data in the quad-leash regression
Keep the resource-backed physics assertions active when the fixture runs, and follow the existing optional-data convention in ordinary CI.

Co-Authored-By: Codex <[email protected]>
2026-11-04 23:29:23 +01:00
degepieandClaude Opus 5.5 c9b4417f04 Lang: read resource pack lang files leniently, as Gson does
A lang file that is not strict JSON (comments, unquoted or single-quoted
strings, raw control characters...) was dropped without a word, so a
resource pack whose lang files carry comments showed nothing. Strict files
read as before; the others go through the existing Gson lenient JsonReader
port, as Language.loadFromJson is expected to read them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMLmvSqLicupMqfESW8
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 03:29:16 +05:00
gigamans442andCodex 7e7e6dc482 fix(shaders): expose terrain section visibility to fade-aware packs
Supply mc_chunkFade from the encoded section transition and advertise FADE_VARIABLE without changing native terrain rendering.

Co-Authored-By: Codex (GPT-6.1 Sol) <[email protected]>
2026-11-04 17:27:53 -05:00
Ludovic MarieandClaude Opus 5.5 4adfac92b7 Merge origin/main into pvp/outline-hit
Brings in #9508 (composter fixture fix) so parity can pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:27:35 +01:00
Florian ERNSTandCodex c2973c43e9 Merge main before quad-leash CI repair
Co-Authored-By: Codex <[email protected]>
2026-11-04 23:25:22 +01:00
AxxioandAntigravity 882149912a launcher: dynamic right padding for friend invite code input (fixes #9507)
In localized versions of the launcher where the 'Join' button has a longer label (such as French 'Rejoindre', German 'Beitreten', Ukrainian 'Приєднатися'), the static right padding of 84 px caused the button to overlap the placeholder text and entered digits.

Compute right padding dynamically based on localized button text length and adapt the container width on wide screens accordingly.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 23:24:15 +01:00
Florian ERNSTandCodex c0f778ae98 Widen float constants in experience-orb underwater movement
Preserve the double operations around vanilla float drag, buoyancy and cap constants. Pin six executed Java method vectors and guard the real Game water and air tick paths.

Co-Authored-By: Codex <[email protected]>
2026-11-04 23:21:54 +01:00
Ludovic Marie 83ad384f48 Merge pull request #9508 from horizon-rust/fix/composter-fill-fixture-sound
🤖 Agent: the composter regression from #9069 was only the fixture: play_unshared kept the fill sound out of audio.capture, so the probe lost its S line on every fill; the S line now comes from level event 1500 (data > 0 = fill_success, LevelEventHandler case 1500). composter + dispenser harnesses pass on the desktop at this head; pr_ready --quick green except the nix-shell's missing uname.
2026-11-04 23:19:36 +01:00
Florian ERNSTandCodex gpt-6.1-sol 1eb6fe5cc3 Reset command fixture floors before exact fill guards
Clear the floor in loaded-cloud and nautilus fixtures before asserting that filling it changes all 256 blocks. Retain strict controls and cover fresh, partially stone, and fully stone prior states.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 23:18:52 +01:00
itarqos5andClaude Opus 5 0e96b88a53 perf(far terrain): the worker reduces the widths detail reads, not the frame
Corrects #8815, which made `ReducedColumns`'s levels lazy and said "neither
is the render thread, so no frame can stall on it". `Lod::apply_detail`
runs on the render thread and reads a reduction for every tile over the
chunk, so the first read of a width built it there: #8815 did not remove
that work, it moved it onto the frame.

A `lod_reduce` span inside the build (kept, it is what makes this
visible) separates the reduction from the column copying around it.
Flying over far terrain at lodDistance 256: of 14844 ms that `lod_detail`
spent over 140 slow frames, `lod_reduce` was 14140 -- 95% of it. The
`Arc::make_mut` copies are the other 5%.

The far terrain thread now builds the widths `apply_detail` reads before
it sends a chunk's columns on. Same world, same flight, limiter off:
average FPS 84.0 -> 164.0, 1% low 3.2 -> 77.6, p99 229.8 -> 9.3 ms,
`update` 6.4 -> 0.9 ms, slow frames 140 -> 2, and `lod_reduce` on the
render thread 14140 ms -> 0.

The widths are learned, not derived from the plan: `apply_detail` reads a
tile only where it is in `ready`, which the plan does not say, and taking
every level the plan holds would be the eager behaviour again.
`apply_detail` sets a bit as it reads, so the first chunk of a width
still reduces on the render thread and every chunk after it finds the
work done. Bits are never cleared, so the worst case is all four levels
-- the pre-#8815 cost, off the frame. `OnceLock` stays, so an unwarmed
width is still built on demand and the mask is an optimisation rather
than a correctness requirement.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-04 22:18:20 +00:00
CocofireHDandopencode 9833b68bf9 Studio .mcpr: recover a crashed recording to its last whole frame
A recording writes its packets to `<name>.mcpr.<pid>-<nanos>.tmcpr.tmp`,
but the session metadata only reached `metaData.json` inside the archive at
`finish`, so a crash left a stream nothing could identify. The writer now
writes the metadata to `<stream>.meta.json` when recording starts and flushes
the stream and the sidecar together about once a second of recording.

On the next recording in that folder, `recover_crashed_recordings` packages
each leftover stream into a valid `.mcpr` beside it, cut to its last whole
frame (the same `frame_at` definition the reader uses), stamped with the
sidecar (or defaults when there is none) and dated from the stream when it
has no metadata. A stream whose writer may still be running is skipped (own
pid, `/proc` on Linux, or the exclusive lock a live writer holds), and a
stream with no whole frame is kept with its metadata and logged rather than
deleted.

Part of #9434 (items 2-5 follow).

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 23:16:56 +01:00
Ludovic MarieandClaude Opus 5.5 441a9ea0fb PvP chat: search keeps the typed text; repeats keep the scroll; no § codes
Review on #9250 (martipops's agent):
- Ctrl+F puts the box's text aside and gives it back when the search
  stops; whichever way the chat closes during a search (Escape, death, a
  server-opened screen), the draft is that text, never the query.
- A compact-chat repeat no longer moves a reader scrolled up: only lines
  it adds do.
- Search and copy on click read the message without legacy § codes, as
  the chat shows it.
- docs/pvp.md says plainly that clear water, clear lava and a fixed time
  of day see further than vanilla at that moment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:15:03 +01:00
CocofireHDandopencode c34d0b2866 Text fields accept spaces while a field has focus
A focused EditBox is the screen's focus, so Space and Enter are its text (charTyped), as in vanilla. The keyboard focus the previous screen left on a widget (the Create New World tab bar, for one) no longer presses it before the key reaches the world name field. The resource-loading title shares this path, so the seed, a server's address and the rename field are fixed with it. Space still jumps in gameplay.

Fixes #9332

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 23:13:40 +01:00
Ludovic MarieandClaude Opus 5.5 896aa14a6b PvP HUD: count combo hits by the damage's attacker; no idle allocation
Review on #9246 (martipops's agent):
- The combo counts a hurt report whose direct entity is this player
  (melee and spear jabs) and ignores one that names someone else; a
  report naming no attacker (Horizon's LAN hub for player victims) still
  counts only as the answer to the last swing.
- The server-address widget copies the address only while it is on.
- The ping widget shows nothing while the tab entry still reads 0 (the
  server resends latency every 600 ticks).
- own_latency moved below remote_player_attack, whose doc comment it had
  taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:13:11 +01:00
TheMrZZandCodex gpt-6.1-sol b8fd1e1456 Honor dropped-item stack-size overrides during merges
Reuse the effective stack-limit helper for neighbour merging and keep the
transfer under the separate 64-item cap signed. Preserve age and pickup
delay updates for zero and negative transfers.

Add guarded Game command coverage for component limits, ordinary and
incompatible pairs, counter inheritance and count conservation, plus a
regression for overstacked transfers.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 23:11:58 +01:00
Ludovic MarieandClaude Opus 5.5 c03e0b9ffb Dispense fixture: report the composter fill sound from level event 1500
#9069 plays `ComposterBlock.handleFill`'s sound unshared (the client that
receives event 1500 plays it, `playLocalSound`), so the audio capture no
longer saw it and the composter harness lost its `S … composter.fill*`
line on every fill (use 570, hopper_in 266, dispense 209 differing on
main 1989b1b59). The fixture now adds that line from the level event, as
it already did for the lava fizz (1501): `data > 0` is fill_success, as
in `LevelEventHandler` case 1500.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 23:00:43 +01:00
MegaBytesMe be26de3fee Launcher: choose game architecture independently on Windows ARM 2026-11-04 21:52:40 +00:00
Florian ERNSTandCodex 1686cd755a Dispatch eligible mob leashes through quad physics
Use the live holder eligibility and preserve the float lookup, yaw and angular-friction boundaries needed by quad attachments. Keep single-spring arithmetic unchanged.

Co-Authored-By: Codex <[email protected]>
2026-11-04 22:47:11 +01:00
Delete228andCodex 002cf12bf2 Refresh lazy sync cache admission on pack reload
Update the current-overlay marker before a complete wire snapshot exists. Preserve frozen gameplay damage definitions while allowing the first no-pack wire load to be cached after all packs are removed.

Cover reuse through an absent resource root, route the existing pre-hub reload regression through the helper, and require the tenth prepared-resource case in the catalog parity harness.

Co-Authored-By: Codex <[email protected]>
2026-11-05 00:43:54 +03:00
Evrim CicekandClaude Opus 5.5 bc8eb368b0 The dragon fight takes only a living dragon, and scans legacy worlds as vanilla
findOrCreateDragon passes over a dying dragon (ServerLevel.getDragons
takes living ones). scanState makes a living dragon the fight's, and
removes it for a new one when there is no active exit portal. The
harness now runs with a player too: arriving in the End beside a dying
dragon, and after the fight is won.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:41:10 +03:00
MegaBytesMe 52186ab1ff feat(launcher): build native mods on Windows ARM64 2026-11-04 21:40:29 +00:00
AxxioandAntigravity 2d88181b0f save: give loot tables precedence over saved items for barrels, shulkers, hoppers, dispensers
Leave randomizable-container inventories empty when their NBT supplies a valid loot table, allowing chunk loading and command paths to retain the table. Barrels, shulker boxes (and colored variants), hoppers, dispensers and droppers now match chests and vanilla 26.3 RandomizableContainerBlockEntity behavior. Invalid or absent loot-table keys continue to preserve saved items.

Fixes #9438

Managed and reviewed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 22:26:43 +01:00
Evrim CicekandClaude Opus 5.5 31f4897c3e Only the End fight's own dragon wins it when it dies
EnderDragonFight keeps its dragon's UUID (dragon_uuid) and
setDragonKilled acts only for that dragon, so one summoned in the End
after the fight is won dies with 500 experience and no gateway. The
fight takes the End's dragon, or makes one, as findOrCreateDragon does:
at once without a dragon of its own, else 1200 ticks after it last saw it.

Closes #9464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:12:47 +03:00
Florian ERNSTandCodex 52c79cedb1 Respect entity-ticking loading status in execute loaded
Require completed saved-entity application and loading status without changing simulation or physical unload policy.

Co-Authored-By: Codex <[email protected]>
2026-11-04 22:07:56 +01:00
Loïc PILLERandClaude Sonnet 5.5 5c4ebb36c3 test(render): check the surface keeps NaN, signed-zero and denormal bits exactly
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 22:06:57 +01:00
Loïc PILLERandClaude Sonnet 5.5 c7ab3b851c docs(shaders): note scene_surface is texture_2d<u32> in the changelog
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 22:06:57 +01:00
Loïc PILLERandClaude Sonnet 5.5 8785a07edc fix(shaders): fall back to a renderable format for float pack targets on OpenGL
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 22:06:56 +01:00
Loïc PILLERandClaude Sonnet 5.5 4d90e9db43 fix(render): store native shader pack surface as Rgba32Uint
Rgba32Float is not a render attachment on wgpu's OpenGL backend without
EXT_color_buffer_float, so enabling a native shader pack crashed there
(#9472). The surface holds float bit patterns anyway; store them as
Rgba32Uint (always renderable), bitcast on write in the material stage and
on read in surface_at. Pack-facing API (set_surface, surface_at) is unchanged.
Adds a GPU test that a written surface reads back bit-exact through the post stage.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 22:02:13 +01:00
Florian ERNSTandCodex aef74cd095 Merge latest main for loaded-command checks
Co-Authored-By: Codex <[email protected]>
2026-11-04 21:58:37 +01:00
Ludovic Marie 63eccfc355 Merge pull request #9469 from horizon-rust/feat/moderation-commands-tree
🤖 Agent: verified: verify green; pr_ready --quick 2677 Rust tests + clippy pass (only Python failure is test_install_sh_signature: no uname on NixOS PATH); 2-client proof on a dedicated server with the SMP mod: ops' clients complete /tempban and /mutelist, non-ops don't; /mute with a duration blocks chat, /msg, /tell, /w, /me but not other commands; /tempbanlist lists timed bans; a 5 s ban ends by itself. Risk to watch: the extras' names are dropped from the mods' level map so a mod registering /mute still never sees it (the game intercepts first, as before).
2026-11-04 21:57:38 +01:00
Delete228andCodex 21f2b5381a Keep wire data lazy outside damage-definition packs
Freeze only the gameplay damage entries until the first hub needs complete synchronized data. Preserve no-pack preloads and prevent late helpers or pre-hub reloads from changing the session damage registry.

Co-Authored-By: Codex <[email protected]>
2026-11-04 23:56:25 +03:00
voidsipandCodex 2274fda8a7 Carry live vehicles and riders through End gateways
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:53:31 -06:00
itarqos5andClaude Opus 5 cb6a80698c perf(far terrain): a frame spends 3 ms applying detail, not a whole burst
`Lod::receive` drained the whole results channel every frame. A detail
request asks for 512 chunks and cached ones answer at once, and applying
one copies the columns of every tile over it (`Arc::make_mut` on a
snapshot a mesh job shares) and reduces the chunk to that tile's cell
width. A burst in one frame cost 273 ms of it on the render thread.

`horizon-ctl stats` over far terrain at lodDistance 256 put the cost in
`update` (avg 29.9 ms, 540.5 on slow frames) and not in rendering (2.6
ms) or on the GPU (avg 9.1 ms), with a median frame of 6 ms;
`HORIZON_SPIKES` named the path: update_world / lod_update / lod_results
/ lod_detail, 104 slow frames in 20 seconds.

A frame now spends at most DETAIL_BUDGET on summaries and leaves the
rest in `detail_backlog`. Same binary, same flight, limiter off:
average FPS 94.4 -> 133.6, 1% low 3.7 -> 42.1, p99 156.2 -> 20.1 ms,
worst frame 739.7 -> 34.2 ms. p50 is 0.6 ms worse, the budget's work
spread out rather than dumped into one frame. The fill did not slow:
settling to fully refined took 19 polls against 45.

`request_detail` returns early while any summary waits, which is not
optional: without it a chunk whose summary is still waiting has its
mask clear, so it is asked for again and the cache answers at once. The
backlog then grew by a request every 250 ms and never drained -- 0.5
FPS, `update` averaging 9.7 s a frame.

`refreshed_since` moves from arrival to application: a refresh over the
chunk while its summary waited still drops it.

Corrects #8815, which said the lazy reduction could not stall a frame
because neither the far terrain nor the far meshing thread is the render
thread. `apply_detail` runs on the render thread and reads a reduction,
so the first read of a width builds it there. The budget bounds it;
warming the plan's widths on the worker thread is a separate change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-04 20:49:06 +00:00
voidsipandCodex 8f5f91f2f0 Carry vehicle passengers through command dimension teleports
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:48:13 -06:00
Florian ERNSTandCodex 6489310c36 Add guarded distance-two loaded-command reproduction
Co-Authored-By: Codex <[email protected]>
2026-11-04 21:47:27 +01:00
degepieandClaude Opus 5.5 abb4ac9c7e Commands: /data merge and modify write minecarts and boats
EntityDataAccessor.setData loads the merged compound into any entity but a
player; Horizon answered "Nothing changed" for carts and boats. Minecart
gets a load() that reads the saved fields over a live cart (from_nbt now
uses it), apply_entity_nbt gains Cart and Boat arms that keep the merged
compound, and guests get commands.data.entity.invalid like the player.

The test compound uses the 26.3 DisplayState form (a block name); a second
test checks that merging only a name keeps fuel, push, fuse and Enabled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMK3XzCYMyeKEdamets
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 01:46:30 +05:00
degepieandClaude Opus 5.5 1dd609c4c0 Minecarts: a chest cart's default display offset is 8
MinecartChest overrides getDefaultDisplayOffset with 8; Horizon gave the
chest cart the base 6, so its chest drew 2/16 too low, DisplayOffset saved
at the wrong value and the synched default was off. default_display_offset
now matches every CartKind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMK3XzCYMyeKEdamets
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 01:46:30 +05:00
ViníciusandCodex 5d9bf650a4 Fix fluid sprite material ownership
Prefer fluid blocks when resolving material IDs for their still and flow sprites, preventing a cauldron material from being assigned to fluid surfaces. Add regression coverage for shared fluid sprites and existing block voting.

Co-Authored-By: Codex <[email protected]>
2026-11-04 17:46:25 -03:00
voidsipandCodex 156ae180f8 Preserve entity-bound server sounds and late pairing
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:41:51 -06:00
Delete228andCodex 7a3f407a54 Merge current main and retain world suffocation bindings
Keep main suffocation registration and the world damage catalog together when loading world tables. Preserve all intervening upstream changes without rewriting existing PR history.

Co-Authored-By: Codex <[email protected]>
2026-11-04 23:41:36 +03:00
CocofireHDandopencode 38487aed11 DualSense: drop the output handle on any hidapi error
hidapi's bundled C can crash inside hid_write on Windows once the pad has
gone (Bluetooth sleep or unplug), and flush() only handled a returned
error, not a crash inside the call. Treat the output as lossy:

- probe the pad with a non-blocking read before every write, so a gone
  device is noticed before hid_write is entered;
- drop the handle on any hidapi failure (read or write), never writing
  through it again;
- schedule a rescan in lost() so the writer goes back through the normal
  scan/reopen path instead of keeping a stale handle;
- watch_animation() now drops the pad on a failed read too.

The handle is a small trait so the writer's state machine is unit-tested
without hardware. There is no vanilla reference: this is Horizon-only
hardware output.

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 21:40:30 +01:00
Delete228andCodex a085aa324b Merge main while preserving native and entity-bound ticking sounds
Keep the vanilla EntityBound reference/canPlaySound path alongside native-owned ticks. Extend the channel-backend regression to cover paused pitch/position, public stop, release and stop-all cleanup.

Co-Authored-By: Codex <[email protected]>
2026-11-04 23:40:18 +03:00
Delete228andCodex 0ec0e8e440 Merge current Horizon main into native world canvas PR
Preserve upstream reload-listener and native API exports beside the world canvas type. No rebase or force-push.

Co-authored-by: Codex <[email protected]>
2026-11-04 23:40:05 +03:00
CocofireHDandopencode 92549691c2 Management harness: run on Windows, name a server up after stop
The regression behind #9088 was #8245: a stop that doesn't come from the
supervisor's stdin or the control API left the supervisor in its stopped
phase, so `horizon-server --dir … run` outlived the management
`server/stop` and the harness's `wait(timeout=180)` raised TimeoutExpired.
#9077 fixed that (`Shared::shut_down`), on the base of this branch, and the
harness passes here again.

What the harness still left open, and what this fixes:

- It could not run on Windows at all. It wrote the absolute keystore path
  into vanilla's server.properties with single backslashes, which Java's
  properties parser reads as escapes ("C:UserscocoAppData…"), so vanilla
  stopped before the first request. Values are now escaped as vanilla writes
  them, and the harness runs here.
- A server that stays up after `server/stop` was reported as a bare
  TimeoutExpired. `wait_for_exit` waits for the process to end, which is the
  condition the issue was about (vanilla's `ServerStateService.stop` submits
  `MinecraftServer.halt(false)`, so `runServer` returns and `main` ends the
  process), and its failure names the side and the last lines it logged.
  The seconds each server took are kept in report.json: vanilla 3.4 s and
  Horizon 0.5 s here, against the 180 s budget.

Fixes #9088

Co-Authored-By: opencode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 21:38:07 +01:00
TheMrZZandCodex gpt-6.1-sol 752b573fc7 Share vehicle navigation with controlling mob passengers
Lend the vehicle navigation to passenger goals using the vehicle's path
context, while retaining each mob's private navigation tick. Apply the
controller policy and ravager goal flags without requiring a combat target.

Add a guarded real Game/Java regression for patrol and stroll behavior,
including NoAI riders, non-controlling slime riders and a NoAI vehicle.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 21:34:22 +01:00
voidsipandCodex 9382056060 Compare carpet farm production against vanilla
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:32:57 -06:00
degepieandClaude Opus 5.5 684215609b Advancements: item predicate component keys read as minecraft: ones
An item predicate's `components` and `predicates` are keyed by registry
ids (DataComponentType and DataComponentPredicate.Type, read through the
registries' name codecs), so "potion_contents" is
"minecraft:potion_contents". `fn item` looked the keys up only in their
full form: a bare key was skipped and let every stack pass. It now finds
them through `full()`, and compares the potion_contents value as a
registry id too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 01:26:41 +05:00
degepieandClaude Opus 5.5 4d613080c2 Chickens play the egg sound and post entity_place only when an egg drops
Chicken.aiStep rolls the chicken_lay gift table first and plays
entity.chicken.egg and posts GameEvent.ENTITY_PLACE only when
dropFromGiftLootTable dropped something; the egg timer resets either way.
Horizon played the sound before the roll and posted no game event, so a
sculk sensor never heard a laid egg.

A new MobEvent::LayEgg carries the pitch (drawn in the same place as
before); its handler rolls the loot and gates the sound and the game event
on a drop. drop_gift_loot now returns whether it dropped; the other
GiftLoot callers (turtle, panda, sniffer) are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 01:26:41 +05:00
degepieandClaude Opus 5.5 909d2e6960 Loot: location_check matches biome tags
A loot `location_check` whose `biomes` named a tag (`#minecraft:is_jungle`)
never matched: the loot data did not load biome tags. `LocationPredicate.biomes`
is a HolderSet, so the arm now reads it with `LootData::holder_set` (a
`#tag`, an id or a list of ids), and the loot data loads the
`worldgen/biome` tags with the world's packs over the game's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 01:20:19 +05:00
Loïc PILLERandClaude Opus 5.5 7ac56ee53c fix(parity): run peaceful_summon at midnight so zombie horses do not burn
Zombie horses are in the burn_in_daylight tag; Mob.isSunBurnTick rolls
every tick, so a horse could catch fire in the two-tick window and the
vanilla reference read 24 Health instead of 25 (#9089).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 21:14:10 +01:00
Florian ERNSTandCodex c940740feb Isolate crafting parity runs and retain qualified advancement recipe IDs
Co-Authored-By: Codex <[email protected]>
2026-11-04 21:11:03 +01:00
voidsipandCodex f063e900e1 Tick moving pistons after entity travel
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:04:41 -06:00
voidsipandCodex 60244bf97e Update entity-bound sound port ledger after #9382
Co-Authored-By: Codex <[email protected]>
2026-11-04 13:59:12 -06:00
degepie b42692f7a2 Merge remote-tracking branch 'origin/main' into fix/dp-block-nbt
# Conflicts:
#	crates/horizon-client/src/advancements.rs
2026-11-05 00:54:47 +05:00
Florian ERNSTandCodex fff83b42e3 Merge current main before crafting-priority review fixes
Co-Authored-By: Codex <[email protected]>
2026-11-04 20:52:33 +01:00
GabrielNichols 99b0ab1f18 fix(port-pack): invalidate stale harness verdicts 2026-11-04 16:49:44 -03:00
Florian ERNSTandCodex 6650b343b3 Dispatch accepted command-hit reinforcements synchronously
Co-Authored-By: Codex <[email protected]>
2026-11-04 20:49:07 +01:00
DUzzL abe568d446 Don't swing the hand when a mob interaction is CONSUME on the client 2026-11-04 20:48:05 +01:00
Ludovic MarieandClaude Opus 5.5 4be5ea8a3a Server: moderation commands in operators' command tree, /mute [duration], /tempbanlist
/tempban, /mute, /tempmute, /mutelist and /unmute worked on dedicated servers but were left out of the
command tree, so operators' clients showed them as unknown commands with no completions, and the
official server's operators believed only permanent bans existed. They now reach the trees of
operators of level 3 (as a native mod's commands do), where the game runs them: the mute commands
when the server filters chat, the ban ones on a dedicated server.

/mute <player> [duration] [reason] takes a duration after the name (/tempmute stays), and
/tempbanlist lists the bans that end by themselves, soonest first, with who banned, the time left,
the end and the reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:46:19 +01:00
utophii a0cf173b1f fix(ci): address musl release review feedback 2026-11-04 22:41:13 +03:00
degepieandClaude Opus 5.5 33bdcf863a Advancement entity predicates test the entity's nbt
`adv::entity` had no `minecraft:nbt` arm, so every entity predicate with
`nbt` fell to `_ => false`: a villager's profession, a mob's Variant, a
CustomName, the player's Inventory or SelectedItem never matched.

EntityNbtPredicate.matches: the entity's compound from
NbtPredicate.getEntityTagToCompare (saveWithoutId, plus SelectedItem for a
player) tested with NbtUtils.compareNbt(..., true), which
`nbt_path::compare_nbt` already is.

- `EntityView` gets the compound (`nbt`); `entity` parses the SNBT pattern
  and compares; no compound or an unparsable pattern fails.
- `Tree::index_nbt` notes the triggers whose criteria mention `nbt` (or a
  `minecraft:reference`), like `index_looking_at`, so the compound is
  built only when a criterion may ask.
- `mob_entity` builds the mob's compound (`mob_to_nbt`, riders under
  `Passengers`); `player_entity_for` the player's, through `player_nbt`,
  the player arm of `/data get entity` moved out of `entity_nbt_in_level`.
- A bred child's view, a copy of its parent's, drops the parent's data.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-05 00:40:54 +05:00
utophii 3f9b7bc8bb Merge remote-tracking branch 'upstream/main' into fix/2282-musl-build 2026-11-04 22:36:45 +03:00
Florian ERNSTandCodex 794a3c3531 Merge current main after frozen reinforcement checks
Co-Authored-By: Codex <[email protected]>
2026-11-04 20:32:32 +01:00
Ludovic Marie 1989b1b595 Merge pull request #9210 from Ragbie/fix/silent-dragon-death
🤖 Agent: a dragon saved or summoned with Silent:1b no longer plays the global 1028 death roar at tick 1 of its death; Silent is read from the compound Horizon keeps for unmodelled fields, and the new dragon_death_roar harness compares the level events against vanilla's. The branch passed the cg-39 union run on playhorizon (horizon-client 887 tests); main merged to clear an unrelated lan::conn flake.
2026-11-04 20:31:56 +01:00
Ludovic Marie b50b218667 Merge pull request #9430 from horizon-rust/cg39/kept-text-epoch
🤖 Agent: follow-up to martipops's #9228 review: kept mod block-entity text is keyed on the font atlas epoch, so a resource reload rebuilds it instead of drawing stale glyphs (KeptKey test covers it); docs say what spin, draw_text and native_block_face_sprite really do. fmt, clippy and 7 tests on Linux; the larger points are #9431.
2026-11-04 20:29:38 +01:00
Ludovic Marie 53ea8a56f6 Merge pull request #9227 from TheLion102009/api/fluids
🤖 Agent: tanks take mods' own fluids; before the helpers get numbers, native_fluid_flow now names its dimension and answers none for an unloaded chunk, and a cauldron reports no room for a mod's fluid so native_move_fluids answers none as documented. Stamp test, clippy and 17 fluid tests pass on Linux; a per-tank filter is #9439.
2026-11-04 20:29:34 +01:00
Ludovic Marie c6e4d0a293 Merge pull request #9220 from voidsipp/fix/8848-raider-celebration-sync
🤖 Agent: Raider.IS_CELEBRATING (index 16, BOOLEAN) now reaches clients, and the new lan test pins it through mob_meta itself: with the mob_raider_meta call removed it fails, so the server half of #8848 can't silently drop out. Main merged (the #9271 part is gone from the diff); 4 celebration tests and clippy pass on Linux.
2026-11-04 20:29:29 +01:00
Ludovic Marie bb9bc915af Merge pull request #9278 from abit-foggy/codex/studio-mcpr
🤖 Agent: the .mcpr reader no longer trusts the file: entries are capped (1 MiB metadata, 1 GiB stream), one frame parser serves the index and playback so a huge or zero length ends the stream cleanly, and seeking starts at the first packet of a millisecond. finish renames a synced temp over the destination with Zip64 and keeps the packets on failure. 9 studio tests on Linux, verify green on 56fd928f5; the rest is in #9434.
2026-11-04 20:29:25 +01:00
Ludovic MarieandClaude Opus 5.5 655118b776 Mod fluids: a cauldron has no room for a mod's fluid; fluid_flow takes a dimension and answers none when unloaded
native_move_fluids promised none when the target has no room for that
fluid, but an empty cauldron reported a bucket of room for any fluid, so
a move drained the source and put it all back, answering 0 and marking
the chunk each time. native_fluid_flow is new here: it now names its
dimension, as native_fluid_tanks does, reads a server's parked levels,
and answers none for an unloaded chunk instead of a zero that looked like
still water.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:25:48 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 5cea1b3475 Math.sin and Math.cos on Windows round like vanilla's
jmath::sin and jmath::cos used the platform's libm on x86-64, which on
Linux (glibc) rounds like HotSpot's x86-64 intrinsics for all but about
0.2% of arguments. Microsoft's rounds differently for about 3%, so on
Windows item drops, mob goals and worldgen features came out a last bit
off vanilla's, and drops_match_vanillas_motion_bit_for_bit failed there.

On Windows they are now correctly rounded (jmath::exact, double-double
arithmetic with a fast path), which HotSpot's are for all but about 0.1%.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:25:34 +01:00
Axxio ebaf4e7d21 launcher: allow editing instance icon from home and preserve picture in dialog (fixes #8689)
Clicking the instance icon on Home or selecting 'Edit instance' in the
folder group more menu now opens the instance dialog. In the dialog,
clicking the large preview icon opens the image picker, and existing
pictures remain selectable in the palette.

Managed by Axxio.
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 20:23:35 +01:00
Ludovic MarieandClaude Opus 5.5 6b078a2bc7 Merge main into #9227
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:23:31 +01:00
Ludovic Marie 35e219c5de Merge pull request #9385 from Ragbie/fix/transfer-test-race
🤖 Agent: merging. Ignoring only the hello's send error is enough: data the server sent before closing stays readable after the reset, so the Disconnect is still read and the test still checks the refusal. Proof: on a union with main and #9382 the test passed five runs in a row; fmt, clippy -D warnings and the client-lib tests pass.
2026-11-04 20:23:20 +01:00
Ludovic Marie d65158a6af Merge pull request #9382 from voidsipp/fix/9284-entity-bound-sounds
🤖 Agent: merging. The order matches SoundEngine.tickInGame: stop when canPlaySound is false (the entity went silent), then tick, where EntityBoundSoundInstance.tick stops on isRemoved or else copies the entity's position as floats; the packet's seed now picks the variant, as handleSoundEntityEvent does. The per-tick cost is one entity lookup per playing bound sound. Proof: union with main and #9385: fmt, clippy -D warnings, Python tests, 2634 client and client-lib tests, the render audio (20) and sound_engine (10) tests, and the entity_bound_sound and sound_engine harnesses against vanilla pass.
2026-11-04 20:23:15 +01:00
Ludovic MarieandClaude Opus 5.5 742da4c639 Test that mob_meta sends a raider's celebration
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:20:31 +01:00
Ludovic MarieandClaude Opus 5.5 d4d8a5a4bc rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:17:00 +01:00
Florian ERNSTandCodex a8f829f9c8 Merge current main before reinforcement dispatch change
Co-Authored-By: Codex <[email protected]>
2026-11-04 20:16:08 +01:00
Ludovic MarieandClaude Opus 5.5 7df3a5dd64 Merge main into #9220
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:15:56 +01:00
Arslan ArmanulyandClaude Opus 5.5 e7e4c7c2d3 Shader packs: terrain parts after a failed part, program.enabled, buffer sizes
Review of #9176:

- A split part whose program exists but doesn't load, or whose pipeline
  can't be built, no longer leaves the other part drawing alone: neither
  draws, and the game draws all terrain, as when an unsplit pack's terrain
  program fails. Iris 1.11.7 turns the whole pack off for our probe whose
  gbuffers_terrain_cutout doesn't compile.
- A part with no program in its chain still draws nothing while the other
  draws alone, now with a note: Iris 1.11.7 left the other part undrawn
  with our probes having only gbuffers_terrain_solid, or only
  gbuffers_terrain_cutout.
- Loader::has honours program.<name>.enabled, as load does: Iris drew all
  terrain with gbuffers_terrain for our probe that turns its
  gbuffers_terrain_solid off with program.gbuffers_terrain_solid.enabled=false.
- Post::every_program lists terrain_cutout, so buffer_minimums counts the
  storage blocks the cutout program binds.

Part of #9137

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 00:15:41 +05:00
Ludovic MarieandClaude Opus 5.5 56fd928f57 Merge main into #9278
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:14:04 +01:00
Ludovic MarieandClaude Opus 5.5 f41eeab87e Studio .mcpr: bounded reads, one frame parser, safe finish
- The reader caps metaData.json at 1 MiB and recording.tmcpr at 1 GiB,
  so a hostile archive can't exhaust memory, and never allocates from a
  length field: indexing and next_packet share one frame parser, stop at
  the first frame that isn't whole, and agree on the packet count.
- Seeking lands on the first packet of a millisecond (partition_point);
  a timestamp going backwards is indexed at the time before it.
- Fields ReplayMod can leave out read as defaults; protocol is optional;
  a file whose fileFormat isn't MCPR is refused.
- finish writes the archive to a sibling file, syncs and renames it over
  the destination, with Zip64 for the stream; on failure the stream file
  is kept and the error names it. A dropped writer keeps its packets, a
  failed write stops further frames, and the stream name can't collide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:13:59 +01:00
Ludovic Marie 1f90d6f9ae Merge pull request #9275 from lightcodegit/snbt-parser-depth-cap
🤖 Agent: the SNBT depth cap is now 256 rule frames (about 63 nested compounds or 13 levels of nested container items), measured on playhorizon: 384 already overflows a 2 MiB debug thread stack, the size the server thread runs on. New test deep_real_values_still_parse keeps 50 compounds and 10 container levels parsing; 42 horizon-command tests pass, verify green on 54142077f.
2026-11-04 20:10:01 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 ea94327688 HORIZON_STILL: a native mod's chat line too, a warning in the log, wait a second after a step
From review: a native mod's chat line was stamped with the client's
ticks while chat follows the world's under the switch, so it could
vanish at once. The switch now logs a warning when it is on, the
docs say to wait a second after a step (the server's time arrives
once a second), and reseed's doc comment no longer sits between
random_glyph and its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:07:42 +01:00
Ludovic Marie 11f72f81fc Merge pull request #7725 from deloskiytbackup/feature/realms-support
🤖 Agent: Ludovic allowed Realms with the player's own account (2026-11-04). At 08874a1622 the review's five points are fixed: the join runs on a worker, Leave asks first, the /join/pc address is checked as host:port, requests send only vanilla's sid cookie (a local-server test shows no Authorization header and the token missing from errors), and the world-pack question comes first. Proof: desktop fmt, clippy -D warnings, 1,700 client-lib tests; verify is green on this head.
2026-11-04 20:06:04 +01:00
Ludovic Marie a7ec4259d6 Merge pull request #9419 from horizon-rust/feat/claim-no-paddle
🤖 Agent: launcher side of the free Founder Set claim where Paddle doesn't sell; the service part is live (horizon-cosmetics#11). Risk: the button only shows when the service sends claim.one_click, so older services and other countries see no change.
2026-11-04 20:05:59 +01:00
Ludovic Marie 2e0ef2bd2f Merge branch 'fix/client-information-as-vanilla' into fix/known-packs-as-vanilla 2026-11-04 20:05:44 +01:00
Ludovic Marie 2d7d6303d0 Merge branch 'fix/client-tick-end-needs-level' into fix/client-information-as-vanilla
# Conflicts:
#	crates/horizon-client/src/game/remote.rs
2026-11-04 20:05:23 +01:00
Ludovic Marie 2fb505568c Merge remote-tracking branch 'origin/main' into fix/client-tick-end-needs-level
# Conflicts:
#	crates/horizon-client/src/game/remote.rs
2026-11-04 20:04:35 +01:00
Florian ERNSTandCodex 2edaa4fad5 Merge current main and retain weather and light observations
Co-Authored-By: Codex <[email protected]>
2026-11-04 19:59:44 +01:00
Ludovic MarieandClaude Opus 5.5 68ebd29282 Mod block entity drawing: kept text follows the font, docs say what the helpers do
KeptKey gains Font::epoch, as a sign's kept text has: a glyph cache reset
(the dynamic region filling, Force Unicode or Japanese Glyphs toggled) moves
glyphs in the atlas, and kept mod text drew the cells' new contents until
its block entity changed. The docs now say native_draw_text draws plain
default-font spans, that spin's angle is absolute in game time (a new speed
needs a new phase), and that native_block_face_sprite returns vanilla names
without their namespace.

From martipops's review of #9228.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:59:28 +01:00
Florian ERNSTandCodex 53090512e3 Add frozen reinforcement admission controls
Observe spawn-rule light and live chance/accepted-hit prerequisites before changing event dispatch.

Co-Authored-By: Codex <[email protected]>
2026-11-04 19:59:06 +01:00
Ludovic MarieandClaude Opus 5.5 1606b87f12 Cosmetics: Horizon players' mark by their names; the founder badge after the name
Like Lunar Client's: Horizon's mark (two white bars over a violet line, horizon_cosmetics::mark)
before the names of other Horizon players, in the name tag (both views) and the player list. Who
plays Horizon comes from the cosmetics service in the same cached /v1/worn answers ("horizon": a
list of the batch's UUIDs beside "players", which released games ignore): no new request, nothing
on the wire to Minecraft servers.

- Extras > Cosmetics: "Horizon logos" and "Show me as Horizon", both on by default. On, the game
  signs in (Mojang join, as for My cosmetics) and sends POST /v1/presence at start and every hour;
  off, it sends listed=false and the service forgets the player at once.
- A name tag style's badge moves after the name (the mark goes before it); the launcher's Wardrobe
  draws the name tag the same way.
- Name tag mark and style line in the HUD batch's RGBA: the style line drew #a98fff as pink.
- The player list keeps a mark column once anyone listed has it, so names stay aligned.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:58:07 +01:00
Florian ERNSTandCodex gpt-6.1-sol 109256c0fb Merge main and retain map and weather observations and oracle guards
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 19:57:09 +01:00
JulesB40andClaude Opus 5.5 c9642c76a0 Worldgen: a shared rule that fails to compile returns before its bindings are walked
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:56:23 +01:00
JulesB40andClaude Opus 5.5 609e5306c1 Worldgen: the shared surface rule binds each chunk's densities
The world's surface rule holds the ore veins, whose densities belong to
each chunk's volume, so every chunk fell back to compiling the rule. The
shared rule now keeps the densities compile binds, in its order, and each
chunk's worker binds them to its own volume the same way: the indices,
and the samples, are compile's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:56:22 +01:00
JulesB40andClaude Opus 5.5 150a1013d2 Worldgen: compile the surface rule once per generator worker
Every proto chunk compiled the world's surface rule twice (build_surface
and apply_carving_mask): a deep copy of the rule tree, every biome
condition's names normalised into a new set, its biome ids looked up. A
generator worker now compiles it once, without the chunk's possible
biomes, and keeps it with the noises it bound; each chunk's worker takes
it and folds the biome conditions its possible biomes decide, as compile
folds them, so the tree, its bands and every block are the same. Rules
that bind densities, workers that already hold rules, and possible biomes
the surface doesn't number compile as before.

Fixes #9218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:56:22 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 e3ce04dde2 HORIZON_STILL: the smithing screen's slot icons wait too; wait after a step
An open smithing screen cycled its empty-slot icons on the client's
ticks while frozen. And the docs now say to wait a moment after a
/tick step before a capture, as after a turn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:55:58 +01:00
martipopsandClaude Opus 5.5 c0f6e4d4dc Launcher: a staged update has its own folder and is checked again at install
Fixes #9412. Every launcher process deleted and rewrote the one update folder, and the installer
only checked that the payload existed, so a second launcher could leave a partial file to copy over
the launcher.

- Each stage is a `<pid>-<nonce>` folder. Downloads get their name only after the hash check. Each
  process removes its own; stages whose process is gone are cleaned up after an hour, counted from
  the hand-over, because an installer may still be using them.
- The installer checks the archive against the signed SHA-256 again and places the launcher from
  those bytes. The hash travels in an environment variable: the installer is whatever file is in
  place, so the command line stays readable across versions. A window without one can't place.
- Nothing happens when the launcher in place is already that version or newer.
- On Windows a launcher running from the temp folder, however it is spelled, can't replace itself.
- Update no longer stops hosted servers. The new window doesn't stop them when it closes either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 13:54:58 -05:00
MegaBytesMe 9e9b1a72ca Merge remote-tracking branch 'upstream/main' into codex/issue-9407-native-mods-arm64 2026-11-04 18:54:19 +00:00
NerfPhaselockandClaude Opus 5.5 740567a011 Renderer: a pack's displacement keeps CPU frames; a greyed GPU Culling reads Off
A native pack's `[displacement]` grid takes its quads from the walk's
`visible`, which in a GPU frame lists only the sections the CPU still
draws, so near relief faces went missing: such frames now take the CPU's
path, and docs/graphics.md lists it with the other exceptions.

The GPU Culling switch reads Off wherever it isn't offered, as Translucent
Batching and Smooth Gradients do, so the box, the narrator and the widget
tree no longer report a saved On; the UI test checks the switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:53:47 -05:00
MegaBytesMe 84ac891a7a Merge remote-tracking branch 'upstream/main' into codex/issue-9408-launcher-arch-choice 2026-11-04 18:52:53 +00:00
martipopsandClaude Opus 5.5 c269066ca3 Native mods: a fake player's use closes what it opened
A machine's fake player restored its swapped fields but never ran the close
side of the use. A trader stayed in its session, a vehicle kept its menu's
stand-in, and a shulker box's opener count stayed up. It now runs the real
close paths while the fake inventory is in place, and swaps station,
craft_table, ender_open, hook, experience and the respawn point too.

Closing keeps the use as a player's: the click counts, and the same events
and sounds fire. Refusing to open would need a gate at every open site.

Fixes #9409

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 13:51:58 -05:00
itarqos5andClaude Opus 5 ad491f1bf0 perf(far terrain): a previewed column spends one span on a dampening run
`shade_sky` records a dampening run's skylight a span per light level, so
a sea 15 blocks deep or more becomes 16 spans to carry a gradient down
its own side. Over real seed-1234 terrain that is 64% to 78% of every
span a far column stores: 18.7, 12.3, 12.0 and 12.6 spans a column at
tile levels 0, 2, 4 and 6, where the runs themselves are 4.1 to 4.5.

A previewed column now spends one span on the run and drains the same
light out of the bottom of it, so every span under the run is lit exactly
as before -- which is what the per-level walk was for ("lit seabeds and
the ground under canopies"). It reaches no face that is drawn: the spans
inside a run have neither a top nor a bottom face (`hides` matches on
state, not light), and a run's side is exposed at its top, where its
light is brightest, with `add_side` raising anything above the
neighbour's top to the neighbour's own sky.

Chunk columns keep the per-level walk. They are what `Column::reduced`
merges, and a reduction takes the brightest light of each slice, so one
bright span for a whole sea would light its bed as brightly as its
surface. A previewed column already stands for a whole far cell and is
never reduced against its neighbours.

Measured on 4448 far tiles at lodDistance 256, Full far detail, two runs
each with the heap census: `Far sampling` 302.9 and 309.6 MiB against
264.5 and 268.2, and the resident set 1386 MiB against 1252 and 1242.
Four pinned views are identical across the change to within the
animation noise floor, while two runs of the same build differ by 7% of
their pixels -- far-tile resolution is not reproducible between
launches, so the controls are in the pull request.

`shade_runs` takes the block-state test as a predicate so the shading
can be tested without prepared resources.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-04 18:50:56 +00:00
Florian ERNSTandCodex gpt-6.1-sol 06cc65f75a Merge main and preserve complete mob-name and weather corpus functions
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 19:50:24 +01:00
Ludovic Marie 8dfc3f2e1e Merge pull request #9229 from TheLion102009/api/scenes
🤖 Agent: merged main through #9228's merge (mod lines and doc sections both kept). The scene's quads use the GUI's isolated depth (HudBatch::depth_since) and stay in the HUD batch, so nothing changes until a mod calls native_draw_scene. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, client 887 + client-lib 1682 + render 1355 tests green (the 4 clear_budget HDR failures also fail on bare main there).
2026-11-04 19:49:51 +01:00
martipopsandClaude Opus 5.5 2423ffc1ba Launcher: run the binary's tests in PR checks
CI's launcher job and pr_ready ran only --lib, so the tests in main.rs's
modules first ran in launcher.yml's cargo test at release. Add --bins to
both. The clippy failure at forge_install_tests.rs:4 is already fixed on
main by 812512980, so it needs no change here.

Fixes #9414

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 13:47:55 -05:00
martipopsandClaude Opus 5.5 e1e3c4f840 Data commands: removing a chest's LootTable keeps it from refilling on load
take_loot_table dropped a held roll without clearing the table from the
chest's source compound. The emptied chest encodes the same as its decoded
source, so the save overlay wrote the source back with its table and the next
load rolled again. It now goes through consume_container_loot, as opening does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 13:47:43 -05:00
Ludovic Marie 4d533c252a Merge main into #9227
# Conflicts:
#	docs/native-mods.md
2026-11-04 19:46:39 +01:00
Ludovic Marie 90fa94f2e3 Merge pull request #9239 from razzo715/perf/sleeping-furnaces
🤖 Agent: the sleep is only as safe as the wake paths, and every mutable path into BlockEntities' map (get_mut, insert, take/put, iter_mut, retain, load_chunk, state_changed) clears it, pinned by a_sleeping_block_entity_wakes_on_any_change. The cost on the tick loop is one FxHashSet lookup per ticker. Hoppers stay awake, so the big win is still ahead. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, client 887 + client-lib 1682 + render 1355 tests green (the 4 clear_budget HDR failures also fail on bare main there).
2026-11-04 19:46:02 +01:00
Ludovic Marie b1db34fa20 Merge pull request #9226 from TheLion102009/api/chunk-tickets
🤖 Agent: mod tickets live in Game.mod_chunk_tickets keyed by dimension while streaming.mod_forced travels with each level's Streaming, so a ticket survives the level swap; forced_chunks() dedups against /forceload so a chunk held both ways is ranked once. Tickets aren't saved, as the doc says: a mod that forgets to re-hold in native_level_load drops its chunks on restart. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, client 887 + client-lib 1682 + render 1355 tests green (the 4 clear_budget HDR failures also fail on bare main there).
2026-11-04 19:45:57 +01:00
Ludovic MarieandClaude Opus 5.5 08874a1622 Realms: background join, leave question, checked address, vanilla requests, world pack
Fixes the five points from the review of #7725:

- Play runs GetServerDetailsTask on a worker (with vanilla's Retry-After loop and
  an abort on Cancel/Escape) while the screen shows "Connecting to the Realm...";
  the title polls it once a frame and connects when the address is back. Every
  other Realms request (list, invites, join code, open/close, leave) is off the
  UI thread too.
- Leave Realm opens RealmsPopups.infoPopupScreen with
  mco.configure.world.leave.question.line1 (Continue/Cancel), as leaveClicked
  does; only Continue sends uninviteMyselfFrom. Our own Realm is never offered.
- The /join/pc address must be host:port (host name, IPv4 or [IPv6], numeric
  port, no scheme, path or credentials) before it becomes Action::Connect.
- Requests carry exactly what RealmsClient.execute adds: the sid/user/version
  cookies and Client-Ref, X-NetworkProtocolVersion, Is-Prerelease; no
  Authorization header, the JVM's Java/<version> user agent, no redirects.
  Errors are typed (RealmsError) and never hold a header or the token.
- A world pack in the join answer asks
  mco.configure.world.resourcepack.question first; Continue connects with the
  pack allowed and pushed under GetServerDetailsTask.generatePackId.

Also: the DTOs read vanilla's camelCase field names (daysLeft, ownerUUID,
resourcePackUrl... were silently dropped), ownership compares ownerUUID, the
legacy invite-link fallback endpoint is gone (vanilla only uses the frontend
invite-code service), links go through Action::OpenUri with vanilla's
CommonLinks, the Realms title button follows the multiplayer gate, and every
visible string is a vanilla mco.* key (one Horizon key for "not signed in").
No session (offline, expired token) means no request at all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:45:45 +01:00
Ludovic Marie 8231317207 Merge main into #9210 2026-11-04 19:45:38 +01:00
phexuss e49d129642 fix(launcher): reuse the Wardrobe session until it expires 2026-11-04 19:44:18 +01:00
Ludovic Marie 54142077f2 Merge main into #9275 2026-11-04 19:43:20 +01:00
Ludovic MarieandClaude Opus 5.5 3f529b7d80 SNBT depth cap: 256 rule frames, and a test for deep real values
128 frames let only 31 nested compounds, 17 levels of a component's
`extra` list and 6 containers in containers parse. 256 doubles that and
still stays under a 2 MiB debug thread's stack overflow (384 overflows the
400-deep tests in debug); release frames are smaller still.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:43:19 +01:00
Ludovic Marie 581fad0d32 Merge pull request #9310 from TheMrZZ/fix/h287-named-weather-predicate
🤖 Agent: `weather_check` now compares each present field with `Level.isRaining` (rain level > 0.2) and `isThundering` (rain × thunder > 0.9, dimension-aware), as `WeatherCheck.test` does; an omitted field doesn't constrain. We merged main twice so your corpus group runs after #9288's and #9309's; verify is green on that merge. Nothing else found.
2026-11-04 19:43:14 +01:00
Ludovic Marie 9a5a471297 Merge pull request #9321 from dontstopgorkingit/fix/4683
🤖 Agent: on Linux the stream now asks ALSA for a fixed 1024-frame buffer (about 23 ms at 44.1 kHz) instead of cpal's ~100 ms default. We pushed adf2038d7 so a device that refuses a fixed buffer falls back to the default one rather than playing nothing. Not measured on real hardware here; fmt, clippy and the client tests pass on a union with main.
2026-11-04 19:43:09 +01:00
Ludovic Marie 2599f46c1f Merge pull request #9311 from horizon-rust/fix/launcher-update-prompt
🤖 Agent: the launcher now offers "A new version is available" with Update, and copies that can't replace themselves say so instead of failing silently; Linux end to end on the ThinkPad (Update to 0.2.40 restarts, a read-only copy shows the can't-replace card), pr_ready --quick green.
2026-11-04 19:39:41 +01:00
Ludovic Marie 95247e709f Merge pull request #9225 from TheLion102009/api/container-accepts
🤖 Agent: pushed a fix: container_accepts.json listed native_hooks.rs in `comments`, which the stamp tool stamps by itself and refuses (test_stamp_native_hooks failed on this head). The hopper path pays nothing for vanilla containers, since mod_container_accepts returns at the Kind::Mod check. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green.
2026-11-04 19:39:35 +01:00
Ludovic Marie 52268eec25 Merge pull request #9223 from TheLion102009/api/machine-breaking
🤖 Agent: use_as_player swaps about 30 Game fields by hand and restores them. A per-player field added to Game later and not listed there would leak the fake player's state into the server shell, so one swap struct would be safer next time. Health, food and effects aren't swapped, which only works because a single use never finishes eating. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green.
2026-11-04 19:39:30 +01:00
Ludovic Marie a815f2f89d Merge pull request #9222 from TheLion102009/api/host-bridge
🤖 Agent: merged main (the mod_api use list now also has NativeReloadListener). native_sneaking reads KeyCode::ShiftLeft as use_hand does, so on a server it is the acting guest's only inside as_guest; from a block-entity tick it reads the server's empty key set. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green, stamp tests OK.
2026-11-04 19:39:26 +01:00
Ludovic Marie 57487ddd4a Merge pull request #9262 from voidsipp/fix/8702-breeze-fishing-deflection
🤖 Agent: merged main (its minecart_hook_targets and pull_hooked tests sit beside the breeze ones, and the test module imports Hook once). The deflect path matches on Species::Breeze rather than #deflects_projectiles, which is the same set with default tags but not with a data pack that adds to the tag. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green.
2026-11-04 19:39:21 +01:00
Ludovic Marie b2842e8f68 Merge pull request #9271 from voidsipp/fix/8279-mob-air-sync
🤖 Agent: checked max_air_supply against the 26.3 bytecode: only Dolphin (4800) and Axolotl (6000) override getMaxAirSupply, and Nautilus returns the default 300, so the two arms are complete. #9220 now carries this branch and shares its mob fixture. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green.
2026-11-04 19:39:16 +01:00
Ludovic Marie 3cbad717b2 Merge pull request #9264 from yosifdheef/fix/7992-shulker-open-support
🤖 Agent: shulker_support costs one block-tag lookup per sturdy/rigid/center query before the cached path, the same shape as moving_block_supports there. Not in this PR: vanilla's ShulkerBoxBlockEntity also calls doNeighborUpdates when the lid moves, so a torch already on an opening lid only drops at the next neighbour update. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green, the new level tests included.
2026-11-04 19:39:10 +01:00
Ludovic MarieandClaude Opus 5.5 949facfa7e Wardrobe: the shop tests' claim has one_click
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:35:51 +01:00
Ludovic Marie 262bdc0fef Merge pull request #9206 from degepie/fix/looking-at-all-triggers
🤖 Agent: checked every new trigger id against the trigger it guards; damage_view's two KilledTrigger ids are right, since its only callers (creatures.rs last_blow, dragon.rs) feed trigger_killed. Commands keep player_entity(), so a predicate= that names looking_at still sees the ray. union of 15 contributor PRs on main 6ddd14e72 (playhorizon): fmt, clippy -D warnings, horizon-client 887 + client-lib 1682 + world/command tests green.
2026-11-04 19:35:26 +01:00
Ludovic MarieandClaude Opus 5.5 bcdb34dcdd Multiplayer: answer the server's known packs with vanilla's core pack, as vanilla
KnownPacksManager.trySelectingPacks answers the server's SelectKnownPacks
with the packs the client has; vanilla's client names minecraft:core of its
version, and the server then leaves that pack's registry data out. Horizon
answered with no pack, so every server sent it all registries in full and
saw a client unlike vanilla's. Horizon has the core pack's data in its
prepared resources: it now names it, and fills the entries that come
without data from data/<namespace>/<registry>/<path>.json, as
RegistryDataCollector does from the client's own pack.

tools/vanilla_wire_e2e.py gains known-packs-as-vanilla and known-data-used
(a /say shows as the say_command chat type formats it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:34:56 +01:00
Florian ERNSTandCodex 13864e6417 Merge latest main before H295 submission
Co-Authored-By: Codex <[email protected]>
2026-11-04 19:34:11 +01:00
Ludovic Marie 498168e904 Merge pull request #9346 from voidsipp/fix/9303-hdr-clear-fixture
🤖 Agent: merging. On playhorizon (llvmpipe adapter) four of the six clear_budget tests fail on main with "fixture buffer 2 must have RGBA16F"; with this head all seven pass, the new adapter-free fixture check included, so CI without a GPU now catches a broken fixture too. Proof: cargo test -p horizon-client-render --lib clear_budget on main (4 failed) and on a union with this head (7 passed); fmt and clippy -D warnings pass on the union.
2026-11-04 19:33:11 +01:00
Ludovic Marie 2d7dd77d1d Merge pull request #9345 from xxaxio/fix/9074-title-wither-skeletons
🤖 Agent: merging. clear_entities runs when a world opens and in finish_close_world, after the closing save has already written every parked level (save_parked_levels), so the new levels.clear() drops nothing unsaved; leave_server now also resets persist and entity attachments, which a client never saves. Proof: union with main, #9341 and #9346: fmt, clippy -D warnings, Python tests and 2624 client and client-lib tests pass.
2026-11-04 19:33:07 +01:00
Ludovic Marie f92e450401 Merge pull request #9341 from Ragbie/fix/dragon-no-ai
🤖 Agent: merging. The 26.3 bytecode of EnderDragon.aiStep checks isNoAi right after Mth.wrapDegrees(getYRot()), sets flapTime to 0.5 and returns, which is where tick_dragon and the remote tick now stop; NoAI is bit 1 of Mob.DATA_MOB_FLAGS_ID (15), the index the host sends. Proof: union with main, #9345 and #9346: fmt, clippy -D warnings, Python tests and 2624 client and client-lib tests pass; CI parity runs the new dragon_no_ai harness against a vanilla server.
2026-11-04 19:33:03 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 84ccda46f1 A lightning flash fades in a frozen level, and its border waits
ClientLevel.tick fades the sky flash on every tick, and moves the world
border's size change only while the level runs normally. The client did
it the other way round: after a /tick freeze, a flash that had just
struck lit the sky for as long as the level stayed frozen, and a border
change went on shrinking or growing on this side while the server's
held.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:31:03 +01:00
phexuss e2c6c17bd7 fix(skins): keep the skin when only its cape fails, and retry failed textures 2026-11-04 19:30:18 +01:00
DUzzL 05a8366017 Refuse breaking game master blocks without game master permission 2026-11-04 19:29:55 +01:00
Ludovic Marie 0d7704f3f3 Merge pull request #9243 from horizon-rust/pvp/crosshair
🤖 Agent: rebased on main e0798a4224 (main made cosmeticsOthers optional in Extras::serialize; the crosshair keeps main's string and appends the pvp lines). Desktop: clippy -D warnings and rustfmt pass on the stack's top; before this rebase pr_ready passed 3946 tests on this commit (fails: main's 4 gfx:: clear_budget GPU tests on lavapipe, which CI passes, and NixOS's missing uname in a Python install.sh test). CI verify green on this head. Off by default; the crosshair mask is rebuilt only on a settings change.
2026-11-04 19:28:30 +01:00
Florian ERNSTandCodex f234c3adc3 Merge main and isolate crafting-priority fixture worlds
Preserve advancement and recipe fixture catalogs; the standalone parity runner prevents overriding recipes from affecting generic command-count controls.

Co-Authored-By: Codex <[email protected]>
2026-11-04 19:27:59 +01:00
degepie 5cdb0d73b4 Merge remote-tracking branch 'origin/main' into fix/dragon-death-vibration
# Conflicts:
#	crates/horizon-client/src/game/dragon.rs
2026-11-04 23:27:16 +05:00
Nikita Maximilian GrimmandClaude Opus 5.5 5d9e84e649 HORIZON_STILL: a frozen scene draws the same frame in every run
A dev switch for before/after pixel diffs (#8750). The world starts frozen
before its first tick, and what the frame shows of time follows the
world's ticks: animated textures, the glint and world border scroll, the
darkness pulse, the dragon's crystal beam, the player model's idle swing,
the HUD (hearts, chat, titles, the locator bar, the tab list), a shader
pack's clock and randoms (smoothed uniforms at their targets, custom
uniforms' random, cave mood, obfuscated text, a spinning clock or compass)
and the camera's partial tick. While frozen, the client's own entity
effects and countdowns wait for the world too, as a frozen level's
entities don't tick. `/tick step N` moves the scene on by whole ticks.
Off by default; nothing changes without it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:24:23 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 26860a60df Dropped items and end crystals draw their phase from their own random
ItemEntity's bobOffs and EndCrystal's time come from the entity's own
random in vanilla. The client drew them from the level's random, shared
with splashes, eating and other client effects, so the same dropped item
could bob and spin from a different phase from run to run. Each now draws
from a random seeded from its id and position, as a client mob's is
(Mob::new, now mobs::entity_random).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:24:17 +01:00
Florian ERNSTandCodex gpt-6.1-sol 5c7c4b07fe Merge main and retain advancement fixtures alongside the crafter map copy
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 19:21:20 +01:00
Florian ERNSTandCodex 8c0f8fe031 Select crafting recipes in resource-file registration order
Query the active world table from crafters and retain first-match path/namespace priority after recipe replacement and filtering.

Co-Authored-By: Codex <[email protected]>
2026-11-04 19:18:36 +01:00
Ludovic Marie 771541d109 Merge pull request #9378 from horizon-rust/fix/native-build-name-the-mod
🤖 Agent: verified b5c41f4 on playhorizon (launcher fmt, clippy -D warnings, 51 native_mods tests; the new test fails before the fix) and CI is green. Only the one-line form of horizon-mixins' diagnostic changes: it leads with mod_id (injection_id) when the tool names one; E_MODULE_CONFLICT carries no mod_id and reads as before.
2026-11-04 19:17:56 +01:00
Ludovic Marie 6b75c9cb79 Merge pull request #9280 from voidsipp/fix/9224-opened-loot-save
🤖 Agent: opening a rolled chest now also drops `LootTable`/`LootTableSeed` from its saved source compound, so an emptied chest no longer re-rolls after a reload; `consume_container_loot` touches nothing when the chest had no rolled marker. The 576 harness cases vary seed and table, but the result never depends on either: three modes would cover the same thing. Proven in our union run (client tests, desktop).
2026-11-04 19:17:51 +01:00
Ludovic Marie 2baf3a4847 Merge pull request #9300 from degepie/fix/minecart-display-sync
🤖 Agent: entries 11 (`DATA_ID_CUSTOM_DISPLAY_BLOCK`, optional block state, 0 = none) and 12 (`DATA_ID_DISPLAY_OFFSET`, default from the kind) now reach clients and are read back, so single player and vanilla servers show a cart's DisplayState. One gap noted in your body and left for later: `default_display_offset` gives 6 for a chest cart where 26.3's `MinecartChest` says 8. Proven in our union run (client tests, desktop).
2026-11-04 19:17:47 +01:00
TheMrZZandCodex gpt-6.1-sol e98ab97b73 Preserve mob damage protection across NBT edits
Keep the internal damage cooldown and previous-hit amount when a data
command reconstructs a mob, matching an in-place vanilla entity load.
Continue loading explicitly edited Health and HurtTime values from NBT.

Add guarded command regression cases for equal hits, stronger hits,
unchanged writes, fresh actors and measured cooldown expiry.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 19:17:26 +01:00
Florian ERNSTandCodex gpt-6.1-sol bfdd6af67f Merge main and install function and loot advancement fixtures together
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 19:16:14 +01:00
Ludovic Marie b46279d5b5 Merge pull request #8274 from megabytesme/feat/windows-arm64-support
feat(windows): add native ARM64 build support
2026-11-04 19:14:26 +01:00
Ludovic MarieandClaude Opus 5.5 7f19c70db3 Wardrobe: "Claim for free" where Paddle doesn't sell
Players in countries Paddle doesn't serve (Russia, Belarus...) can't use the
shop's 0 CHF checkout. The cosmetics service now says so per request
(`claim.one_click` in /v1/me, decided by country on the service), and the
Wardrobe then shows a "Claim for free" banner that calls POST /v1/claim with
the existing Mojang-proven session. Everyone else keeps the shop link.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:13:25 +01:00
Ludovic Marie 80d4e1c9f2 Merge remote-tracking branch 'origin/main' into cg38/9310
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-04 19:12:25 +01:00
Ludovic Marie cee89b5498 Merge pull request #9309 from TheMrZZ/fix/advancement-reward-functions
🤖 Agent: `AdvancementRewards.grant`'s function now runs as the player with suppressed output and GAMEMASTER permission, and restores the outer callback so a reward's `return 9` can't replace the grant command's result. We merged main so your group runs after #9288's bell group in the corpus; verify is green on that merge.
2026-11-04 19:11:47 +01:00
oxi-does-dev 487d76b3f2 Run client mod commands from the control socket
The control socket's chat line went straight to the server on a connected world, skipping the client mod commands, the Chat option's restrictions and the recent list that typed chat goes through. It now uses handle_chat_input like the chat screen, so /modcmd opens the mod's screen on a server and the rest of the line is sent only when no mod owns it.

The control socket's command line also tries a client mod's command before the server console: the console cannot see a mod that is compiled into the client, so hudplus or another client mod's command failed there.

AI agent: oxi-does-dev via OpenCode, GLM 5.3.
2026-11-04 21:10:01 +03:00
Ludovic MarieandClaude Opus 5.5 1394ce1659 PvP & HUD: a PvP preset button
One click on the PvP & HUD page (and on Horizon Extras) turns on the custom
crosshair, the armour and effects widgets, vanilla's toggle sprint and toggle
sneak, lower fire, and the official FPS counter and keystrokes mods when they
are installed. It keeps each option's own settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 c58cc9369c PvP & HUD: your own time of day and weather
Two options on the PvP & HUD page, off by default: a time of day (morning,
noon, sunset, midnight) and a weather (clear, rain, thunder) that only this
window draws. The sky, its light, the rain and its fog follow them; the
world's day time and weather, and the gameplay that reads them, stay the
server's. Nothing is sent to the server.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 5468cd1c3b PvP & HUD: lower fire, shield and totem size, glint colour, clear water and lava
Visual tweaks on the PvP & HUD page, each off by default:
- Lower fire moves the first-person fire overlay down (0-80% of its height).
- Shield size (50-100%) and totem animation size (25-100%).
- Enchantment glint colour: the glint's brightest channel over a solid colour,
  in entity.wgsl and hud.wgsl, carried in free uniform lanes.
- Clear water (vanilla's 30-second water vision from the start) and clear lava
  (vanilla's Fire Resistance lava fog), never past what vanilla shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 ff77855f6f PvP & HUD: enchantment levels as numbers
An option on the PvP & HUD page, off by default: enchantment names show their level
as a number ("Sharpness 5", and past vanilla's numerals, "Sharpness 255") wherever
the client names one: tooltips and the enchanting table's hint. A one-level
enchantment still has none. Enchantment.getFullname reads a process-wide switch the
game sets each frame from the option.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 441d4da364 PvP & HUD: armour, effects and held item count widgets
Three HUD widgets on the PvP & HUD page, each off by default, in a corner of its own
beside the minimap and mods' boxes (docs/pvp.md):
- Armour: each piece worn, head first, with its uses left as a number or a percent,
  coloured like its durability bar.
- Effects: icon, name and level, time left, in place of vanilla's top-right icons.
- Held item count: how many of the held item the inventory holds; arrows with a bow
  or crossbow.

pvp_hud::Widget keeps each widget's lines and rebuilds them only when what it shows
changes, so a frame that changes nothing allocates nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 46f7457082 PvP & HUD: block outline colour, thickness and fill; hit colour
Two more groups on the PvP & HUD page, off by default (docs/pvp.md):
- Block outline: a solid colour at 10-100%, 1-4 times vanilla's width, and an
  optional fill that tints the targeted block's shape boxes at 25%. Its first
  settings are vanilla's 0x66000000 stroke. With high contrast on, the colour
  replaces the bright stroke.
- Hit colour: the hurt overlay's colour and how much of it covers the entity.
  Its first settings give OverlayTexture's 0xB2FF0000 texel. The texel rides in
  colored_count.y of the frame uniforms, so it needs no pipeline rebuild.

FrameInputs gets one pvp::Frame field the later PvP options extend.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 2209fd9df0 PvP & HUD: chat timestamps, compact chat, copy on click and search
Four chat options on the PvP & HUD page, off by default:
- Timestamps: the local time before each message.
- Compact chat: a message repeated in a row shows once with its count (x3).
- Copy on click: a click on a message with no click action copies its text.
- Chat search: Ctrl+F in the open chat filters the messages by the box's text.

They only change how the kept messages are laid out, so turning one off
shows the chat as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 6ab8720792 PvP & HUD: ping, coordinates, server address and combo widgets
Four more HUD widgets on the PvP & HUD page, off by default (docs/pvp.md):
- Ping: the latency the server's player list gives this player. Multiplayer only.
- Coordinates: block position and facing (Direction.fromYRot), hidden whenever F3
  is reduced (option, game rule or server), so it never shows what a server hides.
- Server address: as net::shown_address shows it (invite codes hidden).
- Combo counter: hits in a row, each counted when the server reports the attacked
  entity hurt within a second of the swing; reset when this player is hurt or after
  3 s without a hit.

Each widget rebuilds its text only when its value changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
Ludovic MarieandClaude Opus 5.5 b208196224 PvP & HUD page: a custom crosshair
Horizon Settings > PvP & HUD... is a new page of options a PvP player sets, all off by
default (docs/pvp.md). The first is the crosshair: shape (cross, T, X, circle, square,
dot), size, gap, thickness, colour (inverted as vanilla, or solid), outline, centre dot,
and another colour over a living entity (vanilla's crosshairPickEntity). Its first
settings draw vanilla's 15-pixel cross; the attack indicator stays vanilla's.

The pixels are worked out once per settings change (CrosshairCache), so a frame only
adds their quads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:06:35 +01:00
gigamans442andOpenAI GPT-6.1 Sol b6763cc941 Honor explicit weather depth settings in shader packs
Carry rain.depth through Post into weather pipeline depth writes.
Preserve prior omitted/invalid behavior pending external default evidence.
Add original property and hardware GPU regression coverage.

Co-Authored-By: OpenAI GPT-6.1 Sol <[email protected]>
2026-11-04 13:03:21 -05:00
Ludovic MarieandClaude Opus 5.5 4bced57e08 Merge origin/main into feature/realms-support
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:01:37 +01:00
phexuss 22ca656476 fix(render): check a fetched PNG's size before decoding it 2026-11-04 19:01:29 +01:00
Evrim CicekandClaude Opus 5.5 cc613a02fd lan::conn test: a refused transfer's hello may find the connection closed
With transfers off the server turns a transfer away at the handshake and
closes (ServerHandshakePacketListenerImpl.handleIntention), so
transfer_login's hello raced the close and its unwrap failed with
"broken pipe" now and then (seen in CI). The hello's send error is now
ignored; the disconnect is still read. With a 200 ms pause before the
hello the test failed every time; with this change it passes.

Fixes #9376

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 21:01:01 +03:00
Ludovic MarieandClaude Opus 5.5 b5c41f49d8 Native builds: a horizon-mixins error starts with the mod that doesn't apply
A player's native build on 2026-11-04 failed with "horizon-mixins failed
(exit status: 1)" on Horizon 998b1d8, the commit fast_items 0.1.0 pins.
fast_items applies there; built together with a mod made for an older
Horizon (14 of the 72 registry native mods don't apply at 998b1d8, among
them appleskin, flair, mod_menu and freecam), the other mod's hook target
is gone. The diagnostic named that mod only deep in a file path. It now
leads with the mod and its injection: "appleskin (hud): E_TARGET_NOT_FOUND".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:00:22 +01:00
DUzzL 41be700c66 Fail dry Riptide trident use without dipping the hand (TridentItem.use FAIL) 2026-11-04 19:00:01 +01:00
f19df01c7c Keep the dragon hit helpers that only tests call out of the server build.
The game hits through hurt_part_from, so the no-attacker wrappers were dead code without cfg(test).

Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 18:56:29 +01:00
Florian ERNSTandCodex gpt-6.1-sol 80646f9a18 Merge main and preserve both corpus scenario additions for #9349
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 18:56:02 +01:00
Florian ERNSTandCodex eee1ffee60 Merge current main and preserve loot and bell fixtures
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:55:13 +01:00
Ludovic Marie e0798a4224 Merge pull request #9281 from lightcodegit/fix/execute-parse-depth
🤖 Agent: caps `parse_nodes` recursion at 128 where `execute … run` redirects to the root, so the 400-deep chain from #9252 fails to parse instead of overflowing the server thread; the 400-deep test would abort the binary without it. Chosen over #9320, which capped execution only. Nothing else found.
2026-11-04 18:54:32 +01:00
Ludovic Marie 4921de8282 Merge origin/main into feat/windows-arm64-support
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	.github/workflows/launcher.yml
2026-11-04 18:54:00 +01:00
Florian ERNSTandCodex 9f5d2ea594 Merge current main shulker-space fix
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:53:08 +01:00
Florian ERNSTandCodex 1c3dae2a17 Merge latest main before H298 submission
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:52:48 +01:00
Ludovic Marie b319334189 Merge pull request #9292 from voidsipp/fix/9269-shulker-teleport-collision
🤖 Agent: attachment now uses the entity-context collision shape (`entityCanStandOnFace`), so soul sand only takes a shulker under it and scaffolding follows the shulker's height. We pushed a89eb944c, a full-cube fast path, because `canStayAt` runs every tick per shulker. Proven with the client tests on a union with main (desktop).
2026-11-04 18:52:19 +01:00
Ludovic Marie 555c69406f Merge pull request #9296 from sirrayi/fix/teleport-rider-dismount-and-turn
🤖 Agent: the dismount on teleport matches `Entity.teleport`'s `stopRiding()`. We pushed 23a886d93: a relative yaw is a delta in vanilla's transition, so riders turn by the vehicle's turn either way, and `facing` leaves them unturned. The ignored rider game test passes on a union with main (desktop), with clippy and the client tests.
2026-11-04 18:52:14 +01:00
Ludovic Marie 900416b606 Merge pull request #9305 from degepie/fix/dragon-breath-mobs
🤖 Agent: mobs now stop a dragon fireball and take its breath, through the lingering clouds' `cloud_affect` path (undead healed). We pushed 01634eab6 so the per-tick End scans gather mobs only while a fireball or breath cloud exists. Proven with fmt, clippy and the client tests on a union with main (desktop).
2026-11-04 18:52:10 +01:00
voidsipandCodex 164b298d35 Follow entity-bound sounds with their emitting entity
Keep the packet seed and category, update the bound position each tick,
and stop the old object when an entity is removed or its id is reused.
Compare the sound-engine lifecycle against the owned vanilla client.

Co-Authored-By: Codex <[email protected]>
2026-11-04 11:51:50 -06:00
Florian ERNSTandCodex 7f0f1a93ec Merge latest main and retain both parity corpus groups
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:51:40 +01:00
Ludovic Marie 8045ecd4e7 Merge pull request #9259 from jaszkus/optimization-launcher
Launcher: a Performance mode for slower computers (and an accent that changes at once)
2026-11-04 18:51:39 +01:00
Ludovic Marie 63219718ff Merge remote-tracking branch 'origin/main' into cg38/9310
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-04 18:51:19 +01:00
Ludovic Marie c5fb2ba820 Merge remote-tracking branch 'origin/main' into cg38/9309
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-04 18:50:26 +01:00
4af07cfcf1 Drop the needless return at the end of the frog water-travel test.
Clippy rejects a return that only ends a unit test.

Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 18:49:09 +01:00
Arslan ArmanulyandClaude Opus 5.5 0758947658 Shader packs: smooth() in an if branch not taken keeps its value, as in Iris
Custom uniforms evaluated every argument of if(), so a smooth() in a
branch not taken still moved toward its value each frame. Our probe pack
in Iris 1.11.7 (if(fmod(frameTimeCounter, 4) < 2, smooth(sq, 10), 0.5)
over a 16 s square wave) reads values that fit "frozen while the branch
isn't taken" within 0.008, and miss "updated every frame" by up to
0.14. if() now evaluates only the conditions up to the first true one
and that branch.

The same probes also time smooth() over a square wave from if(),
eyeBrightness, worldTime and rainStrength, fades 0.5 to 100 and the
default: their Iris values fit a half-life of 0.1 s per fade unit, as
custom.rs already has (a fit to our probes, not Iris's code). A test
pins worldTime steps and the default fade.

Fixes #9371

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 22:48:53 +05:00
c131ee3fee Drop constant asserts that clippy rejects in the armor-stand shove test.
The 0.2 gate is already checked by whether the cart is shoved.

Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 18:47:14 +01:00
ElyTheCat 3ec390a6b8 Merge branch 'main' into perf/entity-occlusion-culling-pipeline 2026-11-04 21:14:37 +03:30
Ludovic Marie 795024bfc4 Merge pull request #9263 from masa-masa-0314/chore/ci-bump-actions-node24
CI: run GitHub Actions on Node 24 (checkout v7, artifacts v7/v8, setup-python v7, setup-java v6)
2026-11-04 18:43:53 +01:00
Ludovic Marie 036a2a2cb6 Merge pull request #9328 from voidsipp/fix/9231-inline-mod-install
🤖 Agent: merging. The row button takes the detail card's own checks (installed, checking, busy, support.installable) and calls the same mods_install with the known project, so native-mod consent still comes first; stop_propagation keeps the click from selecting the row. Proof: union with main, #9198 and #9314: launcher fmt, clippy -D warnings and 492 launcher tests pass.
2026-11-04 18:42:51 +01:00
Ludovic Marie 55501878f1 Merge pull request #9314 from voidsipp/fix/4350-client-arrow-fluid-parity
🤖 Agent: merging with one change. The client tick now emitted the arrow's hit, splash and extinguish sounds and played them, but Entity.playSound passes no player to Level.playSound and ClientLevel.playSeededSound plays only for its own player (26.3 bytecode), so the server's packets already play them: every arrow hit sounded twice. tick_client now drops its Sound events after the tick, so the random draws stay in vanilla's order; the new test fails without it. The rest matches AbstractArrow.tick: the whole startFalling/tickDespawn branch is inside !isClientSide. Proof: union with main, #9198 and #9328: fmt, clippy -D warnings, Python tests and the client and client-lib tests pass; arrows tests pass on this head.
2026-11-04 18:42:45 +01:00
Ludovic Marie 815a3434fe Merge pull request #9198 from voidsipp/fix/8892-zombie-conversion-sounds
🤖 Agent: merging. Zombie.convertVillagerToZombieVillager and ZombieVillager.finishConversion send level events 1026 and 1027 only when not silent, and handleEntityEvent(16) draws volume before pitch, as here. I merged main and put 1026/1027 into main's new level_event_except (no excluded player, like the other null-player level events), and gave the probe's hand-built MobType main's new item_stack_limits field. Proof: union with main, #9314 and #9328: fmt, clippy -D warnings, Python tests and the client and client-lib tests pass; CI parity runs the new zombie_cure_sound harness.
2026-11-04 18:42:40 +01:00
Ludovic Marie 6be843b43c Merge pull request #9288 from TheMrZZ/fix/headless-bell-server-tick
🤖 Agent: bells now tick on the headless server before the renderer guard, matching `BellBlockEntity.serverTick`/`makeRaidersGlow`. Small cost to know: while any bell is in `be_anims.bells` the raiders tag set is cloned each tick, and server bells stay in the map until their block changes. Proven with the client tests on a union with main (desktop).
2026-11-04 18:42:32 +01:00
Ludovic Marie f8de9f502d Merge pull request #9293 from xxaxio/fix/9207-control-summon-ticking
🤖 Agent: `summon` now goes through `server.call` + `in_owner_level` like `mobs` already does, so the mob ticks on the server thread and reaches the window through the tracker; the default position is computed from the window's own player first. Nothing else found.
2026-11-04 18:42:23 +01:00
Ludovic Marie 3cb1f356ab Merge pull request #9294 from Ragbie/fix/dragon-death-outside-end
🤖 Agent: `self.dim == Dim::End` is the level being ticked (levels swap per dimension), so a summoned overworld dragon now gives 500 and builds no exit portal, as `EnderDragon.tickDeath` with no `dragonFight` does; the new harness checks it against a vanilla server. Nothing else found.
2026-11-04 18:42:18 +01:00
Ludovic Marie c6d447748c Merge pull request #9302 from degepie/fix/dolphin-trail
🤖 Agent: matches `Dolphin.tick` on a client (NoAI return, in water, lengthSqr > 0.03, four particles at ±0.3 of the yaw, one `1.2 - nextFloat()*0.7` draw a tick from the mob's own random). It runs only on the window's copies, so the server's random sequence is untouched. Nothing else found.
2026-11-04 18:42:14 +01:00
Ludovic Marie 92694f6d2c Merge pull request #9306 from degepie/fix/illusioner-blindness-mobs
🤖 Agent: matches `SpellcasterIllager.customServerAiStep` (Illusioner has no override) and `IllusionerBlindnessSpellGoal.performSpellCasting` blinding any LivingEntity target. One gap left: `EffectMob` carries no source entity where vanilla passes the illusioner; it only matters for effect attribution. Proven with the client tests on a union with main (desktop).
2026-11-04 18:42:10 +01:00
Ludovic Marie a226114661 Merge pull request #9323 from martipops/fix/wardrobe-mark-cache
🤖 Agent: `Marks` keys each mark by item id, the catalogue's hash and the window scale, and hands every replaced image to `drop_image` once per frame next to `sky.free_replaced`, so the atlas stops growing on redraws; the tests cover reuse, a scale change and a new file. Nothing else found.
2026-11-04 18:42:05 +01:00
Florian ERNSTandCodex 55a00b627a Merge latest main for H298 readiness
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:40:16 +01:00
Ludovic Marie 84e9ba93b5 Merge pull request #6652 from rdbtCVS/revert-ram-limit
🤖 Agent: Ludovic decided on 11-04 to remove Horizon's RAM limit, so this goes in. A correction: earlier agent comments here said he had decided to keep the opt-in limit. That was wrong; he never decided that. One concrete point, checked: a Java instance's -Xmx stays settable in both layouts. Classic: main.rs:3281 renders memory_row when not glass, and memory_row returns None for non-Java instances (launch_page.rs:250). Glass: the Edit dialog renders glass_memory_row (glass_instance.rs:678), and memory_instance filters to Java instances. java_launch.rs:427 still passes -Xmx{memory_mb}M. Our 13:57Z review was wrong about this. I merged main (d571d80a06) and found no stale HORIZON_MEMORY_*, /ramlimit or lang keys. Proof on playhorizon: fmt; clippy -D warnings on client/client-lib/render/threads (default) and on horizon-client with --no-default-features; the server build with --no-default-features; tests for threads 17, client-lib+render 2693, client 878; the launcher's fmt and clippy, plus 571 launcher tests. Thanks rdbtCVS.
2026-11-04 18:38:43 +01:00
Ludovic MarieandClaude Opus 5.5 decba13c64 Drop a client arrow's own sounds: the server's packets play them
Entity.playSound passes no player to Level.playSound and
ClientLevel.playSeededSound plays only for its own player, so the
client's copy of an arrow plays no hit, splash or extinguish sound;
the server's sound packets carry them. Playing them as well doubled
every arrow hit in single player and on servers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:37:50 +01:00
Florian ERNSTandCodex 53fef18ae4 Extend crafter maps using live saved-map context
Reuse map post-processing before dispensing and register the derived saved map. Cover actual map use, scheduled crafting, and backed/missing/max-scale controls.

Co-Authored-By: Codex <[email protected]>
2026-11-04 18:37:42 +01:00
31ef855776 A flying ender dragon takes LivingEntity knockback from a melee hit.
EnderDragon.knockback skips that push while the dragon is sitting, including a hit that makes it take off.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:28:34 +01:00
820b8fe8f5 Start a ridden pig or strider's boost when the client receives its total.
The rider's client simulates the mount, and ItemBasedSteering.onSynced starts that timer from the synced int. Without it the boost factor stays 1.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:28:09 +01:00
Ludovic MarieandClaude Opus 5.5 c41444f589 Merge feat/windows-arm64-support (DirectX 12 first on Windows ARM64) into the release-safety change
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:27:48 +01:00
28778ffc3b client(fireworks): free leads when a glide boost starts
A firework used while fall-flying has to drop every lead on the player and play the snap, or the mob stays tied and nobody hears it.

Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 18:27:23 +01:00
0cfb9167a5 Shove a rideable minecart that overlaps an armor stand.
ArmorStand.pushEntities moves a plain minecart inside the stand when it is within 0.2, and the stand tick never did, so the cart stayed put.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:25:42 +01:00
34f506d0d1 A named item frame drops with its custom name.
ItemFrame.getFrameItemStackWithData copies the entity name onto the frame item before dropItem spawns it. Glow item frames use that same stack.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:25:28 +01:00
553d0d26e9 Swim frogs with Frog.travelInWater instead of generic fluid travel.
A frog in water was using LivingEntity.travelInFluid, so its speed and drag did not match vanilla.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:22:59 +01:00
Florian ERNSTandCodex 6a0ac7a198 Merge latest main for H292 readiness
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:19:48 +01:00
1c615062f6 Apply worn mob_visibility when mobs measure detection range.
A skeleton skull, zombie head, creeper head or piglin head should halve how far that mob notices the player. getVisibilityPercent multiplies by the item's component, and the targeting paths only scaled sneaking and invisibility.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 18:17:34 +01:00
Ludovic MarieandClaude Opus 5.5 c844022a28 Windows ARM64: a failed ARM64 build never holds the other platforms' release
- game-build.yml and launcher.yml: the windows-arm64 matrix entries are
  continue-on-error, so the sign and publish jobs that need them still run.
- nightly-build.yml: horizon-windows-arm64.zip goes into SHA256SUMS and the
  Nightly only when it was built; otherwise a ::warning:: says it is left out.
- launcher.yml: the release warns when the ARM64 zip or setup is missing (its
  sign and publish steps already take dist/horizon-launcher-* by glob).
- Test: an ARM64 launcher skips a launcher release without its own zip and
  never takes the x64 one (launcher_update_from).
- actionlint: windows-11-vs2026-arm is GitHub's image, newer than its label list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:15:21 +01:00
TheMrZZandCodex gpt-6.1-sol f8dc1e773b Apply scoreboard team formatting to mob command names
Reuse the existing mob team lookup and team formatter when command feedback
names a mob. Preserve its custom name or translated type and the player paths.

Extend the real command corpus with guarded zero-tick join, custom-name,
prefix/suffix clearing, color-only and leave controls against Java 26.3.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 18:12:27 +01:00
voidsipandCodex d93fa85595 Repair HDR clear-budget fixture format hints
Co-Authored-By: Codex <[email protected]>
2026-11-04 11:08:56 -06:00
Ludovic MarieandClaude Opus 5.5 ae0453ebba Merge main into chore/ci-bump-actions-node24
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:08:39 +01:00
MegaBytesMe a59c1ae8b0 Merge the latest Windows ARM64 review changes 2026-11-04 17:08:37 +00:00
Ludovic Marie 23bbd81179 Merge pull request #9342 from horizon-rust/cosmetics-default-off
🤖 Agent: a player with no cosmetics and no saved choice now sees none on others and the game never asks the service about them; owners see them as before, an explicit choice wins. Proof: a gameplay test against a fake service (non-owner sends no request), 27 cosmetics + 78 render + 9 wardrobe tests and clippy -D warnings green on the desktop.
2026-11-04 18:07:12 +01:00
Ludovic Marie 87a5fc6ad0 Merge pull request #9343 from horizon-rust/automation/native-hook-stamp-1104
🤖 Agent: ten merged fragments numbered through API 409 by the repo's own stamper; the workflow now warns instead of failing, because the setting that lets Actions open PRs would also let it approve them.
2026-11-04 18:07:08 +01:00
AxxioandAntigravity a807755773 Title screen: clear wither skeletons and all level mobs on world exit (fixes #9074)
When disconnecting or leaving a server/single player world, leave_server() in remote.rs cleared only top-level mob arrays, leaving GPU skin models, skin frame vertex queues, parked dimension levels, remote objects, and entity draw spans allocated. These cached models could persist into the title screen renderer, causing Nether mobs such as Wither Skeletons to render and wander across the main menu panorama.

- Delegate leave_server() entity cleanup to clear_entities().
- Extend clear_entities() to also clear remote objects, projectiles, parked levels, render vertex buffers, draw spans, entity motion, and reset skin models and frame draws.
- Implement Levels::clear().
- Expose SkinModels::restart() and reset skin draw frames on entity clear.

Fixes #9074.
Managed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 18:06:38 +01:00
MSedgeMC d733ed6a34 test: the bed explosion harness watches a stand, an item and a boat
`tools/test_bed_explosion_parity.py` compared one victim: Alice's health after
the blast and the push her client is sent. What an explosion does to anything
else went unobserved, and `game/explosion.rs` is the one place in the game
where the entity side of `ServerExplosion` lives.

The scene now puts four things that are not the player in front of the bed
head, where no placement puts Alice or the obsidian wall, and gives each of
them `NoGravity` so the only motion any of them can get is the blast's own:

- `stand`: an armour stand two blocks from the head,
- `invisible`: an armour stand with `Invisible:1b` three blocks away
  (`ArmorStand.ignoreExplosion` asks `isInvisible`),
- `item`: a stone item entity four blocks away,
- `boat`: an oak boat two blocks to the side.

After the blast each one is read back with `/execute if entity` (did it
survive), and with `Pos` and `Motion` where it did. `compared()` keeps those
answers and gives the lists nine decimals the way
`test_server_knockback_parity.py` reads its mob: a blast writes arbitrary bits
into `Pos` and `Motion`, and NBT prints the shortest form that round-trips.

What the first corpus says in vanilla 26.3, in all twelve cases: the visible
armour stand, the item and the boat are destroyed, and the invisible armour
stand survives untouched at its summon position with zero motion - the
`ArmorStand.ignoreExplosion` rule, seen from the outside.
2026-11-04 17:06:26 +00:00
Ludovic MarieandClaude Opus 5.5 a22f5b6e36 Stamp native hook API fragments (through API 409); warn when Actions can't open the PR
The native hook stamp workflow has failed since 14:35Z: the repository
doesn't let GitHub Actions open pull requests, so ten merged fragments
stayed unnumbered. This stamps them on current main with
tools/stamp_native_hooks.py, and makes the workflow leave a warning
naming the pushed branch instead of failing, since enabling that
setting would also let Actions approve pull requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:03:58 +01:00
Ludovic MarieandClaude Opus 5.5 1586f9e318 Merge #9271 into #9220: one mob fixture for both metadata tests
#9220's own MobType literal lacked main's item_stack_limits field, so its
tests no longer built; #9271 carries the same 50-line fixture with it.
Both now use one fixture_mob that knows the air and the raider species.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:03:23 +01:00
Ludovic MarieandClaude Opus 5.5 73d6a71826 Cosmetics: others' off by default for players who own none
A player whose account owns no cosmetic now sees a vanilla game by default:
no cosmetics or name tag styles on other players, and the game never asks
the service about them. An owner keeps today's behaviour, and an explicit
choice in the settings or the Wardrobe always wins (CONTRIBUTING.md:
Horizon-only features that change the look are off by default).

- prefs: `cosmeticsOthers` has no line until chosen (`Option<Others>`,
  `Others::effective(chose, owns)`); ownership kept per account in
  `cosmetics-owned.txt`.
- account::owns: `GET /v1/me` with the same Mojang-join sign-in as
  Show my cosmetics.
- game: asks once a run (last run's answer first), retried with the
  existing backoff; one sign-in at a time; the button shows the effective
  value and pressing it stores a choice.
- launcher: the Wardrobe (visible to everyone, unchanged) shows the
  effective value and notes the account's ownership for the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:03:21 +01:00
Ludovic Marie c5cc8b8eee Merge main into #9220 2026-11-04 18:03:11 +01:00
Ludovic Marie fbbf21cb10 Merge main into #9229 (through #9228's main merge)
# Conflicts:
#	crates/horizon-client/src/game.rs
#	docs/native-mods.md
2026-11-04 18:03:01 +01:00
Ludovic MarieandClaude Opus 5.5 282289869b Merge main into #9228
Main's glyph callback returns a font::Glyph (its own box from the pen):
text_vertices takes it, and native_draw_text sums its advance.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:02:53 +01:00
Florian ERNSTandCodex b722a4949d Merge latest main for advancement loot validation
Co-Authored-By: Codex <[email protected]>
2026-11-04 18:02:33 +01:00
Evrim CicekandClaude Opus 5.5 d4128444a9 A NoAI dragon's clients are told so, and a Horizon client stops it too
Mob.DATA_MOB_FLAGS_ID (15) carries NoAI as its first bit: the LAN and
dedicated host now sends it with the dragon, and a Horizon client reads
it and stops the dragon's tick where EnderDragon.aiStep does on a client
(no flap, phase or parts). The harness also checks what a vanilla-codec
client is paired with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:00:36 +03:00
Ludovic Marie 6ddd14e727 Merge pull request #9233 from glitchsnake/fix/8703-breeze-invulnerable-to-breeze
🤖 Agent: matches Breeze.isInvulnerableTo (source.getEntity() instanceof Breeze, the owner for projectiles); main merged (trident/bee conflicts taken from main plus attacker_species, and main's new damage_type test literal filled in). The older wind-charge special case in game/wind.rs now duplicates breeze::accepts_damage: follow-up. verify green at this head.
2026-11-04 17:59:16 +01:00
Ludovic Marie d9c0f0bc47 Merge main into #9278 2026-11-04 17:59:15 +01:00
Ludovic MarieandClaude Opus 5.5 a3842d6ad6 mcpr: don't index a packet cut short; take the version from horizon_core
The index loop pushed a packet whose length ran past the end of the
stream (a recording that stopped mid-write), so seeking to it could
only fail. Metadata's mcversion follows VANILLA_VERSION instead of a
literal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:59:15 +01:00
Ludovic Marie 8f297e4b43 Merge main into #9262
# Conflicts:
#	crates/horizon-client/src/game/fishing.rs
2026-11-04 17:58:45 +01:00
Ludovic MarieandClaude Opus 5.5 a89eb944c6 Shulker: a full-cube support is full on every face
canStayAt runs every tick for each shulker; the prepared collision table
gives full cubes the canonical Shapes.block() identity, so skip the face
shape and XOR join for them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:58:05 +01:00
Ludovic Marie 3038fdf208 Merge remote-tracking branch 'origin/main' into cg38/9292 2026-11-04 17:57:51 +01:00
jaszkus 4cd2759bb2 Merge upstream/main into optimization-launcher
scene.rs keeps Backdrop::new's tint-at-read and the box blur, with upstream's
"no float blur while the blur is 0". launcher/lang/*.json take upstream's
tables and get the two Performance mode strings at the top again.
2026-11-04 17:57:50 +01:00
Ludovic MarieandClaude Opus 5.5 23a886d936 Teleport: riders turn by the vehicle's turn on relative angles too
TeleportCommand passes a relative rotation as a delta, so
calculatePassengerTransition's 'add 0' still turns each rider by that delta
from its own angle: the rider keeps its angle to the vehicle either way.
Without a rotation argument, and with facing, the transition's rotation is
Relative.ROTATION with no delta and the riders do not turn (LookAt turns
the target alone). Replace the per-axis relatives with that one flag, and
turn riders from the angle before the vehicle's pitch clamp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:57:40 +01:00
4986dcaf60 Play the honey landing slide and show its particles.
HoneyBlock.fallOn plays the slide (and the block's fall sound when the landing hurts) and broadcasts entity event 54, ten honey crumbs. The guest turn dropped both, and clients only drew the five crumbs of a slide.

Co-authored-by: Cursor <[email protected]>
Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 17:57:13 +01:00
Ludovic Marie 862be0a0d2 Merge pull request #9279 from MSedgeMC/fix/lectern-page
🤖 Agent: a lectern with no book now reads page -1 as vanilla's Mth.clamp(page, 0, pageCount - 1) gives (the PR first had 0); the lectern test passed on playhorizon, and this head only merges main.
2026-11-04 17:56:42 +01:00
Ludovic Marie bb84ae23e1 Merge main into #9222
# Conflicts:
#	crates/horizon-client/src/mod_api.rs
2026-11-04 17:56:40 +01:00
Ludovic Marie 1da9966c91 Merge main into #9225 2026-11-04 17:56:13 +01:00
Ludovic MarieandClaude Opus 5.5 1b939383ca container_accepts fragment: drop the comments key
The stamp tool stamps native_hooks.rs itself and refuses it in `comments`
(test_stamp_native_hooks failed on this branch).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:56:13 +01:00
Ludovic MarieandClaude Opus 5.5 b2ebfbe833 Merge origin/main into feat/windows-arm64-support
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:56:00 +01:00
Ludovic Marie 41ba00cc91 Merge remote-tracking branch 'origin/main' into cg38/9296 2026-11-04 17:55:04 +01:00
Ludovic MarieandClaude Opus 5.5 01634eab69 Dragon: gather the mobs only while a fireball or a breath cloud exists
tick_end runs these every tick in the End, where hundreds of endermen can
live; with no dragon projectile there is nothing to hit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:54:52 +01:00
Ludovic Marie 53e6fa637a Merge pull request #9285 from Domanffe/feat/launcher-row-menu-right-click
🤖 Agent: added one guard: the open menu's mouse-down-out closes it on the same press, so a right click on the open row reopened it instead of closing it; the handler now skips that press as the ⋮ does (menu_closed_at). Desktop launcher run at this head: fmt, clippy -D warnings, all tests 0.
2026-11-04 17:54:25 +01:00
Ludovic Marie d4cbf5a5f9 Merge remote-tracking branch 'origin/main' into cg38/9305 2026-11-04 17:54:24 +01:00
Ludovic Marie c5d6cafb96 Merge pull request #7448 from masa-masa-0314/feat/launcher-data-location
🤖 Agent: the location pointer now follows a symlinked ~/.config (it used to error on every start for those players); the data roots still refuse links. verify and launcher are green on this head, and launcher fmt/clippy/tests pass on Linux.
2026-11-04 17:54:20 +01:00
Ludovic MarieandClaude Opus 5.5 adf2038d70 Audio: fall back to cpal's default buffer when a device refuses the short one
A fixed ALSA period that a device does not support made build_output_stream
fail, which left the game with no sound on that device. Retry with the
default configuration then.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:54:14 +01:00
Ludovic Marie f362f48749 Merge remote-tracking branch 'origin/main' into cg38/9321 2026-11-04 17:54:03 +01:00
Ludovic MarieandClaude Opus 5.5 f6c4c0b17e Merge main into #9314
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:53:03 +01:00
jaszkus 337fbf9f4d Merge upstream/main into optimization-launcher
launcher/lang/*.json take upstream's tables and get the two Performance mode
strings at the top of each, so later additions at the end of upstream's tables
no longer conflict.
2026-11-04 17:52:36 +01:00
MegaBytesMe f7484e79d9 fix(windows): address ARM64 support review feedback
Prefer DirectX 12 for Auto on Windows ARM64 while preserving Vulkan as an option. Keep launcher updates on the process architecture, select game assets for the native machine with an x64 fallback, and preserve x64 native-mod builds under emulation.
2026-11-04 16:51:51 +00:00
Ludovic Marie b4adeca3fc Merge pull request #9208 from xxaxio/fix/9148-launcher-ui-bugs
🤖 Agent: the Cull wrapper now pads each row by `gap`, so the mods, modpack-report and project-version lists (gap 8, rows without a margin) finally get their spacing, while the release and notes rows drop their own mb so nothing doubles; radius::CONTROL/ROW equal the old 10/12 px literals, so the field corners don't move. Launcher clippy -D warnings and 476 tests green on this head.
2026-11-04 17:50:11 +01:00
degepieandClaude Opus 5.5 0e2a6b8700 Advancement block predicates test the block entity's nbt
`BlockPredicate`'s `nbt` was skipped, so a predicate with it matched any
block of its `blocks` (and an `inverted` one never matched). As
`BlockPredicate.matchesBlockEntity` does, the pattern now has to be in
the block entity's `saveWithFullMetadata` (`NbtUtils.compareNbt`), and a
block without a block entity fails. The predicates' `World` asks for the
data `/data get block` builds, moved into `Game::block_entity_nbt`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 21:49:49 +05:00
Ludovic MarieandClaude Opus 5.5 1684a32896 Merge main into #9198: add 1026/1027 to main's level_event_except, item_stack_limits in the probe
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:49:35 +01:00
degepieandClaude Opus 5.5 aac36f65dc Advancement predicates read a world's data pack tags
A `#tag` in an advancement predicate never matched a tag a world's data
pack defines: `View::in_tag` read the game's own item, block, entity
type, biome and damage type tags. The world's tables now also keep the
entity type, biome and damage type tags with the packs' overlay
(`TagLoader.loadTagsForExistingRegistries` binds every registry's tags
from the pack stack), and `in_tag` reads them, and the item and block
tags through `Game::items()`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 21:49:08 +05:00
Florian ERNSTandCodex dbabdeb01d Merge latest main for advancement loot lookup
Co-Authored-By: Codex <[email protected]>
2026-11-04 17:48:25 +01:00
Florian ERNSTandCodex a152e92cec Use world datapack tables for advancement loot rewards
Co-Authored-By: Codex <[email protected]>
2026-11-04 17:48:24 +01:00
Ludovic Marie 8a170c33ec Merge pull request #9256 from martipops/fix/shop-window-clock
🤖 Agent: #[serde(other)] Unknown lets /v1/shop and /v1/me answers with a state a newer service adds still parse, so the Wardrobe's top-bar check (shop::shown, which reads open and the dates, not the state) keeps working; the test covers all three answers and the on-disk round trip.
2026-11-04 17:48:16 +01:00
Ludovic Marie 0d762cbcbe Merge pull request #9254 from martipops/fix/cosmetics-item-cache
🤖 Agent: item_cached now refuses an id or hash outside 1-64 of [A-Za-z0-9_] before touching the disk or the service, the rule horizon_cosmetics::fetch already applies, so a catalogue entry like ../x can't read or write outside the cache folder; the traversal test also checks that no request was made.
2026-11-04 17:48:12 +01:00
BPMichonandClaude Opus 5.5 d5f4da2382 Native mods: health HUD state and local attribute helpers
A mod answering native_health_hud can now reach Horizon's HealthHud
(native_health_hud_state): its left_height/right_height place the selected
item name and the action bar (vanilla Hud.leftHeight/rightHeight), and its
layout keeps Horizon's own rows. native_local_attribute(name) reads an
attribute of this client's player (LivingEntity.getAttributeValue), such
as minecraft:armor_toughness. Both through a helper-only API fragment, so
mods no longer read Game's private fields.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYf41fgTMRfUEXn3afqyTG
2026-11-04 16:47:16 +00:00
voidsipandCodex 8125129805 Keep mod installation beside search results
Co-Authored-By: Codex <[email protected]>
2026-11-04 10:45:21 -06:00
Arslan ArmanulyandClaude Opus 5.5 93afbf2fd8 Shader packs: split solid and cutout terrain per quad, by sprite layer
The split decided per vertex, and read lava from the high nibble of the
vertex colour's alpha. With separateAo=true that byte holds each vertex's
own ambient occlusion, so the corners of one leaf quad landed in different
parts: each part pushed its other corners off screen, and in our separateAo
probe the leaves drew as speckled slivers of both parts. Lava had no flag
there and went to the cutout part.

The test now reads only the vertex's sprite layer, which all four vertices
of a quad share: OPAQUE_LAYER, or one of lava's two sprite layers, which
the game hands the renderer. In Iris 1.11.7 our separateAo probe draws
leaves whole with gbuffers_terrain_cutout and lava with
gbuffers_terrain_solid; the branch now does the same.

Part of #9137

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 21:44:56 +05:00
Ludovic Marie ae3823b97a Merge main into #9233
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/horizon-client/src/game/trident.rs
#	crates/horizon-client/src/mobs/bee.rs
2026-11-04 17:40:53 +01:00
Ludovic MarieandClaude Opus 5.5 6461774f70 Merge main into #9285
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:39:46 +01:00
Ludovic MarieandClaude Opus 5.5 f826a42c32 Launcher: a right click on the open row closes its menu
The open menu's mouse-down-out runs on the same press and closes it first,
so the row's right-click handler saw no menu and reopened it. Skip that
press, as the ⋮ does with closed_by_this_press.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:39:45 +01:00
Ludovic Marie 1768e0d3f4 Merge pull request #9161 from voidsipp/fix/8255-moderation-translations
🤖 Agent: merging. Horizon-only keys go out with `translate_with_fallback` from en_us, so vanilla clients on a Horizon server still read English instead of a raw key. Proof: on this head (main merged in; the conflict was only both sides adding tests or keys next to each other), rustfmt, Python tests, clippy -D warnings and the horizon-client and horizon-chat-filter lib tests (873 + 17) pass.
2026-11-04 17:38:55 +01:00
Ludovic Marie e5774bf3ba Merge pull request #9322 from horizon-rust/bench/site-2026-11-04-label
🤖 Agent: docs only, follow-up to #9308 (merged at its first head): labels the 2026-11-04 Mac mini reports 'offscreen, not comparable', since Horizon offscreen against a windowed vanilla isn't a fair pair; checks green at 2f8c8ddab.
2026-11-04 17:38:49 +01:00
NerfPhaselockandClaude Opus 5.5 a58946a336 Graphics: a GPU Culling setting, and its statistics read back from the GPU
GPU culling becomes a setting players can switch: GPU Culling
(horizon-graphics.txt's gpuCulling, off by default and in no preset) sits in
the Performance page's Culling group right after Cave Culling, and applies at
once: every settings apply calls set_gpu_culling, which does nothing when
nothing changes. Where it isn't offered the switch is greyed out, reads Off
and says why: the device can't (no count draws the GPU wrote, compute shaders
or working first instances, or vanilla frames drawn flat), DX12 with flat
page groups, whose count draws lose each draw's base vertex (not offered there
since #9142: "try the Vulkan graphics API"), a software adapter (WARP,
lavapipe), whose pass would run on the CPU beside the frame, or its buffers
stopped fitting in video memory, until the next renderer. macOS
doesn't show it. The control word gpu-culling on|off now sets the setting in
memory, unsaved, as lod-distance does, so the switch, the word and rebuilt
renderers agree.

The statistics are exact again. Each GPU frame copies the pass's two counters
(the sections it kept, their draws) into one of three small readbacks, with
the CPU's part of the same frame: the sections the walk listed less those
whose solid quads the pass drew and counted, its draws, and every call. The
readback is mapped from the frame's after-submit hook, on the submit thread
too, and taken in a frame or a few later; nothing waits for it. So
drawn_sections, section_draws and section_draw_calls always describe one
real frame, the newest whose numbers are known: a CPU frame's at once, a GPU
frame's when its counts come back, never an older frame's over a newer one's.
The status says how old they are (stats_lag) and what is offered
(gpu_culling_offer). A readback whose mapping fails, or whose buffer the
device lost, goes FAILED and is never copied into or unmapped again, as the
GPU timer's readbacks since #6354.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:38:47 -05:00
Ludovic Marie 6275a3a20e Merge pull request #9195 from razzo715/fix/item-block-containers
🤖 Agent: merging. `/loot insert` now asks `canPlaceItem` through the hoppers' `Containers::can_place`, so loot can't land in a furnace's result slot, matching LootCommand.distributeToContainer. Proof: on this head (main merged in: the source check now sits before main's new command_slots, and the corpus keeps this group), rustfmt, Python tests, clippy -D warnings and the horizon-client lib tests (873) pass; CI parity runs the item block containers group.
2026-11-04 17:38:44 +01:00
Ludovic Marie 008c42e28f Merge pull request #9170 from xxaxio/fix/9120-hand-swing-objects
🤖 Agent: merging with one change, from the 26.3 client's bytecode: AbstractBoat.interact answers SUCCESS (a swing) unless sneaking or out of control, and doesn't check for room on the client (only the server's startRiding does); AbstractChestBoat passes only out of control, not sneaked at, with room. Minecart.interact is the one that answers CONSUME. Paintings and item frames were right. Proof: on this head (main merged in; the conflict was only both sides adding tests or keys next to each other), rustfmt, Python tests, clippy -D warnings and the horizon-client and horizon-chat-filter lib tests (873 + 17) pass.
2026-11-04 17:38:39 +01:00
Ludovic Marie abeecdf0a4 Merge pull request #9242 from horizon-rust/cg33/finish-8632
🤖 Agent: finishes #8632 (GabrielNichols): native build cache strings in all 85 launcher tables (inserted at the top so main's appends don't conflict), a build refused only while the cache is busy, launcher reference regenerated; also native cache locks are now unlocked before closing, since a child spawned meanwhile kept them taken (flaky Busy; new test fails without it). Desktop run at this head: fmt, clippy -D warnings, all launcher tests 0.
2026-11-04 17:38:34 +01:00
Ludovic Marie 9bfd438a2f Merge pull request #9168 from xxaxio/fix/9131-fishing-bobber-bite-plunge
🤖 Agent: merging. I moved the plunge off the level random: FishingHook draws it from `syncronizedRandom`, reseeded every tick from the UUID and the game time, and an extra level draw shifts every later one out of vanilla's order. It is also computed in float, as Mth.nextFloat does. rdbtCVS's agent then shared the helper with remote hooks. Proof: on this head (main merged in; the conflict was only both sides adding tests or keys next to each other), rustfmt, Python tests, clippy -D warnings and the horizon-client and horizon-chat-filter lib tests (873 + 17) pass.
2026-11-04 17:38:29 +01:00
Evrim CicekandClaude Opus 5.5 b111b38750 An ender dragon with NoAI stays where it is
EnderDragon.aiStep returns after the flap and checkCrystals when
isNoAi() (flapTime = 0.5): no flight history, phase, steering or parts.
Horizon's dragon never read NoAI: a NoAI dragon flew off, out of a
force-loaded chunk, and a save could then lose it. The dragon now loads
and saves NoAI, and its tick stops there.

tools/test_dragon_no_ai_parity.py compares the dragon's position and NoAI
after 100 ticks and after a restart with vanilla's dedicated server.

Fixes #9316

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:38:16 +03:00
Ludovic MarieandClaude Opus 5.5 d571d80a06 Merge origin/main into revert-ram-limit (#6652)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:37:25 +01:00
Ludovic Marie 553de75e96 Merge pull request #9060 from arslanarm/shaderpacks/pack-atlas-padding
🤖 Agent: The padding follows the Mipmap Levels option through `mipmap_option`, which starts at 4 until `set_mipmap_levels` runs. A pack loaded before the option is applied stitches with 4 levels' padding once. Minor. I pushed cddb5526: merged main after #9059 landed (clean). Proof: main + this head + #8433: fmt, clippy -D warnings (render, shaders, client; all targets) clean; `gfx::pack` tests 92 pass, the 4 failures are `clear_budget_tests`, which fail the same way on plain main.
2026-11-04 17:36:15 +01:00
Ludovic Marie c4e241f755 Merge pull request #8433 from HrafnaValkyrja/fix/item-tnt-block-speed
🤖 Agent: Items and primed TNT now end their move with `getBlockSpeedFactor`, through #8096's shared helpers, and a no-physics item skips it as vanilla does. Cost: one extra block-speed lookup per item per tick, a farm's whole item count; vanilla pays the same. I pushed ef4e5c04: merged main and gave the soul sand/honey TNT test main's new `PrimedTnt` fields (`rotation` from #8667, `block_state`), without which it no longer compiled. Proof: main + this head + #9060: fmt, clippy -D warnings (client, client-lib, render, shaders; all targets), horizon-client + client-lib tests 0 failed (1666 + 862).
2026-11-04 17:36:10 +01:00
Ludovic MarieandClaude Opus 5.5 954baa8a14 Windows ARM64: keep launchers on their own architecture, fall back to x64 builds
- Self-update, game installs and native-mod toolchains follow the running
  launcher's architecture again (std::env::consts), not IsWow64Process2's native
  machine: an x64 launcher on an ARM64 PC stays x64, so an update never swaps a
  working emulated setup for an untested ARM64 window. The ARM64 launcher comes
  from horizon-launcher-setup-arm64.exe.
- The ARM64 launcher installs the x64 game (under emulation) from a release
  without an ARM64 build, and checks that file's signed checksum
  (GAME_FALLBACK, asset_installed). Same fallback in horizon-server's updater
  and packaging/server/install.ps1, so ARM64 installs keep working before the
  first Nightly with an ARM64 archive.
- ci.yml's windows-arm64 job runs by hand only: GitHub's runner queue is full,
  and main's checks runs gate the releases. The Nightly and launcher releases
  build the ARM64 archives every run.
- launcher.yml: the ARM64 smoke test accepts the x64 fallback's PE machine; the
  macOS-only version check keeps python3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:35:57 +01:00
Ludovic MarieandClaude Opus 5.5 871a75e6f2 Merge origin/main into fix/lectern-page
#9189's chest loot-table test landed beside the lectern test: both kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:35:26 +01:00
Ludovic MarieandClaude Opus 5.5 2b2ab7878c Data location: follow a linked config folder for the pointer
The pointer, its lock and the startup check went through `checked_path`, which
refuses any link on the way. A Linux player whose ~/.config (or home) is a link,
as dotfiles managers and Silverblue make it, got "Could not open the data folder"
at every start without ever moving data, and "Use the default folder" could not
clear it. The pointer is never copied, so its path now follows links
(`pointer_path`); the data roots still refuse them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:34:36 +01:00
Ludovic MarieandClaude Opus 5.5 2f8c8ddab7 benchmarks: label the 2026-11-04 Mac mini runs offscreen, not comparable
Horizon ran offscreen (no presenting) while vanilla drew into a window, so the Mac rows are not a fair
comparison; the website keeps the Mac mini's 2026-10-22 runs. The reports stay as a record, labelled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:34:20 +01:00
makscoder 9f2d88fb57 Let peaceful discard hostile mobs through Mob.checkDespawn, not instantly
Switching to peaceful removed every hostile mob in the same tick with
`mobs.retain(|m| !m.hostile())` in the difficulty command, the LAN/menu
difficulty change, and the dedicated-server start. Vanilla only sets the
difficulty there; each hostile mob is discarded by its own Mob.checkDespawn
on the next tick when the level is peaceful and the type is not allowed in
peaceful, so mobs in unloaded chunks persist until loaded and the wither and
ender dragon follow their own exceptions.

Drop the three retain calls: the per-tick check_despawn already discards the
same mobs (difficulty.effective == 0.0 && !allowed_in_peaceful), with vanilla's
timing and exceptions.

Closes #9283
2026-11-04 19:31:11 +03:00
Ludovic MarieandClaude Opus 5.5 cc4b539cd0 Merge origin/main into the data-move branch
The lang tables merged by key: main's keys (with #9286's shop changes) and
this branch's 14 data-move strings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:30:16 +01:00
Ludovic Marie f181cc2e47 Merge pull request #9308 from horizon-rust/bench/site-2026-11-04
🤖 Agent: data only (9 perf_bench reports + a note under benchmarks/perf); checks green at be11ce8db. One point: the Mac rows are offscreen and both machines were loaded, as site-2026-11-04.md says, so don't read them as clean ratios.
2026-11-04 17:30:10 +01:00
Ludovic Marie f8c94db47c Merge pull request #9127 from voidsipp/fix/9079-cached-keytool
🤖 Agent: merging. `shutil.which('keytool')` first, then `$JAVA_HOME/bin`, fixes the harness under the parity shim's stand-in java (the env-only management_protocol failure on playhorizon). Proof: union with main: Python tests pass, including the three new keystore tests.
2026-11-04 17:30:06 +01:00
Ludovic Marie a1e620cb84 Merge pull request #8726 from torinsapp/perf/content-check-one-reader
🤖 Agent: merging. One `ZipArchive` for all declarations turns the check from declarations × central-directory reads into one read; `Source` is cloned only to free the borrow of `self` (a PathBuf). Proof: union with main: fmt, clippy -D warnings and horizon-mods tests pass.
2026-11-04 17:30:01 +01:00
Ludovic Marie bf16f0232f Merge pull request #9178 from xxaxio/fix/9121-feed-predict
🤖 Agent: merging with changes. Main meanwhile took food and shears on the client in remote_mob_takes, matching the 26.3 bytecode (Animal.mobInteract and Sheep.mobInteract answer CONSUME there; only the server checks canFallInLove and readyForShearing), so I merged main and kept its version. What this PR still adds is the dye rule, now `sheep_takes`: DyeItem.interactLivingEntity takes a living, unsheared sheep of another colour and passes otherwise; the isSheared test is mine. Left for a follow-up: the caller swings for CONSUME answers too, where vanilla swings only on SUCCESS. Proof: on this head, rustfmt, clippy -D warnings on horizon-client and its remote_mob_use tests (5) pass.
2026-11-04 17:29:57 +01:00
Ludovic Marie 5ded38a494 Merge pull request #8728 from reservedbytes/fix/player-drop-motion
🤖 Agent: merging. The guest path (`drop_guest_items`) took no random draws before and now takes vanilla's four per stack from the level random, so later level draws shift as in vanilla. Vanilla draws from the entity's own random; Horizon keeps the level's in all three places, as before. Proof: union with main: fmt, clippy -D warnings and client tests pass, including the bit-exact drop_motion test.
2026-11-04 17:29:53 +01:00
Ludovic MarieandClaude Opus 5.5 2fa97798c2 Merge main into #9161: keep both sides' lang keys
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:28:31 +01:00
Ludovic MarieandClaude Opus 5.5 25980cfd03 Merge main into #9195: source check before main's command_slots, keep the corpus group
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:28:22 +01:00
voidsipandCodex 7ce774c5d6 Match client arrow fluid simulation
Co-Authored-By: Codex <[email protected]>
2026-11-04 10:28:06 -06:00
Ludovic MarieandClaude Opus 5.5 5c6cdd645b Merge main into #9170: keep both sides' remote tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:27:56 +01:00
Ludovic MarieandClaude Opus 5.5 575cf3e0e7 Merge main into #9168: keep both sides' fishing tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:27:45 +01:00
sirrayiandDeepSeek Harness fab37a4094 Teleport: a target leaves its vehicle, and riders take the angles it was placed at
`Entity.teleport` stops riding unless the transition is `asPassenger`, and
`calculatePassengerTransition` gives each rider the vehicle's new angles plus
its own offset (`passenger.getYRot() - getYRot()`), or the vehicle's angle
alone on an axis the command set relatively (`+ (relatives has Y_ROT ? 0 : ...)`).
The shared writer only moved riders' positions and only the player arm
dismounted, so `/tp` on a spider jockey or a mob in a boat was seated again by
the next sync (the command reported success and nothing moved), and a rotated
`/tp` left mob riders, the host and guests facing where they were.

- `teleport_to_in_level` dismounts a mob or an armor-stand target before it is
  placed (`Entity.teleport` -> `stopRiding`), and carries the command's per-axis
  relatives for the riders.
- `teleport_passengers` places the riders at the angles the vehicle was placed
  at (`passenger_rotation`): mob riders, the host riding a vehicle and the
  hub's guests, recursively, pitched through `Entity.setXRot`'s clamp. A
  relative axis gives the rider the vehicle's own angle. A turned guest gets one
  position packet carrying its new absolute rotation with its motion kept
  (`Hub::teleport_rider`).

Fixes #9289

Co-Authored-By: DeepSeek Harness (deepseek-v4.1-flash) <[email protected]>
2026-11-04 16:27:32 +00:00
Ludovic Marie 8069aa8ced Merge pull request #9237 from NerfPhaselock/perf/gpu-culling-g3
🤖 Agent: the shader's facing test compares order-preserving u32 keys of the same f32 thresholds visible_from uses, MARGIN included, so no driver's subnormal flush can change a run; a grouped mesh keeps one whole draw, and the 4-run cap fits the 3-bit count in runs.
2026-11-04 17:27:25 +01:00
martipopsandClaude Opus 5.5 e09c4098ad Launcher: keep the Wardrobe's name tag mark instead of baking it each draw
Each draw baked a new image for the equipped name tag, and GPUI keeps every one
in the sprite atlas until it is dropped. Marks are now kept per item id, its
file's hash and the window scale. One replaced by a scale change or a new file
is dropped from the atlas on the next frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 11:25:26 -05:00
gorkandClaude Code a53483eeb0 Reduce Linux CPAL audio buffer latency
Fixes #4683

Co-Authored-By: Claude Code <[email protected]>
2026-11-04 17:24:51 +01:00
Ludovic Marie be704330d9 Merge pull request #9282 from MSedgeMC/fix/bundle-allow-modification
🤖 Agent: the bundle click now checks may_pickup and may_place on the slot, as vanilla Slot.allowModification does, so a bundle in a take-only or locked slot keeps its contents; the new test covers the withheld slot.
2026-11-04 17:23:27 +01:00
Ludovic MarieandClaude Opus 5.5 88c640e8a7 Merge main into #9178: keep main's remote_mob_takes, add the dye check as sheep_takes
Main grew its own pure helpers and tests in remote_mob_use.rs (nautilus,
golems, allay, armadillo). This keeps main's version and adds only what
this PR got right: DyeItem.interactLivingEntity takes an unsheared sheep
of another colour and passes otherwise; shears stay CONSUME on a client.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:23:12 +01:00
Ludovic MarieandClaude Opus 5.5 9e0cefdef9 Merge origin/main into fix/shop-window-clock: keep the unknown state only
#9286 moved the shop to the website and removed the launcher's claim window
rules, so the clock correction has nothing left to correct; this merge takes
main's shop files. ClaimState::Unknown still matters: /v1/shop and /v1/me
answers decide whether the Wardrobe is in the top bar, and a state a newer
service adds made them fail to parse.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:21:30 +01:00
Ludovic MarieandClaude Opus 5.5 ea201cfa97 Launcher update card: the version on its own line; a failed install drops its download
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:21:29 +01:00
Ludovic MarieandClaude Opus 5.5 8d09551a20 Merge origin/main into fix/cosmetics-item-cache
#9286 removed Entry::lines; the merge keeps Entry::plain and drops lines
from the tests' entry helper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:21:02 +01:00
jaszkus d529272b02 Merge upstream/main into optimization-launcher
launcher/lang/*.json take upstream's tables and get the two Performance mode
strings at the top of each, so later additions at the end of upstream's tables
no longer conflict.
2026-11-04 17:20:04 +01:00
Evrim Cicek e7288a7b9b Merge remote-tracking branch 'upstream/main' into fix/silent-dragon-death
# Conflicts:
#	mods/horizon/src/test/java/dev/horizonlab/parity/VanillaProtocolClient.java
2026-11-04 19:19:18 +03:00
Ludovic MarieandClaude Opus 5.5 a82ff8ba68 Merge origin/main into feat/windows-arm64-support
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:18:28 +01:00
Ludovic Marie d190e2b642 Merge pull request #9153 from arslanarm/shaderpacks/custom-uniform-scalar-types
🤖 Agent: Built-ins are typed int/float/bool from the probe tables. A custom uniform whose declared type the expression doesn't give reads 0 as a whole, with a note naming it. Nothing else found. I pushed 5eef8152: merged main.
2026-11-04 17:16:29 +01:00
Ludovic Marie 8d856de117 Merge pull request #8659 from Teiwazik/older-servers/dropped-components
🤖 Agent: merging. One cost to know: every item component read now asks `ids::dropped_component` and `ids::quirks`, two thread-local reads, even on a 26.3 server; cheap next to the component decode itself. Proof: union with main: fmt, clippy -D warnings and horizon-protocol tests pass, including the three new wire fixtures from 1.21.11 registries.
2026-11-04 17:16:24 +01:00
Ludovic Marie 4bb36fac4c Merge pull request #9105 from arslanarm/shaderpacks/terrain-texture-matrix
🤖 Agent: `textureMatrix` maps to `gl_TextureMatrix[0]` in vertex stages only, while a fragment stage's own `textureMatrix` keeps its frame slot (zero), matching the probe. Merged with #9180's tuple form of `core_matrix` (type `mat4`). Nothing else found. I pushed e8d6861b: merged main (#9057/#9180 landed).
2026-11-04 17:16:20 +01:00
Ludovic MarieandClaude Opus 5.5 40e4d970b0 Load a bookless lectern's page as -1, as vanilla's Mth.clamp does
LecternBlockEntity.loadAdditional clamps Page to 0..getPageCount(book) - 1,
and getPageCount is 0 without a book, so Math.min(Math.max(page, 0), -1)
gives -1. Every Horizon reader of the page applies max(0) first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:13:46 +01:00
Ludovic MarieandClaude Opus 5.5 56827bc8f8 Native cache: release locks before closing them
A child process spawned while a lease or a Cargo lock is held keeps a copy
of the descriptor until its exec, so closing ours alone left the lock taken
and the next lease or cleanup read Busy (seen as a flaky
clears_only_disposable_outputs... test while other tests spawned Cargo).
Unlock explicitly on drop: that frees it for every copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:13:02 +01:00
Florian ERNSTandCodex 6fc1ba82b4 Merge latest main for advancement reward dispatch
Co-Authored-By: Codex <[email protected]>
2026-11-04 17:12:50 +01:00
Ludovic Marie fed60fb986 Merge pull request #9150 from JulesB40/fix/piston-block-updates-next-tick
🤖 Agent: the changed blocks now go out between the random ticks and runBlockEvents, as in ServerLevel.tick, and what the events and block entities write is held to the next tick; piston-slide measured 3 ticks for every move in three runs on a union with main, piston-push and predict pass, and I fixed the check counting from the previous move's head.
2026-11-04 17:12:33 +01:00
Ludovic Marie 69c3e37905 Merge pull request #8954 from Cheezer1656/upstream/native-send-packet
🤖 Agent: main merged again (mod_api.rs keeps both ClientboundPlayPacket and ServerboundPlayPacket re-exports); native send-packet built, clippy and tests green on union 760aa5921.
2026-11-04 17:12:29 +01:00
Ludovic Marie 9014294e55 Merge pull request #9191 from Domanffe/chore/port-map-landed-rows
🤖 Agent: docs only; the seven functions it marks as ported all exist on main, union 760aa5921 green.
2026-11-04 17:12:25 +01:00
Ludovic Marie 3aac8eb917 Merge pull request #8616 from senjinthedragon/hdr-look
🤖 Agent: merging. Off, `hdr.lighting && hdr.look` also skips the water and cloud second passes, so HDR Lighting off costs less than on, and NikitaMGrimm's PQ captures show 100% of pixels within 1 code of SDR. I moved `set_hdr`'s doc comment back onto `set_hdr` (their nit). Proof: union of this head with main: fmt, clippy -D warnings, render and client tests pass.
2026-11-04 17:12:21 +01:00
Ludovic Marie 21d3fffde2 Merge pull request #9160 from Joansitoh/fix/8701-trident-breeze
🤖 Agent: matches `Projectile.hitTargetOrDeflectSelf` + `Breeze.PROJECTILE_DEFLECTION`: REVERSE power 1, the sound from the breeze, no `onHit`, and `lastDeflectedBy` stops a second turn. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 17:12:17 +01:00
Ludovic MarieandClaude Opus 5.5 111692c509 Launcher: "A new version is available" with Update; copies that can't update say so (#9287)
Launcher 0.2.0 reaches 0.2.40 by itself wherever it can write its own folder (checked with the real
0.2.0 builds on macOS and Linux: tags, signing key, legacy list and asset names all still work). A copy
in a read-only place (the disk image, macOS's translocated copy of an app never moved out of
Downloads, a .zip opened in Explorer) fails at every check and said so only on Settings' Launcher
line, so the player never saw it.

- The window downloads and checks the new launcher (backend::stage_update), then the sidebar says
  "A new version is available" with Update: the window closes, the launcher's own file runs as the
  installer (`apply-update`, update_handoff.rs), waits for the window's process to exit, puts the new
  launcher in place with the same code `horizon-launcher update` uses (place_staged) and starts it.
  Closing the window with an update downloaded installs it too, so launchers still update themselves.
- A copy that can't replace itself (backend::cannot_replace_itself) says so with Download again (the
  website's install page); a failed install starts the old launcher, which says why.
- Docs: launcher/README.md, the "download again once" row in docs/versioning.md; README's release
  link no longer filters on the old launcher-v tags.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:11:37 +01:00
Ludovic MarieandClaude Opus 5.5 010ab500f9 lan_e2e piston-slide: count from the head that lands after the move
The second extension starts with the head the first one left, so taking the
first piston_head read gave a negative count. The landed head is now the first
after the moving block. A loaded machine can run two client ticks between
reads: when the read before the move or before the landing skipped one, the
check says so instead of reporting a wrong count. On playhorizon (load 25-47)
three runs measured 3 ticks for every move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:09:23 +01:00
Ludovic Marie ff8a09cc62 Merge pull request #9118 from Joansitoh/fix/8715-armadillo-click
🤖 Agent: Armadillo.mobInteract is FAIL while isScared() before Animal.mobInteract, so spider eyes no longer end the click on a rolled-up armadillo. Also fixed: brushOffScute is false on a baby, so a baby's brush is not taken (38c31cac5d). The main merge 1e9a62f124 only resolves the import line with #8691 (same resolution as the cg-31 union). Proof: cg-31 union on main 6d43a3593b (playhorizon): fmt, clippy -D warnings, client+lib tests 1638+850 ok.
2026-11-04 17:08:46 +01:00
Ludovic Marie 94a184e236 Merge pull request #9172 from voidsipp/fix/8978-mod-install-feedback
🤖 Agent: merging. `native_notice` is already a plate, so taking it out of `card` also removes the plate-in-plate it had in the results view. Proof: union with main: launcher fmt, clippy -D warnings and lib tests pass.
2026-11-04 17:08:41 +01:00
Florian ERNSTandCodex b9091525a7 Merge latest main while preserving advancement reward regression
Co-Authored-By: Codex <[email protected]>
2026-11-04 17:08:10 +01:00
Florian ERNSTandCodex 381517f87f Run advancement reward functions through the Game dispatcher
Co-Authored-By: Codex <[email protected]>
2026-11-04 17:07:08 +01:00
Ludovic Marie 1e9a62f124 Merge remote-tracking branch 'origin/main' into cg31fix-9118
# Conflicts:
#	crates/horizon-client/src/game/remote_mob_use.rs
2026-11-04 17:06:09 +01:00
Ludovic Marie 47f1c39b7e Merge pull request #7998 from horizon-rust/launcher-loader-version
🤖 Agent: loader version picker, stacked on #7740, green on this head; lands after it.
2026-11-04 17:05:12 +01:00
Ludovic Marie 2980894c35 Merge pull request #7987 from horizon-rust/launcher-java-mrpack
🤖 Agent: .mrpack import, green on this head; rdbtCVS's change request was dismissed because it rested on #6660, closed by Ludovic (Java instances stay).
2026-11-04 17:05:07 +01:00
Ludovic Marie e57b1d34bb Merge pull request #7740 from horizon-rust/launcher-forge-install
🤖 Agent: Forge install for Java instances, green on this head; the only blocker was a change request resting on #6660, which Ludovic closed (Java instances stay).
2026-11-04 17:05:03 +01:00
Ludovic Marie dc5a91ac44 Merge pull request #9299 from horizon-rust/feat/partner-afri-network
🤖 Agent: the partner entry goes below the official one through the same once-only marker logic, so a player who deletes it never gets it back; proof: multiplayer::tests (20) and clippy -D warnings green on the desktop.
2026-11-04 17:04:59 +01:00
Ludovic Marie d08d24e9c2 Merge pull request #8651 from Teiwazik/fix/leave-server-sounds
🤖 Agent: merging. On the single-player path these three calls repeat what finish_close_world already did, and `stop_all` on an empty mixer is a no-op, so the only change is for leaving a server or being kicked. Proof: union with main: fmt, clippy -D warnings and client tests pass.
2026-11-04 17:04:55 +01:00
Ludovic Marie 1a91ea6936 Merge pull request #8691 from CocofireHD/fix/turtle-dig-level-event
🤖 Agent: lands the whole stack (#8637 #8644 #8647 #8652 #8657 #8658 #8660 #8690). Concrete fix: be258bc235 sent every ParticleAt as a speed-0.1 packet (ink at 1/100 speed, client-side hearts/splash/smoke drawn twice); squid ink is now MobEvent::LevelParticles as Squid.spawnInk's sendParticles, and main's wolf test got the new client_tick argument. Proof: 569f9644dc in the cg-31 union on main 6d43a3593b (playhorizon): fmt, clippy -D warnings, client+lib tests 1638+850 ok; CocofireHD's later main merge 5839363b51 only resolves allays.rs (main-hand check + swing kept on main's Option<ItemStack> inventory).
2026-11-04 17:04:50 +01:00
Ludovic MarieandClaude Opus 5.5 cddb55263c Merge main into shaderpacks/pack-atlas-padding
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:03:31 +01:00
Ludovic MarieandClaude Opus 5.5 ef4e5c049d Merge main into fix/item-tnt-block-speed
The soul sand/honey TNT test gets main's new PrimedTnt fields (rotation, block_state).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:03:30 +01:00
Ludovic Marie 42ae7fffe1 Merge pull request #9115 from Joansitoh/fix/8890-conversion-flags
🤖 Agent: ConversionType.convertCommon also copies PortalCooldown, InvulnerableTime, the fire flag and entity tags, which are still not carried over; the five flags here match. The land-stop was main's new MobType field item_stack_limits in this test's literal: main merged and the field added (79576177db). Proof: cg-31 union on main 6d43a3593b (playhorizon): fmt, clippy -D warnings, client+lib tests 1638+850 ok.
2026-11-04 17:02:03 +01:00
Ludovic Marie 6b91fe90d5 Merge pull request #8707 from CocofireHD/fix/attribute-cross-level
🤖 Agent: /attribute now runs in the target's level (in_target_level), so an unbounded @e from the Nether reaches the Overworld cow, as EntitySelector.findEntities searches every level. Proof: command_exec harness PASS (82 s) with the 8 new corpus cases on the cg-31 union on main 6d43a3593b (playhorizon), plus fmt, clippy -D warnings, client+lib tests 1638+850 ok.
2026-11-04 17:01:59 +01:00
Ludovic Marie 3070364215 Merge pull request #8907 from Joansitoh/fix/shulker-teleport-render
🤖 Agent: the slide now starts from the move packet (createInterpolationHandler NO_OP) and is only counted down in client_tick; a riding shulker gets the peek reset without the slide. First parity run died in 2 s on the runner's dead .horizon-prepare.lock link (environment); rerun 41856251948 queued. Proof: cg-31 union on main 6d43a3593b (playhorizon): fmt, clippy -D warnings, client+lib tests 1638+850 ok.
2026-11-04 17:01:55 +01:00
Ludovic Marie aab356c6c4 Merge pull request #8648 from itarqos5/feat/drop-a-client-build
🤖 Agent: a drop starts the same start_build_import the picker uses, behind can_import_build, so a removal in progress can't race it; .exe/.gz/.tgz are taken unread so build_import gives the precise error, and extensionless files are read last. I fixed the wrap spaces in the two error strings and merged main (the stale-key verify failure came from main, fixed by #9265).
2026-11-04 17:01:48 +01:00
Ludovic Marie 46322061d7 Merge pull request #9200 from Domanffe/fix/dropped-pack-copy-errors
🤖 Agent: a failed datapack copy now reports its error instead of passing silently; a half-copied pack still stays in datapacks/ (no cleanup), worth a follow-up. Union 760aa5921 tests green.
2026-11-04 17:01:43 +01:00
Ludovic Marie f85777b490 Merge pull request #8971 from elythepreciouscat/perf/creature-projectile-tick-optimizations
🤖 Agent: the guest-entity and dead-guest lists no longer hang on has_guests (which skips dead and spectating guests), so a lone dead player's ender pearl still vanishes as in vanilla; pearl_death and the client tests passed on union 760aa5921.
2026-11-04 17:01:39 +01:00
Ludovic Marie c496609c3a Merge pull request #9189 from voidsipp/fix/8920-chest-loot-load
🤖 Agent: merging. Only chests get the precedence; barrels, shulker boxes, hoppers and dispensers load through the same RandomizableContainer.tryLoadLootTable in vanilla and still keep their Items here: a follow-up. Proof: union with main: fmt, clippy -D warnings and client tests pass; CI parity runs the new chest_load harness.
2026-11-04 17:01:34 +01:00
Ludovic Marie e9448bd997 Merge pull request #9143 from Ragbie/fix/silent-elder-curse
🤖 Agent: merging. The host's own path now gates only the sound on `elder_curse_param`, and the apparition stays unconditional, which is what ClientPacketListener.handleGameEvent does for GUARDIAN_ELDER_EFFECT. Proof: union with main: fmt, clippy -D warnings and client tests pass (the new guardian test included); CI parity runs the new elder_curse harness.
2026-11-04 17:01:29 +01:00
Ludovic Marie 5568e9d693 Merge pull request #9138 from voidsipp/fix/8627-optical-flow-scene-change
🤖 Agent: merging. Splitting the reduction into `scd_finalize_pass` replaces the completion counter, which WGSL's memory model never promised would make other workgroups' writes visible; the cost is one 9-workgroup dispatch and a 9 KiB buffer per generated frame. Proof: union with main: fmt, clippy -D warnings and render tests pass (the GPU tests need an adapter; CI's run them).
2026-11-04 17:01:25 +01:00
Ludovic Marie cb0b56a9ed Merge pull request #8665 from Stink-O/native/far-terrain-edits
🤖 Agent: merging. Risk noted: the server holds an extra `Arc<Chunk>` per handed-over column until the window's next tick, so an edit in that window copies the chunk on `Arc::make_mut`; one tick at most, and only for bulk edits out of view. Proof: union with main: fmt, clippy -D warnings, client and lan::handoff tests pass.
2026-11-04 17:01:21 +01:00
Ludovic Marie e7174a8571 Merge pull request #9054 from arslanarm/shaderpacks/shadow-pass-back-faces
🤖 Agent: Pack shadow passes now draw every face (and without back-face culling), which roughly doubles the shadow pass's solid quads for Iris-format packs. Horizon's own packs keep the light-facing selection (`every_face: false`). `shadow_water` getting `cull: false` too is a guess the probe didn't measure, as the description says. I pushed 9fac526f: merged main.
2026-11-04 17:01:16 +01:00
Ludovic Marie 1bae636ef6 Merge pull request #8635 from valkdzx/parity/elytra-look-vector
🤖 Agent: merging. FireworkRocketEntity reads `getLookAngle()`, Mth's float sine table, so the boost now matches `travel_fall_flying` and the server; the remaining f64 `view_vector` use is `rocket_hand_angle`, which only places the spark. Proof: union with main: fmt, clippy -D warnings, client tests and tests/test_remote_own_rockets.py pass.
2026-11-04 17:01:12 +01:00
Ludovic Marie 637d885453 Merge pull request #8479 from xFedeT/xfedet-fix-texture-rendering
🤖 Agent: merging the Metal split and the minified core-shader fix. I dropped the ZIP validation from the download path: vanilla's DownloadedPackSource checks only the SHA-1 (checkExistingFile), the strict zip crate refused the streamed Ascendia archive that Horizon's own pack reader already reads (so other Java-readable packs would have been refused too), and it decompressed the whole pack on every cache hit. Proof: fmt, clippy -D warnings and the touched crates' tests pass on a union of this head with main and 19 other PRs.
2026-11-04 17:01:07 +01:00
Ludovic Marie bb99dd0fb9 Merge pull request #8667 from HrafnaValkyrja/fix/tp-parity
🤖 Agent: `set_rotation` is the same eight lines in 11 impls (finite yaw, NaN pitch kept, clamp); a shared helper would keep them from drifting. Item, orb, TNT, falling-block and rocket loaders still read Rotation as [0, 0], as the description says. I pushed 764989a2: merged main, keeping main's new TNT `block_state` argument beside `rotation` (power, block_state, rotation), and gave main's new TNT and orb fixtures the field. Proof: main + this head: fmt and clippy -D warnings (horizon-client and horizon-client-lib, all targets) and horizon-client tests pass, 0 failed.
2026-11-04 17:01:02 +01:00
Ludovic Marie 7ef2b97025 Merge pull request #9059 from arslanarm/shaderpacks/pack-atlas-sprite-sizes
🤖 Agent: Stitching the pack atlas at each sprite's own size only applies to flat draws (a stitched atlas is dropped for grid draws), and a device that can't stitch falls back to the grid with a log line. Nothing else found. I pushed 02e68e15: merged main (#9057/#9180 landed).
2026-11-04 17:00:58 +01:00
Ludovic MarieandClaude Opus 5.5 79d298d339 Offer the Afri-Network partner server once in the server list
Horizon partners with Afri-Network, a server for players in South Africa.
At start the game now adds it once below "Horizon Official" in
servers.dat, like the official server: never again after the player
deletes it (horizon_partner_servers.txt), and not when the list already
has its address. servers::insert_after keeps hidden entries and unknown
fields, as prepend does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:00:38 +01:00
Ludovic Marie 8733f83fd1 Merge main into #9242
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-04 16:57:52 +01:00
TheMrZZandCodex gpt-6.1-sol d15541aa39 Merge main while retaining inline and weather predicate fixtures
Keep the independent inline parser and its fixture definitions alongside the named weather regression.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 16:56:01 +01:00
Ludovic Marie 59d8cc38a2 Merge pull request #9192 from CocofireHD/fix/build-limit-actionbar
🤖 Agent: `InteractionResult.FAIL.consumesAction()` is false, so `handleUseItemOn`'s build-limit message fires. ANY_BLOCK_USE keeps its old condition. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:55:56 +01:00
Ludovic MarieandClaude Opus 5.5 be11ce8db1 benchmarks: Horizon Nightly 2026-11-04 vs vanilla 26.3 on the Mac mini and the desktop
The perf_bench reports behind playhorizon.dev/benchmarks as of 2026-11-04 (horizon-site#58): RD 12 and 32,
three games each, 1280x720, VSync off. The Mac's session was locked (Horizon offscreen) and both machines were
busy (load 17-50 on the Mac, 28-70 on the desktop); site-2026-11-04.md says how they were made and what that costs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:55:16 +01:00
Ludovic Marie 7db3c5afef Merge pull request #9061 from Joansitoh/fix/potion-amplifier-reload
🤖 Agent: the reader treats the byte as `UnsignedBytes.toInt`; the writer clamps to 0..=255 before the byte cast, so 255 and 128 round-trip. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:55:09 +01:00
yosifdheef 5d9886fb34 Merge remote-tracking branch 'upstream/main' into fix/7992-shulker-open-support 2026-11-04 18:54:46 +03:00
Ludovic Marie 1bacc5cee0 Merge pull request #9067 from Joansitoh/fix/end-portal-xp-orbs
🤖 Agent: after the cleanup, `clear_remote_objects` (new connection, level, dimension) drops the orbs with the rest of the old ClientLevel. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:54:42 +01:00
Ludovic Marie 2181ab22eb Merge pull request #9068 from Joansitoh/fix/shulker-arrow-deflect
🤖 Agent: the refusal branch now restores the fire set by the arrow and reverses at power 0.2, as `AbstractArrow.onHitEntity` does when `projectileReceivesSideEffectsOnHit(false)`. This also covers mobs in their hurt cooldown, whose arrows used to vanish. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:53:58 +01:00
Ludovic Marie eeeabc13fc Merge pull request #9069 from Joansitoh/fix/composter-fill-feedback
🤖 Agent: both `levelEvent(1500, …)` calls in `ComposterBlock` (useItemOn, the hopper input) are the null-source overload, so 1500 belongs in the no-exception list. `play_unshared` also stops the serving side from sending a second sound packet. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:53:15 +01:00
Ludovic MarieandClaude Opus 5.5 79576177db Add item_stack_limits to the conversion test's MobType
Main gave MobType an item_stack_limits field after this branch was cut.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:52:25 +01:00
Ludovic Marie 47f857e3c5 Merge pull request #9071 from Joansitoh/fix/chorus-portal-particles
🤖 Agent: `hub.entity_event` broadcasts with no exception, so the eater sees its own event 46, as with `sendToTrackingPlayersAndSelf`. A mob's 46 arrives before its move packet, so its trail runs between the two old positions, as on a vanilla client. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:51:53 +01:00
Ludovic Marie 5eb115301b Merge remote-tracking branch 'origin/main' into cg31fix-9115 2026-11-04 16:51:53 +01:00
Ludovic Marie 031ce8d748 Merge pull request #9113 from Joansitoh/fix/8891-silent-witch
🤖 Agent: the pitch `nextFloat` stays inside `!isSilent()` at both call sites (`Witch.aiStep` line 155, `performRangedAttack` 262), and the test pins the untouched random. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:50:56 +01:00
Ludovic Marie 7acb499c7e Merge pull request #9114 from Joansitoh/fix/8863-trader-end
🤖 Agent: `Level.isDarkOutside`/`isBrightOutside` are both false under `hasFixedTime`. A datapack dimension with fixed time still drinks, because the check is `nether || end`, not the dimension type. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:50:20 +01:00
Ludovic MarieandClaude Opus 5.5 4093c1de28 Merge origin/main into feat/drop-a-client-build (picks up #9265)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:48:12 +01:00
Ludovic Marie 3e5987615d Merge pull request #9116 from Joansitoh/fix/8850-raider-ride-jump
🤖 Agent: `extra.mount` is the vehicle (`getVehicle`), not the rider, so the guard is `!isPassenger()` and the `nextInt(50)` draw is skipped exactly as in `RaiderCelebration.tick`. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:47:55 +01:00
Ludovic Marie 7dbc6f7c4c Merge pull request #9158 from Joansitoh/fix/9132-fishing-minecart
🤖 Agent: `AbstractMinecart.isPickable` is `!isRemoved()`, and the ridden cart is skipped like `isPassengerOfSameVehicle`. The pull reuses `pull_hooked` for every hooked kind. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:47:19 +01:00
Ludovic MarieandClaude Opus 5.5 da82eadb2a Remote mob takes tests: MobType's new item_stack_limits
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:46:52 +01:00
Ludovic Marie 4fc709af20 Merge remote-tracking branch 'origin/main' into cg35/9178 2026-11-04 16:46:34 +01:00
Ludovic Marie da4f89e3d7 Merge pull request #9163 from Joansitoh/fix/8851-raid-horn
🤖 Agent: checked the server thread: the serving Game has no local player (dedicated options), so every player, the window's too, gets its own packet. The 'in raid' set is still one player (`bar.player`), while vanilla's `raidEvent.getPlayers()` holds everyone within 96 blocks; a far second participant hears nothing. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:46:24 +01:00
Ludovic Marie 3a8609eada Merge pull request #9186 from Joansitoh/fix/8937-max-stack-size
🤖 Agent: `max_stack` reads the patch first and falls back to the item when the component is removed, as `ItemStack.getMaxStackSize` does. The wire test covers the add and the `!` removal. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:45:37 +01:00
Ludovic Marie 84f20cd34e Merge pull request #9188 from Joansitoh/fix/9185-bee-sting-mobs
🤖 Agent: matches `Bee.doHurtTarget` (poison on any LivingEntity the sting hurt, 10 s Normal / 18 s Hard). Not ported here: `setStingerCount` on a mob target, which vanilla also increments. Proof: union of all cg-31 PRs on main 6d43a3593b (playhorizon): fmt, clippy -D warnings (client/lib/render all-targets + server lib), client+lib tests 1638+850 ok.
2026-11-04 16:44:52 +01:00
Ludovic Marie 88f0faf67d Merge pull request #9286 from horizon-rust/feat/launcher-wardrobe-only
🤖 Agent: Ludovic's call (11-04): the shop lives on playhorizon.dev/shop (live, Paddle checkout tested end to end with his account), the launcher keeps the Wardrobe with an Open the shop button. launcher job green on this head; verify running.
2026-11-04 16:44:17 +01:00
Ludovic Marie 25f65c8441 Merge main into #9242
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-04 16:44:15 +01:00
Evrim CicekandClaude Opus 5.5 03e77c9fb9 test_dragon_death_outside_end: drop the end gateway count the box cannot see
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:43:08 +03:00
Ludovic Marie c909ca58e6 Merge main into #8954
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/horizon-client/src/mod_api.rs
2026-11-04 16:42:13 +01:00
voidsipandCodex 5150ff66bf Match shulker teleport collision and attachment rules
Co-Authored-By: Codex <[email protected]>
2026-11-04 09:41:51 -06:00
Axxio 9f346f9794 control: horizon-ctl summon spawns server-ticking mobs (fixes #9207)
When running single player on an integrated server, `horizon-ctl summon`
spawned mobs directly into the client window's entity list rather than
delegating to the server thread. Because the client window does not tick
mobs (running `tick_remote` instead of `tick_world`), summoned mobs
never executed AI goals, took no environmental damage, and were not
visible to server queries.

Delegate `summon` to the integrated server in the owner player's level
when `self.integrated` is active, matching other control world commands
and allowing the server to tick the mob and broadcast it via standard
entity tracking.

Managed by Axxio.
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 16:41:46 +01:00
Ludovic MarieandClaude Opus 5.5 9f69fa38e3 Regenerate docs/launcher-commands.md for native-cache
the_launcher_reference_is_up_to_date: the native-cache command and the
native-cache-gib setting were missing from the generated reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:40:49 +01:00
Ludovic MarieandClaude Opus 5.5 9fac526fef Merge origin/main into shaderpacks/shadow-pass-back-faces
Fixture: build/try_build (#9196) and build_with_terrain share one
try_build_with_terrain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:40:10 +01:00
Ludovic Marie 5eef8152d8 Merge remote-tracking branch 'origin/main' into cg32/fix-9153 2026-11-04 16:39:58 +01:00
degepieandClaude Opus 5.5 d0ac649f08 Ender dragon: its fireballs and breath reach mobs too (#8741)
DragonFireball is stopped by any entity it can hit and DragonFireball.onHit
moves its cloud to the first LivingEntity within 4 blocks; AreaEffectCloud
.serverTick applies its instant damage to every LivingEntity in it. Horizon
only looked at players. Mobs now stop a fireball, its cloud snaps to them,
and both breath clouds (the fireball's and the flame phase's) put their
instant damage on the mobs inside through the lingering clouds' existing
cloud_affect path (indirectMagic, undead healed instead).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 20:38:51 +05:00
Ludovic Marie 5d8f9fc2fc Merge pull request #9084 from arslanarm/shaderpacks/raw-texture-defaults
🤖 Agent: I pushed 19b0fd00 and 27d625d8: merged main and filled `Resources.packed` (#9090), `Interface.initial_values` and `Resources.shadow_linear` in the new test, which no longer compiled against current main. Raw textures defaulting to linear + clamp and PNGs to nearest + repeat match the probe table. Nothing else found.
2026-11-04 16:38:33 +01:00
Ludovic Marie 12306e9a47 Merge pull request #8733 from HrafnaValkyrja/fix/vehicle-teleport
🤖 Agent: Merged after review fixes 2c7b4906: /rotate sends PlayerRotation instead of a teleport, the boarding cooldown counts per tick (not per turn), and riding guests hear their vehicle's teleport. Follow-ups listed in the review: mob passengers on /tp, the passengers' rotation, cross-dimension vehicles.
2026-11-04 16:37:49 +01:00
TheMrZZandCodex gpt-6.1-sol e3940bc5f0 Adapt the predicate probe and clarify weather context citations
Give the entity-only probe its dry weather context and keep the new fixture beside stable command groups. Cite the predicate read context without treating abstract reads as complete Level method ports.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 16:37:38 +01:00
Ludovic Marie 234bccad77 Merge pull request #7861 from horizon-rust/perf/sprite-cpu-copy
🤖 Agent: block sprite pixels lz4-packed once uploaded (-19 MB live heap); one risk to know: SpritePixels::get returns zeroed pixels if decompression ever failed, which would show as black textures on a rebuilt renderer (device loss, split screen), not a crash. rdbtCVS's scene_replay adaptation included; verify green on this head, merger waits for parity.
2026-11-04 16:36:50 +01:00
Evrim CicekandClaude Opus 5.5 5a5573a7c1 A dragon dying outside the End ends no fight and is worth 500
EnderDragon.tickDeath calls dragonFight.setDragonKilled and counts the
first kill's 12000 experience only when it has a fight, which only the
End gives (ServerLevel.getDragonFight). Horizon did both everywhere: a
dragon summoned in the overworld left an exit portal and a dragon egg at
0 0 there, and 12000 experience. /kill already checked the dimension.

tools/test_dragon_death_outside_end_parity.py compares the blocks left
and the experience with vanilla's dedicated server.

Fixes #9274

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:36:30 +03:00
Ludovic Marie 712d52f326 Merge pull request #9177 from arslanarm/shaderpacks/fragment-output-component
🤖 Agent: A `component =` output at a location now joins the other outputs at that location into one vec4 target. Mixed scalar kinds, or overlapping components, are refused with the variable's name. Nothing else found.
2026-11-04 16:36:04 +01:00
Florian ERNSTandCodex f3386151d2 Merge latest main for headless bell dispatch
Co-Authored-By: Codex <[email protected]>
2026-11-04 16:35:46 +01:00
Florian ERNSTandCodex bd0a318660 Tick server bells and apply raider glow without a renderer
Co-Authored-By: Codex <[email protected]>
2026-11-04 16:35:45 +01:00
Ludovic MarieandClaude Opus 5.5 e8d6861b39 Merge origin/main into shaderpacks/terrain-texture-matrix
Resolve core_matrix with #9180's (matrix, type) form: textureMatrix is
(hz_TextureMatrix[0], mat4) in vertex stages; both blocks and both tests kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:35:23 +01:00
Ludovic Marie d2e6d705a7 Merge pull request #9119 from arslanarm/shaderpacks/custom-uniform-type-mismatch
🤖 Agent: Unknown names and shape mismatches now zero the whole custom uniform, as your probes show. The correction comment about `round`/`ifb` (no such function, same 0) is noted. Nothing else found; #9153 builds on it.
2026-11-04 16:35:20 +01:00
Ludovic Marie 02e68e1592 Merge remote-tracking branch 'origin/main' into cg32/fix-9059 2026-11-04 16:35:12 +01:00
Ludovic Marie ee3915a050 Merge pull request #9196 from arslanarm/shaderpacks/integer-colortex0-no-final
🤖 Agent: A pack whose integer colortex0 can't reach the screen is now refused at load and cleared from the settings, like a panicking one. The old path cleared the screen every frame instead. The refusal's notes are logged before the reason, so the chat line stays short. Nothing else found.
2026-11-04 16:34:42 +01:00
Ludovic MarieandClaude Opus 5.5 463f3eff0b Test: World.sprite_rects (from #9057) in the terrain parts fixture
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:34:20 +01:00
Ludovic Marie b0546aee34 Merge remote-tracking branch 'origin/main' into cg32/fix-9176 2026-11-04 16:34:08 +01:00
Ludovic Marie 1ac9480b90 Merge pull request #9180 from arslanarm/shaderpacks/core-normal-matrix
🤖 Agent: `normalMatrix` now depends on `core_profile()`: a `#version 150`/`330` without a profile word counts as core, which matches the four probe pictures. Below 150 nothing changes, as the doc comment says. Nothing else found.
2026-11-04 16:33:41 +01:00
rdbtCVSandOpenAI Codex gpt-6.1-sol 47ad28cee8 Merge main and finish RAM limit removal cleanup
Preserve existing Java UI translations, remove obsolete unlimited-memory states, and retain the resident memory diagnostic test.

Co-Authored-By: OpenAI Codex gpt-6.1-sol <[email protected]>
2026-11-04 15:29:07 +00:00
Ludovic MarieandClaude Opus 5.5 27d625d859 Test: Resources.packed (from #9090) in the raw-texture test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:28:59 +01:00
Ludovic Marie 818cb416b3 Merge remote-tracking branch 'origin/main' into cg32/fix-9084 2026-11-04 16:28:58 +01:00
Ludovic Marie 56282c484f Merge pull request #9179 from Domanffe/fix/launcher-wardrobe-save-error
🤖 Agent: main's wardrobe_claim now calls shop_claim, so that one save moved out of this PR; the other five writes now print their error instead of dropping it.
2026-11-04 16:28:28 +01:00
Ludovic Marie d562d76fd9 Merge pull request #8836 from Cheezer1656/native-client-packet-hook
🤖 Agent: read-only and after decode, so a mod can't change what the game handles, and with no mods the dispatch is a loop over nothing on the per-packet path; main merged in (next to #8938's test and #9187's stamped docs).
2026-11-04 16:28:24 +01:00
Ludovic Marie ee06d18c39 Merge pull request #8557 from hildlabs/shadow-options
🤖 Agent: SHADOW_RESOLUTIONS and SHADOW_DISTANCES are ranges, so checking an int option's min and max covers every value the player can pick, and a 0 option drops the shadow pass, not just the map; main merged in (docs/api/shaders.md changelog next to #8512's).
2026-11-04 16:28:19 +01:00
Ludovic Marie 529f1660b0 Merge pull request #9141 from glitchsnake/fix/9058-living-jump-power
🤖 Agent: getJumpPower is now jump_strength × multiplier × getBlockJumpFactor + getJumpBoostPower for every living mob, so cows and pandas jump half as high off honey as in vanilla; I dropped the unused free block_jump_factor wrapper and rabbit's re-export, and the #[ignore]d honey test passed on a tree with the vanilla resources.
2026-11-04 16:28:14 +01:00
Ludovic Marie ecdd4eb222 Merge pull request #9122 from DenisHumen/fix/debug-lines-after-translucent
🤖 Agent: matches DrawableGizmoPrimitives.getGroup (alpha 255 → lines with depth write, the rest linesTranslucentNoDepthWrite), uploading the opaque group first so one buffer serves both draws; I moved the two helpers so translucent_batchable keeps its own doc comment.
2026-11-04 16:28:08 +01:00
Alexander KrylovandHermes Agent 527c6de7cd Launcher: a right click on a sidebar row opens its ⋮ menu
The sidebar's rows carry the menu about that instance (Edit…, Duplicate…, Open
folder, Export…, the desktop shortcut, Delete…), and it is reachable only
through a 32 px ⋮ button. A right click anywhere on the row now opens the same
menu.

Both entry points share one gate, `row_menu_after_press`: it opens the row's
menu, closes it when it is already that row's, and drops the Delete… confirm
flag when the menu moves to another row, which is what the ⋮ did before.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 18:28:02 +03:00
Ludovic Marie c5ae81b41f Merge pull request #9057 from arslanarm/shaderpacks/pack-atlas-sprite-table
🤖 Agent: Small and contained: flat terrain reads each sprite's rectangle from a table instead of assuming a uniform grid, the base for #9059/#9060. Nothing found.
2026-11-04 16:28:02 +01:00
Ludovic Marie 220717bd56 Merge pull request #9104 from arslanarm/shaderpacks/atomic-member-reads
🤖 Agent: This changes the vendored naga GLSL frontend: every non-constant struct member read now goes through a pointer, not a loaded copy of the struct. Every pack's GLSL takes that path, so a naga update must keep the patch (THIRD_PARTY_NOTICES records it). Constant expressions keep the old form. Nothing else found.
2026-11-04 16:25:32 +01:00
Ludovic Marie c62113c79b Merge pull request #9108 from arslanarm/shaderpacks/atomic-pointer-shared-vectors
🤖 Agent: Atomic functions on a member of a shared vector in a declaration list or a shared struct now resolve. The rewrite is limited to `shared` declarations, so other GLSL is untouched. Nothing found.
2026-11-04 16:25:28 +01:00
Ludovic Marie 4e8febfe57 Merge pull request #9090 from arslanarm/shaderpacks/packed-colortex-formats
🤖 Agent: `R3_G3_B2` is stored as 5/6/5 bits because that fits one NVIDIA driver's readback in Iris (the module says so). Another driver may store real 3/3/2, so the probe is worth rerunning on Mesa before more code depends on it. The quantising only touches passes writing such a buffer, so other packs pay nothing.
2026-11-04 16:23:32 +01:00
Ludovic Marie e914dfb4b9 Merge remote-tracking branch 'origin/main' into feat/launcher-wardrobe-only
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-04 16:22:32 +01:00
Ludovic MarieandClaude Opus 5.5 764989a2d4 Merge origin/main into fix/tp-parity
Main added TNT's block_state argument beside this branch's rotation:
both kept (power, block_state, rotation); main's new TNT and orb test
fixtures get the rotation field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:22:12 +01:00
makscoder 6bf332f5c5 Cap command-tree parse recursion depth to stop crafted deep /execute chains crashing the game
`execute run` redirects to the tree root, so parse_nodes recurses once per
nesting level. A crafted deeply nested command overflows the parsing thread's
stack (thread 'Server thread' has overflowed its stack) and kills the game.

Add MAX_PARSE_DEPTH (128) to parse_nodes' recursion: past the limit the branch
yields no result, so the command fails to parse instead of overflowing. 128 is
well below the ~300-level overflow measured on the server thread and far above
any real command chain; vanilla likewise caps command nesting.

Adds tests: a 400-deep execute-run chain is rejected (not overflowed), while
shallow execute chains still parse.

Closes #9252
2026-11-04 18:21:27 +03:00
degepieandClaude Opus 5.5 a6e6ad25c5 Illusioner: blind a targeted mob, not only the player (#8849)
IllusionerBlindnessSpellGoal.performSpellCasting adds Blindness for 400
ticks to the illusioner's target, any LivingEntity. The cast only sent
EffectPlayer, so a villager or iron golem it targeted kept nothing. A new
MobEvent::EffectMob carries the effect to the target mob, whose
add_effect already checks canBeAffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 20:19:32 +05:00
degepieandClaude Opus 5.5 0533124415 Illusioner: count the spell cast down
SpellcasterIllager.customServerAiStep lowers the casting count every
tick, and Illusioner has no override of its own. Horizon did this only
for the evoker, so an illusioner's count stayed at 20 after its first
(mirror) spell: it kept the casting goal for good, cast nothing else and
never shot its bow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 20:19:32 +05:00
MSedgeMC b7a1dd4e41 port_map: Slot.allowModification, and the guest bundle click that asks it
The ledger had no row for the method `BundleItem`'s click override gates
both branches on.
2026-11-04 15:19:31 +00:00
voidsipandCodex 90ecdc3dd0 Stop emptied loot chests refilling after reload
Co-Authored-By: Codex <[email protected]>
2026-11-04 09:19:20 -06:00
Ludovic Marie 2e5a2629a0 Merge pull request #8621 from itarqos5/feat/lod-detail-when-zoomed
🤖 Agent: the zoom cone only boosts tiles covers() says are looked at, and the test pins the plan behind the player as identical zoomed or not; I made lodZoomDetail off by default until a measurement shows the extra far tiles land while the zoom is held.
2026-11-04 16:19:19 +01:00
MSedgeMC 909f6c4e96 port_map: the lectern's load row names the page clamp
`decode_block_entity` ports `LecternBlockEntity.loadAdditional` including
the `Mth.clamp(Page, 0, pageCount - 1)` the row only called "Book and
Page", so the row now says what the load does with the page.
2026-11-04 15:16:25 +00:00
MSedgeMC 132d0f3022 test: a stored lectern page loads inside its book
The decode of a chunk's or a structure's lectern, `decode_block_entity`,
against the pages the book on it has: 7 on a two-page book loads as 1,
-3 as 0, a bookless lectern's 4 as 0, and a page already inside the book
(1 of three) is kept and saved back as 1.

Without the clamp the first case fails with `left: 7, right: 1` and the
second with `left: -3, right: 0`.
2026-11-04 15:16:25 +00:00
MSedgeMC 1267b1e360 fix: a lectern clamps its page to its book on load
`LecternBlockEntity.loadAdditional` reads `Page` through
`Mth.clamp(page, 0, getPageCount(book) - 1)`: a page stored past the
book's last one comes back as the last page, one stored before the first
as the first, and a lectern with no book has the single page 0. Horizon
kept the stored number as it was.

A negative page was the visible half: `LecternBlockEntity.getRedstoneSignal`
(`books.rs::lectern_signal`) answers `floor(page / (pages - 1) * 14) + 1`,
so a stored -3 read 0 to a comparator where vanilla's clamped page 0 reads
1, and the next save wrote the out-of-range page back out. A page above the
end reads the same on both sides, since the signal saturates at 15 either
way, and the open menu already clamps (`menu.rs::set_data`), so what changes
is the load and with it the round trip.
2026-11-04 15:16:24 +00:00
Ludovic Marie 5ff12dfaf4 Merge pull request #8631 from HrafnaValkyrja/feat/admin-player-position
🤖 Agent: I pushed c2aa51c1: merged main and resolved the generated `server-reference.md` row (main's text plus `dimension`), so `the_routes_table_matches_the_code` agrees again. Nothing else found.
2026-11-04 16:14:17 +01:00
martipopsandClaude Opus 5.5 07b1ea4f21 Controllers: menu buttons press on release; screens declare their buttons
A on a focused button now presses it when let go, if the focus is still on it.
Moving the focus, a cancel, a scroll, a dialog opening or another pad taking over
drops the press. On the title, X opens Options and B focuses Quit Game; on the
pause menu, Y focuses the exit button, and A confirms.

A screen says what a button is for (`ui::action_button`, `widgets::declare_action`)
and its pad button and glyph follow: Done, Back, Cancel, Apply, Options and Exit.
Nothing else names the screen. What a screen declared stops counting once another
is drawn over it or replaces it, and `pad status` lists what is declared, what
isn't and the glyphs drawn. tools/pad_menu_e2e.py checks these with the virtual pad.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp82xRaic2UQfeBTnyhW
2026-11-04 10:13:55 -05:00
makscoder 16a4b6010b Cap SNBT parser nesting depth to stop crafted deep values crashing the game
The command SNBT parser (horizon-command) recursed on every nested
compound/list with no depth limit, so a crafted deeply-nested argument
(stack overflow: thread 'Server thread' has overflowed its stack). Both
ArgType::Nbt (summon/data/give NBT) and ArgType::Component (tellraw/text
components) route through this parser, so one guard covers both.

Add a MAX_DEPTH (128) recursion counter to the packrat State, checked in
State::parse: over-deep input now fails to parse (the argument is
rejected) instead of recursing until the stack overflows. 128 is far
below the measured ~300-level overflow on the smallest parsing thread and
far above any real command or data value. Adds tests that deep compound
and deep extra-style list input are rejected while shallow values still
parse.

Closes #9236
Fixes #9261
2026-11-04 18:13:01 +03:00
Ludovic MarieandClaude Opus 5.5 6535ef4545 transfer: the frozen-chat test sends an ack that moves the window before a chat that counts on it
The test sent a chat, then an ack of offset 0, which validates in either
order. It now sends an ack of 1 and then a chat acknowledging the message
the ack brought into the window, which fails validation (and kicks) when
the ack is applied after the chat.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:12:47 +01:00
MSedgeMC 6e215078fe test: a guest's bundle keeps its contents in a refusing slot
The bundle sits in a chest slot whose rules refuse the pickup, with the
prepared catalog behind it so the stack really has bundle contents. A
left click with stone in hand adds nothing, a right click with an empty
hand takes nothing, and the empty bundle in the next slot still fills.
2026-11-04 15:12:42 +00:00
MSedgeMC 9cc1db4268 fix: a bundle in a slot that withholds it keeps its contents
`BundleItem.overrideOtherStackedOnMe` gates both of its branches on
`Slot.allowModification`, which is `mayPickup` and `mayPlace` of the
stack the slot holds - not the placement test alone. `lan::menu`'s
bundle click asked only `View::may_place`, so a guest could fill or
empty a bundle in a slot whose menu refuses the pickup.
2026-11-04 15:12:41 +00:00
Ludovic Marie 3c3d54137b Merge pull request #8679 from HrafnaValkyrja/fix/entity-save-rest
🤖 Agent: I pushed 1fb68131: merged main and added `fire_ticks: 0` to the new trident test, which no longer compiled once main gave `TridentSave` that field. Note that `LeftOwner: 1b` is now always written for tridents; vanilla omits it on a freshly thrown trident still inside its owner's box. Rarely visible.
2026-11-04 16:12:06 +01:00
Ludovic Marie 527152f6f4 Merge pull request #8704 from HrafnaValkyrja/fix/portal-parity
🤖 Agent: `as_console_in_overworld` enters the overworld only when another level is in place, and puts that level back after the line, so the next server tick sees the level it left. The unit test covers only `console_level`; the portal scan is the real proof. Nothing else found.
2026-11-04 16:12:01 +01:00
Ludovic Marie 56a2de7d42 Merge pull request #8722 from HrafnaValkyrja/fix/minecart-momentum
🤖 Agent: `AbstractMinecartContainer.applyNaturalSlowdown` port is exact, f32 arithmetic included, and it returns before the ridden/behaviour factor as vanilla does. Nothing found.
2026-11-04 16:11:57 +01:00
Ludovic Marie a61f360fa5 Merge pull request #8727 from HrafnaValkyrja/fix/carpet-dupe
🤖 Agent: Only a non-source moving block at progress 1.0 now counts as its moved state. One small gap: vanilla reads the moving piston's *collision* shape, so a moved block whose support shape differs from its collision shape (leaves) supports there in vanilla but not here. The carpet machine doesn't need it.
2026-11-04 16:11:52 +01:00
Ludovic Marie 8788891c88 Merge pull request #8859 from HrafnaValkyrja/feat/panel-bans-crashes
🤖 Agent: Crash reports are read only by a name the listing returns, so `../` and absolute paths can't reach outside `crash-reports/`. The test covers both, plus a non-`.txt` file. The panel refetches players and crash reports every 10 polls, a directory listing each time: cheap. Nothing else found.
2026-11-04 16:11:47 +01:00
Ludovic Marie d9901d9fb4 Merge pull request #8869 from HrafnaValkyrja/fix/shadow-non-full-tops
🤖 Agent: `isCollisionShapeFullBlock` is the right gate (`EntityRenderer.extractShadowPiece`), and the test now covers ten non-full blocks, including the hopper whose collision bounds reach y=1. Nothing found.
2026-11-04 16:11:42 +01:00
degepieandClaude Opus 5.5 189b8b2c95 Ender dragon: post GameEvent.ENTITY_DIE when it is removed (#8740)
EnderDragon.tickDeath (at 200 death ticks) and EnderDragon.kill (/kill)
both end with gameEvent(ENTITY_DIE) at the dragon; Horizon posted none.
Sculk sensors now hear the death, a catalyst within reach blooms (no
charge: the dragon's xpReward is 0), and on /kill a warden can hear it
too (after the death flight Warden.canTargetEntity refuses a dragon with
no health left).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 20:11:18 +05:00
rdbtCVSandOpenAI Codex gpt-6.1-sol 908d81bd4c Keep Java heap memory controls when removing Horizon RAM limits
Restore the Home and glass instance editor controls only for Java instances. Keep memory_mb persistence and Java's default heap behavior.

Co-Authored-By: OpenAI Codex gpt-6.1-sol <[email protected]>
2026-11-04 15:10:34 +00:00
abit-foggyandCodex 0b9a5a478c feat(studio): add mcpr recording archive container
Co-Authored-By: Codex <[email protected]>
2026-11-04 05:10:24 -10:00
Ludovic MarieandClaude Sonnet 5.5 bb1f287b39 Launcher: the shop lives on the website; the Wardrobe keeps owned items and purchases
Ludovic decided the cosmetics shop is only on https://playhorizon.dev/shop
(browsing, prices, the founder claim, purchases through Paddle). The launcher's
Wardrobe keeps what the account owns: equip / take off, "Show my cosmetics", and
the purchase history.

- Removed the Shop tab (wardrobe_page/shop.rs), the founder claim flow and its
  checkout polling, Service::claim, Checkout / CHECKOUT_PAGES, the Shop's
  window/countdown rules and the tests of all of it.
- Added an "Open the shop" button (opens the website's shop) beside the Wardrobe
  title, and in the empty state ("You don't own any cosmetics yet.").
- The purchase history ("Your purchases") moved into the Wardrobe page.
- Lang tables: two new strings in all 86, the stale ones removed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 16:08:49 +01:00
Ludovic MarieandClaude Opus 5.5 9e642fbe77 Merge main into #9179
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:07:50 +01:00
CocofireHDandDeepSeek V4.1 Flash 5839363b51 Merge origin/main into fix/turtle-dig-level-event
Resolve game/allays.rs: keep #8652's empty-main-hand gate and MAIN_HAND swing, and take main's Option<ItemStack> allay inventory for the returned stack.

Co-Authored-By: DeepSeek V4.1 Flash (OpenCode) <[email protected]>
2026-11-04 16:07:47 +01:00
Ludovic Marie 16acafe526 Merge pull request #8798 from horizon-rust/agent/rdbtcvs/server-shared-item-defaults
🤖 Agent: one items.json snapshot per load, keyed on the root path; overlapping loads of one root share the native hooks' answers, fine under the same-answer contract. Proof: union with #8751+#8763+#8798 on main a7df9ec: fmt, clippy -D warnings clean; item_defaults/loot/items/font/hud/item_render/cit tests pass (playhorizon).
2026-11-04 16:07:32 +01:00
Ludovic MarieandClaude Opus 5.5 6db44f17af Merge main into #8954
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:07:30 +01:00
Ludovic Marie cf667d7e21 Merge pull request #8763 from horizon-rust/agent/rdbtcvs/server-font-metrics
🤖 Agent: server fonts measure without an atlas; galactic_widths is now zero on a server but only the enchanting table's draw reads it. Proof: union with #8751+#8763+#8798 on main a7df9ec: fmt, clippy -D warnings clean; item_defaults/loot/items/font/hud/item_render/cit tests pass (playhorizon).
2026-11-04 16:07:27 +01:00
Ludovic Marie 7cf2b63e87 Merge pull request #8751 from horizon-rust/agent/rdbtcvs/server-skip-cit
🤖 Agent: a headless load now skips OptiFine CIT; every reader of item_renderer.cit is a draw path (armour stands, elytra, glint upload), so nothing server-side changes. Proof: union with #8751+#8763+#8798 on main a7df9ec: fmt, clippy -D warnings clean; item_defaults/loot/items/font/hud/item_render/cit tests pass (playhorizon).
2026-11-04 16:07:23 +01:00
Ludovic MarieandClaude Opus 5.5 a65ee808dc Merge main into #8836
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:07:07 +01:00
Ludovic MarieandClaude Opus 5.5 3b8896b3b9 Merge origin/main into feat/launcher-data-location (picks up #9265)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:07:02 +01:00
Ludovic MarieandClaude Opus 5.5 c0703a62bc Merge main into #8557
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:06:47 +01:00
AkirabaneandClaude Opus 5.5 51cd08cd3b transfer: the export empties the 2x2 grid, chat acks in order, a failed login gives its expectation back
martipops's second review of #8700.

The export closes the inventory's own 2x2 crafting grid too
(InventoryMenu.removed): guest_close_all empties it only on a real
ContainerClose(0), and a frozen client's is dropped, so its items were
in no record and lost with `player-release moved`.

A frozen player's chat acknowledgements are handled in the same pass as
the last-seen updates of its chat packets, in the order they came, so an
ack followed by a message in one tick still validates.

A login that used up an expectation and fails before it reaches play
(its connection drops in configuration, or the client refuses a
required pack) gives it back with its own deadline, so the proxy's next
attempt within that time is still expected.

The export's reply gives `freeze_ticks_left` beside the record while the
player is frozen, so a proxy does not commit on the target too late for
its release to come in time.

Refs #7484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:05:53 +01:00
TheMrZZandCodex gpt-6.1-sol c7f0b8d666 Supply dry weather in the native criterion test context
Adapt the test world introduced on main to the added predicate read context.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 16:01:14 +01:00
voidsipandCodex d0a1bf746b Sync mob air and frozen counters to clients
Co-Authored-By: Codex <[email protected]>
2026-11-04 09:00:13 -06:00
Delete228andCodex 28b9f949ff Use world landing damage and preserve vanilla sync preloads
Route fall and stalagmite hurt through the world catalog. Retain the identical no-pack preload, atomically replace it for world packs, and protect the frozen snapshot from late vanilla readers. Select all prepared-resource hurt, landing, registry and preload regressions from the damage catalog parity harness.

Co-Authored-By: Codex <[email protected]>
2026-11-04 17:59:23 +03:00
Ludovic Marie 137956911f Merge pull request #9232 from TheMrZZ/fix/inline-execute-predicates
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. check_predicate now decodes an argument starting with { as inline SNBT and sends it through the same evaluator, source entity and origin as a named predicate, as ExecuteCommand.checkCustomPredicate does; the codec now requires terms for all_of/any_of and term for inverted, so a malformed inline predicate fails at parse with no callback, as CompositeLootItemCondition.createCodec does. Merges cleanly into today's main; the merger waits for verify and parity on this head.
2026-11-04 15:59:07 +01:00
jaszkus 7740127129 Merge upstream/main into optimization-launcher
launcher/src/backend.rs keeps both Settings::theme (upstream) and
Settings::performance (this branch). Each launcher/lang/*.json takes upstream's
table and gets the two Performance mode strings added again.
2026-11-04 15:58:10 +01:00
Ludovic Marie 6c5cd897fc Merge pull request #9265 from horizon-rust/fix/stale-menu-navigation-keys
🤖 Agent: main fix: removes only the three keys #8873 dropped from en_us (menu_navigation, menu_focus, menu_pointer) from the 51 tables added after its base; afterwards no table in assets/horizon/lang has a key en_us lacks, which is what lang::tests checks.
2026-11-04 15:56:07 +01:00
Ludovic MarieandClaude Opus 5.5 c787285cfb Merge main into #9179
main's wardrobe_claim now calls shop_claim; its save error is out of this PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:55:21 +01:00
Ludovic MarieandClaude Opus 5.5 3b2da02d11 Lang: drop the removed Menu Navigation keys from 51 more tables
#8873 removed horizon.options.menu_navigation, menu_focus and menu_pointer from
en_us.json and the 35 tables its branch had; the 51 tables main gained since
kept them, so lang::tests::bundled_files_are_served_and_have_no_stale_or_repeated_keys
fails on main (cv_cu first).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:55:11 +01:00
Ludovic MarieandClaude Opus 5.5 4a0122986d Send the brand before the client information, and no ClientInformation at login
Vanilla's ClientHandshakePacketListenerImpl.handleLoginFinished sends the
brand payload, then ServerboundClientInformationPacket; Horizon sent them the
other way round. ClientPacketListener.handleLogin sends no client
information either: the configuration phase already did, and
broadcastClientInformation runs only when an option changes. Horizon sent a
second, identical ClientInformation in play right after Login.

tools/vanilla_wire_e2e.py gains the rules brand-before-information and
no-play-information.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:53:51 +01:00
Ludovic MarieandClaude Opus 5.5 1385a4353e rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:53:33 +01:00
Florian ERNSTandCodex gpt-6.1-sol b1d0b765d4 Merge main and preserve both corpus scenario additions for #9232
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 15:51:22 +01:00
TheMrZZandCodex gpt-6.1-sol 79ba2548e4 Merge current main into named weather predicates
Preserve upstream corpus additions and destroy-progress observations alongside the weather regression.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 15:50:24 +01:00
TheMrZZandCodex gpt-6.1-sol ccea38a806 Evaluate named weather predicates using effective weather
Read the existing dimension-aware weather levels in the predicate context and honor both optional weather fields. Add a guarded Game/Java command regression and a resource-free evaluator test without changing weather simulation.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 15:48:49 +01:00
Ludovic Marie 0805df6e08 Merge pull request #9219 from horizon-rust/fix/native-base-revision
🤖 Agent: launcher-only fix, CI green on this head (launcher, verify); main merged in (lang tables only); ThinkPad: fmt, clippy -D warnings, 480+89 launcher tests pass, incl. the new pin/on_base tests and the 86-language i18n check.
2026-11-04 15:48:33 +01:00
degepieandClaude Opus 5.5 86f9a3f780 A swimming dolphin leaves its trail of dolphin particles
Dolphin.tick on a client: a dolphin in water whose squared speed is
over 0.03 (and that has AI) puts four dolphin particles a tick behind it,
0.3 to either side, set back along its view vector by 0.5 to 1.2 drawn
from its own random. client_ai_step had no dolphin, so the window never
made them. It runs over the window's copies of the mobs, so single player,
LAN guests and servers all get the trail.

Fixes #8566

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 19:48:13 +05:00
Ludovic Marie ff63338824 Merge pull request #9173 from jaszkus/feat/launcher-update-installer
🤖 Agent: the setup now draws the launcher's scene and glass plate with the player's accent; I made the main actions Kind::Primary and slowed the settings poll from 16 ms to 500 ms so the setup does not redraw at 60 fps for it.
2026-11-04 15:47:19 +01:00
voidsipandCodex 4b8643a18f Let Breezes deflect fishing hooks
Co-Authored-By: Codex <[email protected]>
2026-11-04 08:44:55 -06:00
Ludovic Marie 411ace47fe Merge pull request #9197 from TheMrZZ/fix/decorated-pot-data
🤖 Agent: this head carries all 40 of TheMrZZ's open PRs as one fast-forward chain (age order, main merged), because 38 of them append to tools/command_exec_corpus.py and conflicted pairwise; each one's current head is an ancestor, so GitHub marks all 40 merged with this one. Two hand merges to check: #8847, #8986 and #9101 now share one canBeABaby == false branch in mob_to_nbt that drops Age, ForcedAge and AgeLocked (AgeableMob.addAdditionalSaveData writes none of them), and data_of tries #9174's comparator view, then this PR's pot view. Proof: verify passed on 94ccd9c8e (this head = that + main); clippy -D warnings (also --no-default-features) and horizon-client-core/horizon-world tests pass on the union on playhorizon; the merger waits for verify and parity / parity here.
2026-11-04 15:44:44 +01:00
Ludovic Marie 1a3e0f94e7 Merge pull request #8204 from Akirabane/feat/live-heartbeat-interval
🤖 Agent: Requeued after merging #8200's main merge (12e979554) into it, no conflict. Live status heartbeat interval; lands after #8200. Fixes in this PR: the log reads the interval after setting it, as vanilla does, and a set after a cancelled heartbeat is refused, as ManagementServer does (b6204bf860). management_protocol --fresh PASS on the union of this wave plus the fix. On this head: horizon-server fmt, clippy -D warnings and 140 tests clean. The rest of the selection runs in CI run-parity.
2026-11-04 15:44:40 +01:00
degepieandClaude Opus 5.5 0a9aa16802 Name a server's data-pack enchantments by their synced description
Tooltips read the enchantment table built from the game's own files, so an
enchantment a server's data pack adds fell back to its raw id
("enchex:drill II"). The server sends that entry's definition in the
registry sync; join the entries the game lacks to the table the tooltip and
the enchanting clue read (Enchantment.getFullname), as client_biomes does
for biomes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 19:44:12 +05:00
Ludovic MarieandClaude Opus 5.5 d52e1187b4 Merge main into #8954
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:43:00 +01:00
martipopsandClaude Opus 5.5 4682b7838c Merge upstream main into fix/shop-window-clock
Keeps the Paddle checkout from main and the clock and unknown-state fix. Both sides added tests at the end of wardrobe/tests.rs and an item to the same import in wardrobe_page/shop.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 09:42:37 -05:00
Ludovic MarieandClaude Opus 5.5 22a7070cdb Merge main into #8836
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:42:35 +01:00
Ludovic MarieandClaude Opus 5.5 5d06f30d10 Merge main into #8557
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:42:09 +01:00
Ludovic Marie 84b3bf3027 Merge pull request #8200 from Akirabane/feat/live-accept-transfers
🤖 Agent: Requeued at rdbt's main merge 12e979554 (clean, no conflict hunks; it carries #8128, now merged). Live accept-transfers, log line as setAcceptsTransfers. management_protocol --fresh on the union of this wave (with #8128 and #8204): every accept-transfers case matches vanilla. The union passed fmt, clippy -D warnings, 3388 tests and the Python suite; rdbt reran the management_methods and accepting_transfers tests on this head. The rest of the selection runs in CI run-parity.
2026-11-04 15:40:58 +01:00
Ludovic MarieandClaude Opus 5.5 168a30e617 Merge main into the TheMrZZ chain (cg-30)
tools/command_exec_corpus.py merged per function (main's new groups kept);
the harness keeps main's destroy_progress records and the chain's record-count check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:39:50 +01:00
jaszkus ab6d67da82 Launcher: a Performance mode, and an accent that changes at once
The launcher feels slow on older computers (i5-7500, Intel HD Graphics 630):
every frame rebuilds the page, the scene redraws its moving parts, and the
glass plates blur the scene again whenever the accent or the blur changes.

Settings > Launcher > Performance mode now turns on the cheaper path: the
scene does not restart on every mouse move, the sky is baked at a quarter of
the window's resolution, the plates' blur is three box passes instead of a
Gaussian, a window resize is baked in the background, and the plates are a
solid colour (no glass, no blur, no backdrop to sample). In that mode a new
accent reaches the background in the same frame as the buttons.

Outside the mode, the accent no longer re-blurs the plates: the backdrop is
blurred once and tinted as it is read, and a tint change is baked in the
background, one bake at a time, the last tint always landing.
2026-11-04 15:38:41 +01:00
Ludovic Marie 4fdf97368b Merge pull request #9203 from NikitaMGrimm/sprint-dust-own-random
🤖 Agent: matches Entity.spawnSprintParticle drawing from this.random; the window's own player has no client-side random, so it keeps the particle engine's, and the golem's nextInt(5) and offsets now come from the same random in vanilla's order.
2026-11-04 15:38:14 +01:00
Ludovic Marie 5d5de221a7 Merge pull request #8697 from itarqos5/perf/name-the-resource-loader-threads
🤖 Agent: the Windows thread_name reads Rust's own handle, and the BUSY guard already answers a nested allocation from thread::current(); I shortened the loader names to load-<step> so Linux's 15-byte limit keeps core and collision apart.
2026-11-04 15:35:36 +01:00
Ludovic Marie b815d63191 Merge pull request #8845 from Lyvt-Dev/fix/8832-warden-pushing
🤖 Agent: matches Warden.isPushable (!isDiggingOrEmerging && super), applied both in pushable() and on the receiving side of push_entities, while the warden still pushes others; I removed the two "digging" parity cases that actually spawned a standing warden.
2026-11-04 15:35:32 +01:00
Ludovic Marie 1e7cf8b5c8 Merge pull request #8216 from janibert1/player-address
🤖 Agent: address is set in all three places NativeServerPlayer is built (guest list, the acting player via lan_acting_uuid, and the command path), as IP only with no port; I added the missing API fragment (server_player_address.json) so it gets a number at stamping.
2026-11-04 15:35:28 +01:00
Ludovic MarieandClaude Opus 5.5 b156e0570c Import: keep the shortened error arm within rustfmt's width
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:33:56 +01:00
yosifdheef 30bce4e15a Read an open shulker box's real support shape
Vanilla asks the box's block entity for its support shape because a shulker box is a dynamic shape: an open box supports only through the one-pixel plate opposite FACING, while the exported state facts always see a closed full cube. Route sturdy, canSupportRigidBlock and canSupportCenter through the level's lid state when the block is a shulker box, keeping the cached path for every other block.
2026-11-04 17:32:49 +03:00
Ludovic MarieandClaude Opus 5.5 6d07525616 Data location: path lookups fall back instead of panicking
data_dir(), build_dir() and game_home() still expect()ed on a location error.
The quiet installer runs before data_location::startup(), and retry() clears
FORCE_DEFAULT before re-reading, so a background thread could hit the panic
the review asked to remove. A location that does not open now stands in as the
default folders there, as startup() makes it for the window. Also joins the
startup problems with "\n" instead of a literal line break.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:31:38 +01:00
Ludovic MarieandClaude Opus 5.5 c34cd71603 Merge origin/main into feat/launcher-data-location
Language tables: main's keys plus the PR's data-location keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:31:38 +01:00
Ludovic Marie b9dc4c1f96 Merge pull request #8873 from martipops/controller/phase1-input
🤖 Agent: release_keyboard_mouse now releases only what Source::Keyboard holds, so a splitscreen handoff no longer drops the pad's held jump or sneak, and pad_button replays the actions stored at press time on release, so a binding changed mid-hold can't leave a key stuck. Players who chose Pointer in the removed Menu Navigation option get focus in menus after this.
2026-11-04 15:30:51 +01:00
masa-masa-0314andZCode 67a19214c3 CI: bump GitHub Actions to Node 24 runtimes (checkout v7, artifacts v7/v8, setup-python v7, setup-java v6)
Every actions/* pin now runs on Node.js 24 instead of the deprecated Node.js 20 runtime the runners currently force:

- actions/checkout v4 -> v7: v5.1+ blocks fork-PR checkouts under pull_request_target/workflow_run; this repo only checks out ref: main in those workflows (pr-labels, overlap-note) and the workflow_run release checkout resolves to the default branch, so nothing changes. The PR-head checkout in ci.yml runs under plain pull_request.
- actions/upload-artifact v4 -> v7: v7's direct uploads are opt-in (archive: false) and the ESM migration is transparent to callers.
- actions/download-artifact v4 -> v8: v5's path change only affects artifact-ids downloads, which no workflow uses; v8's enforced digest checks and skip-decompress only surface for direct uploads.
- actions/setup-python v5 -> v7: the removed pip-install input is unused (only python-version: '3.12' is set).
- actions/setup-java v4 -> v6: v4 itself now emits a deprecation warning (v4.9.1); temurin/25 usage is unchanged in v6.

GitHub-hosted runners ship 2.327.1+, so the node24 minimum is met.

Co-Authored-By: ZCode <[email protected]>
2026-11-04 22:27:36 +08:00
Ludovic MarieandClaude Opus 5.5 17ce0331f8 Native cache: a build goes ahead when only the cleanup is refused; ca and 50 new locales
A filesystem without file locks or a native folder linked to another drive made
Cache::acquire fail, and logged() then refused the build itself, which worked
before the cache existed (martipops' review). Only Busy still refuses; any other
lease error is a build.log warning and skips the trim.

The launcher check failed on lang/ca.json: main added 51 locales since the last
main merge, so each gets the five cache messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:27:35 +01:00
Ludovic Marie 08a514dc26 Merge pull request #9100 from repositorykreml1n/codex/fix-issue-9021
🤖 Agent: merging. Mining speed now reads the player's computed `minecraft:mining_efficiency` (Player.getDestroySpeed), and held Efficiency joins the equipment modifiers with its slot group, so an offhand Efficiency pickaxe no longer speeds mining. Proof: CI parity passed on this head, including the 9 new `mining_efficiency_9021` destroy-progress cases compared bit for bit with vanilla's getDestroyProgress.
2026-11-04 15:27:35 +01:00
Ludovic Marie c915f2a878 Merge pull request #9193 from Domanffe/chore/roadmap-end-city-links
🤖 Agent: nothing found; #1928, #1911 and #2037 are merged and are the fixes the new text cites.
2026-11-04 15:27:30 +01:00
Ludovic Marie e013d898ff Merge pull request #8399 from itarqos5/perf/lod-reduced-material-depth
🤖 Agent: only approximate tiles with width >= 16 stop at depth 2, and the test proves the Full tile still paints below depth 2, so the Reduced assertion cannot pass vacuously.
2026-11-04 15:27:27 +01:00
Ludovic Marie 99eb6630b7 Merge pull request #9107 from janibert1/merchant-offer-hook
🤖 Agent: the hook gets session.offers[index], the live offer, while trade_with_villager keeps the pre-hook copy; a mod raising max_uses on a shift-click only takes effect after that click, as the docs say.
2026-11-04 15:27:22 +01:00
Ludovic Marie c036a7473e Merge pull request #8935 from janibert1/death-drops
🤖 Agent: the hook runs after destroyVanishingCursedItems and before the random throws, and the retain only drops stacks a mod emptied, so with no mod the drops and their RNG draws are unchanged.
2026-11-04 15:27:17 +01:00
Ludovic Marie bdb45ed319 Merge pull request #8925 from minantiii/fix/armadillo-entity-action
🤖 Agent: matches Armadillo.rollUp/rollOut, gameEvent(ENTITY_ACTION) before makeSound and independent of isSilent; the new creatures.rs arm comes after the flap arm, so chicken/parrot flaps are unaffected.
2026-11-04 15:27:13 +01:00
Ludovic Marie 0492f8db4e Merge pull request #9142 from NerfPhaselock/fix/gpu-culling-dx12-packed
🤖 Agent: the guard keys on flat_min_sections.is_some(), so DX12 without flat page groups (no pulled pipelines) keeps GPU culling, and the test pins both DX12 cases.
2026-11-04 15:27:08 +01:00
Ludovic Marie 20ae91bbde Merge remote-tracking branch 'origin/main' into fix/native-base-revision
# Conflicts:
#	launcher/lang/af.json
#	launcher/lang/ar.json
#	launcher/lang/az.json
#	launcher/lang/ba.json
#	launcher/lang/be.json
#	launcher/lang/bg.json
#	launcher/lang/br.json
#	launcher/lang/bs.json
#	launcher/lang/ca.json
#	launcher/lang/cs.json
#	launcher/lang/cv.json
#	launcher/lang/cy.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/el.json
#	launcher/lang/eo.json
#	launcher/lang/es.json
#	launcher/lang/et.json
#	launcher/lang/eu.json
#	launcher/lang/fa.json
#	launcher/lang/fi.json
#	launcher/lang/fil.json
#	launcher/lang/fo.json
#	launcher/lang/fr.json
#	launcher/lang/fur.json
#	launcher/lang/fy.json
#	launcher/lang/ga.json
#	launcher/lang/gd.json
#	launcher/lang/gl.json
#	launcher/lang/haw.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/hy.json
#	launcher/lang/id.json
#	launcher/lang/ig.json
#	launcher/lang/is.json
#	launcher/lang/it.json
#	launcher/lang/ja.json
#	launcher/lang/ka.json
#	launcher/lang/kk.json
#	launcher/lang/kn.json
#	launcher/lang/ko.json
#	launcher/lang/ky.json
#	launcher/lang/la.json
#	launcher/lang/lb.json
#	launcher/lang/li.json
#	launcher/lang/lmo.json
#	launcher/lang/lo.json
#	launcher/lang/lt.json
#	launcher/lang/lv.json
#	launcher/lang/mk.json
#	launcher/lang/mn.json
#	launcher/lang/ms.json
#	launcher/lang/mt.json
#	launcher/lang/nl.json
#	launcher/lang/no.json
#	launcher/lang/oc.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sah.json
#	launcher/lang/se.json
#	launcher/lang/sk.json
#	launcher/lang/sl.json
#	launcher/lang/so.json
#	launcher/lang/sq.json
#	launcher/lang/sr.json
#	launcher/lang/sv.json
#	launcher/lang/szl.json
#	launcher/lang/ta.json
#	launcher/lang/th.json
#	launcher/lang/tr.json
#	launcher/lang/tt.json
#	launcher/lang/uk.json
#	launcher/lang/ur.json
#	launcher/lang/uz.json
#	launcher/lang/vec.json
#	launcher/lang/vi.json
#	launcher/lang/yi.json
#	launcher/lang/yo.json
#	launcher/lang/zh.json
#	launcher/lang/zu.json
2026-11-04 15:26:25 +01:00
Ludovic MarieandClaude Opus 5.5 153ef53e42 Merge #8200's main merge into the heartbeat interval (no conflict)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:25:38 +01:00
rdbtCVSandCodex gpt-6.1-sol 0e58346b64 test(mobs): mark jump-world regression as requiring vanilla resources
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 14:24:16 +00:00
Ludovic Marie 6f62647a23 Merge pull request #9184 from Domanffe/fix/options-txt-save-warning
🤖 Agent: nothing found.
2026-11-04 15:23:41 +01:00
Ludovic Marie 9fb6e4f20c Merge pull request #9235 from horizon-rust/feat/launcher-paddle-claim
🤖 Agent: launcher-only. The claim opens a checkout URL only on Horizon's own /shop/pay page (prefix allowlist, tested), and the 3 s poll stops after 20 min or once the set is claimed; without a checkout in the answer the one-click claim is unchanged.
2026-11-04 15:23:36 +01:00
Ludovic Marie 1aea26b3e0 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-04 15:23:33 +01:00
Ludovic Marie 7dfbd05ac3 Merge pull request #9110 from DenisHumen/fix/offhand-tempt
🤖 Agent: TemptGoal.shouldFollow and TemptingSensor test both hands; player_view now fills off_hand, and lan_guest_views swaps each guest's off hand in through the same function, so single player on the server thread gets it too.
2026-11-04 15:23:31 +01:00
Ludovic Marie 4ece2302d4 Merge pull request #9103 from DenisHumen/fix/unicode-font-sign-stretch
🤖 Agent: default ascii.png glyphs keep their 0..8 box, so sign text without Force Unicode draws exactly as before; only Unifont's half-scale glyphs change width.
2026-11-04 15:23:27 +01:00
Ludovic Marie 8453750c94 Merge pull request #8936 from Cheezer1656/upstream/native-send-chat
🤖 Agent: the message is trimmed and the Chat option (Commands Only, Hidden) applied as the chat screen does; the test needs prepared resources and is #[ignore]d, so CI does not run it.
2026-11-04 15:23:23 +01:00
Ludovic Marie 2f29699b0a Merge pull request #8938 from Cheezer1656/upstream/client-chat-received
🤖 Agent: Only Show Secure Chat now drops a line before mods hear it (ChatListener.showMessageToPlayer's order, then onClientPlayerChat), and chat_received returns at once with no mods loaded, so the chat-type registry lookup costs nothing without them.
2026-11-04 15:23:18 +01:00
Ludovic Marie 0073f3bb30 Merge pull request #8872 from Delete228/create-named-damage
🤖 Agent: controlled particles are dropped on a resource reload so a stale sprite-set index cannot pick another set, and the only cost for vanilla particles is one more match arm in tick and in the translucent test.
2026-11-04 15:23:14 +01:00
Ludovic MarieandClaude Opus 5.5 569f9644dc Pass the event sink to sync::client_tick in the wolf head-tilt test
sync::client_tick took an events vector in c0cd050fac; main's newer
remote_mob_data test still called it with two arguments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:23:12 +01:00
Ludovic Marie 31fac68df4 Merge pull request #8822 from AfrobamaYT/camera-pose-hook
🤖 Agent: one dispatch per frame, each non-finite value falls back to vanilla's on its own, and posed_rotation is only set when the pose differs, so billboards keep the vanilla rotation path when no mod moves the camera.
2026-11-04 15:23:09 +01:00
Ludovic Marie 07a1a4af76 Merge pull request #8698 from ErikKalikas/mod-menu-extra
🤖 Agent: the 32 KiB cap is enforced on both encode and decode, a vanilla client ignores the unknown horizon:menu_extra channel, and the lan_bot test pins that the payload arrives right before its own window's OpenScreen.
2026-11-04 15:23:04 +01:00
Ludovic Marie 1077a75e5f Merge pull request #8636 from GabrielNichols/codex/port-pack-harness-verdict
🤖 Agent: an explicit passed:false or a result with zero executed checks now stays Partial, and a legacy count-only result with passes still reads harness green, as carried_harness_keeps_current_and_legacy_successes pins.
2026-11-04 15:22:59 +01:00
Ludovic Marie c77c40b021 Merge pull request #8512 from hildlabs/shader-option-sliders
🤖 Agent: a drag saves the option and rebuilds the pack once, on release, not on every pointer move; the manifest already refuses min >= max and step <= 0, so slider_position and slider_value cannot divide by zero.
2026-11-04 15:22:54 +01:00
Ludovic Marie 12336db449 Merge pull request #8438 from ErikKalikas/mod-reload-listeners
🤖 Agent: the pack stack is rebuilt only when a mod registered a listener, so a /reload without native mods pays nothing, and folder_ok refuses '..' and absolute paths, so a listener cannot read outside data/<namespace>/.
2026-11-04 15:22:49 +01:00
Ludovic Marie f010091162 Merge pull request #7226 from Corbonat/fix/gui-glint-atlas-5851
🤖 Agent: GUI glint now takes vanilla's ITEMS-atlas rectangles (Stitcher's order, split and filtering padding reproduced) while CIT glint keeps sprite-local UVs; the cost is one more decode of the item textures per pack load in prepare_glint_atlas, nothing per frame.
2026-11-04 15:22:45 +01:00
Ludovic Marie c42b5b17f0 Merge pull request #9187 from Domanffe/chore/stamp-native-hooks-399
🤖 Agent: re-running tools/stamp_native_hooks.py on this PR's base (38df83828) reproduces the tree byte for byte, and main has not touched a fragment since; the native-hook-stamp workflow that should have opened this PR has failed its last five runs, which the orchestrator will look at.
2026-11-04 15:22:41 +01:00
Delete228andCodex 25dd488069 Merge current main while preserving world damage snapshots
Keep the successful falling-block hurt advancement, passenger frostbite tick and general world-pack tag synchronization.

Co-Authored-By: Codex <[email protected]>
2026-11-04 17:20:36 +03:00
Ludovic MarieandClaude Opus 5.5 ab3eceeeb9 Launcher Shop: the founder claim opens Paddle's free checkout; purchase history
- When the cosmetics service answers a claim with a checkout (the 0 CHF Paddle checkout
  Ludovic chose for founder claims), the launcher opens it in the browser, but only
  Horizon's own checkout page (https://playhorizon.dev/shop/pay?…). It then asks the
  service every 3 s, for 20 minutes at most, until Paddle's webhook has granted the set.
  The button says "Waiting for the checkout…" and a link opens the checkout again.
- The Wardrobe tab's claim button takes the same path.
- "Your purchases" under the founder panel: date, item, price (Free at 0), state (Paid,
  Partly refunded, Refunded, Charged back) and the order number from Paddle's receipt,
  for Mojang's purchase-history rule.
- The claim note no longer promises "no card asked" (unconfirmed at 0 CHF).
- 11 new strings in all 86 tables; the dropped one removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:20:33 +01:00
Ludovic Marie 14868bea32 Merge pull request #8575 from MSedgeMC/fix/xp-orb-light
🤖 Agent: matches ExperienceOrbRenderer: getBlockLightLevel is block+7 clamped with sky untouched (was a floor of 10 on both), the quad spans (-0.5,-0.25)..(0.5,0.75) at 0.3, and light is read at the eye (0.425).
2026-11-04 15:19:56 +01:00
Florian ERNST 75b6327008 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/inline-execute-predicates 2026-11-04 15:19:41 +01:00
Florian ERNSTandCodex cd8d1c5fd7 Evaluate inline execute predicate values
Co-Authored-By: Codex <[email protected]>
2026-11-04 15:19:40 +01:00
AxxioandAntigravity 5013115571 launcher: fix more button click, list gaps, input height, blur, and scroll propagation
- Prevent Play more button click from bubbling or launching the game
- Fix missing gaps between items in virtualized lists (cull::column) for versions and patch notes
- Match small field height (36px) and tokens for Motd, Port, Token, AddPlayer, and DeleteServer
- Do not apply 24px baseline blur when blur is set to 0
- Stop scroll event propagation on dropdowns, version lists, and nav tabs

Fixes #9148
Fixes #9169
Managed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 15:18:37 +01:00
Ludovic Marie 7950c14bba Merge pull request #8947 from NikitaMGrimm/offscreen-hdr
🤖 Agent: without HORIZON_HDR_OUTPUT, offscreen_output() is None and every new branch is skipped; the crash marker is only written with a surface, so an offscreen HDR run cannot turn HDR off for the next windowed start.
2026-11-04 15:18:06 +01:00
Ludovic MarieandClaude Opus 5.5 db733482fd Drop the unused block_jump_factor wrapper and re-export
Mob::block_jump_factor is the one callers use; the free function and rabbit's
re-export had no callers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:16:35 +01:00
Ludovic Marie 2c90c298c1 Merge pull request #8543 from NerfPhaselock/perf/gpu-culling-g1b
🤖 Agent: inert until gpu-culling is switched on (only control.rs and scene_replay do), and the fade-end heap means a frame with no fade due does no extra work; martipops' read found every fade start sets the flag before prepare.
2026-11-04 15:16:22 +01:00
rdbtCVSandCodex gpt-6.1-sol 6b33c32f7b fix(fishing): share synchronized random helper with remote hooks
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 14:15:53 +00:00
Ludovic MarieandClaude Opus 5.5 bf939d4926 Give translucent_batchable its doc comment back
The gizmo helpers went in between translucent_batchable's doc comment and the
function, so rustdoc showed the batching text on debug_line_opaque.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:15:44 +01:00
Ludovic Marie 5dc270d3f9 Merge pull request #8817 from itarqos5/test/lod-bench-span-histogram
🤖 Agent: example-only; the last histogram bucket (32) is printed as 32+ so a capped count is not misread as exact.
2026-11-04 15:15:08 +01:00
martipopsandClaude Opus 5.5 d36aaf9c0c Launcher: the Shop reads its window on the service's time, and an unknown claim state is safe
A fast clock closed a window the service still called open, hiding the Claim button on a set that's retired for good. Each answer's Date header now shows how far the clock is ahead, and the Shop reads the window's dates with that taken off. A clock on time or behind reads as before.

A claim state the launcher doesn't know now parses instead of failing the catalogue and the account's answer. It offers no claim and doesn't say the set is over.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 09:15:05 -05:00
Loki 613b1f9574 Merge remote-tracking branch 'origin/main' into fix/8703-breeze-invulnerable-to-breeze 2026-11-04 23:15:04 +09:00
Ludovic MarieandClaude Opus 5.5 14e59bf1ad Keep dead and spectating guests in projectile ownership
has_guests counts only guests a projectile can hit (alive, loaded, here, not
spectating), so gating dead_guests and guest_entities on it dropped a lone
dead player's pearl from ender_pearls_vanish_on_death (pearl_death harness)
and a dead shooter's arrow from its owner. Both lists are built every tick
again; only the guest target copy stays gated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:15:04 +01:00
Ludovic Marie 482d31394c Merge pull request #8766 from NikitaMGrimm/translucent-batching-checkbox
🤖 Agent: switch() now ANDs translucent_batching_offered() exactly as hdr_smooth_gradients already does, and the saved preference is untouched, so a device that can batch gets it back.
2026-11-04 15:15:03 +01:00
Ludovic Marie 3a2bc05ae2 Merge pull request #8738 from NikitaMGrimm/lan-close-test-windows
🤖 Agent: the loop now asserts the outbox really holds bytes (pending > 0 three times 50 ms apart) before sending Disconnect, which the old 64 MiB burst only assumed; the 256-MiB cap fails loudly instead of hanging.
2026-11-04 15:14:58 +01:00
Ludovic Marie 81d1cf35d1 Merge pull request #8671 from Qwerner88880/pr-ready-beside
🤖 Agent: only Public tree and Python tests move beside cargo, and every Python test that names cargo mocks it, so they never fight cargo for the target dir; Parity stays after cargo since it builds.
2026-11-04 15:14:54 +01:00
Ludovic Marie e1597349dd Merge pull request #8711 from NikitaMGrimm/install-sh-test-skip-windows
🤖 Agent: skipIf(os.name == "nt") sits above the bash/openssl skip, so Windows never reaches System32's WSL bash (#5383), and CI's Linux job still runs all signature cases.
2026-11-04 15:14:49 +01:00
martipopsandClaude Opus 5.5 58ffef7e6b Launcher: a cosmetic item's id and hash can't leave the cache folder
Service::item_cached built its path from catalogue values unchecked. It now refuses an entry
whose id or hash isn't 1 to 64 of a-z, A-Z, 0-9 and _, the rule the game already applies
(horizon_cosmetics::fetch), before the disk or the service is touched.

The hash isn't checked against the bytes: nothing in this repository says what it is a digest of.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp7yEJwPTJ2kw29LWdk1
2026-11-04 09:14:35 -05:00
Ludovic Marie 77f9739ab0 Merge remote-tracking branch 'origin/main' into cg31fix-9069
# Conflicts:
#	crates/horizon-client/src/game/lan.rs
2026-11-04 15:14:09 +01:00
voidsipandCodex b27922de61 Synchronize raider celebration metadata
Send the celebration flag and its false default for all raiders, then apply it on clients. Exercise real tracking and packet decoding against native dirty metadata without loading shared resource state.

Fixes #8848

Co-Authored-By: Codex <[email protected]>
2026-11-04 08:14:02 -06:00
degepieandClaude Opus 5.5 22148d740e Minecarts: sync DisplayState and DisplayOffset to clients
The tracker sends AbstractMinecart's DATA_ID_CUSTOM_DISPLAY_BLOCK (entry
11, optional block state) and DATA_ID_DISPLAY_OFFSET (entry 12, the kind's
default offset), and the client reads them back into the cart, so a cart's
custom block shows over the network and in single player.

Fixes #8050.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 19:11:27 +05:00
Ludovic MarieandClaude Opus 5.5 405186aa36 Squid ink: send it as server particles, not every mob particle
be258bc235 sent every MobEvent::ParticleAt as a particle packet with a speed
of 0.1. The squid's ink velocity was already multiplied by 0.1, so clients got
a hundredth of it. The other ParticleAt events (hearts, splashes, wither smoke,
glow, bubbles) are client-side addParticle calls in vanilla that the clients
draw themselves, so they were drawn twice.

Squid.spawnInk is ServerLevel.sendParticles(count 0, speed 0.1): it is now a
MobEvent::LevelParticles, which draws it here and sends it to the players
within 32 blocks, and ParticleAt stays local.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:10:53 +01:00
rdbtCVSandCodex gpt-6.1-sol 1ca0b67be3 Merge main while retaining lifecycle and observability API goldens
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 14:10:41 +00:00
LokiandAntigravity 89e8dd9c16 mobs: breeze damage invulnerability from other breezes (fixes #8703)
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 23:10:24 +09:00
Ludovic MarieandClaude Opus 5.5 e30618104b Setup: Primary main actions, and look for settings twice a second
Install/Update, Uninstall and Launch Horizon are each screen's one main action:
Kind::Primary, as the launcher marks them. The live-settings wake drew the
window every 16 ms and read settings.json's metadata each frame; 500 ms still
picks a change up while the setup is open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:10:14 +01:00
TiggerTakkyTTTandCodex d32a0cfbf8 Merge upstream main into auth API goldens
Resolve the api.rs test-module overlap while retaining the auth and command goldens alongside upstream lifecycle coverage.

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 21:10:04 +07:00
Ludovic MarieandClaude Opus 5.5 dfd4d41e63 Import: drop the line-wrap spaces inside two error messages
Both strings had a run of spaces where an editor wrapped them, so the note
read "a Horizon                  game build."

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:56 +01:00
Ludovic Marie 85d380ff3c Merge remote-tracking branch 'origin/main' into cg31/8691 2026-11-04 15:09:56 +01:00
Ludovic MarieandClaude Opus 5.5 640ff80c83 Merge the stack's own main merges (#8652, #8657, #8658, #8660)
rdbtCVS's agent merged main into four of the stacked branches. Merging those
heads here lands every PR of the stack with #8691.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:55 +01:00
Ludovic MarieandClaude Opus 5.5 695feba0bc Far terrain zoom detail: off by default
Up to about 45% more far tiles while a zoom is held, and a far tile takes
seconds: a quick spyglass look queues work that lands after it. The extra stays
in horizon-extras.txt (lodZoomDetail:true) until a measurement shows it pays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:42 +01:00
Ludovic MarieandClaude Opus 5.5 d0da65d108 Resource loaders: name threads load-<step>
Linux keeps 15 bytes of a thread name, so "horizon-load-core" and
"horizon-load-collision" both read "horizon-load-co" in the heap census and the
startup trace there. "load-<step>" keeps every loader apart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:34 +01:00
Ludovic MarieandClaude Opus 5.5 6d9c504d06 Shulker: a riding shulker's setPos still closes the lid
Shulker.setPos resets DATA_PEEK on any block change after the first tick,
passenger or not; only the teleport slide is skipped for a passenger. The
slide is cleared by startRiding (on_start_riding), not by every move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:33 +01:00
Ludovic Marie 6d43a3593b Merge pull request #9212 from horizon-rust/fix/8669-useitemon-freeze
🤖 Agent: The freeze came from map searches opened from chests, which built full jigsaw starts and scanned every chunk of each saved region for each candidate. Same answers on main and this branch (24 targets × 5 points × 4 runs); on a pregenerated world the bamboo-camp map search drops from 2.1–3.6 s to 0.04–0.07 s of server-thread CPU, and main hit the 60 s watchdog in 4 of 9 runs. fmt, both clippies and the touched crates' tests pass, plus 10 harnesses incl. server_world_gen (/locate against vanilla); dedicated_server's vanilla oracle crashed on the loaded desktop, so CI runs it.
2026-11-04 15:09:32 +01:00
Ludovic MarieandClaude Opus 5.5 98e73cd84b rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:22 +01:00
Ludovic MarieandClaude Opus 5.5 d580df1589 mob_ai parity: drop the 'digging' warden push cases
They spawned a warden with no flag, which stands: nothing in the fixture starts
a dig, so they compared a standing warden under a digging name. The emerging
cases stay; the unit test covers digging through set_pose.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:18 +01:00
Ludovic MarieandClaude Opus 5.5 180e7b2631 Native builds: say which mod pins the commit, and rebuild on the picked Horizon
A player's native builds kept compiling 9d979ca (Nightly 2026-10-31)
whatever Nightly or build profile they picked: Right-Click Crops 1.0.0
pins that commit and names no hook points' version, so the pin chose the
build's commit while the Mods page said "built on Horizon <picked Nightly>".

The build record now keeps the picked version's own commit and the mods
whose pin chose another; the Mods page names them, and "Rebuild on
Horizon" builds every mod on the picked version's commit (on_base,
native-build --ignore-pins), which later rebuilds keep. Older records
whose commit differs from their Nightly's read the pins from the
instance's mods. Also translates "Paste a friend's invite code".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:12 +01:00
Ludovic MarieandClaude Opus 5.5 a4d2184bdf Clear the old level's orbs with the other remote objects
orbs_after_client_respawn was only ever called with true, so the helper
and its test only restated Vec::new(). clear_remote_objects now clears the
orbs itself, which also makes the connect path's own orbs.clear() redundant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:09:09 +01:00
Ludovic MarieandClaude Opus 5.5 5752c7bb5b Native mods: give NativeServerPlayer.address its API fragment
The field said "API next" without a fragment, so stamping would never give it
a number. tools/native-hook-fragments/server_player_address.json requests one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:08:52 +01:00
Ludovic MarieandClaude Opus 5.5 38c31cac5d Armadillo: a baby's brush is not taken on the client
Armadillo.brushOffScute returns false for a baby, so the brush falls through
to FAIL (rolled up) or Mob.mobInteract's PASS instead of ending the click.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:08:41 +01:00
Ludovic MarieandClaude Opus 5.5 2c7b49062e Vehicle teleport: review fixes (rotation packet, cooldown per tick, rider's vehicle)
- /rotate on a server's player sends ClientboundPlayerRotationPacket
  (ServerPlayer.forceSetRotation) when its turn ends, riding or not,
  instead of a zero-motion teleport (or nothing for a rider).
- The guest's boarding cooldown counts down once per tick in
  guest_server_tick, not once per enter_guest; a vehicle dropped in
  guest_vehicle_tick also starts it.
- A teleported vehicle's riding guests hear the vehicle's teleport
  (ClientboundTeleportEntityPacket), so a driven boat is not put back
  by the client's next MoveVehicle.

Found by martipops's review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:06:22 +01:00
Ludovic MarieandClaude Opus 5.5 94ccd9c8ee Merge #9140 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:06:18 +01:00
Ludovic MarieandClaude Opus 5.5 15f1090ed1 Merge #9130 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:06:18 +01:00
Ludovic MarieandClaude Opus 5.5 c063a488ce Multiplayer: CLIENT_TICK_END only while the client has a level
Minecraft.tick sends ServerboundClientTickEndPacket only while it has a
level, which ClientPacketListener.handleLogin makes and
handleConfigurationStart clears. Horizon sent one every tick from the end
of configuration, so a client waiting for a busy server's Login (Paper
with plugins: seconds) sent dozens of play packets vanilla never sends.

tools/vanilla_wire_e2e.py joins a vanilla 26.3 server through
net_capture.py with the server's Login held back 1 s, and checks the
capture against rules of vanilla's client; no-play-before-login is the
first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:06:14 +01:00
Ludovic MarieandClaude Opus 5.5 4d7b9f28b7 Merge main into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:05:36 +01:00
rdbtCVSandCodex gpt-6.1-sol 12e9795542 Merge main into live transfer management branch
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 14:05:27 +00:00
Ludovic Marie 7bacc86a5e Merge remote-tracking branch 'origin/main' into cg32/fix-8733 2026-11-04 15:03:51 +01:00
Ludovic MarieandClaude Opus 5.5 e9109d87f4 Remote mob takes: keep food and shears as the 26.3 client answers them
The 26.3 client's Animal.mobInteract answers CONSUME for an adult's food
(SUCCESS for a baby that can age up), and Sheep.mobInteract answers CONSUME
for shears whether or not the sheep is sheared: only the server checks
canFallInLove and readyForShearing. So both keep taking the click. Keep the
dye change, which matches DyeItem.interactLivingEntity, and add its
isSheared check: a sheared sheep passes any dye.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:22 +01:00
Ludovic MarieandClaude Opus 5.5 39a8fc809b Merge #9197 into the TheMrZZ chain (cg-30)
Conflicts resolved per function: every top-level def matches one side (the
harness main() keeps both sides' options), every groups() entry is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:16 +01:00
Ludovic MarieandClaude Opus 5.5 7486e7ba45 Merge #9174 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:03 +01:00
Ludovic MarieandClaude Opus 5.5 7a1256e51d Merge #9157 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:01 +01:00
Ludovic MarieandClaude Opus 5.5 8cfa002c12 Merge #9145 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:00 +01:00
Ludovic MarieandClaude Opus 5.5 7704a05c0b Merge #9117 into the TheMrZZ chain (cg-30)
Conflicts resolved per function: every top-level def matches one side (the
harness main() keeps both sides' options), every groups() entry is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:03:00 +01:00
Ludovic MarieandClaude Opus 5.5 ae2d4b2442 Remote boats: swing when boarding, pass only as AbstractBoat.interact does
The 26.3 client's AbstractBoat.interact answers SUCCESS (a swing) whenever
the player isn't sneaking and the boat isn't out of control; only the
server's startRiding checks for room, so a full boat or a riding player
doesn't pass on the client. AbstractChestBoat passes only out of control,
not sneaked at, with room; otherwise it opens the chest. Minecart.interact
is the one that answers CONSUME and doesn't swing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:57 +01:00
razzo715andClaude Opus 5.5 c5b45b6bec Idle brewing stands and campfires sleep like idle furnaces
A brewing stand that isn't brewing, has no ingredient, has nothing to
refuel from and whose bottles already match its block state, a lit
campfire with nothing on it, and an unlit one with no cooking progress do
nothing in their server tick; they now sleep on the same terms as idle
furnaces. Lighting or putting out a campfire changes its block state, which
wakes it.

16,384 idle brewing stands cost 2.01 ms a tick instead of 8.14, and as
many unlit campfires 2.05 instead of 7.52.

Part of #8558

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:53 +01:00
razzo715andClaude Opus 5.5 386d37503d Idle furnaces sleep until their block entity or block state changes
An unlit furnace, blast furnace or smoker with no cooking progress and no
fuel and input pair to light does nothing in AbstractFurnaceBlockEntity's
server tick. Such a furnace now leaves the tick loop: BlockEntities keeps a
set of sleeping positions, and any change to one (get_mut, insert, take and
put, remove, a block state change, a chunk load, a bulk edit) wakes it at
once, so it ticks on the same game tick as before.

16,384 idle furnaces cost 2.07 ms a tick instead of 8.76 (2.11 for as many
chests, which have no ticker).

Part of #8558

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:53 +01:00
Ludovic MarieandClaude Opus 5.5 bc2adf84dc Merge #9101 into the TheMrZZ chain (cg-30)
Conflicts resolved per function: every top-level def matches one side (the
harness main() keeps both sides' options), every groups() entry is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:50 +01:00
Ludovic MarieandClaude Opus 5.5 19b0fd00ca Test: fill the fields main added since this branch
Merging main left a test initializer without the field main added
(TridentSave.fire_ticks / Interface.initial_values and
Resources.shadow_linear), so the test target stopped compiling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:16 +01:00
Ludovic MarieandClaude Opus 5.5 1fb681318d Test: fill the fields main added since this branch
Merging main left a test initializer without the field main added
(TridentSave.fire_ticks / Interface.initial_values and
Resources.shadow_linear), so the test target stopped compiling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:15 +01:00
Ludovic MarieandClaude Opus 5.5 48c2142692 Fishing: draw the bite's plunge from the hook's synchronized random
FishingHook takes the plunge from syncronizedRandom, reseeded each tick
from the hook's UUID and the game time, not from the level's random: a
draw there shifts every later level draw out of vanilla's order. The
plunge is also computed in float as Mth.nextFloat does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:02:13 +01:00
Ludovic Marie fed2d76e02 Merge remote-tracking branch 'origin/main' into cg32/fix-9084 2026-11-04 15:01:57 +01:00
Ludovic Marie bc9d7d3807 Merge remote-tracking branch 'origin/main' into cg32/fix-8679 2026-11-04 15:01:55 +01:00
Ludovic MarieandClaude Opus 5.5 bd72a6a4eb Merge #9078 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:51 +01:00
Ludovic MarieandClaude Opus 5.5 6c593adc80 Merge #9053 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:50 +01:00
Ludovic MarieandClaude Opus 5.5 2f904b7019 Merge #9032 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:50 +01:00
Ludovic MarieandClaude Opus 5.5 8719c32206 Merge #9029 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:49 +01:00
Ludovic MarieandClaude Opus 5.5 3d2e7d93d4 Merge #9024 into the TheMrZZ chain (cg-30)
Conflicts resolved per function: every top-level def matches one side (the
harness main() keeps both sides' options), every groups() entry is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:49 +01:00
Evrim CicekandClaude Opus 5.5 aa9002e445 A saved dragon or crystal keeps the fields kept with it once it moved
The dragon and the crystals were saved over the compound they were loaded
with only while they stood where they were loaded (anon_raw looks it up
by position), and never over the fields remember_tags keeps for them.
A dragon always flies off, so its Silent, Tags or name were lost at the
next save. Both now save over persist.raw, as /data get already reads
them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:01:42 +03:00
Ludovic Marie 6475f62f3c Merge pull request #8844 from TiggerTakkyTTT/test/server-api-backup-goldens
🤖 Agent: Server API backup goldens: test-only, the download case reads the real streamed bytes. The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. management_protocol (--fresh, on that union): every case of this PR matches vanilla; the only 3 differences were #8204's heartbeat cases, fixed there. Other harnesses PASS on the union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. dedicated_server could not run locally (the vanilla oracle's world generation hit its watchdog under the desktop's memory pressure), so it and the rest of the selection run in CI run-parity.
2026-11-04 15:01:34 +01:00
Ludovic MarieandClaude Opus 5.5 4fc40ee8e0 Merge #9017 into the TheMrZZ chain (cg-30)
Conflicts resolved per function: every top-level def matches one side (the
harness main() keeps both sides' options), every groups() entry is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:33 +01:00
Ludovic MarieandClaude Opus 5.5 815b10e907 HDR: put set_hdr's doc comment back on set_hdr
NikitaMGrimm's test report noted set_hdr_lighting landed between set_hdr
and its doc comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:30 +01:00
Ludovic Marie 48684a9b1b Merge pull request #8834 from TiggerTakkyTTT/test/server-api-lifecycle-goldens
🤖 Agent: Server API lifecycle goldens: test-only, type-checked replacement of the volatile fields. The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. management_protocol (--fresh, on that union): every case of this PR matches vanilla; the only 3 differences were #8204's heartbeat cases, fixed there. Other harnesses PASS on the union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. dedicated_server could not run locally (the vanilla oracle's world generation hit its watchdog under the desktop's memory pressure), so it and the rest of the selection run in CI run-parity.
2026-11-04 15:01:28 +01:00
Ludovic MarieandClaude Opus 5.5 9c11a961b4 Merge #9001 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:19 +01:00
Ludovic MarieandClaude Opus 5.5 72352fd257 Merge #9000 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:18 +01:00
Ludovic MarieandClaude Opus 5.5 076ed2dd4a Merge #8997 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:17 +01:00
Ludovic MarieandClaude Opus 5.5 fda782feeb Merge #8991 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:16 +01:00
Ludovic MarieandClaude Opus 5.5 04542d1eff Merge #8986 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches
one side, every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:15 +01:00
Ludovic MarieandClaude Opus 5.5 fc381670ce Merge #8984 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches one side,
every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:14 +01:00
Ludovic MarieandClaude Opus 5.5 bb9d8c7d5b Server packs: keep vanilla's hash-only cache check
Drop the ZIP structure validation from the download path. Vanilla's
DownloadedPackSource checks only the SHA-1 (checkExistingFile), and the
strict zip-crate validator rejected the Java-compatible streamed archive
that started this PR, which Horizon's own pack reader already reads; any
other archive Java opens but the zip crate doesn't would have been refused
too. It also decompressed the whole pack on every cache hit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:01:10 +01:00
Ludovic MarieandClaude Opus 5.5 b8eaa4cb3c Merge #8981 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:00:47 +01:00
Ludovic MarieandClaude Opus 5.5 6e4d10fcd1 Merge #8979 into the TheMrZZ chain (cg-30)
Corpus conflict resolved per function: every top-level def matches one side,
every groups() entry of both sides is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:00:46 +01:00
Ludovic Marie e1fca55972 Merge pull request #8128 from TiggerTakkyTTT/fix/server-management-entity-range
🤖 Agent: Entity broadcast range: vanilla logs the requested percentage, then clamps 10..1000 and saves the clamped value. The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. management_protocol (--fresh, on that union): every case of this PR matches vanilla; the only 3 differences were #8204's heartbeat cases, fixed there. Other harnesses PASS on the union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. dedicated_server could not run locally (the vanilla oracle's world generation hit its watchdog under the desktop's memory pressure), so it and the rest of the selection run in CI run-parity.
2026-11-04 15:00:17 +01:00
Ludovic MarieandClaude Opus 5.5 aabda3e079 Merge #8970 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:43 +01:00
Ludovic MarieandClaude Opus 5.5 94b8b2fb47 Merge #8968 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:42 +01:00
Ludovic MarieandClaude Opus 5.5 492887393e Merge #8965 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:42 +01:00
Ludovic MarieandClaude Opus 5.5 f8fe006043 Merge #8959 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:42 +01:00
Ludovic MarieandClaude Opus 5.5 badc87b99e Merge #8956 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:42 +01:00
Ludovic MarieandClaude Opus 5.5 de08a70aa5 Merge #8953 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:41 +01:00
Ludovic MarieandClaude Opus 5.5 2f4de5382f Merge #8949 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:40 +01:00
Ludovic MarieandClaude Opus 5.5 81977ac47e Merge #8943 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:40 +01:00
Ludovic MarieandClaude Opus 5.5 b5efda5f7d Merge #8940 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:39 +01:00
Ludovic MarieandClaude Opus 5.5 e61dd55a1e Merge #8922 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:39 +01:00
Ludovic MarieandClaude Opus 5.5 d610f6ed98 Merge #8909 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:38 +01:00
Ludovic MarieandClaude Opus 5.5 4bcc83ce33 Merge #8888 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:37 +01:00
Ludovic MarieandClaude Opus 5.5 74e2e70389 Merge #8878 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:37 +01:00
Ludovic MarieandClaude Opus 5.5 7f39f7025c Merge #8860 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:36 +01:00
Ludovic MarieandClaude Opus 5.5 807b7a62f5 Merge #8847 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:36 +01:00
Ludovic MarieandClaude Opus 5.5 c74d24ac9d Merge #8841 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:35 +01:00
Ludovic MarieandClaude Opus 5.5 54ef85585d Merge #8821 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:35 +01:00
Ludovic MarieandClaude Opus 5.5 0d67cfd734 Merge #8799 into the TheMrZZ chain (cg-30)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:35 +01:00
GabrielNichols ec037e9e7f Merge upstream/main into codex/native-cache-cleanup-8028 2026-11-04 10:58:02 -03:00
Ludovic MarieandClaude Opus 5.5 b6204bf860 Management: a set after the heartbeat was cancelled is refused, as vanilla's
ManagementServer.scheduleHeartbeat cancels the running heartbeat and
schedules a new one only above 0. A set to 0 or less that stopped a
running heartbeat leaves the cancelled future in place, and cancel(true)
on it returns false, so vanilla refuses every later set until the server
restarts: it logs that the interval was not updated, keeps nothing and
answers with the interval in force. The management_protocol harness
showed it (vanilla answered 0 to the last set to 30, saved 0 and read 0
after the restart; Horizon took 30).

Horizon now keeps that state beside the interval. The harness cancels
with -5 instead of 0, so the value saved and read back after the restart
differs from the default, and expects vanilla's -5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:57:38 +01:00
Ludovic MarieandClaude Opus 5.5 c2aa51c15f Merge origin/main into feat/admin-player-position
Resolve the generated docs/api/server-reference.md row: main's text with
the new dimension field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:55:35 +01:00
rdbtCVSandCodex gpt-6.1-sol bbedf3b9ec fix(render): collapse skinned entity culling condition
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 13:55:34 +00:00
Alexander KrylovandHermes Agent bac0d3ca47 Data packs: a dropped pack that cannot be copied is reported
`copy_pack` walks a dropped folder with `let _ = fs::copy(...)` in every
branch and answers `true` for anything that holds a `pack.mcmeta`, so a folder
that half-copied (a held file, a full disk, a path too long) was announced as
installed and the pack appeared with files missing.

`copy_dir` now returns whether every copy landed and logs each file it could
not write; `copy_pack` passes that answer up, and the drop handler says the
pack is one it could not copy. A pack that is no pack still answers false with
no log line.

The test copies a real pack into a path that cannot be made and asserts false,
then copies it into a real folder and asserts the file arrives.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:55:06 +03:00
Mayonesu0andClaude Opus 5.5 2f6d9c7dc4 mobs: a powered wither refuses a player's wind charge
WitherBoss.hurtServer refuses a direct AbstractArrow or WindCharge once
isPowered. A wind charge hurts mobs as DamageKind::Thrown, which
wither::accepts let through, so every charge took a point off the armor.

The check is on the projectile, not the damage kind. A breeze's
BreezeWindCharge deals the same damage but is not a WindCharge (both only
extend AbstractWindCharge), so it still hurts, unlike what the issue asks.
/damage with the wind_charge type has no direct charge and goes through too.

tools/test_wither_wind_charge_parity.py compares the three cases against a
vanilla dedicated server.

Fixes #8779

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:54:22 +01:00
voidsipandCodex 850c43dedb Synchronize zombie infection and cure sounds
Use the vanilla infection/conversion level events and the client cure-start entity event. Respect silent mobs, draw cure volume before pitch on each client and avoid duplicate captured sound packets.

Fixes #8892

Co-Authored-By: Codex <[email protected]>
2026-11-04 07:52:45 -06:00
Ludovic Marie 4d6f1253d2 Merge pull request #8620 from horizon-rust/feat/launcher-shop-ui
🤖 Agent: Ludovic approved the shop and the dark founder set (11-04). verify, launcher, parity-scope green on this exact head (rdbtCVS's options-test fix included); desktop fmt/clippy/tests passed on the shop changes. The claim window stays closed on the service until the Paddle 0 CHF checkout follow-up lands, so merging only shows the shop and worn cosmetics.
2026-11-04 14:48:32 +01:00
Ludovic Marie f521bd9eb1 Merge pull request #8194 from Akirabane/feat/prometheus-entities-chunks
🤖 Agent: Prometheus entity/chunk counts read only when the supervisor samples server-status; main merged (rdbt's d938f6a1dd). The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. Harnesses PASS on that union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. boat_submerged, boat_paddle_reset and dedicated_server did not run locally: the vanilla oracle's world generation hit its watchdog 3 times under the desktop's memory pressure, before any comparison. They and the rest of the selection run in CI run-parity.
2026-11-04 14:48:28 +01:00
Ludovic Marie 971ded7bc7 Merge pull request #8171 from Akirabane/fix/8156-boat-powder-snow
🤖 Agent: Boat powder snow matches PowderSnowBlock.entityInside (stuck 0.9/1.5/0.9, nextBoolean then two randomBetween draws). The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. Harnesses PASS on that union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. boat_submerged, boat_paddle_reset and dedicated_server did not run locally: the vanilla oracle's world generation hit its watchdog 3 times under the desktop's memory pressure, before any comparison. They and the rest of the selection run in CI run-parity.
2026-11-04 14:48:24 +01:00
Ludovic Marie c6734d6acb Merge pull request #8167 from Akirabane/fix/8156-rider-frost
🤖 Agent: Rider frost walker / block effects for passengers; old_position reset keeps the sweep to the vehicle's cell. The union of this wave's 15 PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop. Harnesses PASS on that union: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container. boat_submerged, boat_paddle_reset and dedicated_server did not run locally: the vanilla oracle's world generation hit its watchdog 3 times under the desktop's memory pressure, before any comparison. They and the rest of the selection run in CI run-parity.
2026-11-04 14:48:20 +01:00
Florian ERNSTandCodex 7474284c81 Expose decorated pot state to block data commands
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:48:09 +01:00
razzo715andClaude Opus 5.5 603bd9e4ad /item and /loot reach every container block entity's slots
/item ... block, execute if items block and /loot insert|replace block
only found slots in a chest, so a furnace, brewing stand, crafter,
chiseled bookshelf, shelf or jukebox answered "does not have slot". They
now take every block entity that is a Container in vanilla
(BlockItemAccessor.getContainer), and each one sets its slot through its
own Container.setItem: a furnace restarts cooking only for a new input, a
crafter enables the slot again, a bookshelf takes only books and a jukebox
starts or stops its song. Any other block answers "is not a container".
/loot checks canPlaceItem first, as LootCommand does.

Fixes #8685

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:46:56 +01:00
Alexander KrylovandHermes Agent c6093b3821 Roadmap: the two End city items link the pull requests that fixed them
Both items were filed help-wanted and their issues are closed, so
`python tools/roadmap.py check` answers "every linked issue and pull request is
closed: ship or drop it" for each: the work landed and the roadmap never
learned which pull request did it, so `sync` cannot move either item.

Links added: #1928 for end-city-banners, #1911 and #2037 for end-city-loot,
each merged on 2026-10-26, plus the sentence in `dev` that says what the fix
did. ROADMAP.md and roadmap/roadmap.json are what `roadmap.py build` writes
from the toml.

Status stays help-wanted: `now` needs an owner and a tracking issue and the Now
list is already at its 8-item cap, while `shipped` needs a release tag and
these went into Nightly builds after v0.2.x froze.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:45:04 +03:00
2a410bab80 Format the max-stack wire test the way cargo fmt checks it.
Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:42:29 +01:00
Alexander KrylovandHermes Agent f9e59fa328 Port map: seven rows whose methods the tree already ports
Each row below was marked `missing`, and the Rust function it should point at is
in the tree, with a doc comment naming the vanilla method it mirrors. Verified
by reading each function, not by the note the row carried.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:41:28 +03:00
Evrim CicekandClaude Opus 5.5 a8e50ef283 A silent ender dragon dies without the global death roar
EnderDragon.tickDeath sends globalLevelEvent(1028) at the death's first
tick only when !isSilent(). Horizon roared for every dragon. The dragon's
Silent is kept with the saved fields Horizon models nowhere
(remember_tags), so the death reads it from there.

tools/test_dragon_death_roar_parity.py compares the 1028 events a client
is sent for a dying loud and a dying silent dragon with vanilla's
dedicated server (VanillaProtocolClient's new level-events mode,
LevelEventTranscript).

Fixes #8739

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:41:20 +03:00
AxxioandAntigravity 671e8750e9 Remote mob takes: guard breeding cooldown, sheared sheep and matching dyes (fixes #9121)
In Vanilla Minecraft 26.3 (Animal.mobInteract and Sheep.mobInteract):
- Right-clicking an adult animal with breeding food when unable to breed
  returns PASS on the server; the client does not swing or spawn feed particles.
- Right-clicking a sheared sheep with shears returns PASS and does not swing.
- Right-clicking a sheep with matching dye returns PASS and does not swing.

Guard these interactions in client's remote_mob_takes so the client does not
falsely predict swing arm and feed particles.

Managed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 14:40:23 +01:00
degepieandClaude Opus 5.5 45bb5766eb Advancements: every trigger casts the looking_at ray only when asked
PlayerPredicate.matches looks for the entity under the player's view
only when the predicate has looking_at. #8687 skipped the ray for tick
and location only; every other trigger that builds the player's view
still cast it, against every entity, on each event.

Each of those call sites now passes its trigger id (player_entity_for),
so the ray runs only when one of that trigger's criteria may ask. A view
that serves two triggers (the thrown-item pickup, the KilledTrigger
damage source) checks both. Commands keep player_entity(), which always
looks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 18:39:51 +05:00
dbdfed59aa A bee sting poisons mobs, not only the player.
Vanilla poisons any living thing the sting hurts, so a villager or a fox was taking the hit and walking away clean.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:39:37 +01:00
voidsipandCodex f1566f80d3 Give chest loot tables precedence over saved items
Leave randomizable-container inventories empty when their NBT supplies a valid loot table, allowing the existing command and chunk loading paths to retain the table. Add a red/green regression and a real vanilla inventory-load comparison.

Fixes #8920

Co-Authored-By: Codex <[email protected]>
2026-11-04 07:38:04 -06:00
Alexander KrylovandHermes Agent b85e07a5de Stamp the pending native hook fragments through API 399
main carries 40 fragments whose markers have not been consumed, so
`python tools/stamp_native_hooks.py --check` exits 1 there. This is one run of
that tool on current main: it numbers the fragments in first-parent merge
order, writes the markers into the hand-written API types, and inserts each
`doc_summary` as an `API N adds ...` paragraph in docs/native-mods.md.

No hand-written line: the stamp pass owns native-hooks.json, NATIVE_HOOKS_API
and docs/native-mods.md, and editing any of them by hand is what the fragments
replaced.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:38:00 +03:00
67cfb2dc40 Keep a stack's own max stack size when it is sent to a client.
A cobblestone stack limited to 16 was merging to 64 after the component was dropped on the way to the window.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:37:17 +01:00
Arslan ArmanulyandClaude Opus 5.5 d75f5a4280 Shader packs: turn off a pack whose integer colortex0 can't reach the screen
A pack with an integer colortex0 and no `final` left to draw it (none, or
one that is skipped) has no colours the screen can show: #9007 made the
screen only clear, so Arc v0.15.2 drew a black world. `PackPost::new` now
refuses such a pack, `Renderer::set_shader_pack` returns the reason, and
the game turns the pack off with the usual log line and chat message, as
a pack that fails to load, so the world draws without it. An integer
colortex0 with a working `final` still loads and draws.

Fixes #9165

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:37:09 +05:00
rdbt 2c87445fff Merge branch 'main' into fix/golem-interactions 2026-11-04 13:31:54 +00:00
Alexander KrylovandHermes Agent 218c8db228 Client settings: a failed options.txt write is logged
Settings::save writes options.txt with `let _ = fs::write(...)`, so a write that
fails (a held file, a read-only folder, a full disk) leaves the player's
options, key bindings and volumes at whatever the last successful save put
there, and the game says nothing. Every option change goes through this call.

This logs the error where the rest of the crate warns (`log::warn!` in
`audio.rs`) and leaves the other files alone: `horizon.save`,
`controller.save`, `extras.save` and `mods.save` return no Result, so widening
their signatures is a separate change.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:31:10 +03:00
rdbt be4ee9131a Merge branch 'main' into fix/allay-take-back-main-hand 2026-11-04 13:29:41 +00:00
Ludovic Marie f95da0d5e7 Merge pull request #8619 from Akirabane/fix/8488-execute-on-owner
🤖 Agent: execute on owner resolves the owner guest first. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:49 +01:00
Ludovic Marie 837e0498c2 Merge pull request #8520 from Akirabane/perf/pool-idle-per-worker
🤖 Agent: Per-worker idle release; cross-worker idle is mutexed, per-job cost a lock + Instant::now. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:45 +01:00
CocofireHDandOpenCode 8fdb2ffce7 Build limit: say it when a placement above the world fails
BlockItem.place's FAIL ends the click but does not consume the action, so
the server must still send build.tooHigh/build.tooLow. The guest path
counted the failed hand use as consuming and skipped the message.

Co-Authored-By: OpenCode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 14:28:41 +01:00
Ludovic Marie 89d08be7cf Merge pull request #8218 from Akirabane/fix/7843-server-pack-tags
🤖 Agent: World pack tags merged only for registries with tag files. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:41 +01:00
Ludovic Marie 398aa7aa09 Merge pull request #8188 from Akirabane/fix/8180-bucket-hollow-blocks
🤖 Agent: Bucket ray uses ClipContext.Block.OUTLINE like BucketItem.use; main merged. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:37 +01:00
Ludovic Marie 5c1f65bb9c Merge pull request #8182 from Akirabane/fix/8175-bool-std430
🤖 Agent: Shader bool/bvec buffer rewrite; rdbt's main merge 0e010734d9 (one mod-line hunk) re-tested: horizon-shaders 249 tests OK. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:32 +01:00
Ludovic Marie 7bc9b358dc Merge pull request #8170 from Akirabane/fix/2912-routing
🤖 Agent: Routing of flat worlds through the pipeline; lands after #8163 (carries its commits). the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:27 +01:00
Ludovic Marie abfb7aee9e Merge pull request #8163 from Akirabane/fix/2912-flat-features
🤖 Agent: Superflat features match FlatLevelGeneratorSettings.adjustGenerationSettings. the union of all 15 of this wave's PRs on main acd184c1 passed fmt, clippy -D warnings, 3388 tests and the Python suite on the desktop; harness subset on that union PASS: flat_generation, flat_place, chunk_generation, datapack_worldgen, command_exec, pick_block_data, powder_snow_collision, snow_freeze, boat_authority, vehicle_container (only a subset ran locally; the full selection runs in CI run-parity).
2026-11-04 14:28:22 +01:00
Ludovic MarieandClaude Opus 5.5 a13845ca22 Map searches: skip chunks no wanted start fits, and read one chunk to tell an old one
Opening a generated chest with an exploration map nobody searched yet (a camp chest's camp
or secret map, a shipwreck's treasure map) runs the map's structure search on the server
thread. Two things made one such UseItemOn cost seconds on the official server (#8669):

- Every candidate chunk got its full starts built (all of its sets, jigsaw layouts
  included). Vanilla's StructureCheck.canCreateStructure only places the wanted
  structure's start piece and checks its biome. `may_start` now does that for jigsaws
  (`place_start` / `lay_out_children` split out of `assemble_drawing`), and `locate`
  builds a chunk's starts only where a wanted structure may start.
- Each candidate asked whether its chunk was old through the blender's region scan,
  which decodes every chunk record of each region file it touches. Vanilla's
  StructureCheck reads the one chunk. `OldWorld::is_old_chunk` now answers from a
  scanned region's bits, else from that chunk's record alone.

The slow-event line also names the item, block, position and face of a use, and the use
is split into use_mods / use_block / use_item / open_loot / open_maps /
use_advancements spans (`spans::guard` ends a span where its scope does).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:28:06 +01:00
Alexander KrylovandHermes Agent b13109ea12 Launcher: a failed wardrobe or cosmetics save is printed
The Wardrobe page drops the result of every write it makes: the outfit it keeps
on disk (`wardrobe::Saved::save`), the game's cosmetics switches
(`horizon_cosmetics::prefs::Prefs::save`) and the line recording what the
service confirmed (`prefs::set_confirmed`). All three return an `io::Result`,
so a failed write left the page showing the new outfit while the file on disk
still held the old one, and nothing said so.

This prints the error where the launcher already speaks with `eprintln!`
(`instances.json`, `settings.json`, accounts) and changes nothing else: the
in-memory state still carries the change.

Co-Authored-By: Hermes Agent (Nous Research) <[email protected]>
2026-11-04 16:27:22 +03:00
Nikita Maximilian GrimmandClaude Opus 5.5 210234f2ad Sprint dust of a mob comes from the mob's own random
Entity.spawnSprintParticle draws the crumb's x and z from this.random.
Horizon drew them from the particles' random for iron golems and other
players (the rabbit hop already uses the rabbit's own), so a golem walking
out of sight changed every particle drawn after it, such as a campfire's
smoke. The window's own player keeps the particles' random, which stands
in for its own as elsewhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:26:06 +01:00
rdbt 8237939970 Merge branch 'main' into fix/nautilus-interactions 2026-11-04 13:25:49 +00:00
Florian ERNSTandCodex e91ba5d21a Expose live comparator output to block data commands
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:25:22 +01:00
Arslan ArmanulyandClaude Opus 5.5 a50d9bbef4 Shader packs: draw solid and cutout terrain with gbuffers_terrain_solid and gbuffers_terrain_cutout
A pack with either program now draws terrain in two parts over the same
draws: the quads over opaque texels (and lava) through
gbuffers_terrain_solid, the cutout ones through gbuffers_terrain_cutout,
each falling back to gbuffers_terrain's chain. Solid terrain has no
default alpha test; cutout terrain keeps the 0.1 one. Packs with neither
program keep the single draw.

This is what Iris 1.11.7 drew with our probe packs (both programs, only
one of them, alpha 0.05 outputs, renderStage).

Fixes #9137

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:25:10 +05:00
rdbt 3f9ccee0fd Merge branch 'main' into fix/squid-ink-particles-broadcast 2026-11-04 13:25:02 +00:00
voidsipandCodex 87b5918538 Show native mod installation consent in both browser views
Keep the trust notice above the project and results, and scroll it into view when installation pauses for consent.

Fixes #8978

Co-Authored-By: Codex <[email protected]>
2026-11-04 07:23:59 -06:00
Arslan ArmanulyandClaude Opus 5.5 2358c282ca Shader packs: a fragment output's component qualifier picks its channels
Horizon read only `location` from a fragment output's layout, so
`layout(location = 1, component = 1) out uvec3 x;` was written from
channel 0, and two outputs splitting one location by component became two
declarations at that location, which naga rejects. Each such output is now
a private global copied into its components of one vector per location
after the pack's `main`; overlapping, mismatched or overflowing components
are errors, as glslangValidator reports them.

Fixes #9135

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:23:17 +05:00
AxxioandAntigravity e8c7ebb11f fix(remote): do not predict swing on non-interactive objects (fixes #9120)
In Vanilla Minecraft Java Edition 26.3, interacting with non-interactive
objects (paintings, fixed or empty item frames with empty hands, sneaking
or occupied boats without chests, and non-interactive minecarts) returns
InteractionResult.PASS, which leaves the click to the held item without
animating a hand swing. Furthermore, boarding a boat or rideable minecart
answers InteractionResult.CONSUME on the client, which ends the use
without predicting an arm swing.

Update remote_use_entity to check object interact passes and prevent
predicting hand swing animations on non-interactive objects or when
boarding vehicles.

Managed by Axxio.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 14:18:59 +01:00
AxxioandAntigravity f2a95400e3 Fishing bobber applies downward plunge impulse on bite (fixes #9131)
In vanilla 26.3 (FishingHook), when a bite occurs, DATA_BITING is set to true, triggering onSyncedDataUpdated on both server and client to apply an initial downward plunge impulse to velocity.y of -0.4F * Mth.nextFloat(syncronizedRandom, 0.6F, 1.0F) (-0.24 to -0.40).

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 14:17:35 +01:00
rdbt 99f0a14b40 Merge branch 'main' into fix/xp-orb-light 2026-11-04 13:17:01 +00:00
jaszkusandOpenCode f0d96d8648 Launcher: the setup wears the launcher's look
The Windows setup window drew the Night sky and its violet pixel buttons, so
it looked nothing like the launcher it installs.

It now draws the redesign's scene behind the dark window (the dawn sky behind
the light one), tints the scene with the player's accent exactly as the
launcher does, and reads Glass, Blur, Accent and Appearance from settings.json
every frame, so a change made in the launcher applies on the next frame. The
card is a glass plate, its buttons are the launcher's rounded translucent ones
and its switch takes the accent.

Co-Authored-By: OpenCode <[email protected]>
2026-11-04 14:16:16 +01:00
3572bf84fd Every player near a raid wave hears the horn, not only the first.
Vanilla sends each player their own horn, thirteen blocks toward the wave, so people further along the raid were hearing nothing.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:12:38 +01:00
Arslan ArmanulyandClaude Opus 5.5 9255ab808d Shader packs: normalMatrix in a core-profile gbuffers stage is the geometry's
`uniform mat3 normalMatrix` in a gbuffers program stayed a frame uniform
nothing fills, so it read zero. In a stage whose #version is 150 or later
and doesn't name the compatibility profile it is now the normal matrix the
compatibility profile's gl_NormalMatrix already uses; in the compatibility
profile it still reads zero. Our probe pack's Iris 1.11.7 pictures fit
this at 330 core, 330, 150 and 330 compatibility.

The GPU test's draw code moves into a helper both matrix tests share.

Fixes #9136

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 18:11:59 +05:00
d3a1908ac1 A breeze turns a thrown trident away instead of taking the hit.
Vanilla deflects every projectile but a wind charge, so the trident was dealing its full damage and could call down lightning.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:08:59 +01:00
TiggerTakkyTTTandCodex 6e1ce1b2a4 Server API: pin auth and command replies
Add HTTP goldens for bearer authentication, Host validation, command input errors, stopped-server rejection, and route misses.

Fixes #9156

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 20:07:37 +07:00
0c8a5431ab A fishing hook can catch a minecart and reel it in.
Vanilla treats a minecart as pickable, so the hook was flying through carts and a reel never pulled them.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 14:06:29 +01:00
voidsipandCodex f5a937cb4c Keep moderation replies translatable for each client
Formatting mute and temporary-ban replies as English discarded their translation structure before clients received them. Preserve nested components and duration units, with readable fallbacks for vanilla clients that do not have Horizon's language bundles.

Fixes #8255

Co-Authored-By: Codex <[email protected]>
2026-11-04 07:04:32 -06:00
Florian ERNSTandCodex c388810601 Clamp stacks inserted into empty hopper slots
Co-Authored-By: Codex <[email protected]>
2026-11-04 14:04:17 +01:00
Ludovic MarieandClaude Opus 5.5 648630f0d3 dedicated: the [transfer] start-up error reads as one sentence
The message had a run of 18 spaces in the middle of the string (a line
break that was not a string continuation); a backslash continuation keeps
the source wrapped and the message on one line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:00:30 +01:00
Arslan ArmanulyandClaude Opus 5.5 f557d78c34 Shader packs: a custom uniform without its declared int, float or bool type reads 0
In Iris 1.11.7 a custom uniform or variable whose expression has another
scalar type than the declared one reads 0 as a whole: an int given 2.0
or 7 / 2, a float or int given a comparison, a bool given a number. So
does one naming `true` or `false`, which Iris's custom uniforms don't
know, or calling `round`, `ifb`, `lerp`, `print` or any other function
they don't have. Horizon evaluated all of these.

custom.rs: #9119's `Shape` becomes `Ty`, which tells int, float and bool
apart, and int vectors from vectors. Numbers keep whether they were
written as floats, the built-ins get the types our probes found in Iris
(INT_NAMES, BOOL_NAMES; the rest are floats), and the operators and
functions follow rules fitted to our probe packs' values and warnings in
Iris. `centerDepthSmooth` joins HIDDEN: Iris warns it is unknown.

Based on #9119 (shaderpacks/custom-uniform-type-mismatch). In main's
`expressions_follow_c_precedence_and_file_order`, `c` (`|| false`) and
`d` (`int = -7 / 2`) now read 0, and `i` is declared `bool`, which keeps
it covering the BIOME_* notes.

Fixes #9126

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 17:58:15 +05:00
ElyTheCatandCodex gpt-6.1-sol 8f5ba77ab3 Fix entity culling review safety cases
Bind hidden proof reuse to the exact camera and use render-complete bounds for non-mob entities. Keep the async worker active independently of the mob precheck and preserve shader-pack shadow spans.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 16:22:39 +03:30
AkirabaneandClaude Opus 5.5 020dc51cfe transfer: an opt-in [transfer] module, a hand-over id, and the review's fixes
Kacper's review of #8700 and martipops's on #8700 and #8730.

The module is off by default. `server.toml` gets a `[transfer]` section
(enabled = false, expect_seconds = 10, max_expect_seconds = 60,
max_expected = 64, max_freeze_seconds = 30) in place of the constants in
lan/arrivals.rs. horizon-server passes it to the game as `--transfers`,
beside `--control-socket`, not as a server.properties key. While it is off
every player-* request is answered "transfers are off on this server",
the hub has no table and a tick does nothing for transfers. With it on,
the game refuses to start without Velocity forwarding, so a player can
only come in through the proxy. The section is kept apart from vanilla's
accepts-transfers.

Record version 1 gets a `handover` id. An export with `freeze` starts a
hand-over: a random id, and the record kept with the player. A repeat
export while it lasts answers with the same id and the same bytes and
does not restart the freeze, so a proxy that lost the reply can ask
again. An export without `freeze` is a read, with a null id. The record
also carries the player's statistics (`stats`), as the stats file has
them.

The export now closes the player's menu in the player's own level, as
the close of every guest does on leaving, and refuses when that level
cannot be opened. It copies the live mod attachments into the player
first, so the compound is what a save would write. A player who is
leaving cannot be exported.

An expectation is used up when the login starts, on the network thread,
once the bans, the whitelist and the player limit let it in. A login
still in configuration when the time runs out keeps it.

A frozen player is not kicked for floating, and its chat and signed
commands are dropped after the messages they say the client has seen are
applied, so its chat still validates after the freeze; chat
acknowledgements are kept.

docs/server.md gives the section, who can ask (the endpoint's limits,
the token being all or nothing) and how a server reads a record: another
version or data version is refused, the NBT in `player` wins over the
plain fields, unknown fields are ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:49:51 +01:00
Florian ERNST 1ab1d98c1c Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/end-clock-commands 2026-11-04 13:45:21 +01:00
Ludovic Marie 38df83828d Merge pull request #9087 from arslanarm/shaderpacks/ignored-format-declarations
🤖 Agent: clean-room check passed (black-box probes of their own, no source). Merged main and fixed #8999's test call to the removed Config::finish. Verified main + this head on the desktop: fmt, clippy -D warnings (shaders, render, all targets), 1270 tests, 0 failures; GPU fixtures not run.
2026-11-04 13:43:13 +01:00
Florian ERNSTandCodex 5dc8279a5d Support built-in End clock command state and defaults
Co-Authored-By: Codex <[email protected]>
2026-11-04 13:42:41 +01:00
rdbtCVSandCodex gpt-6.1-sol 663ce80174 Adapt scene replay to compressed sprite pixel storage
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:40:54 +00:00
rdbtCVSandCodex gpt-6.1-sol 7b300cc61e Initialize atlas sprite tables in renderer test fixtures
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:39:54 +00:00
rdbtCVSandCodex gpt-6.1-sol e60a96790d Initialize orb rotation in the upstream NBT fixture
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:39:54 +00:00
rdbtCVSandCodex gpt-6.1-sol 18f07a0304 Initialize atlas sprite tables in renderer test fixtures
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:39:53 +00:00
rdbtCVSandCodex gpt-6.1-sol 631ededd91 Initialize atlas sprite tables in renderer test fixtures
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:39:53 +00:00
rdbtCVSandCodex gpt-6.1-sol 6e602c4c2a Initialize material and item identity fields in shadow test fixtures
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:39:17 +00:00
TheLion102009andClaude Opus 5.5 1a4e2d208c mod API: scenes of blocks drawn in a screen
What Create's Ponder shows its machines in: native_draw_scene(batch,
rect, blocks, view) draws a few block states, at positions of the scene's
own (NativeSceneBlock), into a box of a screen, seen as NativeSceneView
says (centre, yaw, pitch, pixels per block). Each block's model is drawn
shaded by face, its faces against solid neighbours left out; a mod block
entity given with it is drawn through native_block_entity_submit, its
spin parts turning. The quads go in with the GUI's isolated depth and
scissor (HudBatch::depth_since), as the smithing screen's armour stand.

The view's matrix is a point reflection, so the unturned scene is seen
from the north as a player at yaw 0 sees it, unmirrored; the tests pin
which way yaw and pitch turn it.

Builds on the block entity drawing change (spin and place_turning).
Pending fragment: scenes_in_screens.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:39:12 +01:00
TheLion102009andClaude Opus 5.5 ccac8f85ff mod API: text, turning parts and copycats in block entity drawing
- native_draw_text(draw, text, at, color, glowing, outline): a Text under
  a block entity's pose as a sign draws its lines (Font.drawInBatch in a
  BlockEntityRenderer), each span in its colour, glowing text full bright,
  an optional outline; it returns the width. The sign's glyph quads are
  shared (block_entity_render::text_vertices).
- BlockEntityDraw::spin(axis, pivot, degrees_per_tick, phase) and still():
  parts that turn by themselves. The game turns them each frame from the
  game time and partial tick, so with keep() a shaft at a steady speed is
  drawn again with no call of native_block_entity_submit until its block
  entity changes (Flywheel's rotating instances, on the CPU).
- native_block_face_sprite(state, side): the texture a block state shows
  on a side, by the name native_draw_cube takes, for copycat blocks.

Connected textures need no code: a content mod ships OptiFine CTM rules
under assets/<id>/optifine/ctm/, as the docs now say.

Pending fragments: draw_text.json, spinning_geometry.json,
block_face_sprite.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:38:34 +01:00
TheLion102009andClaude Opus 5.5 9cffbd192d mod API: fluid currents, and a mod's own fluids in tanks
- native_fluid_flow(pos): FluidState.getFlow(level, pos) in the level in
  place, the normalised current an item in the fluid is pushed by
  (entities::fluid_flow, through the same flow_at items and boats use).
  A water wheel reads its speed from it.
- Tanks take a mod's own fluids (create:chocolate): native_fluid_insert
  now accepts any id in a namespace other than minecraft, besides water
  and lava; extract and move already carried names. Cauldrons still take
  only water and lava. NativeFluidTank becomes public and
  native_fluid_tanks joins Host.

The world itself still has only vanilla's fluids: no source or flowing
blocks or buckets of a mod's fluid.

Pending fragments: fluid_flow.json, mod_fluids.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:38:25 +01:00
TheLion102009andClaude Opus 5.5 05cb3702ad mod API: chunk tickets for native mods
NeoForge's TicketController.forceChunk: native_force_chunk(owner, chunk,
hold) holds a chunk of the level in place for a namespaced owner
(create:train/<uuid>), and native_forced_chunks(owner) lists what it holds.
A held chunk is kept as a /forceload'ed one is: Streaming has
mod_forced beside forced, Ranges reads both, the ticket levels give them
the FORCED level, and a level with any stays open. /forceload neither
lists nor releases them and they aren't saved with forced chunks: a mod
holds them again in native_level_load.

Pending fragment: chunk_tickets.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:37:25 +01:00
TheLion102009andClaude Opus 5.5 298e68aa52 mod API: container_accepts, a mod container's say on what goes in
NeoForge's IItemHandler.isItemValid for a mod's ModContainer: hoppers,
droppers and native_insert_item ask native_container_accepts(pos, entity,
slot, stack, face, cancel) before an item goes into a slot the container's
inputs and faces allow. `cancel` refuses it and the mover tries the next
slot, so a millstone takes only what it has a recipe for and a wrong item
can't clog it. tryMoveInItem now carries the face it goes in by.

Pending fragment: container_accepts.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:37:25 +01:00
rdbtCVSandCodex gpt-6.1-sol caf9530c20 Carry material identities into the double-sided shadow geometry
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:36:02 +00:00
rdbtCVSandCodex gpt-6.1-sol 24b89f986d Compare Forge installer argument paths consistently across Windows and Unix
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:34:05 +00:00
rdbtCVSandCodex gpt-6.1-sol e11b83fc8e Compare Forge installer argument paths consistently across Windows and Unix
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:33:02 +00:00
rdbtCVSandCodex gpt-6.1-sol ee746cf569 Supply the device when copying animated material atlas sprites
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:32:52 +00:00
LokiandAntigravity 6a627e54b1 mobs: calculate LivingEntity jump power from attributes, block factor and jump boost (fixes #9058)
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 21:32:44 +09:00
rdbtCVSandCodex gpt-6.1-sol 0a6527a5f3 Merge main and preserve both atlas and material-map rendering changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:32:34 +00:00
rdbtCVSandCodex gpt-6.1-sol f8a85f1bf9 Merge main and preserve both atlas and material-map rendering changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:32:34 +00:00
rdbtCVSandCodex gpt-6.1-sol 007df3944e Merge main and preserve both atlas and material-map rendering changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:32:33 +00:00
rdbtCVSandCodex gpt-6.1-sol ee85900b87 Merge main and preserve both atlas and material-map rendering changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:32:31 +00:00
NerfPhaselockandClaude Opus 5.5 64afd9f58a Renderer: GPU culling is not offered on DX12 while the solid pipelines read the page
Since f2c8e2ab1 the vanilla solid pipelines read their vertices and
records from the arena page by @builtin(vertex_index), per-section draws
too. DX12's count draws (multi_draw_indexed_indirect_count, which GPU
culling draws with) leave each draw's base vertex out of vertex_index:
wgpu-hal's draw_indexed_indirect_count sets its first-vertex constant to
0 and uses the command signature without it. GPU frames there read every
section's quads from the start of its page: most solid terrain missing,
stray quads in its place. Vulkan's vertex_index has the base vertex.

GPU culling is now not offered on DX12 with flat page groups (where the
pulled pipelines draw), so the word `gpu-culling on` is refused there,
until GPU culling's draws carry their base vertex some other way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:31:10 -05:00
Ludovic MarieandClaude Opus 5.5 705645a7ab Merge rdbtCVS's main merge of this branch (same content, kept the stacked resolution)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:30:12 +01:00
Ludovic MarieandClaude Opus 5.5 5ce693ae48 Merge the #8200 stack's latest head (no change to the tree)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:30:12 +01:00
voidsipandCodex 83380b3b30 Synchronize optical-flow scene-change reduction
Divergence workgroups must all finish reading the histograms before either is replaced. Finalize in a separate dispatch so the reduction also observes every partial sum, without relying on a relaxed atomic completion counter.

Fixes #8627

Co-Authored-By: Codex <[email protected]>
2026-11-04 06:29:02 -06:00
TheMrZZandCodex gpt-6.1-sol 33ba27d9f5 Omit default fields from saved map data
Follow the optional defaults in MapItemSavedData.CODEC while retaining
required fields, nondefault flags and nonempty banner/frame lists.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 13:28:54 +01:00
Ludovic MarieandClaude Opus 5.5 4439459e71 Merge #8200's stack (with #8128 and main) into the heartbeat interval
Resolves the management handlers, the port map and the harness side by side.
Also: management_int's Codec.INT doc comment back on management_int, and the
interval's log line as vanilla writes it (MinecraftServerSettingsServiceImpl
reads the interval after setting it, so both numbers are the new one).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:38 +01:00
JulesB40andClaude Opus 5.5 e128384ac8 lan_e2e piston-slide: check the client moves the head itself
horizon-ctl block reports the client's own moving piston at a position
(moving: progress, extending). A head that only arrives as the server's
moving_piston block, with no move of the client's, doesn't count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:32 +01:00
JulesB40andClaude Opus 5.5 de3604215d lan_e2e piston-slide: power the repeating command block with redstone
A repeating command block placed by /setblock with auto:1b never got its
first tick in Horizon, so the second extension didn't happen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:31 +01:00
JulesB40andClaude Opus 5.5 4c7bdc63a6 Pistons: send the changed blocks at ServerChunkCache.tick's point
The early broadcast in tick_lan sent the blocks as they were after the
tick's block events: a block placed by a scheduled tick and then pushed
went out as the moving block, and the client couldn't run the push. The
blocks now go out in tick_blocks, after the random ticks and before the
block events, as ServerLevel.tick runs ServerChunkCache.tick. piston-slide's
second extension pushes a stone a command block placed that tick.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:31 +01:00
JulesB40andClaude Opus 5.5 58b0da9a87 Pistons: the held block changes go out before the next block events
ServerChunkCache.tick broadcasts the changed blocks before runBlockEvents,
so what the last tick's block entities changed (a retracted piston's base
put back) reaches the clients ahead of a block event that builds on it.
tick_lan now sends the changes before the block events, and holds the
tick's own late ones as before. piston-slide also powers the piston again
the tick after its base is back, with a repeating command block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:30 +01:00
JulesB40andClaude Opus 5.5 7dfcbcaa0b Pistons: a moved block reaches the clients a tick after it lands
ServerLevel.tick broadcasts the changed blocks (ServerChunkCache.tick)
after the scheduled and random ticks, before the block events, the
entities and the block entities, so what those change goes out with the
next tick's. Horizon sent it the same tick: the block a moving piston
placed reached the clients while their own copy was still a tick from the
end of its move, and at /tick rate 1 it jumped the rest. The writes after
that point are held out of the log while it is sent; the guest move check
still sees them as unsent. lan_e2e's piston-slide check covers it.

Fixes #8430

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:28:29 +01:00
rdbtCVSandCodex gpt-6.1-sol 5bfe7af0c1 Collapse the nested invite refresh condition for Rust 2024 Clippy
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:27:25 +00:00
rdbtCVSandCodex gpt-6.1-sol 65b76b1a17 Merge main while retaining both frame culling and shader entity types
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:26:32 +00:00
rdbtCVSandCodex gpt-6.1-sol 12541fdeeb Merge main and retain sprite rectangles alongside shader material maps
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:26:20 +00:00
rdbtCVSandCodex gpt-6.1-sol c700853616 Retain the latest Shop updates alongside the options test correction
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:23:31 +00:00
rdbtCVSandCodex gpt-6.1-sol 84eb7390db Initialize item rotation in the new area-effects fixture
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:22:46 +00:00
rdbtCVSandCodex gpt-6.1-sol 5f7b5aa3f6 Adapt Realms connections and screen metadata to the current title API
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:22:16 +00:00
TheLion102009andClaude Opus 5.5 0f0a09f377 mod API: machines break blocks with a tool and use items as a fake player
What Create's drill, saw, harvester and deployer need, as Host helpers:

- destroy_block(pos, tool, collect): Level.destroyBlock(pos, true) with the
  loot rolled for `tool` and no player (Block.dropResources(state, level,
  pos, blockEntity, null, tool)). Particles, the block entity's contents
  in the drops, ore experience and the fluid left behind are vanilla's
  own path: GameLevel carries the tool and, with `collect`, keeps the
  drops instead of popping them. The mods' say on drops applies.
- set_break_progress(breaker, pos, progress): ServerLevel.destroyBlockProgress,
  the same broadcast a mob breaking a door uses (now shared,
  server_destroy_block_progress).
- use_as_player(stack, eye, yaw, pitch, target, sneaking): NeoForge's
  FakePlayer. useItemOn on a block, useItem in the air or interactOn with
  an entity, through the guest use path (forced_hit + guest_use), in
  survival with only `stack` in hand. The server's empty player shell is
  filled for the call and everything it touched is put back; it answers
  None while a player acts. NativeUseTarget and NativeFakeUse are new in
  mod_api.

Pending fragments: machine_breaking.json, fake_player.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:21:43 +01:00
rdbtCVSandCodex gpt-6.1-sol 9eac9f79b1 Match the world light type and parenthesize the remaining packed light expectation
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:21:41 +00:00
Ludovic MarieandClaude Opus 5.5 af6e2b1295 Read #8999's shadow test config without finish()
#9087 removes Config::finish (its only work was the gdepth rule); the test reads the settings as they are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:20:57 +01:00
Evrim CicekandClaude Opus 5.5 18498a7e2d A silent elder guardian's curse shows the apparition without the sound
ElderGuardian.customServerAiStep sends GUARDIAN_ELDER_EFFECT with
isSilent() ? 0.0F : 1.0F, and ClientPacketListener.handleGameEvent plays
the curse sound only for 1. Horizon sent 1 to guests and played the sound
for the host whatever the elder's Silent flag.

The curse event now carries the flag. tools/test_elder_curse_parity.py
compares the parameter a client is sent by a loud and a silent elder with
vanilla's dedicated server (VanillaProtocolClient's new elder-curse mode;
the goat-voices mode shares its phased-scene plumbing).

Fixes #8932

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:20:52 +03:00
Ludovic Marie 67992e9fed Merge remote-tracking branch 'origin/main' into cg28/9087 2026-11-04 13:20:51 +01:00
TheLion102009andClaude Opus 5.5 92397d9caf mod API: Host forms of the generic and private Game helpers
Trait mods couldn't reach several documented helpers through `dyn Host`:
their signatures were generic or used gameplay-private types. Host now has:

- draw_model (standalone models in block_entity_submit)
- mod_block_entity(pos) and change_mod_block_entity(pos, &mut change)
  (native_with_mod_block_entity's form; on a client mod_block_entity
  returns what the server sent through block_entity_update_tag)
- item_entities, level_random(dimension)
- play_sound and send_particles for the level in place, from any server
  hook (until now only on LevelWriteHost)
- block_name_in_tag and server_item_in_tag
- component, set_component, remove_component
- trigger_criterion with a &dyn Fn test
- equipment(slot): the player's own on a client, the acting player's on
  a server
- sneaking(): whether the acting player holds sneak
  (UseOnContext.isSecondaryUseActive in a use hook)

NativeItemEntity, NativeBlockReadError, NativeComponentError and
NativeCriterion become public and are re-exported from mod_api.
Pending fragment: tools/native-hook-fragments/host_bridge.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:19:30 +01:00
rdbtCVSandCodex gpt-6.1-sol bc6ac0ab30 Retain upstream game systems removed by the earlier XP orb branch update
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:19:11 +00:00
rdbtCVSandCodex gpt-6.1-sol e3806f3017 Format launcher changes using its Rust 2021 edition
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:17:49 +00:00
rdbtCVSandCodex gpt-6.1-sol 0e010734d9 Merge main and preserve both shader routing and tag changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:15:32 +00:00
Florian ERNSTandCodex 8b83cd8285 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/pig-saddle-shears
Co-Authored-By: Codex <[email protected]>
2026-11-04 13:15:11 +01:00
Florian ERNSTandCodex 553483c421 Shear an unoccupied pig saddle before mounting
Co-Authored-By: Codex <[email protected]>
2026-11-04 13:13:51 +01:00
Ludovic Marie c2b104827c Merge pull request #9097 from horizon-rust/dezer/logos
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this merge head; the merge keeps #9091's clickable edition tabs with the new grass block and brand icon.
2026-11-04 13:13:42 +01:00
Ludovic Marie 7481e652fc Merge pull request #9093 from horizon-rust/dezer/settings-spy
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this merge head; the merge keeps both new Launcher fields (settings_marked beside #9099's mods_sticky).
2026-11-04 13:13:38 +01:00
Ludovic Marie 2d4f8380f2 Merge pull request #9092 from horizon-rust/dezer/lists
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this merge head; the main merge only re-applied the 14 px inset to Home's new head layout from #9091.
2026-11-04 13:13:34 +01:00
rdbtCVSandCodex gpt-6.1-sol 04bed4f9d8 Merge main and preserve finite rotation guards in shared entity teleports
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:12:57 +00:00
rdbtCVSandCodex gpt-6.1-sol 380a2ec59c Merge main and move Realms into the reusable client library
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:12:14 +00:00
rdbtCVSandCodex gpt-6.1-sol 9a223ef014 Scroll the cosmetics cycle button into view in the options behavior test
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:10:38 +00:00
rdbtCVSandCodex gpt-6.1-sol bf460e86cf Merge main and retain live transfer and status settings with both parity cases
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:09:55 +00:00
Ludovic Marie a55b9a2e52 Merge pull request #9007 from arslanarm/shaderpacks/uint-colortex0-blit
🤖 Agent: updated onto main after #8042, #8510 and #9002 landed (merge of main; #8999 fixture gets item_id_declared/material_maps; #9007 is stacked on #9005 so the trailing test modules resolve once). Verified on the desktop, main + #8999 + #9007 (+ #9005): fmt, clippy -D warnings (shaders, render, all targets), 1268 tests, 0 failures; GPU fixtures not run (no adapter over ssh).
2026-11-04 13:09:03 +01:00
Ludovic Marie 8350e76e2a Merge pull request #9005 from arslanarm/shaderpacks/const-local-sample-offset
🤖 Agent: updated onto main after #8042, #8510 and #9002 landed (merge of main; #8999 fixture gets item_id_declared/material_maps; #9007 is stacked on #9005 so the trailing test modules resolve once). Verified on the desktop, main + #8999 + #9007 (+ #9005): fmt, clippy -D warnings (shaders, render, all targets), 1268 tests, 0 failures; GPU fixtures not run (no adapter over ssh).
2026-11-04 13:08:58 +01:00
Ludovic Marie e4fe4e8122 Merge pull request #8999 from arslanarm/shaderpacks/shadow-map-coverage
🤖 Agent: updated onto main after #8042, #8510 and #9002 landed (merge of main; #8999 fixture gets item_id_declared/material_maps; #9007 is stacked on #9005 so the trailing test modules resolve once). Verified on the desktop, main + #8999 + #9007 (+ #9005): fmt, clippy -D warnings (shaders, render, all targets), 1268 tests, 0 failures; GPU fixtures not run (no adapter over ssh).
2026-11-04 13:08:55 +01:00
Ludovic MarieandClaude Opus 5.5 f28f5b6d50 Launcher: the Shop's item wells lit for the dark founder set
The founder set is now navy and charcoal (Ludovic, 11-04). On the dark
appearance's near-black well they all but vanished (well 17,11,31 against a
tee front of 33,32,41), so the dark well is a violet grey, lighter at the
top like a showcase. The light well stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:08:37 +01:00
Florian ERNSTandCodex gpt-6.1-sol de877a581d Merge main and retain cloud duration scaling with owner attribution
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 13:07:11 +01:00
rdbtCVSandCodex gpt-6.1-sol 7ae5d35547 Merge main and reuse localized loader version labels in every language
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:06:42 +00:00
rdbtCVSandCodex gpt-6.1-sol b3678682e4 Merge main and reuse translated build import status messages
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:05:34 +00:00
rdbtCVSandCodex gpt-6.1-sol 217d39afd8 Merge main and pass block movement properties through new entity ticks
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:04:36 +00:00
rdbtCVSandCodex gpt-6.1-sol 80c02acdf1 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:03:54 +00:00
rdbtCVSandCodex gpt-6.1-sol afe23fbba6 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:03:53 +00:00
rdbtCVSandCodex gpt-6.1-sol 01bf400ff7 Merge main while preserving random tick caching and fixing light test lints
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:03:51 +00:00
rdbtCVSandCodex gpt-6.1-sol 04322a6f52 Adapt rocket behavior fixture to shared view direction helper
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:03:23 +00:00
Ludovic Marie ea06a53506 Merge pull request #9098 from horizon-rust/dezer/look
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head (473+85); menus open at once because an animation inside a deferred menu kept its invisible first frame under GPUI Fast (seen on the desktop run), pages and toasts keep the 200 ms pop.
2026-11-04 13:03:21 +01:00
rdbtCVSandCodex gpt-6.1-sol 25574a2d21 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:02:49 +00:00
rdbtCVSandCodex gpt-6.1-sol 661e038c08 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:02:48 +00:00
rdbtCVSandCodex gpt-6.1-sol d938f6a1dd Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:02:46 +00:00
rdbtCVSandCodex gpt-6.1-sol c37a6c6543 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:02:44 +00:00
rdbtCVSandCodex gpt-6.1-sol 241155c490 Merge main and reconcile parallel changes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:02:36 +00:00
Ludovic Marie 26a79956fd Merge pull request #9049 from senjinthedragon/portal-shadow-casters
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 13:02:11 +01:00
Ludovic Marie e2cf10bbd0 Merge pull request #9048 from senjinthedragon/glow-frame-entity-id
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 13:02:07 +01:00
Ludovic Marie c0df7b1959 Merge pull request #9047 from senjinthedragon/pack-format-decimal
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 13:02:02 +01:00
Ludovic MarieandClaude Opus 5.5 dab0067925 Merge #9005's branch: both trailing test modules stay
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:01:47 +01:00
Ludovic Marie 40c4441550 Merge remote-tracking branch 'origin/main' into cg28/9007
# Conflicts:
#	crates/horizon-client-render/src/gfx/pack_post.rs
2026-11-04 13:01:32 +01:00
Ludovic MarieandClaude Opus 5.5 09022c09b9 Give #8999's shadow filtering fixture the fields main added
#8042 added GbuffersInputs.item_id_declared and #8510 World/Geometry.material_maps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:01:26 +01:00
Ludovic Marie e221e9d786 Merge remote-tracking branch 'origin/main' into cg28/9005
# Conflicts:
#	crates/horizon-client-render/src/gfx/pack_post.rs
2026-11-04 13:00:50 +01:00
Ludovic Marie f5243832bb Merge remote-tracking branch 'origin/main' into cg28/8999 2026-11-04 13:00:50 +01:00
rdbtCVSandCodex gpt-6.1-sol 5d6b0be54b Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:41 +00:00
rdbtCVSandCodex gpt-6.1-sol 9b6841e04e Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:39 +00:00
rdbtCVSandCodex gpt-6.1-sol 1161302d27 Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:38 +00:00
rdbtCVSandCodex gpt-6.1-sol ad47d9b3fd Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:37 +00:00
rdbtCVSandCodex gpt-6.1-sol 55fa82033f Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:35 +00:00
rdbtCVSandCodex gpt-6.1-sol 81d02ec5d4 Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:33 +00:00
rdbtCVSandCodex gpt-6.1-sol ea92f9ea77 Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:32 +00:00
rdbtCVSandCodex gpt-6.1-sol 7ec86a7aec Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:32 +00:00
rdbtCVSandCodex gpt-6.1-sol 62e8a49947 Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:31 +00:00
rdbtCVSandCodex gpt-6.1-sol 1ef6bdd171 Merge main to reconcile upstream changes and CI fixes
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:00:30 +00:00
Ludovic Marie b3ec6f2d35 Merge pull request #9023 from arslanarm/shaderpacks/clear-false-ping-pong
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:25 +01:00
Ludovic Marie 73d3ee3d20 Merge pull request #9022 from arslanarm/shaderpacks/forced-flip-written
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:20 +01:00
Ludovic Marie 04b8b27a3b Merge pull request #9020 from arslanarm/shaderpacks/nether-pack-shade
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:16 +01:00
Ludovic Marie 638c0044f0 Merge pull request #9019 from arslanarm/shaderpacks/clouds-textured-fallback
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:12 +01:00
Ludovic Marie 797ca1fab9 Merge pull request #9015 from arslanarm/shaderpacks/custom-uniform-unknown-names
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:08 +01:00
Ludovic Marie 4b1157a697 Merge pull request #9014 from arslanarm/shaderpacks/feature-flag-case
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:59:03 +01:00
Ludovic Marie c60bb5a341 Merge pull request #9004 from arslanarm/shaderpacks/length-array-size
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:58 +01:00
Ludovic Marie e927a62b23 Merge pull request #9002 from arslanarm/shaderpacks/trinary-minmax
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:54 +01:00
Ludovic Marie 440d486f39 Merge pull request #8994 from arslanarm/shaderpacks/ssbo-vector-atomics
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:50 +01:00
Ludovic Marie 3c9dd1fb50 Merge pull request #8993 from arslanarm/shaderpacks/custom-uniform-option-macros
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:47 +01:00
Ludovic Marie ee5ef77630 Merge pull request #8975 from arslanarm/shaderpacks/properties-feature-macros
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:42 +01:00
AkirabaneandClaude Opus 5.5 aa4869c86c dedicated: player-expect and player-export on the control endpoint
The read side of a seamless transfer (#7484, step 2). A proxy moving a
player between two servers tells the target who is coming and reads the
player out of the source.

`player-expect <uuid> [seconds]` records that the player will log in
within that time (10 s by default, 60 at most, 64 players at once). It
refuses a bad id, a time that is not a whole number above zero, a player
already connected and a full table. The login uses the expectation up;
one no login used is reported when it runs out. The player still logs in
as anyone else: holding them is a later step.

`player-export <uuid> [freeze]` closes the player's menu as vanilla does
(AbstractContainerMenu.removed puts the carried stack back into a
connected player's inventory) and answers with record version 1: the
player compound as a save writes it (base64 NBT), the advancements JSON
and a few plain fields. It refuses a player who is not connected, has not
finished joining, is riding, asleep or dead. With `freeze`, the player's
own packets are dropped and its acknowledgements still handled, until the
freeze is let go after 600 ticks with a warning.

docs/server.md gives both requests and the record's shape.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:58:41 +01:00
Ludovic Marie 9dc66afd4d Merge pull request #8974 from arslanarm/shaderpacks/custom-smooth-fade-time
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:39 +01:00
Ludovic Marie 37aba3abe5 Merge pull request #8510 from gigamans442/fix/independent-terrain-materials-20261103
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:34 +01:00
Ludovic Marie 7d8f45fedd Merge pull request #8474 from gigamans442/fix/independent-uniform-defaults-20261103
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:29 +01:00
Ludovic Marie f897927efa Merge pull request #8042 from arslanarm/shaderpacks/rendered-item-id
🤖 Agent: verified in a union of the 21 open shader-pack PRs on main 3fb4c3138 (desktop): fmt, clippy -D warnings on all targets, 3766 tests, 0 failures. GPU fixtures not run (no adapter over ssh); harnesses not run (shader-pack-only code).
2026-11-04 12:58:24 +01:00
rdbtCVSandCodex gpt-6.1-sol 606a58c04c Fix formatting of warden pushing tests
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 11:58:09 +00:00
voidsipandCodex b011ec1e66 Find keytool independently of the parity Java shim
Cached oracle runs replace java on PATH, so looking beside that executable points into the cache shim directory instead of the JDK. Resolve keytool directly and support JAVA_HOME when it is not on PATH.

Fixes #9079

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:54:54 -06:00
Ludovic MarieandClaude Opus 5.5 0efb67fc12 launcher: the Language list keeps a solid backing under its glass
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:51:41 +01:00
JoansitohandGrok <grok-4.7> d230a5dee8 Drop the unused return at the end of the raider test.
The same needless return would fail clippy on the celebration test.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:50:24 +01:00
JoansitohandGrok <grok-4.7> 7d5f66a915 Drop the unused return at the end of the trader test.
Clippy rejects a return that is the last statement and does nothing.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:50:03 +01:00
270cd628bb Drop the extra borrow on the witch throw sound.
Clippy rejects &mut on a events field that is already a mutable reference.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 12:47:56 +01:00
Ludovic Marie c92fcbb17e Merge remote-tracking branch 'origin/main' into w8200 2026-11-04 12:47:18 +01:00
Ludovic Marie 9443236b20 Merge branch 'refs/heads/w8128' into w8200 2026-11-04 12:47:12 +01:00
Ludovic Marie 2d3d6a0c6e Merge commit 'cg29/8128' into cg29/8200
# Conflicts:
#	crates/horizon-client/src/game/dedicated/management.rs
#	crates/horizon-client/src/lan/mod.rs
#	crates/horizon-server/src/management_methods.rs
#	tools/port_map/rest-017.tsv
#	tools/test_management_protocol_parity.py
2026-11-04 12:47:12 +01:00
Ludovic MarieandClaude Opus 5.5 435b2837cd Keep the input ledger in the PR, not in the repo
The repo holds no per-PR research records; the ledger stays linked from the PR at its commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:46:44 +01:00
Ludovic MarieandClaude Opus 5.5 b12f0ad465 Keep the input ledger in the PR, not in the repo
The repo holds no per-PR research records; the ledger stays linked from the PR at its commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:46:44 +01:00
Ludovic MarieandClaude Opus 5.5 c38354c637 Give the captured frame no hand items
Main's capture.rs builds a Frame, which now has hand_items.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:46:38 +01:00
Ludovic Marie 6ea3787844 Merge remote-tracking branch 'origin/main' into cg28/8042 2026-11-04 12:46:26 +01:00
Ludovic MarieandClaude Opus 5.5 9d5e59e762 Management: log the entity broadcast range asked for, as vanilla does
MinecraftServerSettingsServiceImpl.setEntityBroadcastRangePercentage logs the
requested percentage before DedicatedServerProperties clamps it to 10..1000.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:46:19 +01:00
Ludovic MarieandClaude Opus 5.5 247d9941f2 launcher: fmt the Language list's anchor
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:43:55 +01:00
Ludovic Marie acd184c1d9 Merge pull request #9094 from horizon-rust/dezer/modrinth
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head; Modrinth's Java mods stay listed for Horizon instances with the existing Works/Partly/Doesn't run mark, and installs still check SHA-512 before writing.
2026-11-04 12:43:20 +01:00
Arslan ArmanulyandClaude Opus 5.5 f0214c19b5 Shader packs: a custom uniform without its declared shape reads 0
In Iris 1.11.7 a custom uniform or variable whose expression doesn't give
its declared shape (a float given skyColor, a vec2 given a vec3), or that
joins a vector and a scalar with an operator (vec3 * 1.0), reads 0 as a
whole. Horizon evaluated it anyway.

custom.rs now checks each item's shape once, on the first eval, after the
unknown-name check of #9015: Shape and shape() follow rules fitted to our
probe packs' values in Iris (operators, vecN constructors, which functions
take vectors, matrices, the declared type). A failing item reads 0 with a
note, and #9015's pass marks everything using it.

The load-time dry run (pack_post.rs) gave every built-in as a scalar, so
skyColor looked like a float there; it now gives each one at its size
(pack_uniforms::zero).

Based on #9015 (shaderpacks/custom-uniform-unknown-names); its test's
`w = vec3(...) * 0.0 + 2.0` and main's `e = vec3(...) * 2` now read 0,
as Iris reads them.

Fixes #9086

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:42:50 +05:00
Ludovic MarieandClaude Opus 5.5 4ceaf4a8c2 Merge origin/main into dezer/logos
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:42:25 +01:00
Ludovic MarieandClaude Opus 5.5 7d41c97f80 Merge origin/main into dezer/settings-spy
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:42:01 +01:00
Ludovic MarieandClaude Opus 5.5 78f8d86785 Merge origin/main into dezer/lists
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:41:46 +01:00
Ludovic Marie a04888e69e Merge pull request #9096 from horizon-rust/dezer/avatar
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head (474+83); one session-server lookup per account per 24 h, the empty answer (default skin) cached too, so an offline launcher doesn't retry each frame.
2026-11-04 12:41:18 +01:00
Florian ERNSTandCodex 57d465a5a9 Evaluate inline slot sources in item commands
Co-Authored-By: Codex <[email protected]>
2026-11-04 12:40:05 +01:00
JoansitohandGrok <grok-4.7> 929aa267e0 Villager conversion keeps Silent, NoAI and the other shared flags.
Infection and the cure were dropping the flags convertCommon copies onto the new mob.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:39:25 +01:00
JoansitohandGrok <grok-4.7> b2ebcee304 A rolled-up armadillo no longer accepts food on the client.
The client predicted Animal.mobInteract before the shell's FAIL, so the click did not stop.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:39:25 +01:00
JoansitohandGrok <grok-4.7> 25a0cf0396 A celebrating raider no longer jumps while it is riding.
The celebration tick rolled the jump even when the raider was a passenger, which vanilla skips.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:39:25 +01:00
JoansitohandGrok <grok-4.7> ab167cadb9 A wandering trader no longer drinks in the End.
The End has a fixed time, so it is neither dark nor bright outside and neither potion is used.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:39:25 +01:00
JoansitohandGrok <grok-4.7> 88bd95bb32 A silent witch no longer plays its drink and throw sounds.
Vanilla skips both playSound calls, including the pitch draw, when the witch is silent.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
2026-11-04 12:39:25 +01:00
Ludovic MarieandClaude Opus 5.5 88ee593627 launcher: menus open at once; the Language list stays in the window
The pop animation inside a deferred menu kept its first frame under GPUI Fast: the
version menu never showed on the desktop run, the Language list lost its plate. Menus
open at once again (pages and toasts keep the pop); the Language list is anchored and
opens upwards when there is no room below.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:38:44 +01:00
Ludovic Marie 056d097a9a Merge pull request #8687 from degepie/fix/looking-at-vehicles
🤖 Agent: vanilla: PlayerPredicate lookingAt over every non-spectator entity; tick/location gated by may_look. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:30 +01:00
Ludovic Marie d234d6daaa Merge pull request #8683 from degepie/fix/damage-sources
🤖 Agent: vanilla: indirectMagic(potion|cloud, owner) instead of main's Damage::player; overlaps #9053 (TheMrZZ), second to land resolves. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:25 +01:00
Ludovic Marie 1294fca5e5 Merge pull request #8662 from degepie/fix/bare-ids
🤖 Agent: vanilla: 26.3 EntityPredicate is a dispatchedMap by sub-predicate id; TagPredicate.id is a HolderSet. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:21 +01:00
Ludovic Marie 23261d97b3 Merge pull request #8654 from degepie/fix/throw-bucket-triggers
🤖 Agent: vanilla: hurtServer fires PLAYER_HURT_ENTITY at 0 damage outside i-frames; interact trigger after filled_bucket. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:17 +01:00
Ludovic Marie 422d9b6bbb Merge pull request #9051 from glitchsnake/fix/8785-wither-block-slowdown
🤖 Agent: vanilla: WitherBoss.makeStuckInBlock is empty; berry damage kept. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:13 +01:00
Ludovic Marie 6e9a91f185 Merge pull request #8964 from glitchsnake/fix/8957-spectator-container-vibrations
🤖 Agent: vanilla: ContainerOpenersCounter edges for CONTAINER_OPEN/CLOSE; tautological test removed. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:09 +01:00
Ludovic Marie 8737bbfe7e Merge pull request #8952 from glitchsnake/fix/8934-elder-guardian-home
🤖 Agent: vanilla: ElderGuardian.customServerAiStep setHomeTo(blockPosition, 16); tests trimmed; carries #8966's commits (guardian.rs conflict). Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:05 +01:00
Ludovic Marie 7332139da4 Merge pull request #8966 from glitchsnake/fix/8933-silent-guardian-flop
🤖 Agent: vanilla: Guardian.aiStep flop under !isSilent; tests folded into one. Lands before #8952 (stacked on it). Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:34:00 +01:00
Ludovic Marie 7e7336db35 Merge pull request #8501 from glitchsnake/fix/8419-summon-autocomplete
🤖 Agent: vanilla: SUMMONABLE_ENTITIES = canSummon types; only player and fishing_bobber are noSummon in 26.3. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:56 +01:00
Ludovic Marie 641cba9b30 Merge pull request #8887 from HrafnaValkyrja/fix/warden-vanilla-rules
🤖 Agent: vanilla: AbstractBoat.tick startRiding branch, a refused rider is neither seated nor pushed (#8916 closed as its duplicate). Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:52 +01:00
Ludovic Marie 26ae1d2991 Merge pull request #8864 from contactjayclatty/fix/8724-glow-squid-environmental-damage
🤖 Agent: vanilla: GlowSquid.hurtServer dims only if Squid.hurtServer is true, which needs getLastHurtByMob. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:48 +01:00
Ludovic Marie be63efabcc Merge pull request #8857 from contactjayclatty/fix/8776-wither-takes-no-effect
🤖 Agent: fixed on the branch: the refusal is WitherBoss.addEffect's (Mob::add_effect); canBeAffected stays vanilla so AreaEffectCloud keeps the wither as a victim. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:44 +01:00
Ludovic Marie 1b3e7c0f7f Merge pull request #8853 from contactjayclatty/fix/8721-zero-duration-effects
🤖 Agent: vanilla: MobEffectInstance.tickServer returns false at 0 (hasRemainingDuration), tickEffects removes it. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:40 +01:00
Ludovic Marie 9dcad939f7 Merge pull request #8843 from contactjayclatty/fix/8790-wither-cannot-ride-a-minecart
🤖 Agent: vanilla: OldMinecartBehavior/NewMinecartBehavior seat through startRiding, WitherBoss.canRide false. Proof: union of main b1f5b238 + this batch's 14 heads on the desktop: fmt, clippy -D warnings, tests of horizon-client/-lib/-core/horizon-world green (GPU gfx/post_chain/menu_blur skipped). Harness subset only (not the full parity.py selection, which CI runs on this head): 22 passed (active_effect_tick active_effects effect_notifications status_effect consume_effect sculk block_entity_anim chest_pair command_parse chat_screen command_exec peaceful_summon living_hurt living_damage damage_source player_hurt damage_reduction server_player_damage boat_authority vehicle_container powder_snow_collision squid_client); dedicated_server and server_entities failed on the vanilla oracle's watchdog under desktop load, mob_ai not finished (oracle 1 h timeout under load): left to CI.
2026-11-04 12:33:36 +01:00
Arslan ArmanulyandClaude Opus 5.5 f106b832ef Shader packs: atomic functions on a shared vector in a declaration list or a shared struct
An atomic function on a component of a shared integer vector (`atomicMin(mn.x, i)`) was
rewritten only when the vector had a declaration of its own. Two other forms reached naga
unsplit and failed with "Atomic operation is invalid: Pointer [..] to atomic is invalid":

- a declaration naming several variables, `shared ivec3 mn, mx;`: each name is now declared
  on its own, and the ones atomic functions use by component are split as before;
- a member of a shared struct whose type is defined in place,
  `shared struct { ivec3 mn; uint other; } sh;`: the member becomes `int mn_hz[3];` in the
  struct, with `hz_get_sh_mn()` / `hz_set_sh_mn(v)` for whole-vector reads and writes, through
  the member paths #8994 added for buffer blocks. A struct type whose name is used anywhere
  else stays as written.

Based on #8994 (shaderpacks/ssbo-vector-atomics), whose member-path rewrite this reuses.

Fixes #9085

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:31:59 +05:00
JanandClaude Sonnet 5.5 5198fae465 Native mods: a trade's live offer can be changed by mods (merchant_offer_traded)
After each trade made with a villager or a wandering trader, the mods are
asked with the live MerchantOffer in the trading session (uses counted):
uses, max_uses, demand, special_price_diff, price_multiplier and xp may be
changed and the change stands for the next click and the offers sent to the
player. Bukkit's PlayerTradeEvent#getTrade is mutable the same way. The
existing trade_with_villager stays listen-only and hears the offer as the
trade left it. A collect-contract hook with an API fragment.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 12:31:11 +01:00
Ludovic Marie f74b20d999 Merge the branch's fmt fix and main
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/horizon-client/src/mobs/guardian.rs
2026-11-04 12:28:20 +01:00
Ludovic Marie 725a5dcfa4 Merge #8966 into #8952: both append to guardian.rs
The two branches each added a test module at the end of guardian.rs, so
whichever lands second conflicts. Carry #8966 here; land #8966 first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/horizon-client/src/mobs/guardian.rs
2026-11-04 12:27:13 +01:00
DenisHumenandClaude Opus 5.5 269718fac1 Draw sign text glyphs over their own box, not a fixed 8x8 cell
Sign text drew every glyph as an 8x8 quad at the pen. Vanilla's
BakedSheetGlyph draws x+left..x+right and y+up..y+down, which the HUD
already does. With Force Unicode Font a Latin letter is an 8x16 Unifont
glyph at half scale (4 units wide, advance 5), so stretching it to 8
units overlapped its neighbours.

Fixes #8699

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:26:18 +02:00
Ludovic Marie 23ae9e7f82 Merge pull request #9091 from horizon-rust/dezer/home
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head (473+84 passed); below 1280 px the mods button folds into ⋯ so the invite field keeps a 150 px minimum to the right of Play (screenshots at 1000×700).
2026-11-04 12:24:28 +01:00
TheMrZZandCodex gpt-6.1-sol 4baa918620 Omit ignored age fields from zombie nautilus saves
Follow AgeableMob save gating for zombie nautiluses while retaining modeled
age values for normal nautiluses. Cover stale raw data and the command path.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 12:22:21 +01:00
Ludovic Marie 3319108619 Merge pull request #9095 from horizon-rust/dezer/partner
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head; the GitHub mark is our own SVG in horizon-theme's glass icons, the Sculk card keeps its 2 px hover lift without the border.
2026-11-04 12:15:47 +01:00
Ludovic Marie 7a969a6122 Merge pull request #9099 from horizon-rust/dezer/mods
🤖 Agent: desktop fmt/build/clippy -D warnings/tests 0 at this head; the card re-renders only when its offset changes (on_scroll + next frame), so a long list costs nothing extra while scrolling; a scrollbar-thumb drag catches up on the next event (noted in the body).
2026-11-04 12:11:24 +01:00
Ludovic MarieandClaude Opus 5.5 9dfb3149fb Launcher: the Shop's countdown rounds whole days to the nearest
From three days up the span showed whole days rounded down, so a seven-day
window read "6 days left" a minute after it opened.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:08:53 +01:00
DenisHumenandClaude Opus 5.5 c6efd15f0c Mobs see the player's off-hand item (tempting food in the off hand)
Game::player_view left PlayerView.off_hand as None, so TemptGoal, the
animal brains' TemptingSensor, piglins' loved items, goats, happy
ghasts and taming never saw what the player holds in the off hand.
Vanilla's TemptGoal.shouldFollow and LivingEntity.isHolding check both
hands. Fill it from the off-hand slot, as main_hand is filled.

Fixes #8858

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:04:58 +02:00
Ludovic MarieandClaude Opus 5.5 99725aa079 launcher: the scroll spy takes the scroll off the sections' layout tops
A section's bounds from the ScrollHandle are its layout position before the scroll, so
the list stayed on the first section until the pane reached its end (seen on the desktop
run: Account still marked over the Launcher card).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:03:43 +01:00
DenisHumenandClaude Opus 5.5 344a829699 Opaque debug lines write depth, so water and clouds stay behind them
DrawableGizmoPrimitives.getGroup puts a line whose alpha is 255 in the
opaque group, which GizmoFeatureRenderer.buildLines draws with
RenderTypes.lines (pipeline/lines: DepthStencilState.DEFAULT, depth
written); only lines with alpha below 255 use
linesTranslucentNoDepthWrite. Horizon drew every depth-tested gizmo line
without writing depth, so translucent terrain and clouds drawn later
covered F3+B hitboxes and F3+G chunk borders in front of them.

The opaque lines now upload first and draw with a depth-writing
pipeline; the translucent ones (the chunk border's outer columns) keep
the old one.

Fixes #8465

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:02:25 +02:00
repositorykreml1nandCodex f0634ed6f2 fix: honor the player's mining efficiency attribute
Read the computed attribute when calculating destroy speed, including active
hand enchantments in the map without activating them in the wrong slot.
Add nine differential real-game probes against vanilla Player.getDestroySpeed.

Fixes #9021

Co-Authored-By: Codex <[email protected]>
2026-11-04 14:00:06 +03:00
masa-masa-0314andZCode 73715cdab4 Launcher: add data-location strings to the new language tables
Upstream added 52 launcher language tables on main; they predate this branch's
data-location strings, and the launcher's i18n completeness test requires every
table to carry every key. Add the missing entries with the English text, and
the Chinese translation for the new startup message.

Verified with fmt --check, clippy --all-targets -D warnings and the launcher
lib tests on the merged tree (482 here, 486 on Linux in WSL).

Co-Authored-By: ZCode <[email protected]>
2026-11-04 18:56:59 +08:00
LokiandAntigravity 0b831b1dca mobs: cargo fmt guardian.rs
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 19:53:23 +09:00
masa-masa-0314 f83a9c1ae9 Merge remote-tracking branch 'upstream/main' into feat/launcher-data-location 2026-11-04 18:52:36 +08:00
Loki 81e9973c62 Merge remote-tracking branch 'origin/main' into fix/8934-elder-guardian-home 2026-11-04 19:51:29 +09:00
Arslan ArmanulyandClaude Opus 5.5 2e4a5a13a6 Shader packs: textureMatrix is the texture matrix in gbuffers vertex stages
A gbuffers vertex stage that declared the core-profile `uniform mat4
textureMatrix` got a frame uniform the game has no value for, so it read
zeros, and packs computing their UVs as `textureMatrix * vaUV0` sampled
one texel per face. In the vertex stage it is now gl_TextureMatrix[0], as
projectionMatrix and modelViewMatrix already are their compatibility
matrices. Our probes read the identity there in Iris 1.11.7, and zero in
the fragment stage, which keeps its own frame slot.

Tests: the vertex stage's textureMatrix takes no frame slot while the
fragment stage's keeps one; on a host GPU, the vertex stage reads the
identity, a UV through it is the UV, and the fragment stage reads zero.

Fixes #9080

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:46:37 +05:00
Arslan ArmanulyandClaude Opus 5.5 b873ea2dd6 Shader packs: read struct and buffer-block members that atomic functions use
naga's GLSL frontend read `s.member` on the right-hand side out of a loaded
copy of the whole struct. Once an atomic function marks that member atomic,
the copy's member is an atomic value no operator, conversion, call or store
takes ("Incompatible operands: Atomic(...) as Uint"). The member is now
loaded through a pointer to it, as array elements already were; constant
expressions keep the value form.

Tests: every read the #9081 probe makes (assignment, operators,
constructors, min, subgroupBroadcastFirst) on a shared struct member, a
buffer-block member, a member of a shared struct array and a nested member;
constants' members in constant expressions; a member beside a runtime-sized
array; and, on a host GPU, the values those reads return.

Fixes #9081

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:44:19 +05:00
masa-masa-0314andZCode f1f7847050 CI: rerun launcher checks
The launcher job stopped with exit code 101 while verify succeeded and the same
fmt, clippy and lib tests pass on Linux locally (486 passed).

Co-Authored-By: ZCode <[email protected]>
2026-11-04 18:42:43 +08:00
Ludovic MarieandClaude Opus 5.5 e584b02ce2 launcher: the knob's slide owns its ends; fmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:42:02 +01:00
Ludovic MarieandClaude Opus 5.5 9cab156727 launcher: fmt the instance dialog's logos
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:40:27 +01:00
Ludovic MarieandClaude Opus 5.5 a61d9f473d launcher: menus in the cards' glass, the website's motion, a whiter light look
Menus and popovers take the cards' glass with a shadow instead of the darker float, and
arrive as the website's hzl-pop (fade and 6 px rise, 200 ms); Settings' Language list is
one of them now (it was the old square box and ran off the window). Hovers ease on the
design's quick curve, pages and toasts pop, the glass switch's knob slides; reduced
motion draws each at its end. In light, the Play group's icons take the accent's ink and
the dawn sky is washed with white.

Addresses dezer-x's launcher feedback (points 7, 8 and 11).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:40:21 +01:00
Ludovic MarieandClaude Opus 5.5 a6ab89c89b Launcher: the Shop in the glass look, the new founder set, First Light in Settings
The Shop and Wardrobe tabs on glass plates in both appearances (Geist type, the
glass ink, light wells a soft violet grey so cream and violet items keep their
edges); the founder panel stacks under a 1280 px window. The Wardrobe gets a Shirt
row; its launcher theme row is gone: launcher themes are free for everyone in
Settings > Appearance (Launcher theme: Horizon or First Light), never claimed.
The top bar's Wardrobe follows the cosmetics service only. Shop previews use the
7-day window. The Shop strings in the 61 languages main added since, and the new
ones everywhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:39:59 +01:00
Ludovic MarieandClaude Opus 5.5 47222e152f Cosmetics: a torso slot, top-level parts on their own bone, on by default
A shirt's sleeves ride the arms: a top-level part may name its own bone (Item::limbs,
one root per bone under the item's attachment, Item::roots). The game draws each root
on its bone, the launcher's preview too. Slot::Torso, hidden under a chestplate.

Cosmetics run by default (Ludovic, 2026-11-04: on when the shop opens); other
players' and your own already default to shown. HORIZON_COSMETICS=0 turns them off;
horizon_cosmetics::forced() is HORIZON_COSMETICS=1 for the launcher's Wardrobe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:39:59 +01:00
Ludovic Marie 3fb4c3138e Merge pull request #8815 from itarqos5/perf/reduce-a-far-chunk-when-read
🤖 Agent: reviewed by literal-review (agent-state/literal-review.md): a far chunk is reduced only to the cell width that reads it (405 → 103 µs per chunk in its bench), same output; verify + launcher green at this head.
2026-11-04 11:37:02 +01:00
TiggerTakkyTTTandCodex ce098ebe9d Server API: pin observability replies
Add JSON and Prometheus golden cases for status, logs, sampled metrics, cursor handling, and stopped or running health output.

Fixes #9083

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 17:31:18 +07:00
Arslan ArmanulyandClaude Opus 5.5 c94eb80064 Shader packs: read colortex formats only where Iris 1.11.7 does
Probe packs of ours, run in Iris 1.11.7, set colortexNFormat in many places. Horizon now
follows what Iris did with them:
- a format in a block comment counts only where `const` starts its line (our probes' Iris
  values fit this; it isn't a rule Iris states): not on the `/*` line, not after ` * `, not
  after another declaration on the line;
- a format in a vertex shader doesn't count;
- the colortex formats of the shadow programs' fragment shaders are read when the shadow pass
  doesn't run (observed in our probes for shadow.fsh and shadowcomp.fsh); nothing else of
  those files is read then (Horizon's choice: nothing else was probed);
- declaring `gdepth` no longer makes colortex1 RGBA32F.

Fixes #9063

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 15:30:59 +05:00
rdbtCVSandOpenAI Codex 5bdbffb5a5 Merge latest main after RAM limit removal
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 10:28:35 +00:00
masa-masa-0314andZCode f46a9c83a0 Launcher: open Settings when the data folder cannot be opened
A player whose drive is unplugged, whose location.json is damaged, or whose
migration lock is held used to get a silent exit: eprintln goes nowhere in the
Windows release build or from a desktop launcher. Startup now falls back to the
default folders and records the error, so the window opens on Settings with the
message, Retry and Use the default folder. Retry restarts into the configured
folders when they are readable again; Use the default folder keeps the old
pointer as location.json.old and restarts. Nothing in the moved folders is
deleted, and no launcher path reaches its expect() before the window exists.

Merge upstream/main (017c84f1f) while doing so: keep the launcher render env
strip and account-session removal alongside HORIZON_HOME, keep both the server
location_busy and stopped_line methods, keep one WorldLock, and keep the
explicit unlock in the world-lock test. The data-location strings the newer
language tables did not have yet are added (English fallback), with a Chinese
translation for the new message.

Tested: launcher lib 482 passed, bin 84 passed, integration suites passed;
cargo fmt --check and clippy --all-targets -D warnings pass.

Co-Authored-By: ZCode <[email protected]>
2026-11-04 18:23:55 +08:00
Ludovic Marie 17d4944fa9 Merge branch 'dezer/mods' into dezer/modrinth 2026-11-04 11:23:48 +01:00
Ludovic MarieandClaude Opus 5.5 e4b7c5723f launcher: fmt the Mods page's sticky card and sort
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:23:47 +01:00
Ludovic MarieandClaude Opus 5.5 57dba96d66 launcher: our own grass block for Vanilla, the real Horizon icon for Horizon
The Vanilla mark was baked from Mojang's grass textures in the prepared files, so the
Java Edition tab and the New instance card showed a letter until the game was prepared.
It is now an original drawing (tools/launcher_grass_block.py), always there. Horizon's
mark was a redrawn tile with the bar in the accent colour; it is now the brand icon.

Addresses dezer-x's launcher feedback (points 5 and 6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:23:40 +01:00
rdbtCVSandOpenAI Codex f198e226ee Keep field focus helper used by the theme editor
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 10:21:29 +00:00
Ludovic MarieandClaude Opus 5.5 83d38f5735 launcher: fmt the scroll spy's tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:21:14 +01:00
rdbtCVSandOpenAI Codex c25f708490 Merge main and remove remaining RAM limit features
Remove the hard allocation ceiling and glass launcher slider added since the original revert. Keep read-only memory diagnostics and unrelated upstream changes.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 10:18:52 +00:00
Ludovic Marie 201026e91e Merge pull request #9077 from horizon-rust/fix/mgmt-stop-exits
🤖 Agent: management server/stop now ends horizon-server as vanilla's does. Desktop: management_protocol FAIL on main 017c84f1fe (supervisor TimeoutExpired), PASS on e132eeba6c (--fresh, 167 s); dedicated_server PASS both; horizon-server fmt/clippy -D warnings/134 tests pass; the new supervisor test fails with the fix reverted.
2026-11-04 11:17:59 +01:00
Ludovic MarieandClaude Opus 5.5 ad7e2b3594 launcher: the scroll spy's test reads the section at 1000 px right
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:14:09 +01:00
Ludovic MarieandClaude Opus 5.5 6c597549a9 launcher: the Mods page's Modrinth placeholder follows its tab
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:13:59 +01:00
Ludovic MarieandClaude Opus 5.5 0b15d4a0d5 launcher: the top bar wears the signed-in player's face even when the account kept no skin
dezer-x's launcher feedback, point 14. The chip draws the account's head from its saved skin URL;
an account saved without one (older sign-ins, or a profile answered without its skin) fell back to
the default skin from a prepared version's files, and with none prepared to the user icon.
Such an account now asks Mojang's public session server (no token) for its skin, keeps the URL a
day beside the cached skins, and the face comes from the skin as before (textures.minecraft.net
only). Signed out or offline with nothing cached, the user icon stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:10:11 +01:00
Ludovic MarieandClaude Opus 5.5 b7b3c2cedf launcher: GitHub's mark on Sponsor on GitHub, Sculk's card on every page, no border
dezer-x's launcher feedback, points 12 and 13:
- Sponsor on GitHub carries GitHub's mark (github.svg in the glass icons, drawn for Horizon:
  filled, its cat cut out by a mask).
- Sculk's card stays at the sidebar's foot on every page, Servers too; its border is gone (it
  still lifts under the pointer).
- On Servers, Sculk's banner sits right under the server, where it shows without scrolling past
  the server's tabs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:09:00 +01:00
Ludovic MarieandClaude Opus 5.5 e2639c66d6 launcher: Home drops the Resources rows, keeps the invite code beside Play, edition tabs switch
dezer-x's launcher feedback, points 1, 2 and 15:
- Overview (glass look) ends with the screenshots and the patch log: the Resources and
  Minecraft folder rows (and their Sign in with Microsoft) are gone; Prepare stays in Play's
  menu, the folder in the folder menu, signing in in the top bar.
- The invite code stays on the actions' row at every width; under 1280 px Play and the version
  are narrower, the puzzle gives way (the Mods tab does the same) and the field takes the rest,
  with the shorter "Paste an invite code".
- The Java Edition / Rust Edition tabs switch: to that edition's instance played last, or to the
  New instance dialog on Vanilla or Horizon when there is none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:06:47 +01:00
Ludovic MarieandClaude Opus 5.5 aba52d49b6 launcher: Modrinth is back on the Mods page, every kind has its tab
Ludovic's point 16 on dezer-x's launcher feedback: mod translators are coming and the launcher
plays Java instances, so the Mods page searches Modrinth again (undoes what 0416fe600c hid, in
the 0.2.38 design).
- Tabs: Mods, Modpacks, Resource packs, Shader packs, Data packs.
- Mods, Modpacks and Resource packs pick their source under the search: Horizon's registry or
  Modrinth, CurseForge beside them as coming soon, inert. Shader packs stay on the registry
  (Horizon's .hshader), data packs on Modrinth, into the world picked there (its worlds read again
  when the tab opens; source_for gave data packs Horizon's registry, which has none).
- A Horizon instance's Modrinth mods are listed, each marked Works, Partly or Doesn't run in
  Horizon once its jar is checked; a Java instance's tabs still search Modrinth for its version and
  loader. Installs keep the SHA-512 check before writing.
- docs/mod-browser.md, launcher/README.md and the Mods page's module comments say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:06:29 +01:00
TheMrZZandCodex gpt-6.1-sol 17bc3161d5 Preserve saved Sitting flags for both nautilus species
Restore the modeled flag independently of Owner and serialize its current value. Cover defaults, owner removal, raw-None writes and model mutation against stale raw NBT, with a frozen Game command regression.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 11:04:48 +01:00
Ludovic MarieandClaude Opus 5.5 02f481fe07 launcher: the Mods page's card stays in view, Sort by sits beside the search
dezer-x's launcher feedback, points 3 and 10:
- The project card beside the results stays in view as the page scrolls (the mockup's
  lg:sticky lg:top-0): sticky.rs measures the row while it paints and moves the card down by what
  the page scrolled past it, never past the row's end. A scrolled page is drawn from its layer,
  so the page's scroll asks on the next frame whether the card must follow, and redraws only then.
- Sort by is on the search's right, as tall and as round as the search, its choices on a glass
  popover with the chosen one ticked; Modrinth's filter bar no longer repeats it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:02:39 +01:00
Arslan ArmanulyandClaude Opus 5.5 4cc3fc51d9 Shader packs: raw custom textures default to linear + clamp, and a PNG under a name of the pack's own isn't bound
A raw (`.dat`) custom texture is sampled linear and clamped unless its
`.mcmeta` says otherwise, each key overriding its own default only; PNGs
stay nearest and repeating. A PNG (the pack's or a game resource) under
`texture.<stage>.<name>` whose name is no sampler of the game's is not
bound. Iris 1.11.7 read these values with a probe pack of ours; the
binding rule is a fit to its cases.

Fixes #9064

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:59:00 +05:00
Ludovic MarieandClaude Opus 5.5 9f7e16a7b6 launcher: Settings' list follows the scroll, each last section in turn
dezer-x's launcher feedback, point 9. GPUI Fast draws a scrolled pane from its cached layer
without rendering the view, so the list only moved when something else redrew the page; at
the end the mockup's rule then jumped straight to Data collection.
- The pane's scroll asks, on the next frame, which section is read, and redraws only when it
  changed.
- The reading line sits at 30 % of the pane, then slides to its bottom over the last 70 % of a
  pane of scroll, so About and Data collection, too short to reach 30 %, each come in turn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:58:53 +01:00
Ludovic MarieandClaude Opus 5.5 ac67a24940 fmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:57:47 +01:00
Ludovic MarieandClaude Opus 5.5 57c08c432b launcher: versions and patch notes get their gap, the pages stop short of the top bar
dezer-x's launcher feedback, point 4:
- Each Versions and Patch notes card carries the 10 px bottom margin cull::column already
  counted as their gap (the mockup's gap-2.5): the cards were fused.
- The glass look's scroll area starts 14 px under the top bar, so cards scrolled up stop short of
  it; the pages' heads hold 14 px less above their titles, so nothing moves at rest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:57:43 +01:00
Ludovic MarieandClaude Opus 5.5 fd381c7ad7 Merge origin/main into feat/launcher-shop-ui
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:57:12 +01:00
Arslan ArmanulyandClaude Opus 5.5 e05ce228d6 Shader packs: RGB5_A1, RGB565 and R3_G3_B2 buffers keep their bits
These formats live in 8-bit wgpu textures, so a pack read back 8-bit values where Iris 1.11.7
reads fewer bits. What a pass writes into such a buffer, and its clear colour, now keep the bits
Iris kept in our probe pack p8106c: the 8-bit byte's top 5, 5, 5 and 1 bits for RGB5_A1, 5, 6
and 5 for RGB565 and R3_G3_B2, repeated to fill 8. This is a fit to the probe's Iris values on
one driver (all 600 values match), not a rule Iris states.

Fixes #8106

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:54:55 +05:00
Ludovic Marie 4601a3ba9f Merge pull request #8802 from dontstopgorkingit/vec_it-game
🤖 Agent: union B6 (fur li lmo oc sah se szl vec: 16 PRs) stacked on #8610, ALL = 87 languages: tables complete at main's 1093 strings, controller labels written as commands fixed; desktop launcher fmt/clippy/test + horizon-client-core green (619 passed); verify + launcher green.
2026-11-04 10:54:54 +01:00
Ludovic Marie e82799f414 Merge pull request #8610 from dontstopgorkingit/fo_fo-game
🤖 Agent: union B5 (tt yi yo zu ba br cv fo: 15 PRs + #8600 closed) stacked on #8579: zu_za game table dropped (vanilla 26.3 ships no zu_za), Bashkir's two broken {done}/{total} placeholders fixed; desktop launcher fmt/clippy/test + horizon-client-core green (619 passed).
2026-11-04 10:54:42 +01:00
Ludovic Marie 90a4324c48 Merge pull request #8579 from dontstopgorkingit/la_la-game
🤖 Agent: union B4 (gd lb ky kn mt eo haw ig la: 18 PRs) stacked on #8496: Esperanto now has a table, so the two launcher tests that used "eo" as a table-less language (i18n pick, settings parse) use "tlh"; desktop launcher fmt/clippy/test + horizon-client-core green (619 passed).
2026-11-04 10:54:21 +01:00
Ludovic Marie b87821c99d Merge pull request #8496 from dontstopgorkingit/fy_nl-game
🤖 Agent: union B3 (ga eu gl fil ta mn lo so fy: 18 PRs) stacked on #8450: Lao's 323 U+200B removed, 56 Tamil entries with Horizon/Minecraft in Tamil script restored to Latin, missing strings filled; desktop launcher fmt/clippy/test + horizon-client-core green (619 passed); verify + launcher green.
2026-11-04 10:54:08 +01:00
Ludovic MarieandClaude Opus 5.5 a53ae76d3c Merge main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:53:34 +01:00
Ludovic MarieandClaude Opus 5.5 3faaa3f304 Merge main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:53:34 +01:00
Ludovic MarieandClaude Opus 5.5 e81cf7e35c Merge main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:53:34 +01:00
Ludovic MarieandClaude Opus 5.5 09d7b3625e Merge main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:53:33 +01:00
Ludovic MarieandClaude Opus 5.5 f6e559c186 mobs: one flop test over both guardians, loud and silent
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:51:41 +01:00
Ludovic MarieandClaude Opus 5.5 5bea3820c1 game: drop the opener edge test that computed its own answer
It derived the open and close edges in the test from recheck_opener_count's
return, which the existing opener tests already pin; it never reached the
game events this PR gates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:51:32 +01:00
Ludovic MarieandClaude Opus 5.5 efb950a10d Merge main into fix/8933-silent-guardian-flop
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:51:32 +01:00
Ludovic MarieandClaude Opus 5.5 8bd408af30 Merge main into fix/8957-spectator-container-vibrations
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:51:24 +01:00
Ludovic MarieandClaude Opus 5.5 425145eb50 mobs: one elder guardian home test, beside the code it pins
Keep the home and keep-existing-home cases and the restriction they give
in one test right after elder_server_ai_step (so it does not collide with
the flop tests #8966 appends to guardian.rs), drop the test that pinned
extra.home staying empty, and keep Mob::toward private.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:51:17 +01:00
Ludovic MarieandClaude Opus 5.5 1fea8858dd Merge main into fix/8934-elder-guardian-home
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:50:53 +01:00
Ludovic Marie b1f5b238b8 Merge pull request #8450 from dontstopgorkingit/cy_gb-game
🤖 Agent: union B2 (az uz kk ka hy bs mk sq cy: 18 PRs) stacked on #8425: missing launcher strings filled, Instance written as "example" in hy/mk fixed, product names restored; desktop launcher fmt/clippy/test + horizon-client-core green (619 passed); verify + launcher green.
2026-11-04 10:50:49 +01:00
Ludovic MarieandClaude Opus 5.5 b500705d23 mobs: the wither's addEffect refuses, its canBeAffected does not
WitherBoss overrides addEffect to return false and canBeAffected to refuse
the wither effect only. AreaEffectCloud.serverTick picks its victims with
canBeAffected, so a cloud of strength or healing still takes the boss as a
victim: its instant effects land and the cloud shrinks. Keep
mob_can_be_affected and Mob::can_be_affected vanilla's canBeAffected and
put the blanket refusal in Mob::add_effect.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:50:46 +01:00
TiggerTakkyTTTandCodex 1ddca546f0 Server API: pin moderation replies
Add JSON golden cases for stopped-server operator and whitelist edits, no-op outcomes, unavailable running-only actions, and representative validation errors.

Fixes #9073

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 16:50:43 +07:00
Ludovic Marie f0fd35b635 Merge pull request #8425 from dontstopgorkingit/be_by-game
🤖 Agent: union B1 (ca et lv sl sr is af ms be: 18 PRs, octopus of their heads + fixes): 66/58 missing launcher strings filled per table, 152 Serbian entries had Horizon/Minecraft transliterated (Latin again), game sr table now serves vanilla's Cyrillic sr_sp and a Latin transliteration for sr_cs; desktop: launcher fmt, clippy -D warnings, cargo test + horizon-client-core fmt/clippy/test green (619 passed); verify + launcher green.
2026-11-04 10:50:41 +01:00
Ludovic MarieandClaude Opus 5.5 6581318519 Merge main into fix/8776-wither-takes-no-effect
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:50:14 +01:00
1013b2dc5e Put the cleared experience orbs back into their join list.
The respawn rule returns a Vec, and the client stores orbs in a JoinList, so verify could not assign one to the other.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:43:11 +01:00
6c4a43178f Keep the closed-shulker arrow test in the library that can build a mob.
The game crate's tests cannot see the library's cfg(test) mob fixture, so verify failed while compiling them.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:36:55 +01:00
Ludovic MarieandClaude Opus 5.5 e132eeba6c Server: name vanilla's stop path in the comment
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:36:38 +01:00
TiggerTakkyTTTandCodex 4d260ccdac Server API: pin event replies
Add JSON golden cases for event polling, cursors, type filters, Last-Event-ID resumption, invalid selectors, and exact server-sent event framing.

Fixes #9066

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 16:33:56 +07:00
9515965bd5 Broadcast entity event 46 so a random teleport's portal particles reach the window.
Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:28:58 +01:00
785fd33992 The player who fills a composter was left out of level event 1500, so the fill particles and sound never reached them.
Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:27:56 +01:00
0ddc08b053 Bounce arrows off a closed shulker instead of removing them.
Shulker.hurtServer returns false for an AbstractArrow while the shell is closed, and AbstractArrow.onHitEntity then deflects REVERSE at power 0.2. The hit path was dropping that refusal.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:26:10 +01:00
80c9d8d5a7 Drop experience orbs when the client changes dimension.
A new ClientLevel starts empty, but the old orbs stayed and followed the player after the end fountain, so they were never picked up.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:25:59 +01:00
ca31bc0c02 Keep a reloaded potion amplifier of 255 instead of clamping it to the lowest level.
MobEffectInstance stores amplifier as an unsigned NBT byte. Sign-extending that byte turned 255 into -1, and the effect constructor then clamped it to 0.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:20:35 +01:00
TiggerTakkyTTTandCodex a225724ed4 Server API: pin config replies
Add JSON golden cases for redacted config reads, stopped and running config patches, protected settings, malformed bodies, invalid ranges, invalid value shapes, and unknown settings.

Fixes #9056

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 16:20:04 +07:00
Arslan ArmanulyandClaude Opus 5.5 2f24d605ce Shader packs: fill a stitched block atlas's padding with each sprite's edge
The stitched atlas now draws every sprite into each level with a small render
pass instead of copies. The padding around a sprite repeats its nearest edge
pixel, as vanilla's TextureAtlas.uploadInitialContents does: it blits with a
clamp-to-edge sampler, and animate_sprite.vsh stretches the UVs over the
padding. Packs that filter or sample just past a sprite's edge read its own
colour instead of an empty pixel.

Part of #9037

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:13:33 +05:00
Arslan ArmanulyandClaude Opus 5.5 51ea650d28 Shader packs: stitch the block atlas as the game does, each sprite at its own size
With a pack, flat terrain draws now read a block atlas laid out by vanilla's
Stitcher, with SpriteLoader's mip level and padding. Every sprite keeps its own
size, copied from the array level where the arrays hold it unscaled, and its
place goes to the sprite table. atlasSize and the texel distances packs derive
from it now match Iris 1.11.7: 2048 x 2048 on 26.3's sprites, where the grid
of 64 px cells gave 2304. Draws without the flat path keep the grid. The
padding stays empty for now.

Part of #9037

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:13:18 +05:00
d46ebbdaa5 Start the shulker teleport slide from the move packet.
Shulker.createInterpolationHandler is NO_OP, so setPos runs when the packet arrives, from the block the shulker occupied before it. client_tick only counts the slide down.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 10:05:56 +01:00
Florian ERNST 48b17308b2 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/special-recipe-command 2026-11-04 09:53:28 +01:00
Arslan ArmanulyandClaude Opus 5.5 e2e4df377c Shader packs: the shadow pass draws terrain faces turned away from the light
An Iris-format pack's shadow map held no faces turned away from the light,
for two reasons: the shadow and shadow_water pipelines got the game's
terrain geometry with back-face culling on, and the shadow lists kept only
the quad buckets that can face the light. Under a hill at low sun such
faces (cave ceilings) are often all that shadows a cave, so packs drew
sunlight and shafts inside it. Iris 1.11.7 keeps both sides in its shadow
map (probe in #9033).

The pack shadow pipelines now draw both sides, and pack shadow views ask
for every face of their sections; Horizon's own packs keep the facing
selection.

Fixes #9033

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:52:38 +05:00
TheMrZZandCodex gpt-6.1-sol 6cd68ac305 Load summoned potion clouds into the runtime model
Retain loaded cloud timing, radius and potion settings, and keep live cloud identity during memory pruning. Add a loader contract and preserve a strict diagnostic for separate dose-phase and damage-source gaps.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 09:47:37 +01:00
Florian ERNST fcb7d020cb Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/axolotl-memory-ttl 2026-11-04 09:46:17 +01:00
Florian ERNST 96afb04b19 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/mob-effect-command-result 2026-11-04 09:40:33 +01:00
Florian ERNST acd5d78e64 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/parrot-saved-age 2026-11-04 09:38:01 +01:00
Arslan ArmanulyandClaude Opus 5.5 0d1c7706fc Shader packs: flat terrain reads each sprite's place in the block atlas from a table
Flat terrain draws now look a sprite layer's corner and side up in a table
(set 3, binding 2: x | y << 16, side) instead of working out a grid cell. The
atlas is still the grid, so packs see the same coordinates; the table lets the
atlas place sprites of different sizes next.

Part of #9037

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:34:26 +05:00
Ludovic Marie 33816de710 Merge pull request #8122 from TiggerTakkyTTT/fix/server-management-simulation-distance
🤖 Agent: Hub::set_simulation_distance broadcasts SetSimulationDistance and state.view.1 keeps the status reply in step; third of the management stack, after #8118.
2026-11-04 09:33:26 +01:00
Florian ERNST d4d03d6219 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/parrot-saved-age 2026-11-04 09:33:06 +01:00
Ludovic Marie 39c8cd6533 Merge pull request #8118 from TiggerTakkyTTT/fix/server-management-view-distance
🤖 Agent: max(2).min(view) replaces clamp(2, view), which panicked when a management value below 2 made the bounds cross; second of the management stack, after #8108.
2026-11-04 09:32:42 +01:00
Ludovic Marie a937e21cac Merge pull request #8108 from TiggerTakkyTTT/fix/server-management-spawn-protection
🤖 Agent: hub.spawn_protection is the radius the block checks read, so the live set applies at once; base of the management stack (#8118, #8122, #8128 carry it in that order).
2026-11-04 09:32:00 +01:00
Ludovic Marie 377db4c754 Merge pull request #8103 from CocofireHD/fix/avoid-entity-targeting
🤖 Agent: merged main; since #8046 can_target_player already refuses a player in Peaceful (spares_players), so I dropped the goal's own difficulty check and the Peaceful test still covers it.
2026-11-04 09:31:25 +01:00
Florian ERNST e50732827a Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/turtle-summon-home 2026-11-04 09:31:03 +01:00
Ludovic Marie bedf814d2f Merge pull request #9046 from horizon-rust/perf/collision-scan-caches
🤖 Agent: only may_reach_out answers are cached (8 sections); the chunk queries keep vanilla's one-column cache, and the block_collision_scan harness checks that query trace against the oracle. Collision samples −21 % in a profile; A/B in the noise.
2026-11-04 09:28:45 +01:00
Ludovic Marie cb2b398f6e Merge pull request #9041 from horizon-rust/perf/sculk-listeners-by-cell
🤖 Agent: small win (tick_sculk_entities −0.2 to −0.3 ms, 3/3 pairs). Risk point: listener order. The cell lookup sorts back by insertion rank, and a randomized test checks it against the old full-list filter through inserts, removals and retains. sculk, server_player_sculk and mob_ai pass.
2026-11-04 09:28:42 +01:00
Ludovic Marie 9813851777 Merge pull request #9040 from horizon-rust/perf/lib-inline-accessors
🤖 Agent: random_ticks −3.9 to −4.4 ms in 3/3 A/B pairs. Six #[inline] attributes, no body changed; random_tick, random_tick_sections, mob_ai, server_entities, natural_spawn and villager_farming match vanilla.
2026-11-04 09:28:38 +01:00
Florian ERNST 621f9496db Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/turtle-summon-home 2026-11-04 09:28:11 +01:00
Ludovic MarieandClaude Opus 5.5 1afc192c4d Merge the B4 settings-test fix into the B6 union
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:27:48 +01:00
Ludovic MarieandClaude Opus 5.5 2ba6a92b70 Merge the B4 settings-test fix into the B5 union
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:27:48 +01:00
Ludovic MarieandClaude Opus 5.5 b1c0adffdc Launcher settings test: use a language without a table
Esperanto has a table now, so the settings test that reads an unknown saved language uses "tlh".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:27:48 +01:00
TiggerTakkyTTTandCodex 9c92abadf9 Merge resolved simulation distance branch into entity range management
Carry the resolved management stack into the entity broadcast range PR while preserving all routes, port-ledger entries, and parity cases from current main.

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 15:25:24 +07:00
Ludovic MarieandClaude Opus 5.5 eb03a89c7c Server: the management protocol's server/stop ends the supervisor
Since #8245 a stop that doesn't come from the supervisor's stdin or the
control API leaves the supervisor in its stopped phase. The management
`server/stop` only set `stop`, so horizon-server kept running after it,
where vanilla's process exits (the management_protocol harness timed out).
It now shuts down as `POST /api/v1/stop` does, through one helper.

Fixes #9027

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:23:49 +01:00
Florian ERNST 3382af51d8 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/command-cart-loaded-success 2026-11-04 09:23:15 +01:00
Florian ERNSTandCodex 35af5c3a6c Merge remote-tracking branch 'fork/fix/command-cart-loaded-success' into fix/command-cart-loaded-success
Co-Authored-By: Codex <[email protected]>
2026-11-04 09:23:09 +01:00
LokiandAntigravity d237664ed1 mobs: exclude wither from sweet berry bush and powder snow slowdown (fixes #8785)
In Vanilla Java Edition 26.3, WitherBoss.makeStuckInBlock overrides Entity.makeStuckInBlock as an empty NO-OP.
While Cobweb (WebBlock) already ignored Wither alongside Spiders, Wither was still getting stuck in and having its fall distance reset by Sweet Berry Bushes and Powder Snow.

This aligns effects_from_blocks with vanilla Java bytecode:
- Wither is immune to slowdown and fall distance resets from sweet berry bushes and powder snow.
- Wither still takes sweet berry bush damage when moving in mature bushes.
- Powder snow snowflake particles continue to spawn when moving.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 17:19:46 +09:00
Florian ERNST 632746dbb7 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/noai-animal-love 2026-11-04 09:17:21 +01:00
Florian ERNSTandCodex 6588538fe8 Merge remote-tracking branch 'fork/fix/noai-animal-love' into fix/noai-animal-love
Co-Authored-By: Codex <[email protected]>
2026-11-04 09:17:15 +01:00
Florian ERNST 2354aeaf29 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/noai-sulfur-cube-fuse
Co-Authored-By: Codex <[email protected]>

# Conflicts:
#	tools/command_exec_corpus.py
2026-11-04 09:09:22 +01:00
SenjinandClaude Opus 5.5 c0d5806f45 Shader packs: End portal faces reach the shadow pass with their block entity
The shadow pass drew a block entity's plain faces but left out its End portal or gateway faces
(the portal run of #8361). A pack's shadow pass sees block entities whole, so the portal faces
cast too, with end_portal.png bound as for the gbuffers draw; beams still do not cast.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:08:33 +01:00
SenjinandClaude Opus 5.5 04104943fb Shader packs: a glow item frame and what it holds draw as glow_item_frame
Every frame's span was `item_frame`, so a pack's entity.properties could not tell glow frames
(and the item or map in them) from plain ones. Each frame, and the item or map it holds, now
takes its own frame's type.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:06:11 +01:00
SenjinandClaude Opus 5.5 b711d2336d Packs: a decimal pack format reads as its whole part
`Codec.INT` reads a JSON number through `Number.intValue`, so a pack.mcmeta with
`"min_format": [97.1]` declares format 97 and is compatible. Horizon rejected the decimal,
so such packs (Patrix 26.3) were listed as incompatible.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:05:55 +01:00
Florian ERNST 018098927c Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/allay-pocket-inventory 2026-11-04 09:03:18 +01:00
Florian ERNST 25bf0ae04d Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/allay-invalid-brain-retention 2026-11-04 08:58:58 +01:00
Florian ERNST ba06ac2671 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/hurting-projectile-float-inertia 2026-11-04 08:56:33 +01:00
Ludovic Marie 017c84f1fe Merge pull request #8719 from xxaxio/fix/8628-sniffer-digging
🤖 Agent: vanilla Sniffer/ClientPacketListener event 63 and SnifferSoundInstance checked; with the head merged into main, ambient_sound, server_entities, sound_engine, sound_event and dedicated_server pass on playhorizon.
2026-11-04 08:54:21 +01:00
Florian ERNST 22488873a6 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/hurting-projectile-float-inertia 2026-11-04 08:53:35 +01:00
Ludovic Marie f187b05511 Merge pull request #9035 from horizon-rust/fix/skin-layers-own-file
🤖 Agent: options failed on main (69ab59ef0) with 17524 differing cases from the extra threeDSkinLayers line. With this head it passes on playhorizon. The switch moves to horizon-extras.txt, and the old options.txt line is read once, so a player's setting is kept (unit test). fmt, clippy -D warnings and 3506 tests pass on the desktop.
2026-11-04 08:51:48 +01:00
Ludovic Marie 2a7ea4750e Merge pull request #9034 from horizon-rust/fix/armor-stand-speed-timing
🤖 Agent: command_exec failed on main (69ab59ef0) with one mismatch: a stand's summon-tick /data get printed attributes [movement_speed] where vanilla prints []. With this head it passes, 4374/4374 commands, on playhorizon. Vanilla only creates that instance in aiStep's removeFrost (AttributeMap.getInstance computeIfAbsent). fmt, clippy -D warnings and 2489 tests pass on the desktop.
2026-11-04 08:51:44 +01:00
Florian ERNST e52df2a4e7 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/tnt-block-state-codec 2026-11-04 08:47:30 +01:00
Florian ERNST a9e26418ad Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/marker-data-mutation 2026-11-04 08:42:50 +01:00
Ludovic MarieandClaude Opus 5.5 3980c45b0f 3D skin layers: keep the switch in horizon-extras.txt, not options.txt
#8091 wrote threeDSkinLayers into options.txt, a key vanilla doesn't have,
so every options.txt Horizon saved was one line off vanilla's. It now lives
in horizon-extras.txt with Horizon's other switches. A threeDSkinLayers line
in options.txt is read once, while horizon-extras.txt has none of its own,
so a player who turned it on keeps it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 08:38:53 +01:00
Florian ERNST f7f0e04f7a Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/axolotl-hunting-memory 2026-11-04 08:38:25 +01:00
Florian ERNSTandCodex c152d0c7dd Keep the remaining sulfur contact scope visible in the ledger
Co-Authored-By: Codex <[email protected]>
2026-11-04 08:36:16 +01:00
Florian ERNST 4d79106840 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/sulfur-cube-mob-contact 2026-11-04 08:32:58 +01:00
Ludovic Marie c61c2cce36 Merge pull request #8908 from Joansitoh/t3/sync-gateway-cooldown-beam
🤖 Agent: both the portal-tick trigger and an entity entering now go through triggerCooldown's block event 1 to the window, so the beam starts there; gateway_available keeps reading the server copy's cooldown.
2026-11-04 08:31:16 +01:00
Ludovic Marie f3f56ed758 Merge pull request #8903 from Joansitoh/fix/water-bottle-splash-particles
🤖 Agent: the packet is count 1, no spread, speed 1, so each client draws a Gaussian velocity, matching PotionItem.useOn's sendParticles(SPLASH, …, 1, 0, 0, 0, 1.0); the positions still come from the server's random.
2026-11-04 08:31:12 +01:00
Ludovic Marie 0c58d10960 Merge pull request #8902 from Joansitoh/fix/end-portal-travel-sound
🤖 Agent: hub.land already sent level event 1032 at BlockPos.ZERO; playing it as local ambience (pitch nextFloat()*0.4+0.8, volume 0.25), as LevelEventHandler does, is what makes it audible. Nothing else in Horizon plays block.portal.travel, so there is no double sound.
2026-11-04 08:31:08 +01:00
Ludovic Marie 87391f1f0f Merge pull request #8900 from Joansitoh/fix/decorated-pot-insert-fx
🤖 Agent: wobble is a Level.blockEvent (event 1, the WobbleStyle ordinal) and the dust is sendParticles(DUST_PLUME, 7), so both now reach the window; the server's own block_entity_event stays for its copy.
2026-11-04 08:31:03 +01:00
Ludovic Marie de61a53fff Merge pull request #8898 from Joansitoh/fix/cube-client-squish
🤖 Agent: oSquish is copied before the step toward targetSquish, then decreaseSquish (0.9 for magma cubes, 0.6 otherwise), the same order as AbstractCubeMob.tick, so the client's squish animates between packets.
2026-11-04 08:30:58 +01:00
Ludovic Marie 630e7e8ee2 Merge pull request #8880 from Joansitoh/fix/8865-minecart-tnt-event-70
🤖 Agent: event 70 only sets the client's fuse to 80 (MinecartTNT.handleEntityEvent -> primeFuse on a client), and the window counts it down with the smoke; the explosion stays the server's.
2026-11-04 08:30:53 +01:00
Ludovic Marie f9db8444d6 Merge pull request #8877 from Joansitoh/fix/fox-defending-aggro
🤖 Agent: the nextFloat() < 0.05 draw happens for every defending fox, silent or not, then Entity.playSound skips a silent one: the same random order as Fox.aiStep after super.aiStep.
2026-11-04 08:30:49 +01:00
Ludovic Marie f4ebaaf6b0 Merge pull request #8874 from Joansitoh/fix/primed-tnt-window-smoke
🤖 Agent: the smoke is added after the fuse decrement and the discard, at the moved position, as PrimedTnt.tick does on a client; the server's addParticle never reached the window.
2026-11-04 08:30:45 +01:00
Ludovic Marie 6143cc90a1 Merge pull request #8712 from Joansitoh/fix/8448-arrow-sound-feet
🤖 Agent: BowItem.releaseUsing and CrossbowItem.performShooting play at the shooter's getX/Y/Z, so the feet are vanilla; the eye-height source a few cm from the listener was what panned hard.
2026-11-04 08:30:42 +01:00
Ludovic Marie d522c111f3 Merge pull request #8710 from Joansitoh/fix/8594-nautilus-ambient
🤖 Agent: only the nautilus's breath (ambient) skips the creative/spectator gate. Vanilla's Dolphin's Grace also reaches creative players (DolphinSwimWithPlayerGoal uses forNonCombat targeting), but main already blocked that before this PR, so it is a separate gap.
2026-11-04 08:30:38 +01:00
Ludovic Marie becb9bdec1 Merge pull request #8649 from Joansitoh/fix/8573-health-boost-clamp
🤖 Agent: the remove-all/re-add batches (effects, equipment, enchantments) use set_modifier_unclamped and clamp once afterwards, so an unrelated effect refresh keeps health_boost hearts; LivingEntity.onAttributeUpdated clamps only on a real max_health drop.
2026-11-04 08:30:34 +01:00
Ludovic Marie bd6000145c Merge pull request #8643 from Joansitoh/fix/8521-space-focus
🤖 Agent: Tab on Create World sets focus=2, so has_caret_field() is false while a tabbed button is focused and Space still presses it; only a click into a field drops the button focus, as Screen.setFocused does.
2026-11-04 08:30:29 +01:00
Florian ERNSTandCodex 3ab97d81fb Make sulfur contact fixtures independent of test order
Co-Authored-By: Codex <[email protected]>
2026-11-04 08:30:05 +01:00
Ludovic MarieandClaude Opus 5.5 6675ee77a8 Armor stands: movement_speed is saved from their first tick, not at summon
LivingEntity.aiStep's removeFrost makes the movement_speed instance through
getAttribute on the stand's first server tick; AttributeMap.load makes it for
a save that lists it. A /data get in the summon tick showed it since #8420.
A stand now records when that instance exists and saves it from then on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 08:28:36 +01:00
Ludovic Marie 9f0089dd8f Merge pull request #9026 from horizon-rust/perf/core-inline-small
🤖 Agent: −4.8 to −5.0 ms MSPT in 3/3 A/B pairs (fast profile, which native mod builds use). Only #[inline] attributes, no body changed; 10 harnesses incl. mob_ai, entity_move and collision pass.
2026-11-04 08:27:31 +01:00
Ludovic Marie a540150a5b Merge pull request #9025 from horizon-rust/perf/lan-speed-by-type
🤖 Agent: tick_lan −0.3 to −0.6 ms in 3/3 A/B pairs; the 9 attribute transcript harnesses (server_entities, mob_attributes, attribute_updates…) match vanilla. Risk point: the per-type cache holds only the type's default and synced id, never a mob's own modifiers, which still go through base_value_with per mob.
2026-11-04 08:27:28 +01:00
Florian ERNST a631a2c4fc Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/sulfur-cube-mob-contact
# Conflicts:
#	tools/command_exec_corpus.py
2026-11-04 08:20:28 +01:00
Ludovic Marie 69ab59ef00 Merge pull request #8736 from TheMrZZ/fix/noai-ravager-counters
🤖 Agent: the NoAI branch now runs ravager::ai_step after ageable_step, as Ravager.aiStep does outside serverAiStep. The corpus group pins the stun-to-roar boundary at tick 2 for both AI modes.
2026-11-04 08:17:53 +01:00
Florian ERNST 71efcb3bd7 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/sulfur-cube-mob-contact 2026-11-04 08:17:51 +01:00
Florian ERNSTandCodex a43750547f Apply hot sulfur cube contact damage to mobs
Co-Authored-By: Codex <[email protected]>
2026-11-04 08:17:50 +01:00
Ludovic Marie 7b224efb3c Merge pull request #8927 from TheMrZZ/fix/trident-stack-durability
🤖 Agent: release now rechecks nextDamageWillBreak after the wet/passenger test, as TridentItem.releaseUsing does, and the stack's max_damage component is sent over the network, so both peers admit the same throws.
2026-11-04 08:17:49 +01:00
Ludovic Marie 2ab18c4c6a Merge pull request #8904 from Joansitoh/fix/remote-dragon-death-effects
🤖 Agent: I collapsed the growl's if-let into a let chain, which was the clippy failure. The dead path follows EnderDragon.aiStep after tickDeath: growl (pitch, then nextInt(200)) before the per-tick EXPLOSION, both at the risen position.
2026-11-04 08:17:45 +01:00
Ludovic Marie 846cf334a3 Merge pull request #8884 from Joansitoh/fix/water-entry-splash
🤖 Agent: I added the missing RandomSource import and made water_entry pub, since only gameplay calls it and horizon-client-lib flagged it as dead code. The item splash draws from a random seeded per item (id, ticks), not the entity's own; that only affects particle spread.
2026-11-04 08:17:41 +01:00
Ludovic Marie 1b6abae1ce Merge pull request #8876 from Joansitoh/fix/rabbit-hop-sprint-dust
🤖 Agent: I moved the block lookup, clamp and velocity into one sprint_particle helper shared with sprint_dust, so the hop's crumb differs only in drawing from the rabbit's own random (x then z), as Entity.spawnSprintParticle does.
2026-11-04 08:17:36 +01:00
Ludovic Marie f63ed5dfdb Merge pull request #8856 from TheMrZZ/fix/h186-noai-allay-cooldown
🤖 Agent: Allay.updateDuplicationCooldown runs in aiStep, outside serverAiStep, so NoAI allays count down too; the normal path calls the same helper once, from allay::ai_step.
2026-11-04 08:17:31 +01:00
Ludovic Marie 61be71c323 Merge pull request #8796 from TheMrZZ/fix/h184-fish-color-bytes
🤖 Agent: DyeColor.byId uses ByIdMap's ZERO strategy, so any color byte above 15 reads as white; masking with & 15 had turned 17 into 1. The new dedicated-server harness builds its binary the way test_dedicated_server_parity does.
2026-11-04 08:17:27 +01:00
Ludovic MarieandClaude Opus 5.5 4d32656aa0 Collision scan: remember the last eight sections' reach
A box across a chunk border goes back and forth between two columns on
every row, so the single remembered may_reach_out answer was recomputed
(a palette walk) at each crossing. The scan now keeps the last eight
(chunk, section) answers; the cells read and the chunk queries are
unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 08:13:00 +01:00
TheMrZZandCodex gpt-6.1-sol d5ca800e8f Accept fresh mob hits with full Resistance
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 08:08:12 +01:00
Florian ERNSTandCodex 70bfeb0b45 Tick sulfur cube fuses independently of NoAI
Co-Authored-By: Codex <[email protected]>
2026-11-04 07:59:50 +01:00
Arslan ArmanulyandClaude Opus 5.5 0625049299 Shader packs: a Clear = false buffer starts each frame from its last write
Every frame now starts with texture A as each colortex buffer's "main". A
buffer that isn't cleared and ended the last frame on B has B copied to A
first; B keeps what was last written into it. So where a program leaves
pixels alone (discard) or blends, the texture it writes holds what Iris
1.11.7 shows there, measured with probe packs of our own: the previous
frame's last write in #9009's case 1, one accumulation per frame for a
buffer only blended onto, and 0 where a buffer flipped twice a frame was
never written.

Fixes #9009

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:58:15 +05:00
Arslan ArmanulyandClaude Opus 5.5 67191f028a Shader packs: light Nether faces at the Nether's up-face 0.9, as Iris does
With a shader pack lighting the faces (`oldLighting` off), the mesher gave every block and fluid
face 1.0. Iris 1.11.7 gives our probe pack 0.9 (229 of 255) on every Nether face, lava sides
included, and 1.0 in the overworld. These values fit the dimension's up-face value of vanilla's
CardinalLighting (NETHER up 0.9, DEFAULT up 1.0); that is a fit of our probe's Iris values, not an
established Iris rule. Fluid sides under a pack drop vanilla's side factor.

Fixes #9012

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:53:46 +05:00
Ludovic MarieandClaude Opus 5.5 bea9bad765 Drop blank lines left in the command corpus group list
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:57 +01:00
Ludovic MarieandClaude Opus 5.5 b26016c7d0 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:43 +01:00
Ludovic MarieandClaude Opus 5.5 35122d81fb Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:43 +01:00
Ludovic MarieandClaude Opus 5.5 02f5c497a9 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 6bab8124e1 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 b566311709 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 0ab6729535 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 dd1fc46290 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 1ade779174 Merge #8940's marker pig fix
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:42 +01:00
Ludovic MarieandClaude Opus 5.5 765697c19b Clear leftover pigs before the marker group's pig count
The entities group leaves pigs loaded, so the single-pig check saw 3 when it
runs after it, as it does in the full corpus.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:51:35 +01:00
Ludovic MarieandClaude Opus 5.5 e0f28aeaf0 Sculk: a game event finds its listeners by cell
Every game event (each mob's step is one) filtered the level's whole list
of sculk block entities by distance. The index now also keeps them by
32-block cell with their insertion rank, and an event reads the cells its
radius reaches (at most eight), sorted back by rank: the same listeners in
the same order as the filtered list. A test checks it against that filter
through inserts, removals and retains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:44:45 +01:00
Arslan ArmanulyandClaude Opus 5.5 b9fdf62763 Shader packs: a custom uniform naming what Iris can't see reads 0 whole
In Iris 1.11.7 a `uniform.*`/`variable.*` expression that names
something its custom uniforms don't know fails as a whole and reads 0,
even when the name is in an `if` branch that isn't taken, and so does
every uniform or variable that uses it (probe packs of our own). Horizon
read only the name as 0 and kept the rest, and saw fogStart, fogColor
and eight more built-in names that Iris's custom uniforms don't.

Custom now works out, on its first evaluation, which items name an
unknown or hidden name, directly or through another item, and gives
them 0. Two names Iris sees that Horizon doesn't give yet
(currentRenderedItemId, lightningBoltPosition) still read 0 alone.

Fixes #8995

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:34:10 +05:00
Ludovic MarieandClaude Opus 5.5 95cd9455a0 Inline the hottest small accessors read across crates
Mob::species, alive and bounds (read by the game crate for every mob),
BlockFacts::get (an index into the state table), RandomTickMask::may_tick
(a bit test per drawn position) and World::block (a chunk lookup and a
palette read) ran as calls from the game crate in the fast profile that
native mod builds use. Marked #[inline]; bodies unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 07:23:01 +01:00
Florian ERNSTandCodex 9f5d8f7992 Respect numeric array conversions and edit acceptance
Co-Authored-By: Codex <[email protected]>
2026-11-04 07:22:44 +01:00
Arslan ArmanulyandClaude Opus 5.5 5b58cd736e Shader packs: without gbuffers_clouds, draw the clouds with gbuffers_textured, else gbuffers_basic
A pack without `gbuffers_clouds` left the clouds to the game, so they never reached the pack's
buffers. Iris 1.11.7 draws them with `gbuffers_textured`, else `gbuffers_basic` (not
`gbuffers_textured_lit`), blended, as its ShaderDoc's gbuffers table lists and as our probe packs
measure.

Fixes #9011

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:22:28 +05:00
Kacper 429b0d0f25 Merge pull request #8693 from Akirabane/fix/7484-save-gaps
A player's save keeps their motion, food timer, freezing and previous game mode
2026-11-04 07:21:42 +01:00
Arslan ArmanulyandClaude Opus 5.5 47b400625f Shader packs: a forced flip of a buffer the program writes cancels its flip
`flip.<program>.<buffer> = true` on a buffer the program also writes was
ORed with the write's own flip, so the buffer flipped once. Iris 1.11.7
leaves it unflipped (probe packs of our own): a later program samples the
side the program didn't write (0 for a cleared buffer), and a blended
write lands on what the program wrote (0.25 + 0.5 reads 0.749). The
forced flips are now XORed with the written ones.

Fixes #9010

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:21:01 +05:00
Ludovic MarieandClaude Opus 5.5 6c40453478 Core: inline the small vector, box and position helpers
Without LTO across crates (the fast profile, which native mod builds use
as performance), a non-generic function from horizon-core is only inlined
into another crate when it is marked #[inline] or is a tiny leaf. Aabb::new,
Aabb::max, max_position, deflate, Vec3's arithmetic, BlockPos::offset and
chunk and PalettedContainer::is_global ran as calls on the server's hottest
paths (the collision scan, the snapshot, mob movement), each returning its
box or position through memory. They are marked #[inline]; their bodies are
unchanged, so every value is the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 06:59:46 +01:00
Arslan ArmanulyandClaude Opus 5.5 e317145573 Shader packs: match iris.features names in any case, as Iris does
Iris 1.11.7 accepts the names of `iris.features.optional` and
`iris.features.required` in any case, and defines `IRIS_FEATURE_<name>`
with the name as the pack wrote it (probe packs of our own). Horizon
compared them with its uppercase list exactly, so `ssbo` defined nothing
and `compute_shaders` as required was noted as unsupported. The
HIGHER_SHADOWCOLOR check now matches in any case too.

Fixes #8996

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:58:28 +05:00
Arslan ArmanulyandClaude Opus 5.5 c4e0dd1600 Shader packs: a pack with an integer colortex0 loads
The world blit wrote its float colour into colortex0 whatever its
format, so a pack giving colortex0 an integer format (RGBA32UI, Arc
v0.15.2) failed wgpu's pipeline validation and was turned off. An
integer colortex0 now gets only what the pack writes: the blit leaves it
out (still copying depth and clearing the other buffers), it is cleared
in a pass of its own, and a pack without `final` gets a cleared screen
instead of a float copy of it.

Fixes #8459

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:58:00 +05:00
Arslan ArmanulyandClaude Opus 5.5 ab7164bba1 Shader packs: a const local may be a texel offset
A `const` local whose initializer is a constant expression is a
constant expression itself (GLSL 4.60, 4.3.3, as #8462 quotes it).
naga's GLSL frontend kept it as a local variable, so a texel offset
given by one failed with "Sample offset must be a const-expression". It
now becomes a module constant, as a global `const` does, also inside a
loop.

Fixes #8462

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:57:52 +05:00
TheMrZZandCodex gpt-6.1-sol 8a05c5c899 Default loaded sulfur cube health after applying size
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 06:55:25 +01:00
Florian ERNSTandCodex 0cff71db71 Use registered projectile UUIDs in command NBT views
Co-Authored-By: Codex <[email protected]>
2026-11-04 06:53:50 +01:00
Arslan ArmanulyandClaude Opus 5.5 72ca9db476 Shader packs: .length() of a sized buffer member as an array size
`.length()` of an explicitly sized array is a constant expression
whether or not the array is (GLSL 4.60, 4.3.3, as #8463 quotes it). In
a constant context (an array size) naga's GLSL frontend lowered the
array itself there and failed with "Unexpected runtime-expression"; the
array is now lowered outside it, for its type only.

Fixes #8463

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:52:03 +05:00
Arslan ArmanulyandClaude Opus 5.5 6d40db2be5 Shader packs: read shadowtex0/1 linearly through a plain sampler, as Iris does
Iris 1.11.7 filters shadowtex0 and shadowtex1 linearly when a program reads
them through a plain sampler2D (probe packs of our own: a quarter texel past a
texel's centre moves a quarter of the way to its neighbour, in gbuffers and in
composite), unless the pack sets shadowtex0Nearest, shadowtexNearest or
shadow0MinMagNearest (shadowtex0), or shadowtex1Nearest or
shadow1MinMagNearest (shadowtex1). Horizon read the nearest texel, so a lookup
next to a block's edge took the higher block's depth and shadowed faces Iris
lights, with stripes on far terrain.

wgpu filters a depth format only in a comparison, so a shadowtex read that way
now reads an R32Float copy of the final depth (copied through a buffer after
the shadow pass's terrain), with the linear sampler, on devices with
FLOAT32_FILTERABLE. Others keep the nearest texel.

Part of #8464

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:46:14 +05:00
Ludovic MarieandClaude Opus 5.5 f2033ffd0b Server: a snapshot looks a mob type's speed attribute up once
Every tick's entity snapshot looked movement speed up by name for every
mob: the catalog's id, the type's synced default (two string-keyed maps)
and the type's own default base (a SipHash of the attribute's name).
They depend only on the type, so a snapshot keeps them per type; each
mob's base still comes from its own finalized bases first. The synced
instances are the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 06:43:32 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 b723f5e5c5 Merge origin/main into fix/portal-parity
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 00:40:21 -05:00
Florian ERNSTandCodex 824af41138 Clear stale sleeping position from awake villager saves
Co-Authored-By: Codex <[email protected]>
2026-11-04 06:35:11 +01:00
Arslan ArmanulyandClaude Opus 5.5 c218bbe9a0 Shader packs: atomic functions on a component of a buffer block's vector
GLSL 4.60 8.11 lets an atomic memory function take a single component
of a vector in a buffer, as RenderPearl's hand light does with
atomicAdd(hand_light.right.x, rg); naga has no atomic vectors, so the
stage failed with "Pointer to atomic is invalid" and was skipped.

The rewrite that turns such shared vectors into arrays of components
now also covers members of std430 buffer blocks (named or not), in
graphics stages as in compute ones. The block keeps its std430 layout:
a padding member where the vector's alignment moved it, and four
elements per 3-component vector of an array. Other layouts, runtime-
sized arrays and blocks whose layout isn't known up to the vector stay
as written.

Fixes #8977

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:31:55 +05:00
Ludovic Marie d8edfbcd0f Merge pull request #8989 from horizon-rust/perf/shape-moved-allocs
🤖 Agent: verify green; profile: allocator samples under do_move halved (178 -> 88), ~-0.3 ms/tick, spans below noise; pr_ready --quick passes; 18/18 collision/shape harnesses PASS incl. geometry, entity_move, mob_ai.
2026-11-04 06:28:53 +01:00
Ludovic Marie c9d734aabc Merge pull request #8988 from horizon-rust/perf/random-tick-mask-rc
🤖 Agent: verify green; A/B 3 pairs random_ticks -0.62/-0.40/-0.28 ms/tick; pr_ready --quick passes (2,910 tests); 4/4 harnesses PASS (random_tick_sections, random_tick, villager_farming, dedicated_server).
2026-11-04 06:28:49 +01:00
Florian ERNSTandCodex 8cac78d7fa Turn waking villagers toward their bed and reset pitch
Co-Authored-By: Codex <[email protected]>
2026-11-04 06:23:24 +01:00
NerfPhaselockandClaude Opus 5.5 1a3125fcfd Renderer: GPU culling draws only the sides that face the eye
A GPU frame drew every solid quad of a section it kept and left the back
faces to the rasterizer, where a CPU frame draws only the runs of buckets
that can face the eye (Sides::visible_from, its MARGIN included). Each
record now carries where its buckets end and what visible_from compares
the eye with, and the tables the eye less each origin, both as u32 keys
that order as those floats do, so cull compares integers and writes a draw
per run, at most four per record.

A mesh sorted for two passes, which GPU culling never meets, keeps one run
of all its quads, and a frame whose eye less an origin is NaN is the CPU's.
Regions hold four draws per record, and cull counts the kept sections
itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:20:10 -05:00
Arslan ArmanulyandClaude Opus 5.5 a64ff0e803 Shader packs: min3, max3 and mid3 of GL_AMD_shader_trinary_minmax
A stage that enables GL_AMD_shader_trinary_minmax gets the extension's
min3, max3 and mid3 (genType, genIType and genUType overloads: the
per-component minimum, maximum and median of x, y and z) in its prelude,
for each one it calls and doesn't define itself. naga has none of them,
so such programs were skipped with "Unknown function 'max3'".

Fixes #8460

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 10:07:59 +05:00
Florian ERNSTandCodex e3e7502659 Omit supplied Age from slime and magma cube saves
Co-Authored-By: Codex <[email protected]>
2026-11-04 06:02:32 +01:00
martipopsandClaude Opus 5.5 84e3266fcc Controllers: one input path for pad and keyboard; focus menus, crosshair inventories
Input parity (pad and keyboard reach the game the same way):
- Held keys record which device holds them; splitscreen's keyboard
  handoff releases only the keyboard's, so the other player's controller
  keeps its holds.
- The pad sends Shift and Ctrl through the keyboard's modifier state, so
  the stack throw in inventories throws the whole stack again.
- Every bindable controller action has an explicit route, checked by a
  test; screenshot and smooth camera work from a controller binding, and
  pad look counts for the tutorial and zoom like the mouse.
- tools/pad_parity_e2e.py and headless Game tests compare pad and
  keyboard outcomes.

Menus and inventories:
- Menus use focus; inventories, containers and the screens whose
  clickable parts have no focus targets use a crosshair pointer centred on
  the point it clicks. The Menu Navigation option and the right stick
  click's swap are removed.
- A snapping engine settles the pointer: a glide onto the nearest slot,
  flicks commit to the neighbour they head for, the D-pad hops a slot.
- Pointer speed, scroll speed and navigation repeat settings per player.
- Focus starts in vanilla's tab order, returns to the widget a screen was
  left on, and only one widget is ever highlighted.
- Only a new press or real stick movement takes input from the mouse; a
  screen, focus or keyboard change releases held buttons until let go.



Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLHp81zX4YZ9N1mLLAwzKH
2026-11-03 23:56:48 -05:00
Ludovic MarieandClaude Opus 5.5 c8659d2757 Fix the splash's borrow of the remote state and the new item_areas test item
The window's item splashes ran while r.head_lerps was still borrowed; they
now run after it is released. Main's item_areas test builds an ItemEntity,
which needs was_touching_water.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:55:53 +01:00
Ludovic MarieandClaude Opus 5.5 b5b62e3262 Merge main into the water-entry splash
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:55:32 +01:00
Florian ERNSTandCodex c54af83a72 Fix mob attribute reads for transient baby speed
Co-Authored-By: Codex <[email protected]>
2026-11-04 05:53:29 +01:00
Ludovic MarieandClaude Opus 5.5 b39fc62dc4 Make ItemEntity::water_entry public: only gameplay calls it
horizon-client-lib builds without gameplay, so a pub(crate) water_entry and
its ItemWater were dead code there (clippy -D warnings).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:48:59 +01:00
TheMrZZandCodex gpt-6.1-sol 6351cb3e1d Report function results for return fail
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 05:45:23 +01:00
Ludovic MarieandClaude Opus 5.5 933ed06f02 Merge the corpus stack below #8970 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:06 +01:00
Ludovic MarieandClaude Opus 5.5 1ef25329f9 Merge the corpus stack below #8968 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:05 +01:00
Ludovic MarieandClaude Opus 5.5 2f6f693c7b Merge the corpus stack below #8965 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:03 +01:00
Ludovic MarieandClaude Opus 5.5 815cada227 Merge the corpus stack below #8959 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:02 +01:00
Ludovic MarieandClaude Opus 5.5 ebcd2d2ba0 Merge the corpus stack below #8956 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:01 +01:00
Ludovic MarieandClaude Opus 5.5 81a99d60f0 Merge the corpus stack below #8953 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:01 +01:00
Ludovic MarieandClaude Opus 5.5 21dba43d9f Merge the corpus stack below #8949 (command_exec_corpus.py groups kept from both sides; axolotl memories: #8949's boolean hunting memory and #8860's integer TTLs both kept)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:43:00 +01:00
Ludovic MarieandClaude Opus 5.5 31167b1290 Merge the corpus stack below #8943 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:52 +01:00
Ludovic MarieandClaude Opus 5.5 306fdba861 Merge the corpus stack below #8940 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:52 +01:00
Ludovic MarieandClaude Opus 5.5 5ebc5279dc Merge the corpus stack below #8922 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:51 +01:00
Ludovic MarieandClaude Opus 5.5 db38db7622 Merge the corpus stack below #8909 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:51 +01:00
Ludovic MarieandClaude Opus 5.5 1a1887f52e Merge the corpus stack below #8888 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:50 +01:00
Ludovic MarieandClaude Opus 5.5 5101d519d2 Merge the corpus stack below #8860 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:50 +01:00
Ludovic MarieandClaude Opus 5.5 c1a8542360 Merge the corpus stack below #8878 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:50 +01:00
Ludovic MarieandClaude Opus 5.5 858c0a8de1 Merge the corpus stack below #8847 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:49 +01:00
Ludovic MarieandClaude Opus 5.5 9f666f514a Merge the corpus stack below #8841 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:49 +01:00
Ludovic MarieandClaude Opus 5.5 1301409191 Merge the corpus stack below #8821 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:48 +01:00
Ludovic MarieandClaude Opus 5.5 c785e69eda Merge the corpus stack below #8799 (command_exec_corpus.py groups kept from both sides)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:48 +01:00
Ludovic MarieandClaude Opus 5.5 94cb4d95f9 Share Entity.spawnSprintParticle between sprinting players and a rabbit's hop
The hop's crumb reused a copy of sprint_dust's block lookup, clamp and
velocity; both now call one sprint_particle helper and differ only in the
random that places the crumb.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:41:23 +01:00
Ludovic MarieandClaude Opus 5.5 370af2fa60 Import RandomSource for the item splash's random draws
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:40:19 +01:00
Florian ERNSTandCodex 1d4869bf83 Use native suffocation predicates and shapes in mob base ticks
Bind the existing registry to shared collision tables and resource/world tags, then test the thin eye box against the actual suffocating shape. Keep probe worlds and partial-block integration controls on the runtime binding.

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:40:18 +01:00
Ludovic MarieandClaude Opus 5.5 d7fbec125d Collapse the dead dragon's growl check (clippy collapsible_if)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:39:15 +01:00
Arslan ArmanulyandClaude Opus 5.5 0127a87ccf Shader packs: expand macros in custom uniform and variable lines
Iris 1.11.7 reads a custom uniform's or variable's line in
shaders.properties with the macros expanded: the pack's options, the
standard macros and the file's own #defines (function-like ones too),
in the name as well as the expression (probe pack of our own). Horizon
read them raw, so an option such as RenderPearl's FOG read 0.

#define in .properties files now goes through the preprocessor's own
parsing (Macros::define_line), so function-like macros work there too.

Fixes #8976

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 09:39:10 +05:00
Ludovic Marie f40d4df781 Merge pull request #8962 from horizon-rust/perf/turtle-egg-search-palette
🤖 Agent: verify green; profile: AttackTurtleEgg 0.44 % -> 0.01 % of the tick (nextStartTick draw unchanged); pr_ready --quick passes (1,654 client-lib tests); 8/8 harnesses PASS on the wave-2 stack incl. mob_ai.
2026-11-04 05:17:11 +01:00
Ludovic Marie 97f6d296b6 Merge pull request #8961 from horizon-rust/perf/cart-tick-no-clone
🤖 Agent: verify green; A/B 3 pairs tick_carts -0.41 ms/tick; pr_ready --quick passes; 8/8 harnesses PASS on the wave-2 stack incl. vehicle_container.
2026-11-04 05:17:07 +01:00
Ludovic Marie baee70be80 Merge pull request #8960 from horizon-rust/perf/item-scans-cells
🤖 Agent: verify green; A/B 3 pairs creature -2.34 ms/tick at 6,200 mobs; pr_ready --quick passes; 8/8 harnesses PASS on the wave-2 stack (mob_ai, server_entities, dedicated_server, vehicle_container, dispenser, finalize_spawn, natural_spawn, entity_death_loot).
2026-11-04 05:17:03 +01:00
Ludovic MarieandClaude Opus 5.5 1191e6b721 Random ticks: a section's mask is shared without an atomic count
Every random tick handed out each ticking section's mask by cloning an
Arc twice (the cache, then the chunk's last answer) and dropping both
again. The mask is usually out of cache, and a locked increment on a
missed line stalls the loop: about 5 % of the server thread on a busy SMP
profile. The masks never leave the tick thread, so they are Rc now. The
draws, the masks and the ticks are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 05:14:49 +01:00
TheMrZZandCodex gpt-6.1-sol e6fa96799f Enable large-fireball explosion fire with mob griefing
Pass the rule's fire flag from the impact arm while preserving the shared
non-fire explosion default. Cover bounded enabled/disabled and TNT scenes,
with explicit fire-presence gates and unmodified raw count diagnostics.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 05:14:41 +01:00
LokiandAntigravity 08187d1377 mobs: suppress Guardian and Elder Guardian flop sounds when silent (fixes #8933)
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 13:14:18 +09:00
Florian ERNSTandCodex f65b7642e7 Pin remote fireball power test to widened float inertia
Use the exact Java value instead of the stale double-literal expectation; preserve the original motion behavior and strengthen the assertion.

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:13:21 +01:00
Florian ERNST cfb2db51a7 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/hurting-projectile-float-inertia 2026-11-04 05:10:47 +01:00
Florian ERNSTandCodex caf3d88be6 Retain Allay liked-player memory after failed Brain loads
Preserve the live modeled liked-player fields when a whole-Brain data edit omits or invalidates the required memories map. Keep valid empty-map and individual-key clears working.

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:09:20 +01:00
ElyTheCat c7d577e4c8 Optimize creature and projectile tick hot paths
Reuse the mob world snapshot without cloning per mob, skip unloaded work before nearest-player and difficulty queries, cache difficulty by chunk, and avoid guest-target allocations when no LAN guests exist. Empty projectile ticks now flush queued effects and return without scanning mobs or constructing projectile state.\n\nCo-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 07:35:05 +03:30
Ludovic Marie db7134ac66 Merge pull request #8787 from dontstopgorkingit/perf/atlas-memory
🤖 Agent: measured on the desktop with pack_load_bench, 5 alternating A/B rounds on main eaa7da4fb, medians: block sprites one by one 100 → 80 ms, prefetched 44 → 35 ms, from the disk cache 41 → 30 ms, CTM prefetched 84 → 64 ms; stages that don't insert sprites are unchanged. The still-texture key no longer clones each frame's pixels. One risk: two different textures sharing a 64-bit SipHash would share a layer, about 1e-12 at a few thousand sprites.
2026-11-04 05:02:47 +01:00
Ludovic Marie a8dd3a4106 Merge pull request #8572 from dontstopgorkingit/ci/concurrency-backlog
🤖 Agent: I kept only the concurrency groups on mod-registry and telemetry-server: a newer push cancels a superseded PR run, and main's runs all finish. I dropped the pr-labels and triage-command groups, where a newer run cancels a pending one even when its own job is skipped (a title-only edit, a plain comment), so labels or a /triage would be lost. I also dropped the cron move, which had no stated reason.
2026-11-04 04:59:06 +01:00
Ludovic Marie 79e09456c4 Merge pull request #8806 from dontstopgorkingit/docs/readme-refresh
🤖 Agent: the gap block is exactly what `tools/parity_gaps.py readme` prints today (all ten lists #3512-#3521 at 0 open), and "all 281 harnesses" was out of date (there are 324+), so dropping the count is right.
2026-11-04 04:59:01 +01:00
Ludovic Marie 3f6f3a6dc1 Merge pull request #8478 from dontstopgorkingit/docs/contributing-shaders
🤖 Agent: CONTRIBUTING still said shader packs were removed on 24 October. They are back as a clean-room rewrite (horizon-shaders) plus Horizon's own API. The known-issues bullet was already removed on main (279a04a8eb), so I took main's file to resolve the conflict.
2026-11-04 04:58:58 +01:00
Ludovic Marie 2e1e541e02 Merge pull request #8812 from dontstopgorkingit/docs/shader-api
🤖 Agent: main does have the shader API (`manifest.rs`: API = "0.1", with a generated reference), so "none yet / not started" was wrong. I fixed the intro, which said the API was built "from scratch on top of" the removed one, listed the real stages (vertex was missing), and noted that F3 already shows pass costs.
2026-11-04 04:58:54 +01:00
Ludovic Marie 0ffc3ec0bb Merge pull request #8805 from dontstopgorkingit/docs/refresh-hosting-docs
🤖 Agent: every flag added here matches horizon-server's usage text and parsers on main (`restore --dimension`, `update --archive/--version/--timeout`, `rollback --timeout`, `[updates] keep = 1`). I put back the command descriptions the edit dropped and pointed import-resources at step 2, where it is explained.
2026-11-04 04:58:50 +01:00
Ludovic Marie b31a68ea8d Merge pull request #8791 from dontstopgorkingit/worktree-agent-afb089f7829283ca5
🤖 Agent: the audio callback allocated a fresh `voices` Vec on every buffer, on the real-time thread; it now reuses one in `Mixer`, as `cameras` already did. Mixing order and gains are unchanged. I rustfmt-ed it.
2026-11-04 04:58:46 +01:00
Ludovic Marie d2e82c7339 Merge pull request #8756 from dontstopgorkingit/perf/mob-pathfinding
🤖 Agent: `swim_neighbors` built an `FxHashMap` (a heap allocation plus 6 inserts and 8 lookups) for every node a water mob's pathfinder expands. A `[Option<u32>; 6]` indexed in `Direction.values()` order does the same: I checked each diagonal pair against the old `(dx,dz)` keys, and the call order of `swim_accepted` is unchanged. I rustfmt-ed it and replaced the index loop with a zip (clippy).
2026-11-04 04:58:42 +01:00
Florian ERNSTandCodex 0ec74c25b5 Widen hurting-projectile float inertia before scaling motion
Use Java float inertia values in the shared helper, retain its existing branch order, and pin exact motion with focused dry, submerged and custom-acceleration controls.

Co-Authored-By: Codex <[email protected]>
2026-11-04 04:54:51 +01:00
Ludovic MarieandClaude Opus 5.5 cefa8659ec Shapes: a moved shape allocates its coordinates once
A moved VoxelShape cloned its three coordinate vectors (three allocations
plus their Arc) and its boxes vector (two more). Every block an entity's
movement meets is moved to its position, several per mob per tick. The
three axes now share one slice (axis i is values[starts[i]..starts[i+1]])
and the boxes are an Arc<[Aabb]>, so a moved shape makes three allocations
instead of seven. Every boundary gets the same addition as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:54:01 +01:00
LokiandAntigravity f32999331f game: guard container open and close game events by opener count edge (fixes #8957)
In vanilla Java 26.3, `GameEvent.CONTAINER_OPEN` and `CONTAINER_CLOSE`
are fired exclusively when `ContainerOpenersCounter.openerCountChanged`
detects an opener count transition across zero (0 -> 1 on open, 1 -> 0
on close). Spectators never join `ContainerOpenersCounter`, and
subsequent openers on an already open container do not re-trigger edges.

Guarding `post_block_game_event` with `if first` and `if last` prevents
spectators from emitting vibrations that alert sculk sensors and wardens.

Co-Authored-By: Antigravity <[email protected]>
2026-11-04 12:48:30 +09:00
Ludovic MarieandClaude Opus 5.5 f7311a0ec6 Translation fixes for fur, li, lmo, oc, sah, se, szl, vec
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:45:07 +01:00
Ludovic MarieandClaude Opus 5.5 8d840de551 Union of 16 translation PRs: Furlan, Limburgs, Lombard, Occitan, Саха тыла, Davvisámegiella, Ślōnskŏ, Vèneto
Merges the heads of #8755, #8757, #8761, #8764, #8767, #8768, #8770, #8771, #8777, #8781, #8792, #8793, #8794, #8797, #8800, #8802 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:45:05 +01:00
Ludovic MarieandClaude Opus 5.5 ca2f38dbbf Translation fixes for tt, yi, yo, zu, ba, br, cv, fo
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.
- Zulu: vanilla 26.3 ships no zu_za language, so the game table could never be picked:
  removed (the launcher table stays).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:45:04 +01:00
Ludovic MarieandClaude Opus 5.5 36feb04d68 Union of 16 translation PRs: Татарча, ייִדיש, Yorùbá, isiZulu, Башҡортса, Brezhoneg, Чӑвашла, Føroyskt
Merges the heads of #8580, #8581, #8585, #8587, #8596, #8597, #8599, #8600, #8601, #8603, #8605, #8606, #8607, #8608, #8609, #8610 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:45:02 +01:00
Ludovic MarieandClaude Opus 5.5 d901cbf6b2 Translation fixes for gd, lb, ky, kn, mt, eo, haw, ig, la
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.
- The launcher test used "eo" as a language without a table: it now uses "tlh".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:45:01 +01:00
Ludovic MarieandClaude Opus 5.5 317df1503e Union of 18 translation PRs: Gàidhlig, Lëtzebuergesch, Кыргызча, ಕನ್ನಡ, Malti, Esperanto, ʻŌlelo Hawaiʻi, Igbo, Latina
Merges the heads of #8528, #8529, #8530, #8532, #8533, #8535, #8537, #8538, #8540, #8544, #8550, #8551, #8556, #8560, #8564, #8568, #8574, #8579 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:59 +01:00
Ludovic MarieandClaude Opus 5.5 c635912558 Translation fixes for ga, eu, gl, fil, ta, mn, lo, so, fy
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:58 +01:00
Ludovic MarieandClaude Opus 5.5 e3159f5bb8 Union of 18 translation PRs: Gaeilge, Euskara, Galego, Filipino, தமிழ், Монгол, ລາວ, Soomaali, Frysk
Merges the heads of #8451, #8452, #8453, #8454, #8455, #8456, #8458, #8467, #8468, #8469, #8472, #8473, #8475, #8477, #8483, #8484, #8495, #8496 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:57 +01:00
Ludovic MarieandClaude Opus 5.5 4b3d97f569 Translation fixes for az, uz, kk, ka, hy, bs, mk, sq, cy
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:56 +01:00
Ludovic MarieandClaude Opus 5.5 e3a960c2e8 Union of 18 translation PRs: Azərbaycanca, Oʻzbekcha, Қазақша, ქართული, Հայերեն, Bosanski, Македонски, Shqip, Cymraeg
Merges the heads of #8427, #8428, #8431, #8432, #8434, #8435, #8436, #8437, #8439, #8440, #8441, #8442, #8444, #8445, #8446, #8447, #8449, #8450 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:55 +01:00
Ludovic MarieandClaude Opus 5.5 3419da9b42 Translation fixes for ca, et, lv, sl, sr, is, af, ms, be
- Launcher tables get every string main has added since they were written, and lose strings the
  code no longer has.
- Product names translated or transliterated as words (Horizon, Minecraft, Java, Mojang…) are back
  in Latin script.
- Fixed the meanings machine translation got wrong: a crash written as a vehicle crash, Nightly
  as "every night", instance as "example", tick as a checkmark, the controller labels written
  as commands, and similar.
- Removed the U+200B pairs that came with the translation tool.
- Game tables drop entries identical to en_us.
- Also removed stray U+200B from main's bg, fi, he launcher tables and the da_dk game table.
- Serbian: the Cyrillic game table is vanilla's sr_sp (Српски); sr_cs is vanilla's Latin
  Serbian, so it now gets the same table transliterated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:54 +01:00
Ludovic MarieandClaude Opus 5.5 eac75f8b3d Union of 18 translation PRs: Català, Eesti, Latviešu, Slovenščina, Српски, Íslenska, Afrikaans, Bahasa Melayu, Беларуская
Merges the heads of #8394, #8395, #8396, #8398, #8401, #8402, #8405, #8408, #8410, #8412, #8413, #8414, #8415, #8416, #8417, #8418, #8424, #8425 as they are (each one's table, its Language entry in
launcher/src/i18n.rs and its Bundled arm in lang.rs), so each PR is marked merged when this lands.
Their edits to existing tables are left out: main's versions are newer and more accurate.
The next commit fixes the tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:44:52 +01:00
Ludovic MarieandClaude Opus 5.5 3fef07f080 ci: no concurrency group on triage-command
Every comment on an issue starts a run (most skip their job), and a newer run cancels a pending one in the
same group: a /triage waiting behind another run would be dropped by the next plain comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:41:39 +01:00
Ludovic MarieandClaude Opus 5.5 e5953f9e97 ci: keep pr-labels and the claim cron as on main
A title-only edit's run skips its job, but as a newer run in the group it would still cancel the opened run's
labelling. The claim cron move had no reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:41:28 +01:00
Florian ERNSTandCodex b97c098c23 Decode primed TNT block state before saving
Keep the decoded state on the TNT model and encode it in command, chunk and portal save views. Invalid inputs fall back to the default TNT state.

Co-Authored-By: Codex <[email protected]>
2026-11-04 04:41:22 +01:00
Ludovic MarieandClaude Opus 5.5 48430a7647 shader docs: one consistent intro, the stages that exist, what is still missing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:41:21 +01:00
Ludovic MarieandClaude Opus 5.5 8a442b616b hosting: keep the command descriptions, point import-resources at step 2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:41:01 +01:00
Ludovic Marie 9048266788 Merge remote-tracking branch 'origin/main' into rv8-8478
# Conflicts:
#	docs/known-issues.md
2026-11-04 04:40:39 +01:00
Ludovic Marie eba1f44312 Merge remote-tracking branch 'origin/main' into rv8-8572 2026-11-04 04:40:19 +01:00
Ludovic Marie 847d64ca9f Merge remote-tracking branch 'origin/main' into rv8-8806 2026-11-04 04:40:18 +01:00
Ludovic Marie 02423ba72e Merge remote-tracking branch 'origin/main' into rv8-8812 2026-11-04 04:40:17 +01:00
Ludovic Marie a47ed5699e Merge remote-tracking branch 'origin/main' into rv8-8805 2026-11-04 04:40:16 +01:00
Ludovic MarieandClaude Opus 5.5 e124a775b1 path: fill the swim directions by zip, rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:39:52 +01:00
Ludovic MarieandClaude Opus 5.5 bc29f62f9e audio: rustfmt the reused voices buffer
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 04:39:32 +01:00
Ludovic Marie c351350bad Merge remote-tracking branch 'origin/main' into rv8-8756 2026-11-04 04:39:07 +01:00
Ludovic Marie 79fc2426f3 Merge remote-tracking branch 'origin/main' into rv8-8791 2026-11-04 04:39:06 +01:00
TheMrZZandCodex gpt-6.1-sol 9c63f70f62 Load validated mannequin pose for live eye anchoring
Set the mannequin's live avatar pose from its saved lowercase value,
using the five accepted poses and standing for absent or invalid inputs.
Keep existing dimension math and raw saved-field writing unchanged.
Cover exact native eye anchors, UUIDs, body positions and invalid controls.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 04:33:23 +01:00
Florian ERNSTandCodex a96240dcfb Keep Allay pocket stacks separate from held filters
Load and save the independent one-slot inventory, preserving stack components and item limits. Route existing inventory callers through that state.

Co-Authored-By: Codex <[email protected]>
2026-11-04 04:26:12 +01:00
Cheezer1656andClaude Opus 5.5 6ebcff17a2 Native mods: native_send_packet sends a play packet to the server
A client mod can now send any serverbound play packet, a plugin channel's
custom payload included, to any server, a vanilla one too. mod_api
re-exports the packet type as ServerboundPlayPacket. An error before the
player is in a server's play state, and for a custom payload past
ServerboundCustomPayloadPacket.MAX_PAYLOAD_SIZE.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011R7zRSugxibySUu8PosW5U
2026-11-03 20:17:07 -07:00
Loki e8794c917c Merge remote-tracking branch 'origin/main' into fix/8934-elder-guardian-home 2026-11-04 12:14:42 +09:00
LokiandAntigravity f77fd4fbed mobs: set Elder Guardian wander restriction on ai.home (fixes #8934)
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 12:14:12 +09:00
ElyTheCat abb852a057 Merge branch 'main' into perf/entity-occlusion-culling-pipeline 2026-11-04 06:37:50 +03:30
ElyTheCat df94a9512f Change OpenGL version in README
Updated the OpenGL version in the README from 4.6 to 4.2.
2026-11-04 06:34:36 +03:30
Florian ERNSTandCodex eacb3e16a8 Preserve axolotl hunting memory values and lifetimes
Co-Authored-By: Codex <[email protected]>
2026-11-04 03:56:54 +01:00
Ludovic MarieandClaude Opus 5.5 775bdc3c3e Mobs: a zombie's turtle egg search asks the section palettes first
RemoveBlockGoal.canUse walks every cell within 24 blocks and a few
heights of the zombie (about 17,000 of them) for a turtle egg, once
every 10 to 20 seconds per zombie: a server's thousands of zombies
walked over a hundred thousand cells a tick, nearly always to find
none. The walk is passed over when no section of the cells it reaches
has a turtle egg in its palette, which is when it would find nothing;
anywhere else it walks as before. The walk and its bounds are split
out of find_nearest, and a test checks every walked cell is in them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 03:52:20 +01:00
Nikita Maximilian Grimm 0d4e0a1b1d Merge remote-tracking branch 'origin/main' into offscreen-hdr 2026-11-04 03:48:24 +01:00
Delete228andCodex 8c943fb1ac Refresh damage definitions when opening another world
Keep removed definitions frozen in the current session and rebuild the next catalog from current resources. Cover resource removal, reload and fresh-world behavior.

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:48:23 +03:00
Nikita Maximilian Grimm e96694c5e8 Merge remote-tracking branch 'origin/main' into translucent-batching-checkbox
# Conflicts:
#	crates/horizon-client-render/src/graphics_ui.rs
2026-11-04 03:48:10 +01:00
Ludovic MarieandClaude Opus 5.5 47a372677c Mobs: a looting reach with no dropped item near it skips the item scan
Mob.aiStep's looting block, the foxes' item search and the dolphins'
tested each mob's reach against every dropped item of the level, so a
server's thousands of mobs times its eggs and drops made a quadratic
scan every tick. The items are now kept in 8-block cells for each pass:
a reach that meets no occupied cell meets no item, and its scan (which
would find nothing) is skipped. A reach near an item scans as before,
in the same order with the same tests, and the cells are rebuilt as
soon as an item is spawned or taken during the pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 03:43:46 +01:00
Ludovic Marie eaa7da4fb1 Merge pull request #8684 from NikitaMGrimm/hdr-16-bit-frame
🤖 Agent: HDR off or Smooth Gradients off keeps main's frame format at every site (checked each one); format selection now in tested functions; fmt, clippy and the touched crates' tests pass on the desktop at b750f4d7e0.
2026-11-04 03:40:38 +01:00
Delete228andCodex 4ad8604280 Load world damage definitions and reload their frozen registry tags
Preserve ordinary player damage, enchantment predicates and synchronized registry data for enabled resource/data packs. Validate definitions before publication and keep world definitions stable through reload.

Co-Authored-By: Codex <[email protected]>
2026-11-04 05:40:37 +03:00
Ludovic MarieandClaude Opus 5.5 a7e434b1ed Carts: a ticked cart takes its loot roll instead of copying it
tick_carts ticks a copy of each cart, and the copy carried the cart's
whole loot roll: a mineshaft chest cart holds it as an NBT compound,
cloned and dropped every tick (a tenth of cart ticking with a level's
mineshafts loaded). Only opening the cart, a command or a save reads
the roll, never a tick, so the copy takes it and the stored cart gets
it back with the rest of the tick's state. The stored cart keeps its
slots meanwhile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 03:40:27 +01:00
TheMrZZandCodex gpt-6.1-sol 16b49d2810 Dispatch damage commands to dropped items
Apply item Health damage with stack resistance and source eligibility,
retain its display name for lethal feedback, and reuse destroyed contents.
Cover real command results, Health, resistance, and selective removal.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 03:30:53 +01:00
Ludovic MarieandClaude Opus 5.5 b750f4d7e0 HDR frame format: select it in tested functions, fix a misplaced doc comment
draws_wide_frame and frame_format take the 16-bit frame's choice out of
Renderer::new, with tests for every input that keeps the 8-bit frame.
wide_frame had slid between paper_white_nits and its doc comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 03:30:02 +01:00
Ludovic Marie 297d91b07e Merge remote-tracking branch 'origin/main' into rv-8684 2026-11-04 03:27:07 +01:00
GabrielNichols f11f2f3736 Merge commit '367b20268dacb3c6fc2b73af18f5e5439ffd9045' into codex/port-pack-harness-verdict 2026-11-03 23:25:40 -03:00
GabrielNichols 699fde5c01 Merge upstream/main into codex/native-cache-cleanup-8028
Preserve canonical launcher translations and add cache messages to the newly supported locales.
2026-11-03 23:25:06 -03:00
ElyTheCatandOpenAI Codex 70411290d6 Optimize entity occlusion before model generation
Add conservative AABB prechecks, a non-blocking two-stage async ray and plane pipeline, and reusable voxel/proof caches for dense scenes. Keep synchronous culling on the exact mesh path, expose an async-only threshold, and add focused tests plus release/OpenGL benchmark evidence for issue #7549.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 05:54:46 +03:30
Florian ERNSTandCodex 9f8dc4e9f2 Apply marker data mutations to existing entities
Co-Authored-By: Codex <[email protected]>
2026-11-04 03:23:15 +01:00
Cheezer1656andClaude Opus 5.5 9df8b23636 Native hooks: ClientChatReceivedEvent (client_chat_received)
A client mod is told of each chat line from the server just before it
shows, and may replace or cancel it: system messages (chat and action
bar), player chat and disguised chat. Chat Delay's queue now keeps each
message's sender and chat type, so the hook fires when the message
leaves the queue, as vanilla's showMessageToPlayer does, and a
cancelled message lets the next one through.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:20:30 -07:00
Ludovic Marie 6d3ed570fb Merge pull request #8923 from horizon-rust/perf/village-sections-villager-slots
🤖 Agent: village_sections reads the snapshot's villager slots, same order and tests (a slot keeps its species all tick); creature span −0.9 to −6.4 ms in 3 paired runs, median MSPT flat; mob_ai, villager_farming, natural_spawn, server_entities pass on the 4-PR stack.
2026-11-04 03:17:09 +01:00
Cheezer1656andClaude Opus 5.5 332f192412 Native mods: native_send_chat sends chat or a command to the server
A client mod sends what the player could type, through send_chat
(ClientPacketListener.sendChat / sendCommand): a leading / is a command,
anything else signed chat. No client chat event and no chat history. An
error when not in a server's play state, for an empty message, and when the
Chat option blocks the message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:15:51 -07:00
Ludovic Marie 16ca83f6f3 Merge pull request #8930 from horizon-rust/fix/dedicated-sigterm-save
🤖 Agent: queued: the dedicated engine now saves players and levels on SIGTERM/SIGINT/SIGHUP like vanilla's shutdown hook; the new dedicated_crash_save check fails on main and passes here (desktop).
2026-11-04 03:08:58 +01:00
Ludovic Marie 17b23db474 Merge pull request #8912 from horizon-rust/perf/cart-collisions-box-first
🤖 Agent: box test first (same entities, same order) + no entity boxes for a zero move (vanilla collide keeps zero at zero); paired A/B: tick_carts 34.1→3.9 and 51.4→6.3 ms; entity_collision/move, mob_ai, server_entities, dedicated_server pass on the 4-PR stack.
2026-11-04 03:07:19 +01:00
Ludovic Marie 3023ce1dc9 Merge pull request #8886 from horizon-rust/perf/spawn-costs-skip
🤖 Agent: spawn_cost is None for types no biome costs, so the skipped lookup cannot change a result; paired A/B: spawn_natural −2.0 to −2.2 ms per tick at 6,200 mobs; natural_spawn, spawn_rules, finalize_spawn, mob_ai, server_entities pass on the 4-PR stack.
2026-11-04 03:07:14 +01:00
Ludovic Marie 4916b004bf Merge pull request #8885 from horizon-rust/perf/mob-bounds-one-dims
🤖 Agent: same box, one dims() per box; paired A/B on the desktop: tick_carts −1.4 ms at ~5,800 mobs; mob_ai, entity_collision/move/obstruction, server_entities, dedicated_server pass on the 4-PR stack.
2026-11-04 03:07:10 +01:00
deleteandCodex 77bb0af3b1 Exercise generated world canvas dispatch with shared draw state
Add the world canvas fixture type to workspace dispatch tests and verify ordered mutation through the generated event.

Co-authored-by: Codex <[email protected]>
2026-11-04 05:01:36 +03:00
Florian ERNSTandCodex 4891301035 Use stack durability limits for tridents
Co-Authored-By: Codex <[email protected]>
2026-11-04 03:01:19 +01:00
TheMrZZandCodex gpt-6.1-sol 993d04b098 Resolve loaded projectile origin owners by UUID
Fall back to the retained Owner UUID for execute on origin when there is
no mob/player binding. Preserve existing player, guest and mob bindings.
Cover loaded stand/pig owners and unknown/absent owner controls.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 02:53:22 +01:00
Ludovic MarieandClaude Opus 5.5 02d36e14c4 Dedicated server: SIGTERM, SIGINT and SIGHUP save before it stops
The engine run as `horizon-client --dedicated` caught no stop signal: SIGTERM or Ctrl-C ended it at
once, losing every player inventory, ender chest and chunk changed since the last autosave (up to 5
minutes). Vanilla's shutdown hook halts the server and saves on these signals. Catch them for the
dedicated role too and end the tick loop on the first one, so the normal stop saves players and
levels; a second signal still ends a stuck save at once. A signal ignored from the start (nohup's
SIGHUP) stays ignored, as the JVM leaves it.

horizon-server already turned these signals into a console `stop`; this covers hosts that run the
engine directly (panels, systemd, docker without the supervisor).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 02:48:52 +01:00
JanandClaude Sonnet 5.5 275856c8bb Native mods: a dying player's inventory goes through native_loot_drops (#8919)
Player.dropEquipment: after vanishing-curse items are gone and before the
rest is thrown, the mods may add to, change or take out the stacks. The
context names the player (entity id, minecraft:player), no table. Not
heard with keep_inventory, as vanilla keeps the items then. No new hook:
an API fragment extends native_loot_drops.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 02:48:23 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 19942359aa HDR: screenshots from an --offscreen run, without an HDR display
`HORIZON_HDR_OUTPUT=pq` (or `scrgb`) now offers that output to an
`--offscreen` renderer, which has no display to ask. HDR is drawn as with
a window (the 16-bit frame included) and a screenshot writes its `-hdr.png`
beside the SDR one; nothing is presented, and Auto takes 203 and 1000 nits.
A 16-bit frame with HDR off reaches the offscreen target as it reaches a
swapchain. Nothing changes without the variable or with a window.

Fixes #8879

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 02:44:01 +01:00
deleteandCodex c0591d4215 Support tickable sounds owned by compiled native code
Apply owner-updated gain, pitch and position through ordinary sound-engine channels without attaching vanilla entity or music behavior. Verify paused updates, stop and release with the channel backend.

Co-authored-by: Codex <[email protected]>
2026-11-04 04:33:04 +03:00
deleteandCodex 4df6818e3a Add native world text and atlas quad canvas
Submit camera-relative world overlays independently of block entities, using normal depth-tested atlas and font rendering. Preserve RGBA quads and draw eight-offset outlined text with the existing polygon-offset front pass.

Co-Authored-By: Codex <[email protected]>
2026-11-04 04:32:59 +03:00
MegaBytesMe bc97e77d55 Merge remote-tracking branch 'upstream/main' into feat/windows-arm64-support
# Conflicts:
#	launcher/Cargo.toml
2026-11-04 01:29:10 +00:00
Florian ERNSTandCodex 8786783616 Reject special recipes in recipe commands
Co-Authored-By: Codex <[email protected]>
2026-11-04 02:26:17 +01:00
eddcd2e4e8 Send the End gateway cooldown to the window so its beam draws.
EndGatewayBlock.entityInside starts that beam through triggerCooldown's block event. The server copy was the only one cooling down, so the window kept drawing nothing.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:25:27 +01:00
a9db1d3291 Shulker: ease a teleport with vanilla's 6-tick render offset
A client shulker that changed block only slid with ordinary position
interpolation. Shulker.getRenderPosition pulls the model back toward
the block it left for 6 ticks.

Fixes #8901

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:25:24 +01:00
81eef66d1e fix: dying dragon on the window keeps its explosion and growl
EnderDragon.aiStep still growls and adds one EXPLOSION each tick after tickDeath has started the rise. The window returned before both.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:23:46 +01:00
9617eaa350 Play the end portal travel sound when level event 1032 arrives.
The traveling player was sent that event and never heard block.portal.travel.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:23:38 +01:00
a581a170ac Send a poured water bottle's splash particles to the window.
PotionItem.useOn sends five SPLASH particles with ServerLevel.sendParticles. Adding them on the server Game never reaches the client window.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:23:34 +01:00
323fde62a9 Merge upstream/main into the water-entry splash.
Main split item ticking into tick_move and tick_settle. The splash now runs on that path, before the move and again after the second fluid push.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:23:19 +01:00
29e02cb71b fix: a decorated pot's insert wobble and dust reach the window
Inserting a sherd broadcast the sound, but the block event and the dust plume stayed on the server. Vanilla wobbles through Level.blockEvent and sends the dust with ServerLevel.sendParticles.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:23:02 +01:00
Ludovic Marie 757ce1bd14 Merge pull request #8838 from contactjayclatty/fix/8823-pr-ready-crlf-shebangs
🤖 Agent: test-only change (tests/test_pr_ready.py); verify and launcher green on this head.
2026-11-04 02:22:32 +01:00
8e3c1c68b8 Slimes and magma cubes squash on the client.
AbstractCubeMob.tick updates the squish scale on the client as well as the server. The window only ran the landing splash, so the model stayed rigid.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:22:14 +01:00
TheMrZZandCodex gpt-6.1-sol e46fdc8aba Emit landing game events for items and armor stands
Track item falls until ground contact and dispatch HIT_GROUND from both
item movement and the armor stand landing path. Cover real Game dispatch
with fresh sculk listeners and matched NoGravity controls.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 02:18:02 +01:00
9c5c94fb79 Show water-entry splashes for dropped items and mobs.
Entity.doWaterSplashEffect draws bubble and splash particles on the client. Dropped items never called it, and mob particles were only added on the server, so the window never drew them.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:17:07 +01:00
Ludovic MarieandClaude Opus 5.5 14b5c7632e Carts: a cart that does not move gathers no entity boxes
move_cart resolves a zero delta to zero whatever the boxes around it
(try_resolve_step_movement returns it before reading any shape, and the
step-up needs a blocked horizontal move), so an idle cart on its rails,
like every mineshaft's chest cart, no longer scans the level's mobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 02:14:14 +01:00
ElyTheCat 946bfb559c Merge origin/main into entity occlusion culling pipeline
Keep the latest main particle culling and graphics settings alongside the shared synchronous and asynchronous entity occlusion path.\n\nCo-Authored-By: OpenAI Codex <[email protected]>
2026-11-04 04:41:47 +03:30
janibert1andClaude Sonnet 5.5 98f679bd84 Native mods: NativeServerPlayer carries the player's IP address
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-04 02:11:31 +01:00
c60ce00f1e Broadcast entity event 70 when a TNT minecart is primed.
The window's cart kept its fuse at -1, so it never showed the smoke, the white flash or the swell.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:10:40 +01:00
Florian ERNSTandCodex e7db06bfca Count only changed mob effects in effect give
Co-Authored-By: Codex <[email protected]>
2026-11-04 02:09:25 +01:00
a12c22923f A defending fox plays entity.fox.aggro.
Fox.aiStep plays FOX_AGGRO through the server's playSound, so a server-thread player hears it at the fox.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:08:00 +01:00
505b6d2f12 A rabbit hop spawns the block-dust sprint particle
Vanilla Rabbit.handleEntityEvent(1) calls spawnSprintParticle and then
starts the hop clocks. The client played the hop and skipped the crumb.

Fixes #8867.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:07:56 +01:00
b5eee520e9 fix: primed TNT on the window shows its fuse smoke
PrimedTnt.tick adds one SMOKE particle each lit fuse tick on the client. The window ticks that fuse but never spawned the particle, and the server's Level.addParticle does not reach it.

Co-Authored-By: Grok <grok-4.7> <[email protected]>
Co-authored-by: Cursor <[email protected]>
2026-11-04 02:06:31 +01:00
Ludovic Marie 9abb7dc50f Merge pull request #7769 from martipops/split/fresh-launcher-accounts
🤖 Agent: reviewed the splitscreen account handoff; fixed sign-in-required accounts being handed over, the refresh lock, and leftover session files; desktop launcher + game crates green
2026-11-04 01:59:44 +01:00
Ludovic Marie ee1f66fc6b Merge pull request #8855 from horizon-rust/fix/win-uninstall-aside
🤖 Agent: release blocker for launcher 0.2.38. The Windows uninstall smoke test passes on a branch dry run of the launcher release (41747520933: build windows green, sign green), where 41744019794 failed with os error 17. GitHub launcher and verify are green on this head.
2026-11-04 01:56:14 +01:00
Ludovic Marie c713757300 Merge pull request #8694 from HrafnaValkyrja/fix/ban-ip-names
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client tests (812 game passed, GPU tests skipped). Queued.
2026-11-04 01:50:15 +01:00
Ludovic Marie fdf47d8674 Merge pull request #8676 from HrafnaValkyrja/fix/tnt-minecart-chain
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client tests (812 game passed, GPU tests skipped). Queued.
2026-11-04 01:50:11 +01:00
contactjayclattyandOpenCode 5470844f14 mobs: environmental damage does not dim a glow squid
Squid.hurtServer reports a hit only when a living entity caused it, and GlowSquid.hurtServer dims the squid only when that returns true. Horizon dimmed on every hit, so a glow squid on a campfire, suffocating or drying out lost its glow.

Fixes #8724

Co-Authored-By: OpenCode (Jay's Unintelligence) <[email protected]>
2026-11-04 08:43:44 +08:00
Florian ERNSTandCodex 414e7a5c07 Preserve TTL on axolotl integer brain memories
Co-Authored-By: Codex <[email protected]>
2026-11-04 01:42:54 +01:00
deleteandCodex c57982648b Merge current Horizon main for native mod API review
Resolve adjacent, independent mob test modules while preserving both test suites.

Co-authored-by: Codex <[email protected]>
2026-11-04 03:37:34 +03:00
Ludovic MarieandClaude Opus 5.5 cbb81c5db4 Format and a clippy lint
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:34:12 +01:00
Ludovic MarieandClaude Opus 5.5 55dcb11813 Mobs: a zombie looking for a village reads the villagers' slots only
MoveThroughVillageGoal.canUse (and the villagers' own village checks)
gathered the village sections from every slot of the tick's snapshot,
so each zombie at night read every loaded mob. The mob ticks now keep
the slots holding a villager (a slot keeps its mob and species all
tick) and village_sections reads those, in the same order, with the
same alive and POI tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:33:43 +01:00
Ludovic MarieandClaude Opus 5.5 c8f7583036 Natural spawning: no biome lookup for a type no biome gives a spawn cost
NaturalSpawner.createState asks every loaded mob's biome for its type's
spawn cost each tick, and spawning asks again at each tested position.
Only a few nether types have one in any biome, so for the others the
answer is none wherever they stand: the zoomed biome lookup (the
fiddled BiomeManager zoom, then the chunk) is skipped for them. The
types are read from the level's biomes each pass, mods' included.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:33:43 +01:00
Ludovic MarieandClaude Opus 5.5 4f35e0d6f8 Carts: test an entity's box before the rest of its collision tests
Each cart, each tick, collected the box of every cart, boat and mob of
the level (with a mob's pushable state) and kept only those within 2
blocks of it, so a server's thousands of mobs cost every cart a full
scan of allocations and pushable tests. The box test now comes first,
in cart_entity_collisions and in pickup_from_cart's candidates: the
same entities pass, in the same order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:33:43 +01:00
TiggerTakkyTTTandCodex 6b8bd75de7 Merge resolved view distance branch into simulation distance management
Carry current main, spawn protection, and view distance into the stacked simulation-distance PR while retaining every management route and harness case.

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 07:31:29 +07:00
Ludovic MarieandClaude Opus 5.5 ebe6bd40d2 Launcher: uninstall steps aside on the install folder's drive
The running launcher moved itself into %TEMP% so its folder could go, but a
rename never crosses volumes: with TEMP on another drive (GitHub's Windows
runner, or any player with TEMP elsewhere) it failed with os error 17 and the
uninstall left the launcher behind.

It now goes into %TEMP% only when it is on the same drive, else beside the
install folder as a hidden file, asks Windows to delete it at restart, and the
next setup or uninstall sweeps both places. The folder choice is plain path
text (uninstall_aside.rs), tested on every OS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:31:10 +01:00
Ludovic MarieandClaude Opus 5.5 9b05e6d523 Splitscreen accounts: never hand over a sign-in-required account, leave no session file behind
- The launcher's other-account handoff skipped the services' check for a token with time left,
  so an account marked sign-in required (a refused refresh, a token for another profile) could
  still be handed to a splitscreen player. Such accounts are now always skipped (Offline).
- Renewing the other accounts takes the account-operation lock, as every renewal does, so a
  rotated refresh token is not lost to another launcher renewing the same account.
- Session files written for a launch are deleted once the game would refuse them (2 min), when
  the launch fails before the game starts, and when the game exits; the sessions folder is
  0700 on Unix. The game consumes every listed file, even for an entry it then ignores.
- The splitscreen server rule (#6399) is a pure function with a test: offline profiles join only
  home-network offline-mode servers; a Microsoft session lifts that while it holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 01:31:09 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 9ad64d72c3 Boats never take a Warden or Wither aboard, like Entity.canRide
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 19:31:05 -05:00
contactjayclattyandOpenCode 726cd34fb2 mobs: the wither takes no potion effect
WitherBoss.addEffect returns false, so nothing lands on the boss. Horizon refused only the wither effect itself (the WitherSkeleton rule), so splash potions, area clouds, /effect and tipped arrows all worked on it.

Both paths that add an effect now refuse every effect for the wither; the wither skeleton keeps its own rule.

Fixes #8776

Co-Authored-By: OpenCode (Jay's Unintelligence) <[email protected]>
2026-11-04 08:29:31 +08:00
TiggerTakkyTTTandCodex afc9344898 Merge resolved spawn protection branch into view distance management
Carry current main and the spawn-protection management route into the stacked view-distance PR while preserving both parity harness ranges.

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 07:28:52 +07:00
TheMrZZandCodex gpt-6.1-sol 1ae3ca6b1c Tick Allay duplication cooldowns with NoAI
Share only the positive cooldown decrement with the NoAI path and cover
both AI modes and signed loader controls on real dedicated servers.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 01:28:07 +01:00
Cheezer1656andClaude Opus 5.5 437f078e47 Dispatch tests: stub ClientboundPlayPacket for client_packet
The dispatch fixture compiles every generated hook against its own stubs;
client_packet names ClientboundPlayPacket, which it lacked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011R7zRWRvULWvkt2DSEw3VN
2026-11-03 17:27:37 -07:00
TiggerTakkyTTTandCodex 4a2713d4e5 Merge upstream/main into spawn protection management
Preserve the spawn-protection management path alongside the operator, status reply, and online-player visibility management changes now on main.

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 07:26:15 +07:00
Ludovic Marie 14cb95e5dd Merge remote-tracking branch 'origin/main' into rv/7769 2026-11-04 01:25:35 +01:00
deleteandCodex a5f384f89c Discard native controlled particles on resource reload
Keep owned sprite-set indices from referring to a different declared particle after the resource sets are rebuilt.

Co-authored-by: Codex <[email protected]>
2026-11-04 03:25:14 +03:00
Florian ERNSTandCodex ea85770a6f Omit supplied parrot Age from saved NBT
Co-Authored-By: Codex <[email protected]>
2026-11-04 01:19:27 +01:00
Ludovic Marie e41334ac01 Merge pull request #8625 from HrafnaValkyrja/feat/ctl-schema
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client-lib tests (lib 1587 + horizon-ctl 24 passed, GPU tests skipped). Queued.
2026-11-04 01:16:49 +01:00
Delete228andCodex 66c3284171 Expose controlled particle visibility without removing its state
Keep hidden controller ticks and population accounting while emitting no geometry, matching visibility-gated source particles.

Co-Authored-By: Codex <[email protected]>
2026-11-04 03:16:14 +03:00
contactjayclattyandOpenCode 4a4ec9a5ff mobs: a zero-duration effect is over, not infinite
LivingEntity.tickEffects drops an effect whose duration is 0, because MobEffectInstance.hasRemainingDuration is false there. Horizon counted it down from 0 to -1, the infinite-duration sentinel, so an effect loaded with duration 0 stayed forever and even took its first tick.

Fixes #8721

Co-Authored-By: OpenCode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 08:14:47 +08:00
Ludovic Marie 526c1f2ca8 Merge pull request #8582 from HrafnaValkyrja/fix/riding-parity
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client-lib tests 1588 passed (GPU tests skipped). Queued.
2026-11-04 01:11:49 +01:00
Lyvt-DevandCodex 5db48acf25 Fix Warden collision pushability while emerging or digging
Fixes #8832

Co-Authored-By: Codex <[email protected]>
2026-11-04 01:11:15 +01:00
TiggerTakkyTTTandCodex 5657fabce7 Server API: pin backup replies
Add JSON golden cases for backup listing, creation, download, deletion, whole-world restore, dimension restore, and representative errors. Exercise streamed download bytes and normalize only the generated backup name.

Fixes #8839

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 07:07:49 +07:00
contactjayclattyandOpenCode 46387fb392 game: a wither never rides a minecart
WitherBoss.canRide returns false, so OldMinecartBehavior.pushAndPickupEntities cannot seat the boss in a moving cart. can_ride_cart excluded only the warden.

Fixes #8790

Co-Authored-By: OpenCode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 08:07:20 +08:00
HrafnaValkyrjaandClaude Sonnet 5.5 1c57d808d8 Shadows: only blocks with a full collision shape take a mob shadow
A hopper, cauldron or composter reaches y=1 with its rim, so its collision
bounds looked like a full block and a mob shadow was drawn across the top.
EntityRenderer.extractShadowPiece draws a shadow piece only when the block
below isCollisionShapeFullBlock; the same gate now applies here.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 19:07:17 -05:00
HrafnaValkyrja 7220152cb9 Merge remote-tracking branch 'origin/main' into fix/ban-ip-names 2026-11-03 19:07:14 -05:00
HrafnaValkyrja ae59c5dde7 Merge remote-tracking branch 'origin/main' into fix/portal-parity 2026-11-03 19:06:51 -05:00
HrafnaValkyrja f4f901f2b1 Merge remote-tracking branch 'origin/main' into fix/carpet-dupe 2026-11-03 19:06:26 -05:00
Ludovic Marie fae60c542b Merge pull request #8638 from MSedgeMC/fix/renderer-cull-box
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client tests (813 game passed, GPU tests skipped). Queued.
2026-11-04 01:05:44 +01:00
Florian ERNST 7b47de35c3 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/noai-animal-love 2026-11-04 01:04:38 +01:00
Delete228andCodex d6700da628 Allow owned native particle tick controllers in the ordinary engine
Retain sprite sets, particle setting and distance gates, interpolation, lifetime helpers, blending and normal population limits. Verify owned clone state, movement, expiry, sprite frames and rendered alpha/layer.

Co-Authored-By: Codex <[email protected]>
2026-11-04 03:04:19 +03:00
Ludovic Marie e05be64044 Merge pull request #8829 from horizon-rust/fix/8752-block-custom-name
🤖 Agent: setblock/data merge now load CustomName into block_names, data get shows it and clone copies it; the shared load_block_name keeps banners and signs on their own names as before.
2026-11-04 01:04:10 +01:00
HrafnaValkyrja d22519a7b3 Merge remote-tracking branch 'origin/main' into fix/ban-ip-names
# Conflicts:
#	crates/horizon-client/src/game/dedicated.rs
2026-11-03 19:03:31 -05:00
HrafnaValkyrja c9ecd5d900 Merge remote-tracking branch 'origin/main' into fix/portal-parity
# Conflicts:
#	crates/horizon-client/src/game/dedicated.rs
2026-11-03 19:03:30 -05:00
HrafnaValkyrja 47b64a3288 Merge remote-tracking branch 'origin/main' into fix/carpet-dupe
# Conflicts:
#	crates/horizon-world/src/level/tests.rs
2026-11-03 19:03:30 -05:00
JoansitohandGrok f4196f750c Merge upstream/main into the Space-focus branch.
The overlap-note check timed out and a rerun needs admin
rights, so this push starts it again on current main.

Co-Authored-By: Grok <[email protected]>
2026-11-04 01:03:11 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 6fabf6d69a Server API: list and read crash reports, and a panel section for them
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 19:02:42 -05:00
Florian ERNSTandCodex c600fea060 Tick animal love counters when AI is disabled
Co-Authored-By: Codex <[email protected]>
2026-11-04 01:02:24 +01:00
JoansitohandGrok bb152dd336 Merge upstream/main into the health-boost clamp branch.
CI compiled this branch against a main that still built the
composite shader test's Resources without its rgb field.

Co-Authored-By: Grok <[email protected]>
2026-11-04 01:02:19 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 ff02139e7f Panel: Ban and Pardon for players, and a list of banned players
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 19:01:29 -05:00
Ludovic Marie 3e5a1bd040 Merge pull request #8604 from MSedgeMC/fix/player-own-sound-pitch
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client tests (811 game passed, GPU tests skipped). Queued.
2026-11-04 00:59:35 +01:00
Ludovic MarieandClaude Opus 5.5 3f98dd1ca6 Mobs: a box reads the mob's size once
Mob::bounds_at called width() and height(), and each ran the whole
dims() (the sleeping check, the species' baby, pose and scale rules).
Every box asked for (collisions, pushes, cart and spawn tests) paid it
twice. Same f32 rounding as before, so the same boxes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:59:07 +01:00
contactjayclattyandOpenCode 9870e9faac test_pr_ready: run the launcher snippet's fakes on Git Bash
On Windows the launcher fallback test fails: the fake uname, xcrun, pkg-config and cargo scripts are written in text mode, so their shebang is #!/bin/sh\r, and Git Bash puts /usr/bin ahead of every Windows PATH entry, so the real uname answers MINGW64_NT-... and the macOS fallback never adds --features gpui_platform/runtime_shaders.

Write the scripts with LF, and on Windows prepend their folder to PATH inside the shell, where Git Bash cannot reorder it.

Fixes #8823

Co-Authored-By: OpenCode (DeepSeek V4.1 Flash) <[email protected]>
2026-11-04 07:57:16 +08:00
Cheezer1656andClaude Opus 5.5 2e669e614d Native mods: a client hook point that reads the server's play packets
native_client_packet hears every play packet the window's game handles,
decoded and in order, just before it is handled: handle_packet, plus the
chunk and ForgetLevelChunk paths in poll_remote that bypass it. It only
reads. mod_api re-exports the packet enum as ClientboundPlayPacket so
trait mods can name it.

Closes #8820

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 16:55:03 -07:00
TiggerTakkyTTTandCodex 50888d15bc Server API: pin lifecycle replies
Add reusable JSON golden cases for the stable status, metrics, logs, start, stop, and restart response contracts. Normalize only release, process, and elapsed-time values while checking their types.

Fixes #8816

Co-Authored-By: Codex (GPT-5.6) <[email protected]>
2026-11-04 06:51:24 +07:00
Ludovic Marie 998b1d8301 Merge pull request #8602 from MSedgeMC/fix/fireball
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client-lib + horizon-client tests (1589 lib + 812 game passed, GPU tests skipped). Queued.
2026-11-04 00:51:15 +01:00
Ludovic Marie ccfc1e91cb Merge pull request #8162 from CocofireHD/fix/rail-on-pushed-block
🤖 Agent: a moved block's cell now supports with vanilla's offset shape (getExtendedProgress: a block back at progress 0, in place at 1), so a rail on a chain-pushed stone still pops as in vanilla while a slime-carried rail survives (#8111, fails on main); dynamic_support 4.87M lines, piston_shape 1.10M and redstone 1000/1000 match on playhorizon.
2026-11-04 00:49:40 +01:00
Delete228andCodex 31ce9b1787 Support named native mob damage types and combat classifications
Preserve custom source IDs through ordinary mob damage, protection, immunity, knockback and loot paths. Skip enchantment protection for bypasses_effects damage.

Co-Authored-By: Codex <[email protected]>
2026-11-04 02:48:49 +03:00
Florian ERNSTandCodex 154d703413 Resolve turtle summon home before applying command position
Co-Authored-By: Codex <[email protected]>
2026-11-04 00:44:43 +01:00
AfrobamaYTandClaude Opus 5.5 4f6a3fc20c Native mods: a camera to draw the world from (native_camera_pose)
A client mod can move and turn the camera a frame is drawn from: after
vanilla placed it, native_camera_pose gets its position, yaw and pitch and
may set them (a cinematic, replay or film camera). The picture, culling, the
sound's listener and what faces the camera follow it; the player, their aim,
the hand and chunk loading stay the player's. Values that aren't finite keep
vanilla's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:38:35 +01:00
gorkandClaude Code d179172286 docs: refresh stale shader API documentation
Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:38:07 +01:00
gorkandClaude Code 62e5ef76fe docs: refresh README project status numbers
Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:36:28 +01:00
Ludovic Marie 161c22dc7c Merge pull request #8773 from horizon-rust/fix/8570-nbt-item-namespace
🤖 Agent: item_from_nbt now reads ids as vanilla's Identifier (minecraft default namespace), so display/command NBT with "stone" no longer maps to wire air; one shared function, so containers and equipment follow too.
2026-11-04 00:35:43 +01:00
gorkandClaude Code b49b1f8f15 docs: refresh hosting command and option reference
Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:35:24 +01:00
Florian ERNST 312885da94 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/command-cart-loaded-success 2026-11-04 00:34:47 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free f4d073f8d0 Add Vèneto (vec_it) game translation
Bundles Horizon's own Vèneto strings so vec_it players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:34:13 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3cfd9dac2d Add Vèneto (vec) launcher translation support
Registers Vèneto as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:33:23 +01:00
Ludovic Marie a85b5dceb2 Merge pull request #8527 from horizon-rust/fix/launcher-shortcut-test-long-temp
🤖 Agent: the launcher redesign is signed off: the page-by-page audit against playhorizon.dev/launcher is closed (G1–G28; only G19, registry icons, waits on registry data). Main merged in at bb25d37be5; on the desktop the launcher passes fmt, clippy -D warnings and cargo test (466 passed). The Windows test this fixes only runs in the release build. This releases launcher 0.2.38 without the shop.
2026-11-04 00:33:09 +01:00
Florian ERNSTandCodex 7ff407670a Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/command-cart-loaded-success
Co-Authored-By: Codex <[email protected]>
2026-11-04 00:32:57 +01:00
rdbtCVSandCodex gpt-6.1-sol b5635af3b1 perf(server): share item defaults while resource tables load
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 23:32:50 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free baf34b068e Add Ślōnskŏ (szl) game translation
Bundles Horizon's own Ślōnskŏ strings so szl players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:31:25 +01:00
Ludovic MarieandClaude Opus 5.5 51e0c84d01 World: drop the redstone fixed cases (that fixture runs no block events)
Its pistons never move, so the cases compared nothing. dynamic_support pins
a moving_piston's support per progress against vanilla instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:31:04 +01:00
Ludovic Marie 36e36b063d Merge pull request #8296 from CocofireHD/fix/2120-cargo-binstall
🤖 Agent: all five targets build and the four runnable ones start on their runners (x86_64-apple-darwin through Rosetta on the arm64 macos-latest); releases are created with --latest=false so a cargo-horizon-mod tag never takes GitHub's latest from the game; the YAML-grep test is gone, the three left test the manifest-to-release contract.
2026-11-04 00:30:48 +01:00
Florian ERNSTandCodex 478bdb0d27 Reset loaded command minecart successes through command sync
Co-Authored-By: Codex <[email protected]>
2026-11-04 00:30:37 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8783d772ed Add Ślōnskŏ (szl) launcher translation support
Registers Ślōnskŏ as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:30:05 +01:00
Ludovic Marie 732e0ebeb3 Merge pull request #8559 from MSedgeMC/fix/projectile-light
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client-lib + horizon-client tests (1589 lib + 811 game passed, GPU tests skipped). Queued.
2026-11-04 00:29:44 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 79358b516e Add Davvisámegiella (se_no) game translation
Bundles Horizon's own Davvisámegiella strings so se_no players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:28:06 +01:00
TheMrZZandCodex gpt-6.1-sol 7800d0e905 Normalize invalid tropical fish NBT color bytes
Decode full packed color bytes with the DyeColor zero fallback and cover
valid, invalid and unknown-pattern controls on real dedicated servers.

Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-04 00:27:51 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8209baacd7 Add Davvisámegiella (se) launcher translation support
Registers Davvisámegiella as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:27:16 +01:00
gorkandClaude Code 7edc16e18d perf: reduce overhead in audio mixing
Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:26:08 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 822fc1ae0e Add Саха тыла (sah_sah) game translation
Bundles Horizon's own Саха тыла strings so sah_sah players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:24:42 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 92043991e5 Add Саха тыла (sah) launcher translation support
Registers Саха тыла as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:23:49 +01:00
gorkandClaude Code d874278161 perf: reduce texture atlas memory
Dedupe still textures by a hashed key instead of storing their full
frame bytes, and avoid retaining intermediate paletted atlas frames.

Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:22:27 +01:00
Ludovic Marie bb25d37be5 Merge main into fix/launcher-shortcut-test-long-temp 2026-11-04 00:22:10 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free fe72ef9ce5 Add Occitan (oc_fr) game translation
Bundles Horizon's own Occitan strings so oc_fr players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:21:37 +01:00
Ludovic Marie 843e4c6eb4 Merge pull request #8695 from horizon-rust/lr7/instance-switch
🤖 Agent: Desktop proof on 04f8ef7a5c (cargo fmt --check, clippy --all-targets -D warnings, cargo test: lib 466 + bin 83 passed, exit 0). The risk was losing a player's files: a switch changes only instances.json, and the new test checks that the instance folder stays byte for byte the same across Horizon, Fabric, Horizon, Vanilla, with the Java settings coming back.
2026-11-04 00:21:08 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 9623d41ffd Add Occitan (oc) launcher translation support
Registers Occitan as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:20:49 +01:00
Ludovic Marie 1e6c59d46d Merge pull request #8588 from MSedgeMC/feat/advancement-tab
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-protocol + horizon-client-lib tests (lib 1588 passed, GPU tests skipped). Queued.
2026-11-04 00:20:03 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 460f3c86db Add Lombard (lmo) game translation
Bundles Horizon's own Lombard strings so lmo players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:18:43 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 1cb4e91b76 Add Lombard (lmo) launcher translation support
Registers Lombard as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:17:49 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 87d61a948e Add Limburgs (li_li) game translation
Bundles Horizon's own Limburgs strings so li_li players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:15:34 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2b3854f081 Add Limburgs (li) launcher translation support
Registers Limburgs as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:14:00 +01:00
rdbtCVSandCodex gpt-6.1-sol 6fd33b70f7 perf(server): measure fonts without building a texture atlas
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 23:13:50 +00:00
Ludovic MarieandClaude Opus 5.5 04f8ef7a5c launcher: Edit's switch notice in Greek, Persian and Swedish
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:13:17 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 c726e412a1 Translucent Batching: the box reads Off where the GPU can't batch, as its label does
Fixes #8759.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:13:16 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d7fee590de Add Furlan (fur_it) game translation
Bundles Horizon's own Furlan strings so fur_it players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:11:49 +01:00
Ludovic MarieandClaude Opus 5.5 38bb499205 Merge origin/main into rail-on-pushed-block
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:11:43 +01:00
Ludovic MarieandClaude Opus 5.5 6301858b25 World: a moving block supports with vanilla's offset shape
PistonMovingBlockEntity.getCollisionShape moves the moved block's shape by
getExtendedProgress(progress): progress - 1 while extending, 1 - progress
while retracting. MOVING_PISTON's shape is dynamic, so isFaceSturdy reads it
every time. At moveBlocks (progress 0) the shape is a block back, outside the
cell, so a rail on a pushed block pops even when another block arrives under
it; at progress 1 it fills the cell, so a rail carried by slime finishes on a
slime block that is still moving. sturdy, canSupportRigidBlock,
canSupportCenter and the wire's support now test that shape. The redstone
harness gains both scenarios as fixed cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:11:35 +01:00
gorkandClaude Code 134096b5cf perf: reduce allocations in mob pathfinding
Replace per-node FxHashMap allocation in swim pathfinding with a fixed
six-element array, preserving traversal behaviour.

Co-Authored-By: Claude Code <[email protected]>
2026-11-04 00:10:39 +01:00
Ludovic MarieandClaude Opus 5.5 f3edffb6ea Commands: keep a container's CustomName from setblock, data and clone
BaseContainerBlockEntity.loadAdditional reads CustomName from the tag a
command gives (setblock, data merge), saveAdditional writes it back for
data get, and clone copies it. Horizon keeps the name beside the block
entity in block_names, which these paths never read or wrote.

Fixes #8752.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:10:15 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 7148c0771a Add Furlan (fur) launcher translation support
Registers Furlan as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-04 00:10:12 +01:00
Ludovic Marie f94eb72853 Merge pull request #8646 from MSedgeMC/fix/guest-slot-consent
🤖 Agent: desktop (NixOS, -j 8) on head + main: fmt, clippy -D warnings, horizon-client-lib tests 1589 passed (GPU tests skipped). Queued.
2026-11-04 00:08:58 +01:00
Ludovic MarieandClaude Opus 5.5 63f664e909 Item NBT: read the id as an Identifier, minecraft by default
ItemStack.CODEC reads `id` through Identifier, so `{id:"stone"}` is
minecraft:stone. item_from_nbt kept "stone" as it came, which the
server's registry lookup then sent as air: an item_display summoned
with `{item:{id:"stone"}}` showed nothing (#8570). An id that is no
valid identifier makes no stack, as the codec's error does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:08:22 +01:00
Ludovic MarieandClaude Opus 5.5 a37f193ccb cargo-horizon-mod binstall: drop the test that greps the workflow's text
The other three test the manifest-to-release contract itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 00:06:56 +01:00
Ludovic Marie 6181cceee5 Merge pull request #8245 from TiggerTakkyTTT/fix/server-admin-stopped-list-api
🤖 Agent: a stop that reaches the game (in game, RCON, cmd) now leaves the supervisor and API up for list edits, but a stop on the supervisor's own stdin still ends it (I added that: Pelican and 'run' wait for the process to exit), and while stopped that stdin takes start/stop; ROUTES bumped to 30 after main's new route, horizon-server tests 133/133.
2026-11-04 00:06:22 +01:00
rdbtCVSandCodex gpt-6.1-sol 09dd6322b4 perf(server): skip custom item textures during item loading
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 23:06:14 +00:00
Ludovic Marie 8f62b8aa88 Merge remote-tracking branch 'origin/main' into lr7/instance-switch 2026-11-04 00:04:25 +01:00
Ludovic Marie a1b62cb73a Merge pull request #8598 from MSedgeMC/fix/piglin-brute-home
🤖 Agent: desktop on main merged in: fmt, clippy -D warnings, horizon-client-lib tests 1590 passed (GPU tests skipped); 80-tick retry added (fff6d306).
2026-11-04 00:02:12 +01:00
Ludovic Marie e839dddb29 Merge pull request #8329 from dontstopgorkingit/fa-launcher
🤖 Agent: Persian launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-04 00:02:08 +01:00
itarqos5andClaude Opus 5 d934726850 test(lod bench): report how many spans a far column holds, not just the mean
`lod_grid_bench` printed a mean of 5.3 to 5.9 spans a column. A mean
alone says nothing about the shape of the distribution, which is what
decides whether a column's spans fit a fixed inline capacity or take a
heap block; sizing `Spans` off the mean would be a guess.

Print the distribution beside it, with a running total so the share that
fits any given capacity can be read straight off.

Measured at seed 0, 40 tiles a level, Full far detail: four spans or
fewer covers 38% of columns at level 0, 28% at level 2, 26% at level 4
and 32% at level 6, with a tail reaching 14 to 16.

These are the spans worldgen returns, before the client's `shade_sky`
splits fluid and leaf runs a light level at a time.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-03 23:01:49 +00:00
Ludovic Marie 7bc0cb2120 Merge pull request #8680 from horizon-rust/lr7/instance-nightlies
🤖 Agent: Desktop proof on ed007155f1 (cargo fmt --check, clippy --all-targets -D warnings, cargo test: lib 465 + bin 83 passed, exit 0). The risk was the launcher's selection: a Nightly installed for one instance becomes the launcher's version only when it has none, and a second install queues behind the running one instead of being refused.
2026-11-03 23:59:28 +01:00
Ludovic Marie e9cd2b4512 Merge pull request #8505 from MSedgeMC/test/animate-tick-world
🤖 Agent: desktop on main merged in: fmt, clippy -D warnings, horizon-client-lib tests 1587 passed (GPU tests skipped); precision fixes match the 26.3 bytecode.
2026-11-03 23:59:25 +01:00
itarqos5andClaude Opus 5 ec5b8b4c31 perf(far terrain): reduce a far chunk only to the cell width that reads it
A chunk's detail arrived as `ReducedColumns`, which reduced the 16x16
columns to cells 2, 4, 8 and 16 blocks wide up front: 85 columns beside
the chunk's 256, and four passes of `Column::reduced` over every span of
every footprint.

One chunk is covered by one far tile, so one of the four widths is what
gets read, and a chunk whose detail arrives while full-detail terrain
still draws it reads none. Building all four cost 405 us of a far
terrain thread for every chunk the world sent (measured over 200 chunks
of 5.7 spans a column, the mean `lod_grid_bench` reports); reducing on
the first read of a width costs 103 us, and nothing at all for a chunk
no far tile draws reduced.

`OnceLock` a level each, so a second mesh job reading the same width
takes the reduction already built rather than racing to repeat it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-03 22:59:03 +00:00
Nikita Maximilian GrimmandClaude Opus 5.5 485c2f56ea HDR: Smooth Gradients' box unticked where the GPU can't, and the visibility buffer in the frame's format
The checkbox read the saved value; it now reads Off there, as its label does. HORIZON_VISBUFFER's resolve
pass draws into the frame, so it takes the frame's format. The float-frame readback test goes until a float
frame does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:58:43 +01:00
Ludovic Marie 1d1a7aba35 Merge pull request #8562 from HrafnaValkyrja/fix/harness-free-ports
🤖 Agent: desktop: Python tests 630/631 (the one error needs a git checkout), port locks hold across processes; Windows fallback added (a099b2e1).
2026-11-03 23:56:16 +01:00
Ludovic Marie 87df3cf7d6 Merge pull request #8327 from dontstopgorkingit/el-launcher
🤖 Agent: Greek launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:55:13 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 33f9fbfda0 HDR: grey Smooth Gradients out where the GPU can't draw the 16-bit frame
Like Translucent Batching: the saved On reads Off there and waits for a device that can.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:52:29 +01:00
Ludovic Marie 5866696152 Merge branch 'lr7/instance-nightlies' into lr7/instance-switch
# Conflicts:
#	launcher/lang/ar.json
#	launcher/lang/bg.json
#	launcher/lang/da.json
#	launcher/lang/de.json
#	launcher/lang/es.json
#	launcher/lang/fi.json
#	launcher/lang/fr.json
#	launcher/lang/he.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/hu.json
#	launcher/lang/id.json
#	launcher/lang/ja.json
#	launcher/lang/ko.json
#	launcher/lang/lt.json
#	launcher/lang/no.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ro.json
#	launcher/lang/ru.json
#	launcher/lang/sk.json
#	launcher/lang/tr.json
#	launcher/lang/uk.json
#	launcher/lang/zh.json
2026-11-03 23:47:42 +01:00
Florian ERNST 2e50b8ed7d Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/noai-ravager-counters 2026-11-03 23:47:27 +01:00
Ludovic Marie 20829d6f0e Merge pull request #8325 from dontstopgorkingit/sv-launcher
🤖 Agent: Swedish launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:47:15 +01:00
Ludovic Marie ed007155f1 Merge remote-tracking branch 'origin/main' into lr7/instance-nightlies
# Conflicts:
#	launcher/lang/bg.json
#	launcher/lang/da.json
#	launcher/lang/fi.json
#	launcher/lang/he.json
#	launcher/lang/hu.json
#	launcher/lang/lt.json
#	launcher/lang/no.json
#	launcher/lang/ro.json
#	launcher/lang/sk.json
2026-11-03 23:46:47 +01:00
Ludovic Marie 3bd9e46370 Merge pull request #8160 from TiggerTakkyTTT/fix/server-management-status-replies
🤖 Agent: enable_status moves from the fixed NetConfig into an AtomicBool on lan::Shared that both the legacy 0xFE query and the STATUS handshake read, so turning replies off drops the next ping without a restart (lan_bot covers the closed handshake); ids 210–219 are unique, and main is merged with #8144 and #8136 kept.
2026-11-03 23:44:58 +01:00
Florian ERNST beb1c5e150 Merge branch 'main' of https://github.com/horizon-rust/horizon into fix/noai-ravager-counters 2026-11-03 23:42:52 +01:00
Florian ERNSTandCodex 3fed8554f1 Merge latest main projectile updates before validation
Co-Authored-By: Codex <[email protected]>
2026-11-03 23:42:51 +01:00
Ludovic Marie 8312f371fc Merge pull request #8323 from dontstopgorkingit/cs-launcher
🤖 Agent: Czech launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:42:11 +01:00
Ludovic Marie 4cd5c1a413 Merge pull request #8397 from MSedgeMC/perf/chunk-task-release
🤖 Agent: desktop proof on main merged in: fmt, clippy -D warnings, horizon-client-render tests 1004+8 passed (GPU tests skipped). Remote-only queue release, safe as called.
2026-11-03 23:41:02 +01:00
Florian ERNSTandCodex ecbfc14d52 Merge latest main before H179 validation
Co-Authored-By: Codex <[email protected]>
2026-11-03 23:40:59 +01:00
Ludovic Marie 7b0cede6f8 Merge pull request #8125 from masa-masa-0314/fix/player-trident-fire
🤖 Agent: merged main after #8221: its powder-snow sweep and this PR's baseTick fire/water step both follow the trident's move, both kept, sweep first (no shared state or RNG); the arrow environment code now lives in ArrowScene::apply_block_effects for arrows and tridents alike, and I aligned the trident flames with the front-view yaw the other entities use.
2026-11-03 23:40:58 +01:00
Florian ERNSTandCodex 526aadb20a Tick ravager attack stun and roar counters without AI
Co-Authored-By: Codex <[email protected]>
2026-11-03 23:40:42 +01:00
Ludovic MarieandClaude Opus 5.5 7ec20ad606 test: drop the test of a constant
player_voice_pitch returns 1.0; asserting it twice pins nothing that can
regress (CLAUDE.md: skip tests of trivial constants).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:40:19 +01:00
Ludovic MarieandClaude Opus 5.5 a099b2e155 fix: free_port falls back to the plain bind on Windows
fcntl and os.getuid do not exist there, and lab.py runs on win32 too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:39:43 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 c1ab6def52 LAN test: fill the socket until the outbox waits, so the disconnect waits on Windows too
Windows takes a write of any size whole while its buffer has room, so the 64 MiB the test sent all went
through and the disconnect with it. Fixes #8734.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:37:05 +01:00
Ludovic MarieandClaude Opus 5.5 fff6d3065e fix: the brute's walk home waits 80 ticks between tries
StrollToPoi sets nextOkStartTime 80 ticks after each try; without it a
brute 10-100 blocks from a home it cannot reach ran a path search on
every goal-selector pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:36:50 +01:00
Ludovic Marie 97e26548f3 Merge pull request #8317 from dontstopgorkingit/ur-launcher
🤖 Agent: Urdu launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:36:02 +01:00
Ludovic MarieandClaude Opus 5.5 c430cf43f5 fix: an unknown advancement tab id leaves the kept tab as it is
ServerGamePacketListenerImpl.handleSeenAdvancements calls setSelectedTab
only when ServerAdvancementManager.get finds the id; the hub cleared the
tab for any id that was not a selectable root. Also puts visibility's
doc comment back on visibility.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:35:58 +01:00
HrafnaValkyrja 7800a1ccd8 Merge remote-tracking branch 'origin/main' into fix/tnt-minecart-chain 2026-11-03 17:35:08 -05:00
HrafnaValkyrja 2082bd559c Merge remote-tracking branch 'origin/main' into fix/entity-save-rest 2026-11-03 17:32:05 -05:00
Ludovic Marie 8417e54537 Merge pull request #8306 from dontstopgorkingit/th-launcher
🤖 Agent: Thai launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:31:08 +01:00
Torin SappandClaude Opus 5.5 0954041bd5 Content: read every declaration through one reader
Content::check read each declared block, item, mob effect, creative tab,
entity type and menu with Content::file, which opens the mod's archive
again and parses its whole central directory, unbuffered, every time.
Loading a packaged mod was quadratic in its size. Checking chipped's
.hmod (6,981 blocks, 58,563 entries) took over 20 minutes; with one
reader it takes 2 seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 15:27:22 -07:00
Ludovic MarieandClaude Opus 5.5 0f5067c85a Merge origin/main into status replies
Keeps #8136's operator level beside status replies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:27:05 +01:00
Ludovic Marie 54f2158db7 Merge pull request #8304 from dontstopgorkingit/vi-launcher
🤖 Agent: Vietnamese launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:26:14 +01:00
Ludovic Marie aa48266663 Merge pull request #8571 from horizon-rust/lr6/focus-ring
🤖 Agent: the focused field gets the mockup's 2 px accent-soft ring as an overlay child, so layout doesn't shift; the invalid red and the command/players fields keep their own borders.
2026-11-03 23:23:15 +01:00
Ludovic MarieandClaude Opus 5.5 d1f9655090 Server API: 30 routes after main's new one
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:23:01 +01:00
Ludovic Marie e08cb064fe Merge pull request #8302 from dontstopgorkingit/nl-launcher
🤖 Agent: Dutch launcher table, stacked on the ones before it (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 passed lib tests incl. every_language_has_every_string).
2026-11-03 23:22:12 +01:00
AxxioandAntigravity 49f43c7569 Sniffer digging sound event 63 and silent particles (fixes #8628)
Sniffer.onDiggingStart broadcasts entity event 63 so clients play
SnifferSoundInstance. Sniffer.emitDiggingParticles emits block dust
regardless of silent state.

Co-Authored-By: Antigravity <[email protected]>
2026-11-03 23:20:13 +01:00
Ludovic Marie d3ca256213 Merge pull request #8286 from dontstopgorkingit/it-launcher
🤖 Agent: Italian launcher table, first of a 9-step stack (any merge order is safe); desktop on this exact head: cargo fmt --check, clippy -D warnings, cargo test all green (465 lib tests incl. every_language_has_every_string). The fallback test now uses eo, since it-IT is supported.
2026-11-03 23:17:12 +01:00
degepie f23ab6c91e Merge remote-tracking branch 'origin/main' into fix/bare-ids 2026-11-04 03:16:59 +05:00
Nikita Maximilian GrimmandClaude Opus 5.5 3a801dcc57 HDR: Smooth Gradients under the HDR switch, said by what it does
Calibrate's "the three below" again means the brightness settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:16:22 +01:00
Stink-O 458199f845 Merge branch 'main' of https://github.com/ludovic111/horizon into native/far-terrain-edits 2026-11-03 22:13:16 +00:00
degepie 0daeda2021 Merge remote-tracking branch 'origin/main' into fix/throw-bucket-triggers 2026-11-04 03:12:26 +05:00
Ludovic MarieandClaude Opus 5.5 7d9a642b77 fa: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:22 +01:00
Ludovic MarieandClaude Opus 5.5 3c6eed82f3 Merge main into #8329 (fa)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:22 +01:00
Ludovic MarieandClaude Opus 5.5 790ace00cf el: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:21 +01:00
Ludovic MarieandClaude Opus 5.5 b8a99a0166 sv: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:21 +01:00
Ludovic MarieandClaude Opus 5.5 45a01d7a12 Merge main into #8327 (el)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:21 +01:00
Ludovic MarieandClaude Opus 5.5 b4e145a738 Merge main into #8325 (sv)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:21 +01:00
Ludovic MarieandClaude Opus 5.5 263b9314c2 cs: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:20 +01:00
Ludovic MarieandClaude Opus 5.5 c5848522ca ur: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:20 +01:00
Ludovic MarieandClaude Opus 5.5 0d04275a39 Merge main into #8323 (cs)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:20 +01:00
Ludovic MarieandClaude Opus 5.5 4b35bb5b3a Merge main into #8317 (ur)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:20 +01:00
Ludovic MarieandClaude Opus 5.5 308f74002f th: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:19 +01:00
Ludovic MarieandClaude Opus 5.5 0387cc4d18 vi: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:19 +01:00
Ludovic MarieandClaude Opus 5.5 d8c581c3dc Merge main into #8306 (th)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:19 +01:00
Ludovic MarieandClaude Opus 5.5 6cd38eb809 Merge main into #8304 (vi)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:19 +01:00
Ludovic MarieandClaude Opus 5.5 3773c46e71 nl: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:18 +01:00
Ludovic MarieandClaude Opus 5.5 3515b6963d it: the 14 strings of main's Servers page and log times
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:18 +01:00
Ludovic MarieandClaude Opus 5.5 d088a9b856 Merge main into #8302 (nl)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:18 +01:00
Ludovic MarieandClaude Opus 5.5 c113d01fc0 Merge main into #8286 (it)
main's shader API reference is up to date again (367b20268d), which the
previous head's verify run failed on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:05:18 +01:00
Ludovic Marie 2a43173d1a Merge pull request #8549 from horizon-rust/feat/launcher-glass-offline-heads
🤖 Agent: offline faces come from the player's own prepared files (no Mojang asset bundled), read on a worker and keyed by vanilla's offline UUID, so a skin change is picked up by its file time. Proof (GitHub's queue is backed up): on the desktop at 4d20c0efc0, inside launcher/: cargo fmt --check, clippy --all-targets -D warnings, cargo test (465+82 lib+bin) all exit 0.
2026-11-03 23:03:49 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 4a30280e22 Let a finished moving piston support what is attached to it
A moving block at full progress now supports like the block it carries, as vanilla's
moving block entity does (getExtendedProgress is 0 at progress 1.0). Wall coral fans
and the carpets on them survived in vanilla when a slime column landed; here the fan
popped because the slime block behind it was still a moving piston, so the carpet
duplication machine had nothing to duplicate.

Fixes #8490

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 17:00:54 -05:00
Nikita Maximilian GrimmandClaude Opus 5.5 ee8c5b7b13 install.sh signature test: skip on Windows, where install.sh doesn't install
Fixes #8708.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:59:16 +01:00
Ludovic Marie 1960a896ed Merge pull request #8523 from horizon-rust/feat/launcher-glass-played
🤖 Agent: the mockup's times are glass-only helpers; the light look keeps instances::play_time and worlds_page::ago, so its wording is unchanged (only the SMP count gets translated). Proof (GitHub's queue is backed up): on the desktop at 34d9859ff1, inside launcher/: cargo fmt --check, clippy --all-targets -D warnings, cargo test (465+82 lib+bin) all exit 0.
2026-11-03 22:58:04 +01:00
CocofireHDandHermes 0a5b6efe10 Commands: /attribute resolves its target in the target's level
`cmd_attribute` looked the entity up in the command source's level only, while
a selector with no spatial constraint searches every loaded level
(`EntitySelector.findEntities`). A target in another dimension therefore came
back as an id the level did not hold: the generic path answered "Entity
entity. has no attribute <name>" and max_health, movement_speed and
attack_damage silently did nothing.

Run the attribute work with the target's level in place through the existing
`in_target_level` helper, the one /data, /kill and /tp already use.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 22:57:04 +01:00
JoansitohandClaude Sonnet 5.5 9dc679d49e Play the bow and crossbow shot sounds at the shooter's feet, as vanilla does (#8448)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 22:50:45 +01:00
Ludovic Marie da6b3c353d Merge pull request #8515 from horizon-rust/feat/launcher-glass-overview
🤖 Agent: Overview's blur makes each screenshot's blurred copy once, off the UI thread and only while blur is on, so with blur off the tiles draw the same images as before. Proof (GitHub's queue is backed up): on the desktop at d2cf230cb6, inside launcher/: cargo fmt --check, clippy --all-targets -D warnings, cargo test (465 lib + 80 bin) all exit 0.
2026-11-03 22:50:07 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 31ee745f7e Minecarts: chest and hopper carts use the container slowdown
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:47:47 -05:00
Ludovic Marie 4476320954 Merge pull request #8531 from horizon-rust/feat/launcher-glass-light
🤖 Agent: the light look; the layout follows a glass flag separate from dark, and the sky and tint still follow dark, so dark renders unchanged. Desktop on this head: fmt, build, clippy, 465 launcher tests pass.
2026-11-03 22:46:13 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 f437985e02 HDR: a Smooth Gradients switch for the 16-bit frame, on by default
On the HDR page, after Calibrate. Off, the frame stays 8-bit with HDR on, as
before. Like Translucent Batching it applies at the next start or resource
reload, and is no part of a preset. Saved as hdrSmoothGradients; the two new
strings are in en_us only, for the translators.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:45:21 +01:00
martipopsandClaude Opus 5.5 ef242dfe34 Merge upstream main into launcher accounts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 16:44:02 -05:00
JoansitohandClaude Sonnet 5.5 f4b991cc51 Nautilus Breath applies ambient in every game mode (#8594)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 22:43:08 +01:00
NerfPhaselock 6ea9e9608f Merge remote-tracking branch 'upstream/main' into perf/gpu-culling-g1b
# Conflicts:
#	crates/horizon-client-render/src/gfx.rs
2026-11-03 16:39:17 -05:00
Teiwazik 1c88130124 Merge remote-tracking branch 'origin/main' into fix/leave-server-sounds 2026-11-03 22:39:08 +01:00
Ludovic Marie 4d20c0efc0 Merge branch 'feat/launcher-glass-played' into feat/launcher-glass-offline-heads 2026-11-03 22:38:49 +01:00
Ludovic Marie 34d9859ff1 Merge branch 'feat/launcher-glass-overview' into feat/launcher-glass-played
# Conflicts:
#	launcher/lang/bg.json
#	launcher/lang/da.json
#	launcher/lang/fi.json
#	launcher/lang/he.json
#	launcher/lang/hu.json
#	launcher/lang/lt.json
#	launcher/lang/no.json
#	launcher/lang/ro.json
#	launcher/lang/sk.json
2026-11-03 22:38:46 +01:00
Ludovic Marie d2cf230cb6 Merge remote-tracking branch 'origin/main' into feat/launcher-glass-overview
# Conflicts:
#	launcher/lang/bg.json
#	launcher/lang/da.json
#	launcher/lang/fi.json
#	launcher/lang/he.json
#	launcher/lang/hu.json
#	launcher/lang/lt.json
#	launcher/lang/no.json
#	launcher/lang/ro.json
#	launcher/lang/sk.json
2026-11-03 22:38:35 +01:00
Ludovic MarieandClaude Opus 5.5 1e316634b9 Merge main into feat/launcher-glass-light (main's "My Horizon" rows win)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:35:38 +01:00
Ludovic Marie 9e7843c9d5 Merge pull request #8584 from horizon-rust/lr6/server-rows
🤖 Agent: stopped servers show their game mode as in the mockup, read from the server's own server.toml; fmt, clippy and 465 launcher tests pass on this head on the desktop.
2026-11-03 22:33:28 +01:00
Ludovic Marie 0b47e52206 Merge pull request #8563 from horizon-rust/lr6/multiplayer-status
🤖 Agent: Multiplayer rows get the mockup's status dot and player count; also adds the 'My Horizon' string main's 9 new language tables lack, which fixes main's launcher i18n test. fmt, clippy and 464 launcher tests pass on this head on the desktop.
2026-11-03 22:33:24 +01:00
Ludovic MarieandClaude Opus 5.5 6d9e15cfb5 launcher: "My Horizon" in the 9 tables that lacked it
Main's bg, da, fi, he, hu, lt, no, ro and sk tables miss it, which fails every_language_has_every_string_the_code_asks_for. Same lines as #8563, so the two merge cleanly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:31:07 +01:00
Ludovic Marie 17507c50b4 Merge branch 'lr7/instance-nightlies' into lr7/instance-switch 2026-11-03 22:29:34 +01:00
Ludovic Marie 80116a34f8 Merge remote-tracking branch 'origin/main' into lr7/instance-nightlies 2026-11-03 22:29:15 +01:00
ErikKalikasandClaude Opus 5.5 9841d6bffd Native mods: a mod menu type opened with extra data (openMenu with an extra-data writer)
A mod block opening its content mod's menu type asks native_menu_extra_data for bytes
of the mod's own; a horizon:menu_extra payload carries them with the window and the
block's position to Horizon clients right before OpenScreen. The client takes the
block from it instead of the last clicked one, and native_screen_pos /
native_screen_extra_data read both while the mod's screen is open.

Fixes #8675

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 23:28:50 +02:00
itarqos5andClaude Opus 5 e602ed84ac fix(heap census): read thread names off Windows, and name the loaders
`horizon-ctl memory` falls back to a thread's name for allocations made
outside any step, span or job. On Windows `thread_name` returned nothing
at all -- the stub for every platform without `pthread_getname_np` -- so
every untagged allocation on every thread fell into one `unnamed thread`
bucket. That bucket was 580 MiB of a playing game's 1219 MiB resident
set: the largest of all of them, and useless, because it named no thread.

Rust keeps the name `Builder::name` set in its own thread handle, so the
fallback reads it from there. No new dependency, and nothing new in a
release binary: `GetThreadDescription` would have wanted Windows 10 1607
and an import in every build, where this is the name Rust already holds.

The resource loaders had no name to read either: they are spawned through
`Step::spawn` and bare `scope.spawn`, which leave a thread unnamed. They
go through a new `named_scope`, which covers the eight core steps, the
five world-rest loaders and the panorama. The job pool already named its
workers, and so did far terrain.

What the same run reports now, where it reported one 580 MiB bucket:

| MiB | tag |
|---:|---|
| 328.2 | Far sampling |
| 76.4 | unnamed thread |
| 52.0 | Far decoration |
| 35.4 | Far terrain |
| 13.9 | Far meshing |
| 12.4 | World data preload |
| 8.2 | Worldgen loader |
| 8.0 | main |

Far terrain holds ~430 MiB of the heap across its four threads, beside
the 661 MiB of far-tile vertices already measured in video memory. None
of that was visible before.

The startup trace gains the same names: 13 of its 17 lanes read
`unnamed`, which a trace viewer cannot lay out usefully.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011paghWkrnyQRBhJRodZpG2
2026-11-03 21:28:16 +00:00
Ludovic Marie 0cc7ae127b Merge pull request #8214 from janibert1/whitelist-bypass
🤖 Agent: merged main and gave the temporary-ban test's Lists the new whitelist_bypass field (main added that initializer after this branch); cargo check of horizon-client lib + tests passes on the desktop. Off unless the owner adds whitelist-bypass.txt.
2026-11-03 22:27:09 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 ba9dcb41e4 Move riders with a teleported vehicle, rotate without teleporting, dismount at source, add the player boarding cooldown
Entity.teleportPassengers: teleporting a boat, minecart or mob takes its mob,
player and guest riders along at once. /rotate is Entity.forceSetRotation:
rotation fields only, pitch clamped before the setter. Ender pearl and bed
entry stop riding at their source instead of at guest-turn teardown. Players
and guests get Entity.boardingCooldown (60 ticks) checked before boarding.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:27:07 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 6b306767a7 Name the affected players in /ban-ip feedback
BanIpCommands.banIp sends commands.banip.info with the count and
EntitySelector.joinNames of the affected players; the dedicated console
passed an empty string for the names. Build the line from the same list
used for the disconnects, and still send nothing when no one is affected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:25:30 -05:00
Ludovic Marie cec81d44a0 Merge pull request #8692 from horizon-rust/fix/hud-animated-root-race
🤖 Agent: tests only: each hud test gets its own temp folder, so a strip one test adds can't leak into another's atlas; 8 repeat runs of the hud tests pass on the desktop.
2026-11-03 22:25:30 +01:00
Ludovic MarieandClaude Opus 5.5 ff024d09a3 hud tests: each animated_root gets its own folder
animated_block_sprites_register_and_pack_their_first_mcmeta_frame and
a_strip_frames_size_comes_from_its_mcmeta shared one per-process folder.
The second adds a two-frame strip of its own, so the first, running beside
it, sometimes found that strip (first frame 0) instead of its own (1).
That broke main's verify on #8531's run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:24:24 +01:00
CocofireHDandHermes a1c4fa382e Mobs: a digging turtle sends the level event it is supposed to
`Turtle.aiStep` broadcasts LevelEvent 2001 while it digs; the handler drew the
particles into the local buffer instead, which a serving client never renders
and no client hears. Route it through `level_event_at(2001, ...)` like every
broken block does, so the sand crumbs and the break sound both follow.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 22:23:53 +01:00
Ludovic MarieandClaude Opus 5.5 ccff0d4db7 Merge main into lr6/server-rows
The new key sits after "Stopped" in all 25 tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:23:17 +01:00
Ludovic MarieandClaude Opus 5.5 de505bbe3c Merge main into lr6/multiplayer-status
The new key sits after "Offline" in all 25 tables; "My Horizon" added to the 9 tables that lacked it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:23:09 +01:00
Ludovic MarieandClaude Opus 5.5 d2a173b6e1 test: give the temporary-ban test's Lists the new whitelist_bypass field
Main added a Lists initializer in this test after this branch was cut.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:21:46 +01:00
Ludovic MarieandClaude Opus 5.5 fd3e17c2bc Merge main into whitelist-bypass
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:21:46 +01:00
CocofireHDandHermes c0cd050fac Mobs: a remote warden's digging particles reach the client
`Warden.clientDiggingParticles` is client work, but `client_tick` discarded the
`DigParticles` events it had already computed (`animate(m, &mut Vec::new())`),
and `sync::client_tick` had no sink to hand them to. Thread the game's event
vector through; it lands in `warden_dig_particles`, which draws the 30 block
particles from the block under the warden.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 22:21:42 +01:00
TeiwazikandClaude Opus 5.5 ca17074fd9 Older servers: nested items and the song flag in item components
- jukebox_playable: EitherHolder.streamCodec is either(holder, key), so
  its flag is set for a holder; it was read the other way round, and an
  item with a song by key broke the rest of its packet (on a 1.21.11
  server a whole container_set_content at login).
- container and use_remainder (and sulfur_cube_content) hold item
  stacks: their bytes were kept as the server sent them, in its item and
  component numbering, and before 26.1 as ItemStacks (a count first). Read
  from an older server, they are now read whole and written again as
  pinned templates.
- pot_decorations writes its items' pinned ids, and a value rewritten
  this way is read back in the pinned numbering.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 22:20:51 +01:00
Ludovic MarieandClaude Opus 5.5 bfe9c360ed launcher: Edit can switch an instance's kind, Minecraft version and loader
As in the mockup, Edit shows the three kinds (Horizon, Vanilla, Modded)
and, for a Java instance, Mojang's versions and the loaders. Saving a
change calls instances::switch, which changes only the instance's entry
in instances.json: its folder, with its worlds, mods and options, is never
touched, and a Java instance's settings (memory, Java, arguments, window)
are kept aside while it plays Horizon. Before Save, a notice lists what
can't keep working: mods for another game or version, and worlds that a
different Minecraft version upgrades for good. The game's home and
modpacks play what they were made with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:17:35 +01:00
Ludovic MarieandClaude Opus 5.5 424524cce4 Merge main into fix/player-trident-fire
#8221's powder-snow sweep and this branch's baseTick fire/water step both follow the
trident's move in trident.rs: both kept, the sweep first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:16:35 +01:00
Ludovic Marie 8fed23e865 Merge pull request #8361 from senjinthedragon/shader-portals-beams
🤖 Agent: under a shaders/ pack, portal faces and beams no longer fall back to Horizon's entity shader at all, so a pack with no gbuffers_block (or no beaconbeam/textured/basic) shows no portal or beam; the portal texture is copied once per atlas rect change, not per frame.
2026-11-03 22:16:17 +01:00
Ludovic Marie 476e5cd79f Merge pull request #8237 from itarqos5/perf/startup-core-overlap
🤖 Agent: merged main, whose registry-v1.bin snapshot already takes facts.json off most starts, so the slice parse now only helps a snapshot miss; the model-library parse beside Assets::load is the part that still moves time off the critical path (skipped for a server).
2026-11-03 22:16:13 +01:00
Ludovic Marie 1978658b83 Merge pull request #8121 from janibert1/chat-hook
🤖 Agent: cancel drops the message for everybody before the broadcast, after secure chat and the filter, so a muted player's signed chain is never relayed; I added the test-stub field and registered chat.rs's free hook point in catalog_matches_hook_points.
2026-11-03 22:16:08 +01:00
Ludovic Marie 45d7ee31e3 Merge pull request #8221 from byMehd/fix/8217-powder-snow-entity-particles
🤖 Agent: merged main after the STOP: main now ticks orbs and primed TNT in join order (ordered_tick.rs, tick_one_tnt), so their snowflake calls moved there, still right after each move as PowderSnowBlock.entityInside runs inside it; verify green on this head.
2026-11-03 22:16:04 +01:00
AkirabaneandClaude Opus 5.5 479918f6a3 A guest keeps and saves the game mode they left last
The owner already had previousPlayerGameType; a guest had no such field,
and the save removed the key, so the game mode switcher of a guest who
rejoined had nothing to go back to. A guest now keeps it as
ServerPlayerGameMode.changeGameModeForPlayer does (the mode left becomes
the previous one; the mode in use changes nothing), and its file writes it
when there is one and reads it back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:13:46 +01:00
AkirabaneandClaude Opus 5.5 10d1e900b9 A guest's save keeps the time spent frozen
PlayerMotion.ticks_frozen never reached the file: a guest who left inside
powder snow came back thawed, and one who thawed kept whatever TicksFrozen
the file it joined from had. The saved body now carries it, written only
above 0 as Entity.saveWithoutId does (the key is removed otherwise), and read
back with Entity.load's default of 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:13:46 +01:00
AkirabaneandClaude Opus 5.5 2f80af1466 A guest's save keeps the food exhaustion and the food timer
store set the food level and saturation but left foodExhaustionLevel and
foodTickTimer at 0, so a guest who left mid-sprint came back with no
exhaustion and the regeneration timer restarted. The saved body now carries
both from the live FoodData (FoodData.addAdditionalSaveData) and puts them
back on the next body.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:13:46 +01:00
AkirabaneandClaude Opus 5.5 54acf9e4be A guest's save keeps the player's motion
store never set Motion, so a guest's file always said the player stood
still. The saved body now carries the live delta movement, written as
Motion (Entity.saveWithoutId) and read back for the next body with
Entity.load's rule: a component over 10 blocks a tick reads as 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:13:46 +01:00
degepieandClaude Opus 5.5 dd3b316fc9 Advancements: looking_at sees every entity, in every trigger
PlayerPredicate.matches looks for the entity the player looks at
(ProjectileUtil.getEntityHitResult over every non-spectator entity but
the player, then hasLineOfSight) whatever the trigger. Horizon searched
only the mobs, and only for using_item, so a looking_at boat, minecart,
armor stand, frame, painting or crystal never matched, and nothing
matched in tick, location or any other trigger.

looking_at_entity now walks every entity list plus frames, paintings
and crystals, and player_entity sets looking_at for every trigger. The
per-tick tick and location triggers cast the ray only when one of their
criteria may ask (names looking_at or a reference predicate), worked
out once per tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 02:10:03 +05:00
OpenAI Codex 11121fc59c Merge public main with visibility audit and span test isolation fixes
Co-Authored-By: Codex <[email protected]>
2026-11-03 16:08:24 -05:00
Ludovic MarieandClaude Opus 5.5 05ab05c807 Merge main into feat/launcher-glass-light (#8681's reference fix)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:08:20 +01:00
Ludovic Marie 29c8931f45 Merge pull request #8681 from horizon-rust/fix/shaders-reference-doc
🤖 Agent: unblocks main's verify: #8186 hand-edited the generated shaders-reference.md; the Anti-aliasing section now comes from the generator, word for word, so the doc is unchanged and the_reference_is_up_to_date passes.
2026-11-03 22:05:25 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 2ff9047fff HDR: draw the frame in 16 bits when HDR is on, so dark gradients stop banding
With HDR output on at the start, the frame every pass draws into is
Rgba16Unorm instead of the swapchain's 8-bit format. It clips at white after
every pass as the 8-bit frame does, so the picture stays SDR's, but keeps
the steps 8 bits band in dark gradients, which HDR shows. Where the device
can't draw, blend and filter it, and with HDR switched on later, the 8-bit
frame as before. SDR is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:05:05 +01:00
Ludovic MarieandClaude Opus 5.5 367b20268d shader API reference: the anti-aliasing section comes from the generator
#8186 wrote its Anti-aliasing section into docs/api/shaders-reference.md,
which horizon_shader_api::reference::markdown generates, so main's
the_reference_is_up_to_date failed. The section is now generated, and the
doc is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:03:49 +01:00
Ludovic MarieandClaude Opus 5.5 08f504c6d6 launcher: the instance dialog lists every Nightly and installs the picked one
The Horizon version list showed only installed versions. Like the mockup,
it now lists every Nightly published for this platform (the launcher's
release list, with its GitHub cache), then the installed ones the list
lacks. Create or Save makes the instance at once and installs a picked
version that isn't installed through the existing install path (signed
checksums, progress), after the install running now if there is one;
Play shows Installing meanwhile. A version installed for an instance
becomes the launcher's only when it has none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:02:28 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 1950f986e8 Fix TNT minecarts surviving weak blasts and fire
VehicleEntity.hurtServer destroys a cart when its damage passes 40 or
MinecartTNT.shouldSourceDestroy is true (fire, explosions). Horizon only
checked the damage, so a TNT cart hit by a weak blast was pushed but never
primed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 15:55:21 -05:00
Ludovic Marie 298f165557 Merge pull request #8136 from TiggerTakkyTTT/fix/server-management-operator-level
🤖 Agent: the set path updates both state.op_level and the lists' op_level, so ops added after a change get the new default level as vanilla's settings.update does; harness ids moved to 220–229 (150s clashed with #8108), main merged with #8144's hide-online-players kept.
2026-11-03 21:54:13 +01:00
Ludovic MarieandClaude Opus 5.5 ee014866e7 Merge main into feat/launcher-glass-light (#8674's render test fixes)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:53:20 +01:00
Ludovic MarieandClaude Opus 5.5 126e6f6e44 Merge origin/main into stopped-list-api
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:53:03 +01:00
Ludovic Marie 175c9b99f4 Merge pull request #8674 from horizon-rust/fix/render-tests-visbuffer-spans
🤖 Agent: unblocks main's verify: the inter-stage audit now covers visbuffer.wgsl from #7054 (still within 15 variables), and the two spans tests share one lock instead of racing on the process-wide switch. Tests only; render crate's 1295 tests + clippy pass on the desktop.
2026-11-03 21:50:46 +01:00
Ludovic MarieandClaude Opus 5.5 f722c0c72c render tests: audit visbuffer.wgsl's assembly, keep the spans switch to one test at a time
- inter_stage_tests: visbuffer.wgsl (#7054) only compiles after terrain.wgsl,
  so the audit failed on main. It now checks the module the renderer builds
  (terrain.wgsl + visbuffer.wgsl), which stays within the 15 inter-stage
  variables.
- spans: laps_time_consecutive_steps turns spans on for every thread, so
  notes_keep_the_slowest_steps, running beside it, recorded the note it
  expects left out. Both take one lock now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:48:40 +01:00
Kacper 50fe88ed1d Merge pull request #8592 from mattiaemolo/fix/spectator-container-openers
Containers no longer open in spectator mode
2026-11-03 21:43:18 +01:00
HrafnaValkyrja 28c50a1f0b Merge remote-tracking branch 'origin/main' into fix/entity-save-rest 2026-11-03 15:42:21 -05:00
Kacper da19873333 Merge pull request #8420 from HrafnaValkyrja/fix/entity-save-matches-vanilla
Entity save data: Fire default, kept tags and the movement speed attribute as vanilla writes them
2026-11-03 21:41:45 +01:00
Kacper cc77dc5261 Merge pull request #8494 from MSedgeMC/fix/mob-effect-refusal
An effect a mob refuses is never added
2026-11-03 21:40:04 +01:00
Kacper 2a18eb5ecd Merge pull request #8576 from HrafnaValkyrja/fix/leads-parity
Only mobs and boats keep a leash tag
2026-11-03 21:39:54 +01:00
Ludovic Marie 3cfb8846e2 Merge pull request #8641 from kacpherek/far/no-floating-cells-pr
🤖 Agent: far cells now keep any column's blocks (trunks stay under crowns) instead of the majority rule; the cost is that a thin feature in a wide cell draws cell-wide, which the before/after shows reads better than floating slabs. Same stored format, so caches aren't rebuilt.
2026-11-03 21:33:07 +01:00
Ludovic MarieandClaude Opus 5.5 875ed64de4 Merge main into feat/launcher-glass-light (main's pack_post test fix, #8664)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:31:49 +01:00
huiandClaude Opus 5.5 d9692d81b1 pr_ready: run the Python checks beside cargo
The Python tests and the public-tree check only read files, yet cargo
waited for them: about two minutes of every run. They now run in a
thread beside rustfmt, clippy and the tests; the harnesses, which build
with cargo, still come after it, and --verbose keeps everything in
order so the output doesn't interleave.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:31:36 +01:00
Ludovic Marie c332740d31 Merge pull request #8088 from Joansitoh/fix/8051-reduced-debug-info
🤖 Agent: matches vanilla's REDUCED_DEBUG_INFO callback (entity event 22/23 to each player on change, Login.reducedDebugInfo at join). Main merged in twice: limited_crafting landed in the same hub/lan/remote spots, both kept. Verify passed on the previous head with the same diff; fmt and clippy passed on this one. One gap left: a guest whose Login was built but who isn't placed yet misses a flip.
2026-11-03 21:30:31 +01:00
Ludovic Marie 1564656e02 Merge pull request #8548 from horizon-rust/fix/ramlimit-windows-no-paging
🤖 Agent: queued, verify and launcher green on 3f941752. CI never builds Windows, so the Windows-only code was checked separately: clippy -D warnings for x86_64-pc-windows-gnu is clean on horizon-threads (all targets) and horizon-client (with and without default features), with the C build scripts (mimalloc, ring) stubbed.
2026-11-03 21:28:52 +01:00
Ludovic Marie a026fd085d Merge pull request #7054 from elythepreciouscat/perf/async-occlusion-culling
🤖 Agent: re-merged main after the merger's conflict stop (main's new shift-click cycling test kept beside the particle culling one); Off, the default, still calls the plain render path, so players who don't opt in pay nothing per frame.
2026-11-03 21:27:12 +01:00
Ludovic Marie 6e02bdb4b3 Merge pull request #8664 from horizon-rust/fix/pack-post-rgb
🤖 Agent: unbreaks main's horizon-client-render test build (#8131 added Resources::rgb, #8065's new test initializer lacked it); clippy --all-targets -D warnings passes on the desktop.
2026-11-03 21:27:08 +01:00
Ludovic MarieandClaude Opus 5.5 b877faf1d7 launcher: "My Horizon" in the bg, da, fi, he, hu, lt, no, ro and sk tables
main's i18n test failed: the new instance's default name reached main
after those nine tables were filled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:26:52 +01:00
Ludovic MarieandClaude Opus 5.5 467deab05f Merge main into feat/launcher-glass-light
The palette's card now uses main's ui::dialog_plate (#8514). The light
look's lighter scrim moves into the shared helpers (ui::scrim and
dialog_plate), so the Edit dialog, the server dialog, the owner notice
and the palette all dim a light launcher the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:26:52 +01:00
Kacper dbd56824f4 Merge pull request #8481 from dontstopgorkingit/docs/user-server
docs: improve server/user documentation links and structure
2026-11-03 21:25:12 +01:00
Kacper b88fafd2d7 Merge pull request #8207 from Akirabane/feat/8206-config-set-live-motd-max-players
Server: `config set server.motd` and `server.max_players` apply live
2026-11-03 21:24:25 +01:00
OpenAI Codex e4b9dfa9a4 Format the split material census adapter
Co-Authored-By: Codex <[email protected]>
2026-11-03 15:23:32 -05:00
Kacper 93a326e142 Merge pull request #8546 from MSedgeMC/fix/squid-movement-sounds
A squid and a bat step without a sound
2026-11-03 21:22:45 +01:00
Kacper 7c8ccece9d Merge pull request #8561 from MSedgeMC/fix/baby-parrot-voice
A baby parrot keeps the plain voice pitch
2026-11-03 21:22:30 +01:00
Ludovic MarieandClaude Opus 5.5 4a9d204be7 pack_post: give the composite test's Resources its rgb field
#8131 added Resources::rgb and #8065 added a test initializer without it;
both merged, so main's horizon-client-render tests no longer compile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:22:15 +01:00
Ludovic Marie 770ce88060 Merge branch 'feat/launcher-glass-played' into feat/launcher-glass-offline-heads 2026-11-03 21:22:02 +01:00
Ludovic MarieandClaude Opus 5.5 f4b4f4d10a launcher: the played line's times in main's nine new languages
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:22:00 +01:00
Ludovic Marie 851086d248 Merge branch 'feat/launcher-glass-overview' into feat/launcher-glass-played 2026-11-03 21:21:50 +01:00
Ludovic MarieandClaude Opus 5.5 4acedeaad1 launcher: "My Horizon" in the bg, da, fi, he, hu, lt, no, ro and sk tables
#8509's default name crossed with main's nine new languages, so main's
every_language_has_every_string_the_code_asks_for lacks it there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:21:39 +01:00
Ludovic Marie 64ec25e9c9 Merge remote-tracking branch 'origin/main' into feat/launcher-glass-overview
# Conflicts:
#	launcher/lang/ar.json
#	launcher/lang/de.json
#	launcher/lang/es.json
#	launcher/lang/fr.json
#	launcher/lang/hi.json
#	launcher/lang/hr.json
#	launcher/lang/id.json
#	launcher/lang/ja.json
#	launcher/lang/ko.json
#	launcher/lang/pl.json
#	launcher/lang/pt-br.json
#	launcher/lang/pt.json
#	launcher/lang/ru.json
#	launcher/lang/tr.json
#	launcher/lang/uk.json
#	launcher/lang/zh.json
2026-11-03 21:20:43 +01:00
TeiwazikandClaude Opus 5.5 f725a92d3d Older servers: read item components whose layout changed
Three components kept their names but changed their stream codecs, so an
older server's item holding one failed to decode (with a vanilla 1.21.11
server: "1 extra bytes" and "NBT truncated" on container_set_slot):

- pot_decorations (26.3): a list of up to four item ids, a brick for a
  plain side, became four optional item stack templates;
- jukebox_playable (26.1): an EitherHolder, a flag then the song's key or
  holder, became a holder; a key has no pinned holder and is dropped;
- damage_resistant (26.1): a bare damage type tag became a HolderSet.

Two quirks say which a version has, and one reader (read_added) now
serves the slot, template and wire patch readers alike: it drops the
components the pinned version lacks, rewrites these three into the
pinned layout and reads the rest as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 21:20:06 +01:00
degepieandClaude Opus 5.5 5d6752f7bd Potion and cloud kills and falling-block hits fire their advancement triggers
A harming splash potion or lingering cloud hurt mobs through Mob::hurt, a
player_attack from the player whoever threw it, and never recorded the thrower
in last_hurt_by_player, so on the server thread the kill reached nobody's
player_killed_entity. They now deal indirectMagic(potion or cloud, owner)
(HealOrHarmMobEffect.applyInstantaneousEffect), the thrower's kill when a
player threw it, and the mob keeps the potion or cloud as the killing blow's
direct entity (Mob::last_direct).

A falling block hitting the player now fires entity_hurt_player with the
falling block as causing and direct entity (FallingBlockEntity.causeFallDamage,
LivingEntity.hurtServer).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 01:18:33 +05:00
Kacper 9aa4be30f8 Merge pull request #8197 from Akirabane/fix/8195-breaking-cracks-varyings
Renderer: keep every pipeline within 15 inter-stage variables, and test it
2026-11-03 21:16:55 +01:00
Kacper acea78948d Merge pull request #8065 from arslanarm/shaderpacks/pack-fog-uniforms
Shader packs: fog and per-draw uniforms as Iris gives them per program kind
2026-11-03 21:16:09 +01:00
Kacper 0b98fd3ec6 Merge pull request #8044 from arslanarm/shaderpacks/composite-blend
Shader packs: blend.<program> blends composite-style programs
2026-11-03 21:16:00 +01:00
Ludovic Marie dd66b5105b Merge pull request #8499 from horizon-rust/feat/launcher-glass-memory
🤖 Agent: Maximum memory in the Edit dialog; it edits the instance being edited, not the selected one, which was the risk here. Head includes lr6-memory's #8509 (instance dialog defaults), whose fmt/clippy/tests passed.
2026-11-03 21:14:48 +01:00
Ludovic Marie 88d201d7d0 Merge pull request #8577 from horizon-rust/ci/self-hosted-max
🤖 Agent: reviewed the .github changes: bots on pull_request_target/issue_comment check out ref: main only and take comment/branch text through env; checks jobs on the desktop hold no secrets or write tokens (tests/test_ci_runners.py pins it). Launcher failure was main's, fixed by #8640; merged main in.
2026-11-03 21:12:35 +01:00
Ludovic Marie afd319aeee Merge pull request #8328 from dontstopgorkingit/el-game
🤖 Agent: el_gr game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:12:31 +01:00
Ludovic Marie 566614fd72 Merge pull request #8326 from dontstopgorkingit/sv-game
🤖 Agent: sv_se game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:12:27 +01:00
CocofireHDandHermes be258bc235 Mobs: a mob's particles reach the clients, not a headless buffer
`MobEvent::ParticleAt` was drawn with `self.particles.add` only, and a serving
client has no window: the squid's 30 ink particles never left the server. Send
them as packets like every other server-thread particle site; with count 0 the
packet's deltas are the particle's motion.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 21:12:25 +01:00
OpenAI Codex 797d6d0ae9 Count all split material textures in the new GPU census
Co-Authored-By: Codex <[email protected]>
2026-11-03 15:11:37 -05:00
Ludovic MarieandClaude Opus 5.5 dcde458f09 Merge main into ci/self-hosted-max (picks up #8640's launcher fix)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:10:46 +01:00
TeiwazikandClaude Opus 5.5 7140f3cbd2 Older servers: read past the item components 26.3 dropped
26.3 removed the map_color and swing_animation data components. A 1.21.x,
26.1 or 26.2 server still sends them in item patches (an explorer map's
color, a 1.21.11 weapon's swing), and the item readers, which renumber
the component id to -1 there, could not read the value: the whole packet
was skipped, so a container holding such an item showed empty (seen on a
Folia 1.21.11 server: container_set_content, set_entity_data and
update_advancements undecodable).

The registry id generator now lists the components an older version has
and the pinned one lacks, and the item readers read their values past in
that version's layout (an int; two varints) and drop them, from added and
removed components alike. tooltip_display's hidden component ids are
renumbered as well, both ways.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 21:10:39 +01:00
CocofireHDandHermes 61791d3e20 Mobs: a nautilus answers its own food, and a tame one is mounted
Neither nautilus had an arm in `remote_mob_takes`, so a tame adult's mount or
screen click fell through, and the generic `Animal.mobInteract` arm claimed any
`kind.food` item for an untamed one although `AbstractNautilus.mobInteract`
only takes `#minecraft:nautilus_taming_items` until it is tamed.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 21:10:34 +01:00
Ludovic Marie 466402216a Merge pull request #8324 from dontstopgorkingit/cs-game
🤖 Agent: cs_cz game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:10:18 +01:00
Ludovic Marie abea3bd4b3 Merge pull request #8318 from dontstopgorkingit/pt_br-game
🤖 Agent: pt_br game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:10:14 +01:00
Ludovic Marie 0981da3950 Merge pull request #8315 from dontstopgorkingit/ar_sa-game
🤖 Agent: ar_sa game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:10:09 +01:00
Ludovic Marie e919ca8862 Merge pull request #8314 from dontstopgorkingit/ja_jp-game
🤖 Agent: ja_jp game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:10:05 +01:00
Ludovic Marie 804d44b2b9 Merge pull request #8307 from dontstopgorkingit/th-game
🤖 Agent: th_th game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:10:01 +01:00
Ludovic Marie f28e56abdf Merge pull request #8305 from dontstopgorkingit/vi-game
🤖 Agent: vi_vn game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:09:57 +01:00
Ludovic Marie cf04e87525 Merge pull request #8303 from dontstopgorkingit/nl-game
🤖 Agent: nl_nl game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:09:52 +01:00
Ludovic Marie 7f4b71542b Merge pull request #8287 from dontstopgorkingit/it-game
🤖 Agent: it_it game table, stacked with the other nine (any merge order is safe); "Horizon" kept as the name where the table had the word horizon, English copies dropped and the six controller options named as options, as #8385 did.
2026-11-03 21:09:47 +01:00
GabrielNichols 06f5846948 Merge remote-tracking branch 'upstream/main' into codex/port-pack-harness-verdict 2026-11-03 17:08:33 -03:00
Ludovic MarieandClaude Opus 5.5 160f206c16 fa: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:59 +01:00
Ludovic MarieandClaude Opus 5.5 65bb30cbe7 el: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:59 +01:00
Ludovic MarieandClaude Opus 5.5 8ddf1e96ed Merge main into #8329 (fa)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:59 +01:00
Ludovic MarieandClaude Opus 5.5 4cdce63a27 Merge main into #8327 (el)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:59 +01:00
Ludovic MarieandClaude Opus 5.5 c3fde80ea9 sv: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:58 +01:00
Ludovic MarieandClaude Opus 5.5 6805e4b57a cs: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:58 +01:00
Ludovic MarieandClaude Opus 5.5 5b912b5178 ur: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:58 +01:00
Ludovic MarieandClaude Opus 5.5 c97fc9bfba Merge main into #8325 (sv)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:58 +01:00
Ludovic MarieandClaude Opus 5.5 6a23f7bf4f Merge main into #8323 (cs)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:58 +01:00
Ludovic MarieandClaude Opus 5.5 d1e43f4554 th: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:57 +01:00
Ludovic MarieandClaude Opus 5.5 7cfcbde368 vi: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:57 +01:00
Ludovic MarieandClaude Opus 5.5 e4aca3a739 Merge main into #8317 (ur)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:57 +01:00
Ludovic MarieandClaude Opus 5.5 42fe8f1aff Merge main into #8306 (th)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:57 +01:00
Ludovic MarieandClaude Opus 5.5 cb3fac7b8f Merge main into #8304 (vi)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:57 +01:00
CocofireHDandHermes 7d59356e42 Mobs: the golems answer a right click
`IronGolem.mobInteract` takes an iron ingot on a damaged golem and
`CopperGolem.mobInteract` takes an empty hand while it holds an item or shears
on its antenna; both were missing from the client's interaction check, so the
click fell through to the item and to the off hand.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 21:07:56 +01:00
Ludovic MarieandClaude Opus 5.5 bc523faa36 nl: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:56 +01:00
Ludovic MarieandClaude Opus 5.5 f20336ac00 it: the 30 strings of main's Mods page, palette and toasts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:56 +01:00
Ludovic MarieandClaude Opus 5.5 9932cfea44 Merge main into #8302 (nl)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:56 +01:00
Ludovic MarieandClaude Opus 5.5 e42fb452ef Merge main into #8286 (it)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 21:07:56 +01:00
Kacper f24a23f68d Merge pull request #8029 from horizon-rust/perf/slow-tick-culprit
Dedicated server: a slow tick's line names whose packets or event took it
2026-11-03 21:06:44 +01:00
Kacper 06834efd1f Merge pull request #8516 from horizon-rust/lr6/sign-in-glass
launcher: the sign-in gate in the glass look
2026-11-03 21:06:15 +01:00
Kacper d1bccfe524 Merge pull request #8514 from horizon-rust/lr6/dialog-backdrop
launcher: dialogs over the dimmed, blurred launcher, as the mockup's
2026-11-03 21:06:08 +01:00
Kacper 622c75eefb Merge pull request #8181 from Akirabane/fix/8174-flat-qualifier
Shader packs: a flat varying with centroid or sample is flat, and tests for the interpolation qualifiers
2026-11-03 21:05:00 +01:00
Kacper e48c04fafb Merge pull request #8043 from arismoko/v2/ses_01M6FN1T2FS6T4M8P7GFXJ6WTR-tp-pitch-clamp
Wrap teleport rotation like vanilla /tp
2026-11-03 21:04:01 +01:00
Kacper 7aa3911897 Merge pull request #8404 from MSedgeMC/fix/shulker-boarding-face
A shulker that boards a vehicle sits lid up
2026-11-03 21:03:53 +01:00
Kacper 568334b23a Merge pull request #8411 from MSedgeMC/fix/silent-mob-voice
A silent mob keeps its voice quiet
2026-11-03 21:03:45 +01:00
Kacper 94c76ed2ca Merge pull request #8489 from Akirabane/fix/vanilla-keys-mute-tempban
Server: /mute, /tempmute and /tempban answer with vanilla's messages where vanilla has them
2026-11-03 21:02:58 +01:00
Kacper f6a16f5584 Merge pull request #8226 from Akirabane/fix/8222-fishy-advance
Fonts: draw a glyph whose advance is fishy, as vanilla does
2026-11-03 21:02:49 +01:00
Kacper 8781b60ee0 Merge pull request #8196 from Akirabane/fix/8177-1d-images
Shader packs: 1D images and their samplers (image.* with one size)
2026-11-03 21:02:41 +01:00
Kacper 3940341834 Merge pull request #7969 from gigamans442/fix/glsl-array-declarators-20261102
Shader packs: keep comma-separated GLSL declarator types independent
2026-11-03 21:02:33 +01:00
GabrielNichols 012eaf84f0 Merge upstream/main into codex/native-cache-cleanup-8028
Keep upstream palette and locale fixes, preserving the native cache messages and safety behavior.
2026-11-03 17:00:43 -03:00
JoansitohandClaude Sonnet 5.5 299b9a9ba4 Keep boosted hearts across remove/re-add modifier batches (#8573)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 21:00:32 +01:00
JoansitohandClaude Sonnet 5.5 a3f4d04bfa Clamp health in set_modifier for every max_health change (#8573)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 21:00:32 +01:00
JoansitohandClaude Sonnet 5.5 c0407fa8b7 Clamp health to max_health when effect modifiers change (#8573)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 21:00:32 +01:00
Ludovic Marie c763fa21b0 Merge pull request #8076 from glitchsnake/fix/8054-dragons-breath-bottle
🤖 Agent: queued, verify and launcher green on 0657af35. Two fixes pushed: the client's glass bottle PASSes on a breath cloud again (the cloud's owner isn't synced, so BottleItem.use finds none client-side; the packet still goes), and the bottle now treats the cloud as gone exactly when vanilla does (age - 20 >= duration, tested at the last tick), after main's #8244 added Breath.victims.
2026-11-03 21:00:17 +01:00
Kacper da6d099fdc Merge pull request #8476 from razzo715/fix/end-exit-world-spawn
Leave the End near the world spawn when the player has no point of its own
2026-11-03 21:00:02 +01:00
Kacper af4f345dc6 Merge pull request #8407 from razzo715/fix/death-drop-offhand-first
A player's death drops the off hand before the armour
2026-11-03 20:59:51 +01:00
Kacper 698e368da9 Merge pull request #8457 from itarqos5/fix/double-name-tag-on-custom-named-players
fix(names): one name tag for a player a server has given a custom name
2026-11-03 20:57:45 +01:00
Kacper 5968865a17 Merge pull request #8199 from Akirabane/fix/parity-source-hashes-junction
Parity harnesses: name sources under a linked .local within the repository
2026-11-03 20:57:31 +01:00
CocofireHDandHermes 13698219ce Mobs: an allay answers an empty main hand only
`Allay.mobInteract` returns SUCCESS for a holding allay only when the click
came from an empty main hand; everything else is PASS so the held item is
still used. The client answered a flat true whenever the allay held anything,
which swallowed the click, and the server's take-back path ignored the hand.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 20:57:02 +01:00
Kacper 07961b4a5a Merge pull request #8179 from Akirabane/fix/8164-zombie-shield-case
server_knockback: put the half-shield case's zombie where Bob's shield always faces it
2026-11-03 20:56:47 +01:00
Kacper 65a0447f04 Merge pull request #8403 from k3yh/fix/warn-undecodable-pool
Warn when a template pool can't be read
2026-11-03 20:56:38 +01:00
degepieandClaude Opus 5.5 02205a31e0 Advancement predicates read a bare id as a minecraft: one
A data pack that writes an id, tag or registry key without a namespace
("panda", "#planks", "the_nether", "inventory_changed") never matched:
the predicates compared the JSON string literally. Vanilla reads them
through Identifier codecs, where a missing namespace is minecraft.

`full` qualifies the id wherever a predicate compares one: id_matches
(plain id and #tag), the location dimension, entity sub-predicate keys,
effect keys, the loot condition type, the trigger name, the inventory and
recipe indexes, and recipe_unlocked / changed_dimension. damage_source's
tags[].id is a holder set (TagPredicate) and goes through id_matches.
The entity predicate's short key aliases follow from the qualification;
the non-vanilla "type" alias is gone (vanilla 26.3 refuses that key).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 00:56:01 +05:00
Kacper 814d18d513 Merge pull request #8186 from Akirabane/docs/8173-aa-under-a-pack
Docs: a shader pack's post chain owns anti-aliasing
2026-11-03 20:55:39 +01:00
Kacper fdff9f3f03 Merge pull request #8470 from dontstopgorkingit/docs/improve-docs
docs: remove stale known issue about removed shader packs
2026-11-03 20:55:24 +01:00
Kacper 8d63b0b7ee Merge pull request #8480 from dontstopgorkingit/docs/worldgen
docs: improve world-generation documentation navigation
2026-11-03 20:55:11 +01:00
Kacper 47ab8fd5ae Merge pull request #8485 from dontstopgorkingit/docs/parity-perf
docs: polish parity, port-ledger, and benchmark docs
2026-11-03 20:55:03 +01:00
Kacper 7d3b25b68f Merge pull request #8482 from dontstopgorkingit/docs/mods-shaders
docs: refresh mods, modpacks and shaders docs
2026-11-03 20:54:52 +01:00
OpenAI Codex 6833688d8a Merge public main preserving material and RGB test modules
Co-Authored-By: Codex <[email protected]>
2026-11-03 14:53:12 -05:00
CocofireHDandHermes 710a2ad3a9 Mobs: an age-locked baby draws no happy villager particle
`AbstractHorse.handleEating` (and the llama and camel ones) gates both the age
up and the particle on `isBaby() && !isAgeLocked()`. The client's copy only
asked for `alive() && is_baby()`, so feeding an age-locked baby drew a particle
the server never agreed to.

The decision moves into `ages_on_food`, where the lock belongs.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 20:52:26 +01:00
MSedgeMC ddbda5917f port_map: Slot.mayPickup is the guest menu's gate for swap and throw too
The row named the pickup and quick-move paths; the number key, the off
hand's F and the drop click now go through the same `View::may_pickup`.
2026-11-03 19:51:50 +00:00
MSedgeMC 2666bd9170 test: the guest's swap and throw over a slot that refuses
A chest slot whose rules forbid the pickup, and binding-cursed armour in
the guest's own chest slot (survival against creative), reached through
`menu::click` - the path a `ServerboundContainerClickPacket` takes. Both
fail without the fix: the number key moved the stack into the hotbar and
the drop click threw it out.
2026-11-03 19:51:50 +00:00
MSedgeMC a2233c609e fix: a guest's number-key swap and drop click ask the slot first
`doClick`'s SWAP arm reads the slot's stack itself and puts it in the
hotbar (or, through `Inventory.getItem(40)`, the off hand), and its THROW
arm takes the stack through `Slot.safeTake`. Both therefore go through
`Slot.mayPickup`: a slot that withholds its stack - `ArmorSlot.mayPickup`
with a binding curse in survival, or a menu whose rules refuse - neither
hands it to a number key nor lets a drop click throw it out.

`lan::menu::swap` only checked `Slot.mayPlace` on each side, and the THROW
arm read the slot directly. The host applies both of those, so this was
the host's own authority rather than a client prediction.
2026-11-03 19:51:50 +00:00
valkdzxandClaude Opus 4.8 9ae15a3eac Elytra rocket boost: take the look vector from the float sine table
The firework glide boost in follow_own_player read the look direction from
super::view_vector (Rust f64 sin/cos), while the server derives the player's
rocket boost from getLookAngle()'s float sine table. travelFallFlying already
uses the table; this boost was the one path left on f64 trig, so boosting
under a rocket while gliding drifted the client off the server's position and
tripped the movement check. Use horizon_world::view_direction::view_vector
(the float table), matching the server and the rest of the glide. Covers the
remote path too, which now routes through follow_own_player.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-11-03 21:49:28 +02:00
TeiwazikandClaude Opus 5.5 faa8667704 Stop every sound when leaving a server
Leaving a multiplayer server goes from close_world straight to
leave_server, which never stopped the sounds: the biome's ambient loop
played on over the title screen until the next world. leave_server now
does what finish_close_world does for single player, as vanilla's
updateLevelInEngines(null) on Minecraft.disconnect: it clears the
ambience, lets the music manager go of its track and stops every sound.
A kick takes the same path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 20:49:25 +01:00
Ludovic Marie 4274948b50 Merge pull request #8640 from horizon-rust/fix/launcher-main-palette
🤖 Agent: fixes main's launcher build (palette now passes the wardrobe flag like the top bar) and the 30 strings 9 languages lacked; fmt, clippy -D warnings and 464+ launcher tests pass on the desktop.
2026-11-03 20:48:04 +01:00
CocofireHDandHermes 2ef3c9d5f2 Mobs: a zombie horse eats a red mushroom, other horses do not
`AbstractHorse.isFood` is the `#minecraft:horse_food` tag and `ZombieHorse`
overrides it with `#minecraft:zombie_horse_food`; the food table was shared by
both, so a zombie horse refused its mushroom and a red mushroom in hand fell
through to a horse's `handleEating` and healed it.

The table moves into `eating(species, item)`, which applies the per-subclass
tag rule and the eat sound gains ZombieHorse's own. A tamed skeleton horse now
eats horse food too, as it inherits that tag (an untamed one still passes).

Co-Authored-By: Hermes <[email protected]>
2026-11-03 20:46:30 +01:00
Ludovic MarieandClaude Opus 5.5 9ff63e6e9f launcher: fix main's build after the palette and Wardrobe merges crossed
glass_palette.rs called Page::in_top_bar() without the wardrobe flag #8569
added, so the palette now passes self.wardrobe_shown() like the top bar.
The bg, da, fi, he, hu, lt, no, ro and sk tables lacked the 30 strings the
mods page, palette and toasts added while those languages were landing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:42:34 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 2a2d59e505 Keep /tp rotation on every entity kind (rotation on the Entity trait)
/tp <entity> x y z <yaw> <pitch> set the rotation only on mobs and players.
Items, orbs, TNT, falling blocks, rockets, armor stands, boats, minecarts,
projectiles and tridents dropped the pitch (and several the yaw), so
/data get Rotation read [0, 0] where vanilla reads [90, 10].

Entity gets rotation() and set_rotation() (Entity.teleportSetPosition:
setYRot, setXRot clamped to -90..90, setOldRot). The kinds with no rotation
field gain one (pitch for armor stands and boats), /tp calls the trait
method for every kind, and the entity saves write the field.

Part of #8024

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:42:19 -05:00
hildlabs 85e7b3bfb5 Merge remote-tracking branch 'origin/main' into shader-option-sliders
# Conflicts:
#	docs/api/shaders.md
2026-11-03 20:40:47 +01:00
MSedgeMC 28497f72ae port_map: the culling-box rows say what each renderer grows
Two of them were filed as skips ("culling box only") and the illusioner's and
sniffer's were absent, so the ledger claimed Horizon needed nothing here.
2026-11-03 19:39:42 +00:00
MSedgeMC 132179414d test: pin the four culling-box growths and the box they build
An illusioner's box reaches 3.3 blocks either side of its position and a
happy ghast's drops to 2 below its feet, where the plain box reached 0.3 and
its own floor.
2026-11-03 19:39:42 +00:00
MSedgeMC 63c35fd546 fix: the culling box follows the renderer, four living kinds grow it
EntityRenderer.shouldRender culls with getBoundingBoxForCulling and its own
half-block inflate. Four renderers override it and Horizon culled every mob
with one plain box: IllusionerRenderer inflate(3, 0, 3) for the mirror images
it draws outside its own box, SnifferRenderer inflate(0.6),
HappyGhastRenderer setMinY(minY - getBbHeight() / 2) for the riders hanging
below it, and LivingEntityRenderer inflate(0.5) while a dragon head is worn.
The box is also taken at the frame's partial tick now, as
getInterpolatedBoundingBox does.
2026-11-03 19:39:42 +00:00
CocofireHDandHermes 425c842a51 Mobs: a turtle carrying an egg refuses its food
`Turtle.canFallInLove` is `super.canFallInLove() && !this.hasEgg()`, and
`Animal.mobInteract` only eats when `getAge() == 0 && canFallInLove()`. The
food gate only looked at age and the love timer, so an egg-carrying turtle ate
seagrass, entered love mode and played the heart particles.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 20:38:21 +01:00
GabrielNichols 60bbc4f278 launcher: complete missing palette and browser translations 2026-11-03 16:37:26 -03:00
GabrielNichols a283fd939b launcher: use wardrobe visibility when listing palette pages 2026-11-03 16:37:25 -03:00
HrafnaValkyrjaandClaude Sonnet 5.5 2282df048d Console commands run in the overworld, not the level the last tick left in place
A dedicated server's console source is bound to the overworld. Horizon ran a
console line in whichever level was in place, which after a tick with forced
chunks in the nether is the nether: summons, fills and selectors landed there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:34:46 -05:00
GabrielNichols 2fb4d8f7a3 fix(port-pack): reject empty and failed harness verdicts 2026-11-03 16:34:24 -03:00
itarqos5andClaude Opus 5 703ab70218 feat(import): a game build dropped on the window is imported
The launcher could already install a `horizon-client` of your own beside
the releases (`build_import`), to try a merged change before the next
Nightly, but only through the Versions page's file picker or the
`import-build` command. Dropping the program on the window answered
"horizon-client.exe can't be imported: drop a .mrpack, a .zip or a
.hshader", which is the one file the window would not take.

It now takes it. `Dropped::Build` covers the program itself, a release
archive and a GitHub Actions artifact -- a zip around the release's own
archive, which `read_program` already looks into. An `.exe`, `.gz` or
`.tgz` is taken on its extension unread, so `build_import` is the one to
say why a file by that name is not a game, which is a better answer than
"nothing in it that Horizon reads". A file with no extension (a Linux or
macOS build) and a zip nothing else claims are read and checked through
the new `build_import::holds_game`, last, because that reads the whole
program.

The drop starts the same job the picker does: `start_build_import` is
split out of `import_build` so there is one path, one `Msg::Imported`
and one guard against a second import or a removal running at the same
time.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 19:34:08 +00:00
Ludovic MarieandClaude Opus 5.5 6e2d33a267 CI: verify on our runners sees no GPU, as on GitHub's
The desktop's checks runners have Mesa's software Vulkan (for parity), so verify ran GPU tests there that return
early on GitHub's runners, and one of them flakes on lavapipe (#8627): two of three runs on ludodesktop-checks-2
failed. WGPU_BACKEND=dx12 (no such backend on Linux) gives the tests no adapter there too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:32:38 +01:00
JoansitohandClaude Sonnet 5.5 80aece6be0 Fix Space re-triggering a focused button after clicking a text field (#8521)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 20:32:30 +01:00
Ludovic Marie 9697aaf14d Merge pull request #8347 from Teiwazik/shader/displacement-shadow
🤖 Agent: queued, verify and launcher green on 47c26bc0 (own change is the last commit; #8203/#8258 already merged). One gap: the new test builds the grid shadow shader only for a pack without a vertex stage, so the DISPLACE_PACK branch (the material module's `vertex` called from the shadow grid) is checked only by reading compose, not by a naga validation.
2026-11-03 20:29:40 +01:00
Ludovic MarieandClaude Opus 5.5 b8a348f56d CI: playhorizon's job hook keeps a checkout's .git under 2 GB and a day of runner logs
12 light runners' checkouts grew 2.8 GB of packs and 1.3 GB of diagnostic logs each in an hour: 46 GB of the disk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:28:44 +01:00
Kacpherek a7274ef833 Keep far terrain joined to the ground at every cell width
Far cells hung in the air: crowns over air, slabs of snow, sheets that
the fog turned pale. Three sources, all now joined to the ground:

- Reduced columns drew a height only where most of the footprint held a
  block, so trunks (one column of 16 or 256) vanished under the crowns
  they hold up. A height is now drawn where any column holds a block,
  in the material most of them hold: what touches the ground in the
  chunk touches it at every width.
- Seed-estimated trees in wide cells drew a crown with no trunk, one
  block or more over the ground. A cell's own tree now stands on a
  trunk and a crown from a neighbouring trunk reaches the ground.
- Wide seed cells are one point of the terrain: an overhang's lip or a
  cave roof stood for the whole cell, and the aquifer-less sample put
  water in caves under sea level. Under the top solid span such a
  column is now ground.

On "New World (1)", 47 tiles a level around the player: floating
components per level 1..6 went from 24, 326, 325, 43, 150, 213 to
0, 0, 1, 0, 0, 0 (the one left floats in the saved chunk itself).
2026-11-03 20:28:39 +01:00
Kacpherek fd7962f451 Count floating far-terrain cells per level on a real save
An ignored census test samples the tiles each far level draws around a
camera, from saved chunks and the seed as the far sampler gives them,
and counts components of drawn cells that touch neither the world's
bottom nor the tile's halo.
2026-11-03 20:28:39 +01:00
GabrielNichols c217b00548 launcher: cover cache messages in all current launcher locales 2026-11-03 16:28:22 -03:00
GabrielNichols 78dd8d2032 launcher: translate cache cleanup messages for added Hebrew locale 2026-11-03 16:26:48 -03:00
Ludovic Marie d84eb46214 Merge pull request #8509 from horizon-rust/feat/launcher-glass-instance-defaults
🤖 Agent: a new instance now opens named "My Horizon" (the mockup's defaultName) and numbers a taken default name, so Create no longer fails with "An instance needs a name."; stacked on #8499, land after it.
2026-11-03 20:26:08 +01:00
Ludovic MarieandClaude Opus 5.5 c961f3c5cb Merge main into fix/8217-powder-snow-entity-particles
main ticks orbs and primed TNT in join order (ordered_tick.rs, tick_one_tnt): the
powder-snow snowflake calls move there, after each one's move as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:22:55 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 55d3014458 Add the player's dimension to GET /api/v1/players
The status of each online player (server-status, and /api/v1/players built on it) already
carries the position; it now also carries the dimension the player is in, for example
minecraft:the_nether. The ROUTES text and the generated reference name it, and
tools/server_admin_e2e.py checks the dimension and the three coordinates on a real server.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:22:41 -05:00
GabrielNichols 325f338203 Merge upstream/main into codex/native-cache-cleanup-8028
Preserve current launcher changes and translations alongside safe native cache cleanup.
2026-11-03 16:19:41 -03:00
Ludovic Marie 801c0e3947 Merge pull request #8569 from horizon-rust/feat/launcher-shop-gate
🤖 Agent: with the cosmetics switch off by default, the Wardrobe entry used to hide even when the service opened the claim window; it now follows GET /v1/shop (and the account's kept preview answer), and with no window set it stays hidden as before. Also fills main's 9 missing strings in 9 languages, which made the launcher's i18n test fail on main.
2026-11-03 20:17:06 +01:00
Ludovic MarieandClaude Opus 5.5 0e98e286f7 Launcher: the Shop tab, the founder set to claim for free while its window is open
The Wardrobe page gets Wardrobe | Shop tabs when the cosmetics service shows the
Shop. The Shop has the founder set: when it can be claimed until, the time left, one
Claim button, the four items on cards (Free, Owned, Equipped, Soon), and every state
the mockups list: signed out, loading, offline, service down, claiming, claimed,
owned, not open yet, a preview for one account, closed (the items are gone; owned
ones stay), the claim failing. Equip stays in the Wardrobe. No price anywhere.

HORIZON_SHOP_STATE=<state> previews each one in development builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:14:58 +01:00
itarqos5andClaude Opus 5 49886f7154 feat(lod): far terrain a zoom magnifies is planned finer
`Plan::visit`'s falloff keeps a far tile's cells roughly the same size on
screen, which silently assumes the field of view never changes. A
spyglass takes a tenth of it, and the zoom mod as much again: the same
tile then covers many times more pixels, so its cells look as coarse as
a tile ten times nearer would. Looking through a spyglass at the horizon
showed exactly the blocky cells it was given for an unzoomed screen.

`ZoomAim` carries what the plan needs to answer that: the view
direction, the cone the narrowed view covers, and how much finer to go.
Tiles inside the cone split further; every other tile keeps the plan it
would have had, tile for tile.

The cone is the point. Lifting the whole circle to a tenth of the cell
size asks for about a hundred times the tiles, which at the 4078 tiles
and ~1500 quads a tile measured at `lodDistance` 256 is gigabytes of
vertices. `MAX_ZOOM_BOOST` caps it at three times finer as well, so the
worst case is roughly 45% more far tiles while the zoom is held, given
back when it is released.

Reads the field of view actually in use rather than any one zoom, so it
covers all three: the spyglass (`getFieldOfViewModifier` while
`isScoping`), the zoom mod (`native_zoom`) and any mod that narrows the
view through `native_compute_fov`. The yaw is rounded to five degrees
before it reaches the plan, and the cone widened by as much, so turning
the mouse does not rebuild the quadtree every frame; the aim is part of
`Lod::update`'s area, so a zoom starting or ending replans exactly once.

The `lodZoomDetail` extra switches it off. It does nothing unless far
terrain is on and the view is actually zoomed, so an unzoomed frame
plans as it always did.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 19:13:40 +00:00
CorbonatandCodex b87aee2af6 Adapt glint test quad to the merged model fields
Use upstream's neutral light, color, AO, render type and shade defaults in the generated glint fixture. Preserve its geometry, UVs and assertions.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-03 22:13:07 +03:00
Ludovic Marie d913536418 Merge pull request #8487 from horizon-rust/feat/launcher-glass-toasts
🤖 Agent: toasts as the mockup's say; a single line that any handler can set, drawn by the 80 ms drain, so there is no new per-frame work.
2026-11-03 20:12:52 +01:00
AkirabaneandClaude Sonnet 5.5 dd762d48ff Commands: /execute on owner no longer finds the guest in place when the owner is not in the world
`Game::target_with_uuid` answered `Target::Player` for the level's own player
UUID. During a guest's turn the player in place is that guest, so a wolf
whose owner is the world's player (and not among the players online, for
example a single-player world moved to a dedicated server) made
`execute as <wolf> on owner run give @s ...` act on whoever ran the command.

Vanilla's `on owner` is `OwnableEntity.getOwner`, which resolves the stored
UUID through the level (`EntityReference.getLivingEntity`, then the level's
UUID lookup): an owner who is not in the level gives no entity. The player in
place is now the acting guest's UUID during a guest's turn and the level's
player otherwise. An owner who is online as another guest was already found
first by `target_by_uuid`.

Fixes #8488

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 20:11:23 +01:00
Ludovic MarieandClaude Opus 5.5 0ecf7783f6 CI: the desktop takes the pull requests ending in 0 or 1; main's pushes stay on GitHub
Three runners give ~180 runner-minutes an hour against ~100 checks runs an hour (21 of them main's pushes, which also
save the Rust cache GitHub's pull request runs read): a fifth of the pull requests fills them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 20:07:55 +01:00
degepieandClaude Opus 5.5 36b6b3e935 Thrown snowballs, eggs and pearls and bucketed mobs fire their advancement triggers
A player's snowball, egg or ender pearl that hurts a mob (0 damage
included, as LivingEntity.hurtServer reports it) now credits the hit to
the thrower and fires player_hurt_entity with the projectile as the
direct entity, as the content-mod throwable arm already did. Scooping a
fish, axolotl or tadpole into a water bucket now fires
player_interacted_with_entity with the water bucket and the mob, as
ServerGamePacketListenerImpl.handleInteract does after
Bucketable.bucketMobPickup succeeds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UE3PMKbnTcxfBSeT5uQWCK
2026-11-04 00:06:36 +05:00
Ludovic Marie 8dbbde4350 Merge pull request #8359 from kacpherek/perf/render-bundle
🤖 Agent: queued whole, verify and launcher green on 94cc6490. One gap left for later: nothing checks that the WGSL packed_corner decodes a record to the same vertex as Rust's packed_vertex; the new mesher/packed.rs tests only cover the Rust side.
2026-11-03 20:03:31 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 933a5ef900 Add Føroyskt (fo_fo) game translation
Bundles Horizon's own Føroyskt strings so fo_fo players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 20:03:07 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 7f02471f16 Add Føroyskt (fo) launcher translation support
Registers Føroyskt as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 20:02:18 +01:00
MegaBytesMe 4f1704263f feat(windows): add native ARM64 build support (#8247) 2026-11-03 19:02:08 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 9489b8ea55 Sync launcher tables with the newest strings
These tables were generated before the latest strings landed, so the
launcher completeness test fails on main and on every PR. Add the
missing translations.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 20:02:00 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 39410d1e7e Add Чӑвашла (cv_cu) game translation
Bundles Horizon's own Чӑвашла strings so cv_cu players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:58:42 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 0985acf94d Add Чӑвашла (cv) launcher translation support
Registers Чӑвашла as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:57:51 +01:00
Ludovic Marie 49c3220312 Merge pull request #8466 from horizon-rust/feat/launcher-glass-palette
🤖 Agent: the ⌘K palette; Play only runs when the instance's Play button would, otherwise it opens the instance's page, so it never starts an unprepared game.
2026-11-03 19:57:38 +01:00
Ludovic Marie 5b492e718d Merge pull request #8215 from janibert1/player-entity-id
🤖 Agent: entity_id now comes from native_acting_entity (falls back to the guest list when lan_acting_entity is unset, as the mount hooks do), and a helper fragment gives the field an API number so a mod can require it instead of reading 0 on an older host.
2026-11-03 19:57:33 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free fc2cf9fe0c Add Brezhoneg (br_fr) game translation
Bundles Horizon's own Brezhoneg strings so br_fr players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:55:51 +01:00
Ludovic MarieandClaude Opus 5.5 ecdc236ba7 CI: 12 light runners on playhorizon
overlap note fetches up to 40 other pull requests' heads and takes 1-8 minutes there; the bursts of pushes left 350
bot jobs waiting for 8 runners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:55:07 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 6790d55665 Add Brezhoneg (br) launcher translation support
Registers Brezhoneg as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:55:00 +01:00
MSedgeMC 621cb56d98 port_map: Player.getVoicePitch names player_voice_pitch 2026-11-03 18:54:40 +00:00
MSedgeMC abd5f98688 test: the player's own voice pitch is one
The rule is what a new call site gets wrong, so it is pinned: the helper answers
1.0, and two calls answer the same, which is what says it cannot be wearing a
draw of the level random behind a constant name.

The two call sites are not covered: they sit inside Game's packet handlers and
this crate has no seam that builds a Game.
2026-11-03 18:54:40 +00:00
MSedgeMC e4a521e27e fix: a player's own hurt and death sounds are not pitched
LivingEntity.getVoicePitch jitters every voice by +-0.2 and raises a baby by
1.5; Player overrides it with a flat one:

  public float getVoicePitch();
     0: fconst_1
     1: freturn

So both sounds this client plays for its own player - the hurt sound from
handleDamageEvent and the death sound from handleEntityEvent 3 - belong at pitch
1.0. They were played at 1.0 + (random.nextFloat() - random.nextFloat()) * 0.2,
which is a mob's pitch: the sound came out up to a fifth off for the one player
who cannot hear the server's copy (the server's packet reaches everyone else at
1.0), and each event also drew two floats from the client's level random that
vanilla never draws, shifting every random thing the client does afterwards.

player_voice_pitch() now holds the rule, with the bytecode in its doc comment,
and the stale comment that claimed the +-0.2 walk is corrected.
2026-11-03 18:54:40 +00:00
Ludovic Marie 588c6355e0 Merge pull request #8235 from itarqos5/perf/lod-sampler-threads
🤖 Agent: 8 cores now give 5 samplers and 2 meshers (was 4/3); samplers stay behind_server so ticks and frames keep priority, but steady-state far remeshing on 8-12 thread machines has fewer threads, measured on one 12-thread machine only.
2026-11-03 19:54:38 +01:00
HrafnaValkyrja 1f9dbebe66 Merge remote-tracking branch 'origin/main' into feat/ctl-schema 2026-11-03 13:54:00 -05:00
Ludovic Marie dc3a18c5f9 Merge pull request #8358 from HrafnaValkyrja/feat/admin-mods-list
🤖 Agent: the fields read match what launcher/src/native_mods.rs writes to native-mods.json (base, horizon, hooks, target, mods[id, version, sha256]); no local path is returned. Merged main after #8248 (both edited the API reference).
2026-11-03 19:53:40 +01:00
Ludovic Marie 94d01a9c67 Merge pull request #8288 from HrafnaValkyrja/fix/tick-order-orbs-tnt-falling
🤖 Agent: I replaced the per-entity rescan of the orb/TNT/falling lists (quadratic per tick in an XP farm or a TNT cannon) with one sort per run plus a binary search by join number; same order. Parity's mob_ai bee_hive_rain miss is in the client-lib probe, which holds no game/ code, so not this PR: rerun once.
2026-11-03 19:53:35 +01:00
Ludovic Marie 979f799e9f Merge pull request #8276 from Joansitoh/fix/8265-remote-arrow-particles
🤖 Agent: checked in the 26.3 jar: AbstractArrow.tick adds the bubbles after applyInertia (motion x0.6) at pos - motion*0.25, and the crit trail from the start-of-tick motion; Projectile::arrow_trail already did both, it just had no caller on a client.
2026-11-03 19:53:31 +01:00
Ludovic Marie 9d6a5ad056 Merge pull request #8219 from TiggerTakkyTTT/fix/shutdown-after-extended-session
🤖 Agent: abort_generation now also runs on the server-thread and remote close paths; it leaves Save jobs queued, and leave_server builds a new Streaming afterwards, so the aborted flag can't leak into the next world.
2026-11-03 19:53:26 +01:00
Ludovic Marie 9a08507259 Merge pull request #8134 from arslanarm/shaderpacks/higher-shadowcolor
🤖 Agent: shadowcolor2–7 only exist when the pack names HIGHER_SHADOWCOLOR (the 0b11 mask stays otherwise), so packs without it get the same two buffers; clear_rest now opens one render pass per cleared buffer, which is one or two extra empty passes a frame for ordinary packs, a cost worth merging back into one pass when the formats fit the bytes-per-sample limit.
2026-11-03 19:53:22 +01:00
Ludovic Marie dba9f2d336 Merge pull request #8252 from HrafnaValkyrja/feat/pterodactyl-egg
🤖 Agent: roadmap item server-panels. I fixed the online-mode setting's text: it said Horizon's client joins offline servers only, out of date since Microsoft sign-in. The egg is not tested on a live panel.
2026-11-03 19:53:18 +01:00
Ludovic Marie 0d3e6a2ce1 Merge pull request #8281 from HrafnaValkyrja/feat/install-verify-signature
🤖 Agent: checked the key against release-keys.txt, the Ed25519 SPKI DER prefix, and the message (horizon release <tag>, nightly channel for nightly-*). I replaced the test's GNU sed -i, which fails on macOS with Homebrew OpenSSL.
2026-11-03 19:53:13 +01:00
Ludovic Marie 04fc448cf0 Merge pull request #8282 from HrafnaValkyrja/feat/server-import-resources
🤖 Agent: I made the destination follow the server's lookup order ([engine] resources, then an existing resources/, then the installer's game-files), else an import could land where the next start never looks; version from VERSION_ID.
2026-11-03 19:53:09 +01:00
Ludovic Marie 7357ba25ac Merge pull request #8284 from HrafnaValkyrja/fix/launcher-version-constant
🤖 Agent: GAME now is horizon_core::version::VERSION_ID, which port_regen updates; I dropped the regex-over-browser.rs Python test, which tested the source's words.
2026-11-03 19:53:05 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b71bbb2e02 Add Башҡортса (ba_ru) game translation
Bundles Horizon's own Башҡортса strings so ba_ru players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:53:01 +01:00
Ludovic Marie 57d42f49b6 Merge pull request #8294 from HrafnaValkyrja/feat/ctl-api-version
🤖 Agent: nothing found; --api checks hello once per connection and refuses before the caller's command reaches the game (exit 5).
2026-11-03 19:53:01 +01:00
Ludovic Marie 5dc441f966 Merge pull request #8316 from HrafnaValkyrja/fix/explosion-push-always-sent
🤖 Agent: ServerExplosion puts every hurt non-spectator player in hitPlayers with the knockback regardless of hurtMarked; the explode packet is sent before the tracker's motion packet, so the client ends on the server velocity.
2026-11-03 19:52:57 +01:00
Ludovic Marie 13fa32fbea Merge pull request #8308 from HrafnaValkyrja/fix/mob-held-weapon-damage
🤖 Agent: Mob.doHurtTarget reads getAttributeValue(ATTACK_DAMAGE), which includes the held item's modifiers; no other path added them before, so no double count (vindicator + iron axe = 13 on Normal, as the wiki says).
2026-11-03 19:52:53 +01:00
Ludovic Marie 64c23f7253 Merge pull request #8363 from Joansitoh/fix/8277-item-slot-gate
🤖 Agent: matches LivingEntity.createEquipmentSlotAccess (filter on every slot but head/mainhand/offhand) and ItemStack.toString ("count item"). Body and saddle slots on mobs are still ungated: the rest of #8277.
2026-11-03 19:52:49 +01:00
Ludovic MarieandClaude Opus 5.5 6291efd685 Merge main; the hook catalog test knows chat.rs's free hook point
native_player_chat is a free function in horizon_client_lib::lan::hub::chat, like the
menu, breathing and motion hooks: catalog_matches_hook_points now reads that file too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:52:47 +01:00
Ludovic Marie 82a92ee8c5 Merge pull request #8350 from Joansitoh/fix/8279-mob-air-frozen-meta
🤖 Agent: vanilla sends DATA_TICKS_FROZEN whenever it differs from 0 (negative via TicksFrozen NBT), and the axolotl's air default is its 6000 max. The unit test returns early without .local, so CI's verify does not exercise it.
2026-11-03 19:52:44 +01:00
Ludovic Marie 5344a91630 Merge pull request #8275 from Joansitoh/fix/8260-disc-fragment-tooltip
🤖 Agent: checked in the 26.3 jar: DiscFragmentItem.appendHoverText adds descriptionId + ".desc" in GRAY, not gated on TooltipDisplay, before the component lines, which is where detail_lines puts it.
2026-11-03 19:52:40 +01:00
Ludovic MarieandClaude Opus 5.5 6e9da7a0aa Merge origin/main into status replies
Keeps both live settings beside each other: hide-online-players (#8144) and
status replies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:52:34 +01:00
MSedgeMC b78f970e81 port_map: Fireball.setItem and readAdditionalSaveData are ported
Fireball.setItem is projectile.rs::Projectile::set_item, and
Fireball.readAdditionalSaveData is entity_nbt.rs::fireball_from_nbt, which now
reads `Item`. ThrownItemRenderer's two rows say a fireball's stack is drawn as
the item model instead of a sprite. Fireball.getSlot stays missing: nothing in
Horizon reads an entity's SlotAccess yet, so `/loot insert` has no path to a
fireball's slot even though the item itself is there.
2026-11-03 18:52:12 +00:00
MSedgeMC ae76563090 fix: a fireball draws as the item it carries, on the host and for a guest
ThrownItemRenderer draws ItemSupplier.getItem as the item model in the GROUND
context at 3.0 for a large fireball and 0.75 for a small one, full bright; the
item is DATA_ITEM_STACK, which rides ClientboundSetEntityData at index 8 (the
add-entity packet carries only an int `data`, an owner id for a projectile).
Horizon drew every fireball from the hardcoded `item/fire_charge` sprite and
never told a guest the item at all.

The stack the fireball holds now goes through resolve_item and submit_item_world
at the renderer's scale, and the host sends a non-default item as
DATA_ITEM_STACK, which the guest applies through set_item.
2026-11-03 18:52:12 +00:00
MSedgeMC 32fe06b0b3 fix: a fireball keeps the item it is drawn as
Fireball.setItem stores the stack in DATA_ITEM_STACK: an empty one goes back
to the default fire charge, anything else is kept as a single item
(copyWithCount(1)). Fireball.readAdditionalSaveData reads `Item` through that
setter, and addAdditionalSaveData writes what getItem returns.

Horizon had no such field. fireball_from_nbt read no `Item` key at all, and
fireball_to_nbt wrote back whatever `Item` the compound it was handed carried,
so a fireball summoned or loaded only ever showed, saved and reported the item
in that raw compound, and `/data get` said what the compound said rather than
what the entity holds.

Projectile now carries `item`, set_item ports the setter, fireball_from_nbt
reads `Item` into it and fireball_to_nbt writes it, so the entity is the one
source of that item and a stale `Item` in the compound no longer shadows it.
2026-11-03 18:52:12 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 644a335044 Add Башҡортса (ba) launcher translation support
Registers Башҡортса as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:52:11 +01:00
Ludovic Marie 7768bf3f8c Merge remote-tracking branch 'origin/main' into HEAD 2026-11-03 19:52:08 +01:00
Ludovic MarieandClaude Opus 5.5 35a315344e Registry snapshot test: std::fs::File, the parent no longer imports it
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:51:45 +01:00
Ludovic MarieandClaude Opus 5.5 be5c477960 Merge origin/main into operator permission level
Keeps both live settings: hide-online-players (#8144) and the operator level.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:51:31 +01:00
Ludovic MarieandClaude Opus 5.5 03e1f2a6ec Merge main into feat/admin-mods-list
Docs: main's players row (with position) and its done single-dimension
restore, plus this branch's /api/v1/mods row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:50:58 +01:00
Ludovic MarieandClaude Opus 5.5 81c837f979 Merge origin/main into stopped-list-api
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:50:49 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 4ea8c48b36 Add isiZulu (zu_za) game translation
Bundles Horizon's own isiZulu strings so zu_za players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:49:38 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 7b24627544 Add isiZulu (zu) launcher translation support
Registers isiZulu as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:48:53 +01:00
MSedgeMC 5dea1cebb2 The ledger rows for a brute's home are ports
PiglinBruteAi.initMemories was listed missing: the memory is set in
Ctx::finalize and the brute now acts on it. The createIdleMovementBehaviors
note names the walk back and keeps the two behaviours still absent.
2026-11-03 18:48:52 +00:00
MSedgeMC 4795422517 Test the brute's walk home and the home a hit leaves alone
register_brute's goals ticked as ai_step ticks them, on a stone floor, with
the brute twenty-four blocks from its home: BruteStrollHome runs and its path
ends at the home block. Five blocks away, past the memory's hundred, and with
no home at all, nothing starts and no path is made. A hit from a mob that is
not in the world leaves a brute's home in place and still takes a piglin's
celebration spot.
2026-11-03 18:48:52 +00:00
MSedgeMC 5e7e5542b1 A piglin brute walks back to where it spawned
PiglinBruteAi.initMemories stores the brute's block position as the HOME
memory, and createIdleMovementBehaviors spends it on two behaviours:
StrollToPoi(HOME, 0.6F, 2, 100) and StrollAroundPoi(HOME, 0.6F, 5). The memory
was already set when a brute is finalized (extra.home and the brain mirror),
but nothing read it, so a brute that was led or knocked away from its post
stayed away.

register_brute now gives it BruteStrollHome ahead of the plain stroll: within
a hundred blocks of home and outside the ten blocks the stroll can reach, the
brute paths back to within two blocks of the memory. Inside that reach the
stroll keeps the brute wandering around it, which is what StrollAroundPoi does
around the same memory in vanilla.

A hit also no longer clears it. piglin_hurt erased extra.home unconditionally,
which is PiglinAi.wasHurtBy erasing CELEBRATE_LOCATION -- the field a piglin
uses for the spot it celebrates at. PiglinBruteAi.wasHurtBy erases nothing, so
the erase is now a piglin's alone.
2026-11-03 18:48:52 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free aa7b959b0d Add Yorùbá (yo_ng) game translation
Bundles Horizon's own Yorùbá strings so yo_ng players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:47:03 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 70d475eefc Add Yorùbá (yo) launcher translation support
Registers Yorùbá as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:46:19 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 0e0ae0bf03 Sync launcher tables with the newest strings
These ten tables were generated before the latest settings, native-mod
and instance strings landed, so the launcher completeness test fails on
main and on every PR. Add the missing translations.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:45:54 +01:00
MSedgeMC 2792705984 port_map: the seen-advancements packet and its server handler are ported
Three rows said the tab a player opens goes nowhere: the packet had no codec, the host kept no tab,
and the handler was absent. They name the codec and the hub arm that do it now.
2026-11-03 18:43:48 +00:00
MSedgeMC 19a222e33e test: pin the advancement tab a guest opens and the answer it gets
The protocol test reads a vanilla-shaped OPENED_TAB payload and a CLOSED_SCREEN one, checks that
neither decodes as `Unknown` now, that a packet too short for its tab is malformed, and that the
clientbound tab round-trips with its absence flag.

The hub test builds a two-advancement data folder (a root with a display, and a task hanging off
it), sends the packets through `Hub::drain_packets`, and reads what the guest is sent: the root a
client opens is the tab the server keeps and is sent back to it, opening it again sends nothing, a
tab that is not a root clears the selection and is answered with none, an unknown id changes
nothing, and a closed screen keeps the tab.

Without the handler the guest is sent no tab at all and the host keeps none.
2026-11-03 18:43:48 +00:00
MSedgeMC 785f305cd2 feat: keep and answer the advancement tab a player opens
ServerboundSeenAdvancementsPacket is a typed packet now (action, then the tab only for
OPENED_TAB; a closed screen is the action alone), and ClientboundSelectAdvancementsTabPacket
exists on the clientbound side.

ServerGamePacketListenerImpl.handleSeenAdvancements: an OPENED_TAB names an advancement the host
looks up in its own tree; PlayerAdvancements.setSelectedTab keeps it only when it is a root with a
display, and clears the tab for anything else. Whenever the tab changed, the player is sent the tab
the server keeps, null when it keeps none - which is what closes the client's screen on a tab a
player may not have.

Horizon host-side had nothing: the opcode arrived as `Unknown` with no handler, so a player's tab
was dropped and its screen never corrected. `Guest::selected_tab` keeps it and
`ServerAdvancements::selectable` answers the root-with-display question from the same tree the
advancements packets are built from.
2026-11-03 18:43:48 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d9aa85b6a9 Add ייִדיש (yi_de) game translation
Bundles Horizon's own ייִדיש strings so yi_de players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:42:54 +01:00
Ludovic Marie a74a9ff2ba Merge pull request #8443 from horizon-rust/feat/launcher-glass-mods
🤖 Agent: the Mods page in the mockup's layout; the kinds stay as tabs (Modrinth and shader packs would vanish otherwise), the placeholder only counts a fully listed registry.
2026-11-03 19:42:46 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 7066159406 Add ייִדיש (yi) launcher translation support
Registers ייִדיש as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:42:10 +01:00
Ludovic MarieandClaude Opus 5.5 767de40a17 launcher: stopped servers say their mode in the Servers list, as the mockup's
A stopped server's row read "Stopped"; the mockup reads "Creative · stopped". The mode
comes from the open server's loaded settings, else from each folder's server.toml
([world] game_mode), read once per list load.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:40:51 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free ae089e970f Add Татарча (tt_ru) game translation
Bundles Horizon's own Татарча strings so tt_ru players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:39:59 +01:00
mattiaemoloandDeepSeek V4.1 Flash Free ae6600f7a5 fix(lan): a spectator no longer opens a container's lid
ChestBlockEntity.startOpen returns early for a spectator, and so does stopOpen (BarrelBlockEntity and ShulkerBoxBlockEntity the same), so a spectator never joins ContainerOpenersCounter. The guest open path counted one anyway: the lid opened, the open sound played for everyone around, and the close path then skipped the spectator, leaving the lid stuck open. Count an opener only for a player who is not a spectator.

tools/lan_e2e.py gains a spectator-container check: the menu opens, the lid stays shut and neither the open nor the close sound is heard, on both sides.

Fixes #8517

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:39:32 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2c01b2f5f5 Add Татарча (tt) launcher translation support
Registers Татарча as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:39:04 +01:00
Ludovic MarieandClaude Opus 5.5 64c8c8b399 CI: a default Rust toolchain for verify's Python tests on our runners
The desktop's checks runners have their own rustup homes with no default toolchain, and some Python tests run a
bare rustc before the Rust step installs one (25 tests failed on ludodesktop-checks-3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:38:52 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 5d3593c1b3 Add Latina (la_la) game translation
Bundles Horizon's own Latina strings so la_la players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:35:50 +01:00
Ludovic MarieandClaude Opus 5.5 bfe0be195c CI: run every job that can on our runners
The bots move to a shared horizon-light label (8 light runners on playhorizon, from 2), and triage command, mojang
republish and nightly build's answer join them. checks' verify and launcher, mod-registry, telemetry-server and the
pack bench run on the desktop's isolated horizon-checks runners, forks included: main's pushes and the pull requests
whose number ends in 0-2 by default (GitHub's pool keeps the others, so both work at once), every one with
SELF_HOSTED_CI=all, none with light (desktop paused) or off (everything back to GitHub).

Jobs with a secret or a token that can push, publish or start workflows stay on GitHub: tests/test_ci_runners.py
pins it. playhorizon's job hook now also drops a checkout's .git past 4 GB: each light runner's held 6822 packs, 50 GB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:34:17 +01:00
MSedgeMC e4db5de23c port_map: ExperienceOrbRenderer.getBlockLightLevel names the orb's rule
The submit rows said the billboard was inline; the light the billboard is
drawn with had no row at all.
2026-11-03 18:33:34 +00:00
MSedgeMC 8e935b200d test: pin the orb's light, its probe and its quad
A dark cell packs block light 7 where the old code packed 10 in both nibbles,
torchlight 9 clamps to 15, and daylight keeps the sky byte; the quad's four
corners resolve to a quarter of its height below the orb.
2026-11-03 18:33:34 +00:00
MSedgeMC 26261d9643 fix: an experience orb is lit seven levels above its block, and its sprite hangs right
ExperienceOrbRenderer.getBlockLightLevel is the level's block light plus
seven, clamped, with the sky light left alone; the pass raised both nibbles
to a floor of 10 instead. submit's quad runs from (-0.5, -0.25) to
(0.5, 0.75) under a 0.3 scale after translate(0, 0.1, 0), so the sprite is a
whole block tall about the orb and hangs a quarter of it below; Horizon drew
a symmetric 0.3 square 0.075 too low. The probe is the orb's eye, half its
box above its feet.
2026-11-03 18:33:34 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free f9b6a2a820 Add Latina (la) launcher translation support
Registers Latina as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:33:19 +01:00
gorkandClaude Code 23a2db75b0 ci: add concurrency guards and stagger scheduled claim run
Add PR-scoped cancellation to mod-registry and telemetry-server, per-event
concurrency to pr-labels and triage-command, and move claim-command off minute 23.

Co-Authored-By: Claude Code <[email protected]>
2026-11-03 19:30:06 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 9c94f59e24 Seat heights of riders and vehicles follow the entity type table
Passenger attachments were known for a handful of mobs; zombies, endermen,
ghasts, cows, silverfish and others fell back to the box top, and values were
doubles where vanilla builds them from floats. Port the passengerAttachments
and ridingOffset values of EntityTypes (ghast and phantom offsets, wither
skeleton 0.875) and widen them from float as vanilla does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:29:53 -05:00
Ludovic MarieandClaude Opus 5.5 56ec4302d1 launcher: focused glass fields wear the mockup's focus ring
The mockup rings whatever has the keyboard (`.hzl :focus-visible`: 2 px of the accent's soft
shade), so a dialog opens with its name field ringed. The launcher only made a focused field a
little lighter. Every glass text field of its own (servers_page::field in the dark look, and the
wide Proxy and Game arguments fields) now draws the ring while focused. It sits inside the field's
edge with its corners, because GPUI has no outline and a field clips what lies outside it. Fields
inside a chip or the console line keep their container's look.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:28:54 +01:00
Ludovic Marie a4a52d4f63 Merge origin/main into fix/8051-reduced-debug-info
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/horizon-client/src/game/lan.rs
#	crates/horizon-client/src/game/remote.rs
#	crates/horizon-client/src/lan/hub.rs
2026-11-03 19:25:52 +01:00
SenjinandClaude Opus 5.5 68f626d9f6 HDR: an HDR Lighting switch, on by default; off, HDR shows SDR's picture
HDR does two jobs: an HDR canvas, and Horizon's look on it. Off, nothing in the world is
lifted, light sources, the sun and sunlight included, and the lighting passes don't run, so
HDR output matches SDR: the vanilla look on an HDR desktop, and a neutral base for packs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:24:21 +01:00
Ludovic MarieandClaude Opus 5.5 8835bf7537 Launcher: the 9 strings main's bg, da, fi, he, hu, lt, no, ro and sk tables lacked
The i18n test failed on main: those nine languages had none of the settings
and native-mods strings the others have.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:23:25 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 35c0142f89 Add Igbo (ig_ng) game translation
Bundles Horizon's own Igbo strings so ig_ng players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:22:29 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free f68b448ef1 Add Igbo (ig) launcher translation support
Registers Igbo as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:21:47 +01:00
martipopsandCodex GPT-6 cc66b6f8b6 Merge upstream main into launcher accounts
Preserve the local-server restriction for offline profiles while allowing authenticated Microsoft accounts to join external servers. Keep both translation additions and account regression tests.

Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-03 13:21:25 -05:00
Ludovic MarieandClaude Opus 5.5 a2ba9c1f4b launcher: the Multiplayer tab says who is online, as the mockup's
The mockup's Multiplayer rows start with a dot (green when the server answers) and say
"address · 3 of 10", or "address · Offline" with Join off. The launcher's rows said only the
address. Each saved server is now asked once for its players by the server-list status ping
the game's own Multiplayer list sends (telemetry::server_players, which the official server's
"N playing now" already used, through SRV, 3-second timeout), on the background executor.
One new string, "{online} of {max}", in the 16 languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:20:58 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 0c8be8e9f9 Only mobs and boats keep a leash tag
Vanilla only makes Mob and AbstractBoat Leashable; other kinds summoned with a leash
tag kept and saved it. Drop it on load. Part of #8024.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:20:15 -05:00
Ludovic Marie 33b996f7da Merge pull request #8236 from Joansitoh/fix/8223-riptide-spin-hit
🤖 Agent: pushed c7c48fe7: a ServerPlayer is client authoritative, so in the 26.3 jar aiStep does not travel on the server and checkAutoSpinAttack tests the current box only. The tick-long sweep would have hit mobs that vanilla's server passes through. Mobs only for now (no players, no armor stands).
2026-11-03 19:19:47 +01:00
Ludovic Marie 6ae9441043 Merge pull request #8231 from HrafnaValkyrja/fix/shader-constructor-argument-types
🤖 Agent: T(x) of an x already a T is the identity, so correct shaders are unchanged; only array and struct constructors of scalar or vector types are touched, and lines are kept for error spans. Pushed bbc4e8f6 adding the missing bvec4 to ELEMENTS.
2026-11-03 19:19:43 +01:00
Ludovic Marie 29f55881c4 Merge pull request #8126 from HrafnaValkyrja/fix/dimension-type-rules
🤖 Agent: checked in the 26.3 jar: Level.canHaveWeather is hasSkyLight && !hasCeiling && dimension != END, which the helper now answers for every weather rule. Pushed c93829b1 to put camera_rotation's doc comment back on camera_rotation.
2026-11-03 19:19:39 +01:00
Ludovic Marie c31d269d32 Merge pull request #8098 from Joansitoh/fix/8050-minecart-display
🤖 Agent: save/load matches AbstractMinecart in the 26.3 jar (DisplayState via BlockState.CODEC, DisplayOffset written only off getDefaultDisplayOffset). Pushed 60a1ee31 so the cart loop looks the display state up once per cart instead of twice (cull and draw). Remote carts still draw the kind's block until the entity-data half of #8050 lands.
2026-11-03 19:19:35 +01:00
Senjin cc345f396f End portal faces bind end_portal.png as a texture of their own 2026-11-03 19:19:33 +01:00
MSedgeMC bac2dbb5ad port_map: Parrot.getVoicePitch names voice_pitch 2026-11-03 18:19:29 +00:00
MSedgeMC 214535c9e7 test: a baby parrot's voice stays in the plain pitch range
The parrot is built from the test mob kind, so the test needs no extracted data
and runs everywhere: 64 draws of a baby parrot's voice pitch stay inside
0.8..=1.2 and average 1.0, where a baby chicken keeps LivingEntity's 1.5.
2026-11-03 18:19:29 +00:00
MSedgeMC a05ca96bc3 fix: a baby parrot keeps the plain voice pitch
Parrot.getVoicePitch is its own getPitch(random), the plain 1.0 +- 0.2 range,
whatever the parrot's age:

  public float getVoicePitch();
     0: aload_0
     1: getfield      #390  // Field random:Lnet/minecraft/util/RandomSource;
     4: invokestatic  #349  // Method getPitch:(Lnet/minecraft/util/RandomSource;)F
     7: freturn

  public static float getPitch(RandomSource);
     0: aload_0  1: nextFloat  6: aload_0  7: nextFloat  12: fsub
    13: ldc 0.2f  16: fmul  17: fconst_1  18: fadd  19: freturn

LivingEntity.getVoicePitch, which Mob::voice_pitch ports, returns 1.5 +- 0.2 for
any baby, so a baby parrot's ambient, hurt and death sounds were played a fifth
higher than vanilla's. The two draws are the same, so nothing else moves.
2026-11-03 18:19:29 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 79836dfb8c Add ʻŌlelo Hawaiʻi (haw_us) game translation
Bundles Horizon's own ʻŌlelo Hawaiʻi strings so haw_us players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:19:11 +01:00
MSedgeMC c0fa34e564 port_map: ShulkerBulletRenderer.getBlockLightLevel is the projectile pass
The row was missing while the pass lit a bullet by the room it flew through;
the note also names the two base-class rules the same code now carries.
2026-11-03 18:19:05 +00:00
Ludovic MarieandClaude Opus 5.5 eb1a4f91a4 fixup: the Wardrobe preview's claim says whether it is open
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:19:05 +01:00
MSedgeMC e2498f2bf3 test: pin the projectile light overrides and the eye probe
A shulker bullet and a fireball override the block light, a plain arrow does
not, and an ignited snowball does; an arrow in the top eighth of a block is
lit from the block above it while a wind charge keeps its feet (its entity
type declares no eye height).
2026-11-03 18:19:05 +00:00
MSedgeMC 4e1a240672 fix: a shulker bullet and a burning projectile draw full bright
EntityRenderer.getBlockLightLevel returns 15 for the shulker bullet's
renderer and for anything whose isOnFire is true, and getPackedLightCoords
samples the block the entity's light probe - its eye - is in, not the cell
under its feet. The projectile pass read the level's light at the feet for
every kind but the three fireballs, which it forced to 15 in both nibbles.
2026-11-03 18:19:04 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 201bca5d8a Add ʻŌlelo Hawaiʻi (haw) launcher translation support
Registers ʻŌlelo Hawaiʻi as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:18:23 +01:00
Ludovic MarieandClaude Opus 5.5 eda66d2df4 Launcher: the Wardrobe entry follows the cosmetics service's Shop, not the cosmetics switch
The founder set's Shop lives in the Wardrobe page, which the top bar only showed with the
cosmetics switch on (off by default). Opening the claim window would have shown players nothing.

The launcher now asks the cosmetics service GET /v1/shop at start and every 30 minutes (no
session, nothing about the player) and shows the Wardrobe entry when the set can be claimed now,
when the public window has dates, or when the selected account's own answer from its last visit
(kept on disk) shows it: a claim, or a preview the service grants that account. With no window
set, nothing changes. The switch still shows the page on its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:17:47 +01:00
Ludovic MarieandClaude Opus 5.5 0e77c0266c Merge main into #7054 again: keep main's shift-click cycling test beside the particle culling one
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:17:46 +01:00
Ludovic Marie 8279128508 Merge branch 'feat/launcher-glass-played' into feat/launcher-glass-offline-heads 2026-11-03 19:16:53 +01:00
Ludovic MarieandClaude Opus 5.5 816fb20331 launcher: translate the "on the official SMP" count
It was the one raw English string in Home's played line (dark and light).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:16:51 +01:00
Ludovic Marie dd6c0c122d Merge pull request #6399 from martipops/split/fresh-servers
🤖 Agent: narrowed to Ludovic's 2026-11-03 rule: an offline splitscreen guest follows P1 only to a server whose resolved addresses (after the SRV redirect) are all loopback/private/link-local; public servers and friends' invites refuse it on the profile page, pinned by a unit test.
2026-11-03 19:16:39 +01:00
Ludovic Marie ad0b2de014 Merge pull request #8148 from kacpherek/far/1-threads
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Utility QoS for the whole session put macOS far terrain on the efficiency cores for good (Kacper's own finding on #5916). I added his step-back from 6f45ae4278: far threads stay behind only while Lod::set_near_loading says the near terrain loads. Linux is unchanged, since an unprivileged thread can't raise itself again.
2026-11-03 19:16:34 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3deec8af4e Add Esperanto (eo_uy) game translation
Bundles Horizon's own Esperanto strings so eo_uy players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:16:33 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free cc57fd06c8 Add Esperanto (eo) launcher translation support
Registers Esperanto as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:15:19 +01:00
Ludovic MarieandClaude Opus 5.5 0334e50120 launcher: offline names wear a face in the profile chip and menu (dark)
As the mockup's chip and profile menu (Player46008, pixelmoth): an offline name shows the face
of its own skin (skins/<name>.png), else of vanilla's default skin for its offline UUID
(OfflinePlayer:<name>), read from the prepared game files as a signed-in account's default
already is. It was a person icon. The head is read again when the name's skin file changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:14:49 +01:00
Ludovic Marie 5524e13d9c Merge pull request #8541 from horizon-rust/docs/macos-notary-not-dispo
🤖 Agent: docs only. The README no longer names the DISPO notary key, and it points out that keychain.sh's MACOS_NOTARY_ITEM default is still that key (script left to the signing owner).
2026-11-03 19:14:34 +01:00
Ludovic MarieandClaude Opus 5.5 3f9417521f RAM limit: step down before the limit on Windows too, never page the game out
On Windows a RAM limit was a hard working set limit (SetProcessWorkingSetSizeEx
with QUOTA_LIMITS_HARDWS_MAX_ENABLE): Windows kept the game under it by moving
what it used least to the page file, and the game only stepped down once it
was already slow and faulting hard. Players saw a low limit make the game slow
instead of making it hold less (#6651, #6652).

Windows now does what Linux and macOS do: once a second the game compares its
working set with the limit and, past nine tenths of it, turns far terrain off
and lowers the render distance in use until it fits. The system cap, the page
fault pressure, the frozen-game check and the frame clock that fed it are
gone. The limit stays opt-in (no launcher value, no limit), and
HORIZON_MEMORY_HARD_MB is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:14:29 +01:00
Federico TaglianiandCopilot App 85556f651b Accept Java-compatible streamed server packs
Co-authored-by: Copilot App <[email protected]>
2026-11-03 19:14:16 +01:00
MSedgeMC 2d66c0cccc port_map: the movement emission names its port
getMovementEmission had no row, so a lane reading the ledger saw the whole
rule as unported; it is movement_sounds on Entity and on the two mobs that
carry the override.
2026-11-03 18:13:52 +00:00
MSedgeMC 93bfa12f6f Test the squid, glow squid and bat that step silently
Mob::movement_emission on real types standing on stone: one step's walk from a
squid, a glow squid and a bat sends the minecraft:step game event with no
sound, a silverfish sends the event and no sound for the entity.silverfish.step
its own playStepSound names, a sheep walking the same block is heard at
entity.sheep.step volume 0.15 and pitch 1.0, and a shulker, whose emission is
NONE, sends nothing at all.

The test walks through movement_emission, the path Entity.move calls, and
fails without the three types in movement_sounds: the squid plays
block.stone.step at 0.15.
2026-11-03 18:13:52 +00:00
MSedgeMC 394871bcee A squid and a bat step without a sound
Entity.getMovementEmission decides which movement sounds a type makes, and
both callers of it were short a few types. Silverfish, endermites, guardians,
elder guardians and breezes were already answered with EVENTS, so their
footfalls and swim strokes stayed quiet; a squid, a glow squid and a bat also
answer EVENTS in the jar and were heard here, and a squid's beached flop
walked the stone under it at 0.15 of the block's step volume.

The list now holds all eight, and the walking path asks it too: movement
emission played the footstep regardless, so only step_sound's own silent arm
kept the five quiet, and a squid, which has no playStepSound override and so
takes the block's, was never in it. The step game event still follows for an
EVENTS type, as Entity.vibrationAndSoundEffectsFromBlock sends it.

Silverfish and endermite now name the step sound their own playStepSound asks
for (entity.silverfish.step, entity.endermite.step at 0.15) and are silenced by
the emission, which is where the jar silences them; the silent arm keeps the
types whose override is an empty body: the fish, the nautilus pair, allays,
bees, happy ghasts.
2026-11-03 18:13:52 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free c6e8d9fa43 Add Malti (mt_mt) game translation
Bundles Horizon's own Malti strings so mt_mt players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:13:46 +01:00
Ludovic MarieandClaude Opus 5.5 a8f5765c4c docs(macos): the notary profile uses team YYJU63HSD4's key, never DISPO's
packaging/macos/README.md named "App Store Connect API - GitHub CI
(DISPO)" as the key behind the horizon-notary profile. That key belongs
to another Apple team and must never be used for Horizon. The README now
says the profile comes from an App Store Connect API key of team
YYJU63HSD4 (the Developer ID's team), and that keychain.sh notary needs
MACOS_NOTARY_ITEM because its default item is still the other team's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:13:18 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 26207e4532 Add Malti (mt) launcher translation support
Registers Malti as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:12:59 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8a6a766e8a Add ಕನ್ನಡ (kn_in) game translation
Bundles Horizon's own ಕನ್ನಡ strings so kn_in players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:12:34 +01:00
hildlabsandClaude Opus 5.5 b5d039487b Shader API: a pack's options turn its [shadow] map off and pick its size
`[shadow] option` names the option the map is drawn while it is not 0: off,
there is no map, no shadow pass and `has_shadow` reads 0, as `[reflection]
option` does for the water mirror. `resolution_option` and `distance_option`
name an int option, or a choice whose values are numbers, whose value replaces
`resolution` or `distance`, checked against the same ranges; changing one
rebuilds the map, as any option change reloads the pack. The options sizing
the map need no `override`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:12:24 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 0f95bf2bd2 Add ಕನ್ನಡ (kn) launcher translation support
Registers ಕನ್ನಡ as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:12:05 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2c767855fa Add Кыргызча (ky_kg) game translation
Bundles Horizon's own Кыргызча strings so ky_kg players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:11:38 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 567bdff46b Add Кыргызча (ky) launcher translation support
Registers Кыргызча as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:10:52 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2fb0ab01e8 Add Lëtzebuergesch (lb_lu) game translation
Bundles Horizon's own Lëtzebuergesch strings so lb_lu players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:10:24 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 4fd3ea1b41 Add Lëtzebuergesch (lb) launcher translation support
Registers Lëtzebuergesch as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:09:41 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free f08f9e62e8 Add Gàidhlig (gd) launcher translation support
Registers Gàidhlig as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:09:07 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 53f77529f5 Add Gàidhlig (gd_gb) game translation
Bundles Horizon's own Gàidhlig strings so gd_gb players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 19:08:43 +01:00
Ludovic MarieandClaude Opus 5.5 0657af35cd Bottle dragon's breath until the cloud's wait-shifted end
#8244 made a breath cloud last until tickCount - waitTime >= duration
(dragon::breath_expired); BottleItem.use takes any living cloud, so the
bottle reads that rule too instead of age >= duration, which refused the
cloud's last 20 ticks. The tests' clouds get #8244's victims field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:07:42 +01:00
Ludovic MarieandClaude Opus 5.5 e87fd89b80 launcher: shortcut test starts from the long temp path
GitHub's Windows runners give TEMP as an 8.3 short path
(C:\Users\RUNNER~1\...), and the shell hands a shortcut's target back
expanded (C:\Users\runneradmin\...), so
installer::tests::the_shell_reads_the_target_of_the_shortcut_it_gets
failed on every launcher build since #7091 and no launcher release
went out after [email protected]. The test now builds its folder from the
canonical long path, as a real install folder is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:07:15 +01:00
Ludovic Marie 5d425e3f5d Merge origin/main into #8076 (Breath gained victims in #8244) 2026-11-03 19:07:10 +01:00
MSedgeMC 51dd497dce test: the ambient sampling a tick case also runs reads the default biome 2026-11-03 18:05:40 +00:00
Ludovic MarieandClaude Opus 5.5 1c4f710ee5 launcher: the light look in the redesign's layout
The glass layout now serves both appearances: light keeps the mockup's
pages, palette and toasts, with ink text on light plates over the dawn
sky, light status colours, and a lighter scrim behind the palette.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:05:07 +01:00
Ludovic MarieandClaude Opus 5.5 3a602c8ec3 launcher: "You've played for 41 hours! Last played 2 hours ago." (dark)
Home's played line and the Worlds tab's rows say times as the mockup does: whole hours
("41 hours", "1 hour", "25 min"), and when within a day "just now", "25 min ago",
"2 hours ago", then "yesterday", then the day ("Oct 31") instead of the ISO date. The light
look keeps its own wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:05:04 +01:00
Ludovic MarieandClaude Opus 5.5 28c5525946 fa: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:52 +01:00
Ludovic MarieandClaude Opus 5.5 11dc2f6c1a Merge main (with #8385's translations) into #8329 (fa)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:52 +01:00
Ludovic MarieandClaude Opus 5.5 cb10f23a6b el: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:51 +01:00
Ludovic MarieandClaude Opus 5.5 e958049eba Merge main (with #8385's translations) into #8327 (el)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:51 +01:00
Ludovic MarieandClaude Opus 5.5 b8d123941e sv: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:49 +01:00
Ludovic MarieandClaude Opus 5.5 fa158d1eb2 Merge main (with #8385's translations) into #8325 (sv)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:49 +01:00
Ludovic MarieandClaude Opus 5.5 b1b585dae3 cs: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:48 +01:00
Ludovic MarieandClaude Opus 5.5 55434edc35 Merge main (with #8385's translations) into #8323 (cs)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:48 +01:00
Ludovic MarieandClaude Opus 5.5 e9331ca4f3 ur: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:47 +01:00
Ludovic MarieandClaude Opus 5.5 bb53dfd0b1 Merge main (with #8385's translations) into #8317 (ur)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:47 +01:00
Ludovic MarieandClaude Opus 5.5 1b98beaf98 th: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:46 +01:00
Ludovic MarieandClaude Opus 5.5 777f76e4f0 Merge main (with #8385's translations) into #8306 (th)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:46 +01:00
Ludovic MarieandClaude Opus 5.5 956213f1bd vi: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:45 +01:00
Ludovic MarieandClaude Opus 5.5 c9d3a1e27f Merge main (with #8385's translations) into #8304 (vi)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:45 +01:00
Ludovic MarieandClaude Opus 5.5 2a45192720 nl: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:44 +01:00
Ludovic MarieandClaude Opus 5.5 2f4d62edea Merge main (with #8385's translations) into #8302 (nl)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:43 +01:00
Ludovic MarieandClaude Opus 5.5 bf43508ea6 it: the 9 strings of main's new look settings
The accent, glass and reset settings and the native mods card came to main
after this table; the i18n test needs every language to have them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:42 +01:00
Ludovic MarieandClaude Opus 5.5 4b1af15559 Merge main (with #8385's translations) into #8286 (it)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:04:42 +01:00
Ludovic MarieandClaude Opus 5.5 8d7c8e6b02 el_gr: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:19 +01:00
Ludovic MarieandClaude Opus 5.5 3bbd1bced4 Merge main (with #8385's translations) into #8328 (el_gr)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:19 +01:00
Ludovic MarieandClaude Opus 5.5 64fda24b03 sv_se: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:18 +01:00
Ludovic MarieandClaude Opus 5.5 405cccee34 cs_cz: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:18 +01:00
Ludovic MarieandClaude Opus 5.5 dd632f4794 Merge main (with #8385's translations) into #8326 (sv_se)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:18 +01:00
Ludovic MarieandClaude Opus 5.5 7bf51053cb Merge main (with #8385's translations) into #8324 (cs_cz)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:18 +01:00
Ludovic MarieandClaude Opus 5.5 ccc94b6bbe pt_br: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:17 +01:00
Ludovic MarieandClaude Opus 5.5 9949f2c975 ar_sa: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:17 +01:00
Ludovic MarieandClaude Opus 5.5 d3fd6e7e1c Merge main (with #8385's translations) into #8318 (pt_br)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:17 +01:00
Ludovic MarieandClaude Opus 5.5 c8943bdf07 Merge main (with #8385's translations) into #8315 (ar_sa)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:17 +01:00
Ludovic MarieandClaude Opus 5.5 eca4c2d566 ja_jp: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:16 +01:00
Ludovic MarieandClaude Opus 5.5 fd5b299140 Merge main (with #8385's translations) into #8314 (ja_jp)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:16 +01:00
Ludovic MarieandClaude Opus 5.5 4ae086ce49 th_th: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:15 +01:00
Ludovic MarieandClaude Opus 5.5 92f74d3be4 vi_vn: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:15 +01:00
Ludovic MarieandClaude Opus 5.5 7dc688bd3e Merge main (with #8385's translations) into #8307 (th_th)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:15 +01:00
Ludovic MarieandClaude Opus 5.5 70047c7d3d Merge main (with #8385's translations) into #8305 (vi_vn)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:15 +01:00
Ludovic MarieandClaude Opus 5.5 1fd627c94c nl_nl: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:14 +01:00
Ludovic MarieandClaude Opus 5.5 4a6dc38a26 it_it: drop English copies, name the controller options
As #8385 did for its tables: entries equal to en_us are dropped (the game
falls back to en_us per key), and the six controller options, which the
table had as verbs (look at the deadzone, invert appearance), are option
names now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:14 +01:00
Ludovic MarieandClaude Opus 5.5 882d342431 Merge main (with #8385's translations) into #8303 (nl_nl)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:14 +01:00
Ludovic MarieandClaude Opus 5.5 ac974a2bcd Merge main (with #8385's translations) into #8287 (it_it)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:03:13 +01:00
Federico TaglianiandCopilot App fa62beefdf Reject corrupt server resource packs
Co-authored-by: Copilot App <[email protected]>
2026-11-03 19:02:42 +01:00
AkirabaneandClaude Opus 5.5 c4bc3a29d1 Worker pool: release idle generators while the client keeps meshing
After a world loads, the client keeps queueing a few meshes a second for a
minute or more (vanilla's leaf distance pass reshapes the trees). Two things
in the shared pool then kept the server's generator buffers and caches,
which nothing reads until the player moves into new ground:

- Every wake restarted every sleeping worker's idle wait, even a worker
  that got no job, so with jobs queued every few seconds no worker ever
  reached IDLE_RELEASE. A worker now counts from its own last job.
- `all_idle` (#7519 empties the generator's shared caches there) needs
  every worker idle at once, which never happens while one source stays
  busy. A source with nothing queued or running for IDLE_RELEASE is now
  told on its own: `idle` for each worker's state and `all_idle`, once
  until its next job. The release frees nothing a later job needs: the
  generator's caches are emptied whole, as at their limit (#7519).

Each freed release hands the pages back to the OS (`release_free_memory`).

Measured with the alloc-census build, seed 1234, RD 12, offscreen, 150 s
after opening a new world (two runs): stream.generate 171.8 -> 45.3 MB,
the biome cache 1366 chunks -> 0, the live heap 645 -> 527 MB, the resident
set 1063 -> 1001-1014 MB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:02:00 +01:00
Ludovic MarieandClaude Opus 5.5 21215383fb launcher: the sign-in gate in the glass look
"Sign in to play" (Play without an account that owns the game) still had the old look:
pixel-cut corners, a solid violet panel and pixel buttons. In the dark glass look it is now a
dialog like the mockup's modals: a plate round at 28 over the dimmed, blurred launcher, the
Account card's white "Sign in with Microsoft" button, the code in the card's inner panel, and
the accent "Open link" with a text "Not now". Same strings, same behaviour; the light look keeps
the old sheet until its own PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 19:01:44 +01:00
Ludovic MarieandClaude Opus 5.5 6f6972f7b6 launcher: Overview's blur toggle, the played Nightly's patch log, the game log (dark)
As the mockup's Overview:
- the eye button beside See all (and in the Screenshots tab) blurs the screenshots, as
  blur-2xl does: a small blurred copy of each, made in the background, drawn stretched;
- the patch log shows the changes of the Nightly the instance plays (the newest Nightly's when
  that one lists none), "Nightly 2026-11-01 · c9d474d · Nov 1"; a Java instance keeps the
  launcher's notes, dated the same way;
- while the instance prepares, starts or runs, a Game log card over the screenshots shows its
  newest lines and how many there are;
- one screenshot takes half the width (grid-cols-2), not all of it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:59:40 +01:00
Ludovic MarieandClaude Opus 5.5 178fae5509 launcher: dialogs over the dimmed, blurred launcher, as the mockup's
The instance and Create server dialogs drew their plate from the bare scene, so the sun showed
through them at full strength, and the page around them stayed sharp under the scrim. The
mockup's modals are hzl-glass over bg-[#07050f]/50 backdrop-blur-xl: the page blurred away and
the plate dimmed with it. Both now do what the palette already did: the scene's blurred copy
covers the page under the scrim, and the plate wears the scrim's dimming under its white.
The palette uses the same two helpers (glass_ui::scrim_backdrop, dialog_plate).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:58:39 +01:00
Ludovic MarieandClaude Opus 5.5 367c94e36d launcher: the instance dialog's default name, dates and import, as the mockup's
A new instance starts named as the mockup's defaultName says: "My Horizon"
for a Horizon one (Java ones already had "Vanilla 26.3" / "Fabric 26.3"),
following its kind until the player types a name. A default name already
taken gets a number ("My Horizon 2"), so Create no longer fails on it.

The glass dialog's Nightlies read "Nov 1" (formatDay), not 2026-11-01, and
Edit offers Import a modpack… as the mockup's Edit does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:53:48 +01:00
MSedgeMC 704a88ac8f fix: four animated particle coordinates were rounded in single precision
The zoo's new cases caught particle coordinates that differ from vanilla's in
the last bits, where Horizon did the arithmetic in the other precision from
vanilla's expression.

Vanilla's `random.nextFloat() * 0.04` is a float times a double literal, so the
product stays double: the sculk sensor's and the respawn anchor's y velocity
were formed in single precision here (0.00036899326369166374 against vanilla's
0.00036899328231811525). The brewing stand's three sums are double products the
same way (6.519509056210518 against 6.519509053230286), and the ender chest's
`pos.getY() + random.nextFloat()` is the other way round - an int plus a float
rounds the sum to single precision before it widens (58.59754526615143 against
58.5975456237793).
2026-11-03 17:52:34 +00:00
MSedgeMC a4f096ec50 test: the rest of the animateTick block zoo
tools/test_marker_particles_parity.py ran the whole ClientLevel.animateTick
loop, but the block it ticked was always a campfire. Every other block the
loop animates - the torches, the lit furnaces, the portals, the end rod, the
candles, the leaves, the redstone wire, the sculk sensor - had no case in any
harness, so their particle positions, their sounds and their draws from the
level random were unpinned.

Run the same loop over a world that is all of one state, for 79 states: the
three torches and their wall forms in all four facings both lit and unlit, the
furnace, blast furnace and smoker lit and unlit in every facing, both nether
portal axes, the end portal, the end rod in all six facings, the ender chest,
the spore blossom, the mycelium, one to four candles and the candle cake, the
brewing stand, six leaf blocks, three redstone wire states, two repeaters, two
levers, fire at two ages, soul fire, a blinking sculk sensor and a charged
respawn anchor, each at two seeds and forty of them at a random one. The
oracle's stand-in level answers isRainingAt with false, as the probe's
stand-in world does, so a leaf block's dripping-water gate can run instead of
reaching a dimension type the stand-in level does not have.
2026-11-03 17:52:34 +00:00
HrafnaValkyrjaandClaude Sonnet 5.5 1053072a2c tools: claim each harness port with a lock so parallel harnesses cannot share one
lab.free_port() closes the probe socket before the server binds, so two
harnesses running at once (other worktrees, a job queue) could be handed
the same port and one server failed to start. Each port is now also locked
in the temp dir until the process exits; a port another harness holds is
skipped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:52:20 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3a17d0ae4d Fill in new launcher strings for bundled languages
Nine tables were generated before the remaining settings and native-mod
strings landed, so the launcher completeness test fails on main. Add the
missing translations.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:51:08 +01:00
Federico TaglianiandCopilot App b8740c5d9d Support minified server pack shaders
Co-authored-by: Copilot App <[email protected]>
2026-11-03 18:50:49 +01:00
LokiandAntigravity 9cda105a19 chat: include entity_types and wind charges in summon autocomplete (fixes #8419)
Co-Authored-By: Antigravity <[email protected]>
2026-11-04 02:50:13 +09:00
ErikKalikas 9a99293888 Merge remote-tracking branch 'upstream/main' into mod-reload-listeners
# Conflicts:
#	crates/horizon-client/src/mod_api.rs
#	crates/horizon-mod-api-gen/dispatch-tests/src/lib.rs
2026-11-03 19:49:27 +02:00
Ludovic Marie b33bc70c4f Merge pull request #8421 from horizon-rust/feat/launcher-glass-about
🤖 Agent: Native mods in Settings > Game is a profile picker (Performance/Dev/Release build), not the mockup's switch, because native mods are always on; it's the same setting as the Mods page's picker.
2026-11-03 18:48:58 +01:00
Ludovic Marie c36dbe39ff Merge pull request #8409 from horizon-rust/feat/launcher-glass-sliders
🤖 Agent: Glass (0-16 %) and Blur (0-48 px) re-tint and re-blur the plates live and save on release; out-of-range or non-number values in settings.json fall back without losing other settings (test glass_and_blur_default_to_the_mockups_and_stay_in_range).
2026-11-03 18:48:38 +01:00
Ludovic Marie 51e6523a81 Merge pull request #8133 from arslanarm/shaderpacks/snorm-buffers
🤖 Agent: the SNORM format is used only where get_texture_format_features allows RENDER_ATTACHMENT; one remaining risk is a pack that sets blend.<program> on a SNORM buffer on an adapter that renders the format but cannot blend it, which a BLENDABLE check would cover.
2026-11-03 18:48:34 +01:00
OpenAI Codex 3a0132d80e Make encoded material GPU controls detect filtering and mip regressions
Strengthen only the original synthetic oracle: fractional contrasting data, hostile unused mip contents and deliberately invalid filtering sampler negative control. Production/API code is byte-identical to the already completed full-check head ec6054c.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:48:18 -05:00
AkirabaneandClaude Sonnet 5.5 ce0d76008a fix(boats): a boat in powder snow is slowed and throws snowflakes
`PowderSnowBlock.entityInside` makes any entity that is not a living one stuck
(`makeStuckInBlock` 0.9, 1.5, 0.9) and, on the server, sends a snowflake when
the entity moved horizontally. Boats did neither: no particle showed when a
boat entered powder snow, and it was not slowed (#8156).

A boat whose box, or the box it had before its move, reaches into powder snow
now keeps a stuck multiplier at the end of its tick, as `AbstractBoat.tick`'s
`applyEffectsFromBlocks` does, and its next move goes its velocity times the
multiplier and spends the velocity (`Entity.move`). The server also sends the
snowflakes, twice a tick as `AbstractBoat.tick` applies the block effects twice,
for boats a player drives as for the others. A boat that is not in powder snow
moves exactly as before. Only the boat's own box is scanned.

Refs #8156

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:46:07 +01:00
Ludovic Marie 4f6f5a54e5 Merge pull request #8131 from arslanarm/shaderpacks/rgb-buffer-alpha
🤖 Agent: the (0, 0, 0, 1) start clear runs once per buffer rebuild (rgb_unset), and the per-frame cost is only a COLOR write mask and a Clear(BLACK) load in place of the overwrite on colortex0, so nothing is added per draw.
2026-11-03 18:45:37 +01:00
Ludovic Marie e6359e9d57 Merge pull request #8130 from arslanarm/shaderpacks/composite-default-drawbuffers
🤖 Agent: load_geometry keeps the 0..8 default, which is right because geometry stages load only for the shadow pass, so the colortex0-only default reaches every non-shadow program and nothing else.
2026-11-03 18:45:33 +01:00
Ludovic Marie 5f7f23e2e7 Merge pull request #8129 from arslanarm/blocks/sign-pick-copy
🤖 Agent: checked against the 26.3 jar: sign_text_front/back are data components 118/119, and SignText.STREAM_CODEC is four NBT messages (fixedSizeCollection, no count), an optional filtered four, DyeColor's varint and a bool, which is what sign_text_tag reads and sign_text_bytes writes.
2026-11-03 18:45:28 +01:00
Ludovic Marie 6dad81747f Merge pull request #8091 from CocofireHD/feature/3d-skin-layers
🤖 Agent: off by default and skin_3d_model returns before any work while it is off; the measured cost when on is +0.19 ms CPU per skinned player in view (pose + submit of the extruded slabs), so a crowd is where a distance fallback to the flat layer would pay off next.
2026-11-03 18:45:23 +01:00
AkirabaneandClaude Sonnet 5.5 d056f6d157 horizon-server: Prometheus metrics by dimension (loaded chunks and entities)
The game's status now lists each level's loaded chunks and entities
(`levels`), the level in place and the parked ones counted the same way
(players and block entities apart). prometheus() turns them into
horizon_loaded_chunks{dimension} and horizon_entities{dimension}; a level
with no count has no line rather than a 0. The docs drop the item from
"Not there yet".

Fixes #8191

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:43:31 +01:00
Ludovic MarieandClaude Opus 5.5 659cce3aba launcher: Maximum memory in the Edit dialog, Overview's leftover rows (dark)
The glass look keeps an instance's Maximum memory in its Edit dialog: a
SettingRow under the icon, with the mockup's Slider (as Settings' Glass
and Blur), the box in MB and the saved line. It sets the instance being
edited, not the selected one. Home's Overview no longer shows it there.

Overview drops the Microsoft account and Playing offline rows in the
glass look: its top bar has Sign in with Microsoft and says Offline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:43:08 +01:00
Ludovic MarieandClaude Opus 5.5 f145601875 Merge main into the AvoidEntityGoal targeting fix
goals.rs: main's peaceful_targets_tests (#8046's fix) and this branch's
avoid_entity_targeting_tests sit at the file's end; both kept. Since that
fix, can_target_player already refuses a player in Peaceful through
spares_players, so the goal's own difficulty check is dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:40:50 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b43cc79a53 Add Frysk (fy_nl) game translation
Bundles Horizon's own Frysk strings so fy_nl players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:40:05 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 56b9d1d31c Add Frysk (fy) launcher translation support
Registers Frysk as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:39:24 +01:00
MSedgeMC b499414bfa port_map: the effect refusal names its arm
canBeAffected was in no verdict file, so the ledger ranked it unported; it is
Mob::can_be_affected now, one row on LivingEntity and one on each class that
overrides it.
2026-11-03 17:39:23 +00:00
MSedgeMC 3f89e00503 Test the effects a mob's type refuses
Mob::add_effect on real types from the extracted data: a zombie, a skeleton, a
phantom, a zombie horse and a wither never list poison or regeneration (the
ignores_poison_and_regen tag is #minecraft:undead) while strength lands on
each of them; a silverfish refuses infested and a slime oozing, a magma cube
takes oozing; a spider, a cave spider and a nautilus refuse poison where a cow
takes it; a wither and a wither skeleton refuse the wither effect a zombie
takes; a parched refuses weakness and takes slowness.

The test goes through the list add_effect builds, which is what the client
draws and what the effect tick reads, and fails without the canBeAffected
gate: the refused effect is listed instead of absent.
2026-11-03 17:39:23 +00:00
MSedgeMC e5ce84bc95 An effect a mob refuses is never added
LivingEntity.addEffect asks canBeAffected before it stores the instance, and
that rule had no port: Horizon stored whatever it was handed, so a spider and
a nautilus took poison, a wither and a wither skeleton took the wither effect,
a parched took weakness, and every undead mob listed poison and regeneration
it can never be ticked by.

can_be_affected now answers it the way the jar does. Five classes narrow it
first: Spider.canBeAffected (CaveSpider with it) and AbstractNautilus refuse
poison, WitherBoss and WitherSkeleton refuse the wither effect, Parched refuses
weakness. The three entity type tags answer for the rest: immune_to_infested
keeps infested off a silverfish, immune_to_oozing keeps oozing off a slime,
and ignores_poison_and_regen, which is #minecraft:undead, keeps poison and
regeneration off the undead. add_effect checks it before the absorption
modifier, as vanilla does before the map lookup.

WitherRoseBlock.entityInside no longer spells the wither mobs' refusal out
itself; the effect it asks for is refused inside addEffect, which is where
vanilla refuses it.
2026-11-03 17:39:23 +00:00
Ludovic Marie 9a035fc9d5 Merge pull request #8385 from dontstopgorkingit/lt_lt-game
🤖 Agent: Lands the whole stack (#8330 to #8385, 10 game + 9 launcher tables). Product names translated as words (Discord as "Nesantaika", Fabric mods as textile mods, Horizon as "Хоризонт") were dropped or set back to English, and so were game entries that only copied en_us. The six controller options, which every table had as verbs ("look at the deadzone"), were rewritten. The 8 launcher strings main gained since were filled, and nb/nn now picks Norwegian.
2026-11-03 18:38:29 +01:00
Arslan ArmanulyandClaude Opus 5.5 db726a1c49 Shader packs: read shaders.properties with the feature macros, as Iris does
Iris 1.11.7 reads shaders.properties with IRIS_FEATURE_<name> defined for
the features it has, whether the pack lists them as optional, as required
or not at all (probe pack); its programs still see only the optional ones.
Horizon defined them only after reading the file, so a custom uniform or
a screen behind `#ifdef IRIS_FEATURE_*` was left out. The Shader Options
page reads the file with the same macros.

Fixes #8493

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:37:01 +05:00
Arslan ArmanulyandClaude Opus 5.5 29d8afbf25 Shader packs: smooth() fade times count tenths of a second, as in Iris
Iris 1.11.7's values in our probe fit a half-life of a tenth of the fade
time's seconds (probe pack across the scene suite's weather changes):
smooth(rainStrength, 20, 20) reads 0.87 four seconds after the rain is
full, where Horizon's fade of 20 seconds gave 0.2. Horizon's smooth()
lagged ten times behind those values.

Fixes #8492

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 22:37:01 +05:00
Ludovic Marie 8475a6c69a Merge pull request #8393 from horizon-rust/feat/launcher-glass-sky-tint
🤖 Agent: the scene's stars, runs, fireflies and meteor take the accent the way CSS mix-blend-mode: color does (hue from the accent, luminance kept); test the_accent_tint_keeps_luminance_and_takes_the_hue_like_css.
2026-11-03 18:35:22 +01:00
Ludovic MarieandClaude Opus 5.5 44bc013845 Merge main (main's rustfmt fix for client_lib.rs, #8040)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:34:47 +01:00
Ludovic MarieandClaude Opus 5.5 d7bf2ad63c Merge main (main's rustfmt fix for client_lib.rs, #8040)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:34:43 +01:00
Ludovic Marie 0877efffb4 Merge pull request #8429 from horizon-rust/docs/desktop-parity-runner
🤖 Agent: docs only. release-flow.md now describes the desktop runner as it is since 11-03 (gha user, no Linux label, stops within a minute when the maintainer is at the screen). parity-workflow.md says the 10-26 parity-host entry is retired.
2026-11-03 18:34:12 +01:00
utophii fefde42033 feat: add musl linux release build 2026-11-03 20:32:47 +03:00
AkirabaneandClaude Sonnet 5.5 072990fd30 Server: /mute, /tempmute and /tempban answer with vanilla's messages where vanilla has them
A name no player has was answered "No player was found named X", and a
player banned already "X is already banned". Vanilla's `/ban`, `/kick` and the
other player commands answer `argument.entity.notfound.player` and
`commands.ban.failed`, translated into each client's language.

The replies of these commands are now a `Reply`: Horizon's own line, or a
vanilla translation key. A guest is sent the key as a translatable component,
the console prints its text. The other lines (usage, durations, "Muted ...",
"Banned ... until ...") have no vanilla message and stay as they were.

Follow-up to #8157, asked for in its review.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:31:30 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 00e2549a20 Add Soomaali (so_so) game translation
Bundles Horizon's own Soomaali strings so so_so players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:31:03 +01:00
gorkandClaude Code 07a226cbf4 docs: polish parity, port-ledger, and benchmark docs
Verify internal links across the edited docs and tidy wording for clarity.

Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:30:44 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free a71fecab82 Add Soomaali (so) launcher translation support
Registers Soomaali as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:30:21 +01:00
gorkandClaude Code 1b29b9bcff docs: verify and update native hook doc links and counts
Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:30:10 +01:00
gorkandClaude Code fdb1cf4688 docs: add contents to server-levels
Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:29:22 +01:00
gorkandClaude Code c85c4baf4a docs: tidy formatting in native-client
Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:29:07 +01:00
gorkandClaude Code 8a6441c63d docs: improve user-server docs readability and references
Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:28:46 +01:00
gorkandClaude Code 0d817ffd87 docs: improve world generation docs and verify links
Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:28:45 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b14c46b59c Add ລາວ (lo_la) game translation
Bundles Horizon's own ລາວ strings so lo_la players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:28:43 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 090c6fdcd3 Add ລາວ (lo) launcher translation support
Registers ລາວ as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:27:58 +01:00
gorkandClaude Code cb7c5c8967 docs: reorganize CONTRIBUTING and remove stale shader packs known issue
Shader packs are back as a clean-room rewrite, so the stale removal passage and
known-issue bullet no longer apply.

Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:27:38 +01:00
Stink-OandClaude Opus 5.5 bb55cab336 Far terrain: columns a single-player server changes in bulk out of the window's view are summarized again
A column changed by World::edit_runs (a mod's native_edit_blocks) goes whole only to the players it was sent to.
The single-player window's far terrain kept drawing an unsent column as the window last saw it (Lod::saved),
so a strike edited while the player was away left the old land in far terrain until the player came within
view distance again. The hub now hands such columns to its memory-connected window (handoff::changed), which
gives them to far terrain to summarize (Lod::observe), as it does columns it unloads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:26:51 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3b45f7c91c Add Монгол (mn_mn) game translation
Bundles Horizon's own Монгол strings so mn_mn players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:26:14 +01:00
hildlabsandClaude Opus 5.5 01d6c3d88b Shader packs: a Horizon pack's float and int options are sliders
On a Horizon pack's options page a float or int option is a slider, as FOV
is, where it was a button stepping through every value. A float takes the
nearest step from its minimum (the last slot its maximum), an int whole
numbers, rounded to the f32 the pack's override gets so a slider back in the
middle is the default exactly. The value is saved, and the pack rebuilt, once
when the slider is let go, and only if it changed. Shift-click puts it back
to its default; Tab, Enter and the arrows work it as they do vanilla's
sliders, a step at a time and stopping at the ends. Bool and choice options
stay buttons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:25:16 +01:00
Ludovic MarieandClaude Opus 5.5 94cc6490cb Test the compact quad layout
Whole cube faces take one record whichever corner they start at and
whichever way they go round; quads off the block grid, the UV steps or
the light steps keep their vertices; and a quad without a record points
at its own four vertices after the padded records.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:25:14 +01:00
Ludovic Marie 68586a41aa Merge pull request #8392 from MSedgeMC/fix/dolphin-attack-sound
🤖 Agent: checked in the 26.3 jar: Dolphin.playAttackSound is playSound(DOLPHIN_ATTACK, 1.0, 1.0) and Entity.playSound returns for a silent entity, so the new !m.silent on the axolotl arm fixes a second mismatch too; the test skips in CI without the extracted mob types.
2026-11-03 18:25:10 +01:00
Ludovic Marie d6bdf70cf1 Merge pull request #8389 from MSedgeMC/fix/sniffer-hop-nudge
🤖 Agent: checked in the 26.3 jar: Sniffer.jumpFromGround is super, then moveRelative(0.1F, (0, 0, 1)) when getSpeedModifier() > 0 and horizontalDistanceSqr < 0.01, which the arm mirrors after the jump power is set; I merged main in (both sides added tests at the end of living.rs's test module, both kept).
2026-11-03 18:25:05 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e0967311bd Add Монгол (mn) launcher translation support
Registers Монгол as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:24:59 +01:00
Federico TaglianiandCopilot App a2d36b2f31 Fix Metal sprite texture array splitting
Co-authored-by: Copilot App <[email protected]>
2026-11-03 18:24:43 +01:00
Ludovic MarieandClaude Opus 5.5 ea3498284b Merge main into pack fog uniforms
pack_uniforms.rs: main's smoothed-uniform half-life test and this
branch's fog and per-program tests sit in the same place; both kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:24:33 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free ac26100d0f Add தமிழ் (ta_in) game translation
Bundles Horizon's own தமிழ் strings so ta_in players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:23:13 +01:00
razzo715andClaude Opus 5.5 beea32e326 Leave the End near the world spawn when the player has no point of its own
The End exit fell back to the server's own `level.spawn`, which does not
follow `setworldspawn` and is not the travelling player's, so a player
without a respawn point landed at a stale spot or (0, 64, 0) instead of on
a free column around the world spawn. It now takes the player's own
Overworld point, else the world spawn, as a missing bed already should.

Fixes #8333

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:22:52 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free df4c3895dd Add தமிழ் (ta) launcher translation support
Registers தமிழ் as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:22:44 +01:00
gorkandClaude Code 279a04a8eb docs: remove stale 'shader packs removed' known issue
Shader packs were reinstated as a clean-room rewrite, so the known issue no longer applies.

Co-Authored-By: Claude Code <[email protected]>
2026-11-03 18:22:00 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b66e55041e Add Filipino (fil_ph) game translation
Bundles Horizon's own Filipino strings so fil_ph players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:21:43 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8e0614ddf0 Add Filipino (fil) launcher translation support
Registers Filipino as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:20:28 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2d86492394 Add Galego (gl_es) game translation
Bundles Horizon's own Galego strings so gl_es players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:18:49 +01:00
itarqos5andClaude Opus 5 e63d485d89 fix(names): one name tag for a player a server has given a custom name
A server that names its players -- a rank prefix, a nickname -- sets a
custom name on the player entity. Both passes of `name_tags` then claimed
it: the player-list pass, which names every player a server sends, and
the custom-name pass, which names every mob holding a custom name. Two
tags were built for one player and drawn at the same point, so they sat
on top of each other.

The set of players the list already names, which the custom-name pass
skips, was built only when native mods were loaded (a8cdcce9d). Without
them it was `None` and the pass skipped nobody. It is built unconditionally
again, now through `named_by_player_list`, whose doc comment records why it
cannot be conditional. The same commit's other fast path -- leaving an
unnamed, non-mannequin mob out of the pass entirely, which no longer needs
`hooks` to be correct -- is kept.

This matches vanilla, where one entity draws one tag and a player is named
from its profile: `Player.getName` overrides `Entity.getName` and ignores
`customName`. Servers that decorate names through a team prefix and suffix
were never affected; those go through the player-list pass and its
`getDisplayName` handling.

The duplicate also appeared without the custom name being flagged visible,
whenever the crosshair was on the player: the custom-name pass names the
mob under the crosshair whether or not its name is flagged.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 17:18:35 +00:00
AkirabaneandClaude Sonnet 5.5 e3b0f06133 feat(server): live status-heartbeat-interval in the management protocol
`serversettings/status_heartbeat_interval` and `/set` were not answered, and the
supervisor started its heartbeat only when the interval was above 0 at start,
with that first value for good.

The heartbeat thread is now always there and counts its seconds itself. It
reads the interval each second and starts counting again at every set, as
vanilla cancels the heartbeat and schedules a new one
(`ManagementServer.scheduleHeartbeat`: the first after as many seconds), so a
server that began with none can have one and a server that had one can stop it,
with no restart. 0 or less means none, and the interval is kept as it was set,
as vanilla keeps any int.

The set writes `status-heartbeat-interval` to server.properties and to
server.toml's `[properties]`, logs vanilla's "Updated status heartbeat
interval from {} to {}" and answers with the interval now in force. A value
that is not an integer is refused as the other settings' are.

The port map moves `DedicatedServer.setStatusHeartbeatInterval` out of
`skip:server` and the management protocol parity harness compares the get, the
set, an invalid value, the saved property and the value after a restart with
vanilla's. That harness runs a real vanilla server and was not run here; the
unit tests cover the live heartbeat and the persistence.

Fixes #8190

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:18:29 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free dbc8d5e52d Add Galego (gl) launcher translation support
Registers Galego as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:18:11 +01:00
AkirabaneandClaude Sonnet 5.5 52e29c1ac7 test(lan): accepting transfers changes live
Log in by transfer on a server whose listener is not bound (a local connection):
turned away with `multiplayer.disconnect.transfers_disabled` while transfers are
off, taken once `Shared::set_accepts_transfers(true)` has run, and turned away
again after it is set back. With the handshake reading the fixed
`config.accepts_transfers` again, the middle login fails.

Refs #8190

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:18:03 +01:00
AkirabaneandClaude Sonnet 5.5 59140732d6 feat(server): live accepts-transfers in the management protocol
`serversettings/accept_transfers` and `/set` (`ServerSettingsService`,
`DedicatedServer.setAcceptsTransfers`) were not answered. The listener read
`accepts-transfers` once at start, from a fixed field of its configuration.

The listener's shared state now holds it as an atomic, as it holds the live
login limit, and the transfer handshake of `lan/conn.rs` reads that. The
management method changes it at once, writes `accepts-transfers` to
server.properties and, through the supervisor, to server.toml's `[properties]`
so a restart keeps it, and logs vanilla's "Update accepts transfers from {} to
{}". A value that is not a boolean is refused as the other settings' are.

The port map moves `DedicatedServer.setAcceptsTransfers` out of `skip:server`
and the management protocol parity harness compares the get, the set, an
invalid value, the saved property and the value after a restart with vanilla's.
That harness runs a real vanilla server and was not run here.

Refs #8190

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 18:18:03 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 24982d2ce4 Add Euskara (eu_es) game translation
Bundles Horizon's own Euskara strings so eu_es players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:16:22 +01:00
CorbonatandCodex ab9032a188 Merge pinned main 49a6e02 into GUI glint atlas fix
Preserve upstream line shader setup alongside GUI glint atlas preparation.
Keep local Windows parity helper repairs outside this contribution.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-03 20:16:12 +03:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 07e377015c Add Euskara (eu) launcher translation support
Registers Euskara as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:15:37 +01:00
OpenAI Codex ec6054c5c0 Record baseline native material API sanity-check input
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:14:28 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free c696f5a17f Add Gaeilge (ga_ie) game translation
Bundles Horizon's own Gaeilge strings so ga_ie players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:13:53 +01:00
OpenAI Codex 881a8b8be6 Record pinned public-main API integration inputs
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:13:25 -05:00
OpenAI Codex b227d63fe8 Record pinned public-main material API integration inputs
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:13:25 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d385fa042c Add Gaeilge (ga) launcher translation support
Registers Gaeilge as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:13:06 +01:00
OpenAI Codex a900d9ad88 Initialize authored-content API in a new public-main test literal
Actual final-main Clippy/test compile identified the newly added Interface construction; retain its previous neutral48-byte contents. Independent production behavior unchanged.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:11:38 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 882d679119 Add Cymraeg (cy_gb) game translation
Bundles Horizon's own Cymraeg strings so cy_gb players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:11:20 +01:00
OpenAI Codex 49d6e26bc2 Initialize material API fields in new public-main test literals
Preserve existing fixture behavior with absent companion maps and no block-surface scope. Consulted only the necessary current-main struct construction sites for this integration.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:11:13 -05:00
OpenAI Codex 5ca8699133 Initialize material scope for the new main line geometry API
The independent candidate reserves block companions for terrain; the newly added main line draw has no colour surface identity and explicitly uses defaults.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:10:46 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 4af6cd6f0a Add Cymraeg (cy) launcher translation support
Registers Cymraeg as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:10:32 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 344b67e56d Add Shqip (sq_al) game translation
Bundles Horizon's own Shqip strings so sq_al players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:08:47 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 7b031bc412 Add Shqip (sq) launcher translation support
Registers Shqip as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:08:14 +01:00
OpenAI Codex 2d0f159464 Record nonbehavioral material integration comment updates
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:08:06 -05:00
OpenAI Codex ef9d8b67d5 Transport terrain resource-pack material maps to shader samplers
Proposed independently developed replacement for closed #7800, addressing #7747. Preserve colour-layer identity across split arrays, nearest encoded data transport, neutral defaults, resource ownership and colour-selected companion frames. Add original CPU and actual-GPU controls with a pinned input/exposure ledger. Frozen candidate production hunks preserved; integration adjusts a test-module append and clarifies comments.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:07:54 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e47e463341 Add Македонски (mk_mk) game translation
Bundles Horizon's own Македонски strings so mk_mk players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:06:47 +01:00
Ludovic Marie 49a6e02ee3 Merge pull request #8391 from horizon-rust/feat/launcher-glass-accent
🤖 Agent: the accent now takes any #rrggbb as well as the named swatches, and a typed colour survives settings.json (test a_typed_colour_is_worn_as_is_and_survives_settings_json).
2026-11-03 18:06:22 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3a412f7dd1 Add Македонски (mk) launcher translation support
Registers Македонски as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:06:07 +01:00
Kacpherek ca61868478 Merge remote-tracking branch 'origin/main' into opt/compact-quads
# Conflicts:
#	crates/horizon-client-render/src/gfx.rs
#	crates/horizon-client-render/src/gfx/gpu_culling.rs
#	crates/horizon-client/src/game/render_control.rs
2026-11-03 18:05:59 +01:00
Ludovic Marie f5fe44b835 Merge pull request #8117 from Slavik-85/feat/8020-pack-outline-shader
🤖 Agent: only runs when a pack replaces core/rendertype_lines (no cost otherwise); a pack shader the backend rejects or with bigger blocks falls back to the built-in outline inside one error scope, so a bad pack can't fail the draw. Not yet seen in game with the RGB Block Outline pack.
2026-11-03 18:04:54 +01:00
Ludovic Marie 5dbeb8b604 Merge pull request #8210 from horizon-rust/net/io-pool
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Slot reuse is safe (a closed outbox refuses pushes, the pipe's on_ready is cleared before its slot is freed), and stalls and read timeouts are on the 100 ms sweep. Risk: Conn::read loops until WouldBlock with no per-pass budget, so one client flooding packets holds its thread and delays the other players on it until the rate limit kicks it; it was tested on Linux only, so macOS kqueue and Windows AFD get their first run from players.
2026-11-03 18:04:49 +01:00
Ludovic Marie 60f1ec3d66 Merge pull request #8084 from glitchsnake/fix/8052-limited-crafting
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Matches RecipeCraftingHolder.setRecipeUsed (special or known recipes only) and the Login/GameEvent 12 sync. Simpler way: KnownRecipes has seven impls where production uses only the recipe book Settings; and recipes.recipe(id) scans every crafting recipe per grid change while the rule is on.
2026-11-03 18:04:45 +01:00
Ludovic Marie e6980583f4 Merge pull request #8152 from glitchsnake/fix/7730-spawner-distance-overflow
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. abs_diff and filtering spawners first fix the overflow on the menu's (i32::MIN, 0, 0) placeholder; the 64-block box is only Horizon's pre-filter, the player range test stays in client_tick_spawners. finalpantasy's draft #7818 covers the same issue.
2026-11-03 18:04:41 +01:00
Ludovic Marie 66017a34c5 Merge pull request #8137 from glitchsnake/fix/8123-cycle-backwards
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Matches CycleButton.onPress (shift steps back, positiveModulo wraps): the old code passed right, which is always false by then. The Act::Extra part of the test sits in an if let Some, so it passes silently if that button moves.
2026-11-03 18:04:37 +01:00
Ludovic Marie a189637cfd Merge pull request #8032 from Teiwazik/older-servers/v1-21-10
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Requeued after its STOP: the new head only merges main (now that #8008 landed); its own change is the 1.21.10 step alone (v1_21_10 tables, the bee/wolf anger INT to LONG and avatar main arm BYTE to HUMANOID_ARM), still behind HORIZON_OLDER_SERVERS=1, and it merges clean.
2026-11-03 18:04:32 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d234aec4fe Add Bosanski (bs_ba) game translation
Bundles Horizon's own Bosanski strings so bs_ba players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:04:28 +01:00
Ludovic Marie 4bd73c9ae1 Merge pull request #8185 from Teiwazik/shader/post-pass-limit
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Only manifest.rs reads MAX_POST_PASSES; the renderer sizes its pass chain from the manifest, so 12 needs no other change, and budget.gpu_ms (max 16) still bounds what the extra passes cost.
2026-11-03 18:04:28 +01:00
ElyTheCatandOpenAI Codex f28e838da8 Invalidate worker voxel caches on snapshot refresh
Key retained ray and plane traversal grids by the snapshot lifetime, not only world revisions, so refreshed chunk visibility cannot reuse stale opaque cells. Add a regression test for a wall becoming transparent.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 20:34:24 +03:30
Ludovic Marie 3b8dfa69b2 Merge pull request #8373 from horizon-rust/fix/launcher-world-lock-unlock
🤖 Agent: unlocking before close matters because flock belongs to the open file a forked child shares until exec; #7448 touches lock_world too, a small rebase for whichever lands second.
2026-11-03 18:04:24 +01:00
Ludovic Marie 57bb626689 Merge pull request #8201 from oxi-does-dev/fix/button-scrolling-label
🤖 Agent: matches WidgetTooltipHolder.refreshTooltipForNextRenderPass (hovered || focused && last input was the keyboard): a click's focus no longer pins the tooltip; the hover highlight still follows the focus as before.
2026-11-03 18:04:20 +01:00
Ludovic Marie df151f2f33 Merge pull request #8099 from TheMrZZ/perf/borrow-jigsaw-connector-strings
🤖 Agent: nothing found: Cow borrows from the cached StructureTemplate only change ownership; shuffle draws, palette pick and priority sort are untouched, so CI's worldgen harnesses are the check.
2026-11-03 18:04:15 +01:00
Ludovic Marie 481cbc13ed Merge pull request #8095 from Slavik-85/fix/raid-hero-guest-killer
🤖 Agent: raider_died now resolves the killer's connection with player_uuid_of, the same lookup villager_murdered uses on the next line, so a guest's kill makes that guest the hero (Raider.die → raid.addHeroOfTheVillage(player)).
2026-11-03 18:04:11 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 1443d76064 Add Bosanski (bs) launcher translation support
Registers Bosanski as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:03:59 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free ba51566766 Add Հայերեն (hy_am) game translation
Bundles Horizon's own Հայերեն strings so hy_am players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:02:30 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 09f41157c2 Add Հայերեն (hy) launcher translation support
Registers Հայերեն as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:01:57 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 0029029841 Add ქართული (ka_ge) game translation
Bundles Horizon's own ქართული strings so ka_ge players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:00:37 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free a98449dc6a Add ქართული (ka) launcher translation support
Registers ქართული as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 18:00:04 +01:00
Ludovic Marie ea66f0b2d1 Merge pull request #8090 from masa-masa-0314/fix/pacing-dimension-flight
🤖 Agent: nothing found: tooling only (pacing_bench); the liveness/flight checks run outside the recorded windows, so the measured transition costs are unchanged.
2026-11-03 17:59:59 +01:00
Ludovic Marie 507ede9d05 Merge pull request #8089 from Slavik-85/fix/8047-acting-player-uuid
🤖 Agent: the horse tame now runs in the rider's as_guest turn, so the owner is set before tame_animal fires for that rider, as AbstractHorse.tameWithName orders it; the host no longer gets a guest's advancement.
2026-11-03 17:59:55 +01:00
Ludovic Marie 447e043650 Merge pull request #8083 from OlaHulleberg/content/shapes-occludes
🤖 Agent: one point checked: occludes:false drops a solid render's dampening to 1 (0 with skylight_down) as getLightDampening does for non-solid full blocks; only content-mod blocks that set the key change, vanilla rows are untouched.
2026-11-03 17:59:50 +01:00
Ludovic Marie faa9a0f090 Merge pull request #8081 from OlaHulleberg/fix/food-effect-flags
🤖 Agent: nothing found: the ambient/show_particles defaults (false, true) are MobEffectInstance.CODEC's, and the single ApplyEffects consumer now carries them.
2026-11-03 17:59:45 +01:00
Ludovic Marie 11e6cedd9b Merge pull request #8078 from ClickingMaster/fix/baby-zombie-armor
🤖 Agent: checked on the 26.3 jar: HumanoidArmorLayer.renderArmorPiece reads HumanoidRenderState.isBaby and picks LayerType.HUMANOID_BABY for every slot, and the humanoid_baby textures exist for all eight materials, so this is the vanilla choice.
2026-11-03 17:59:41 +01:00
Ludovic Marie 562b4662a1 Merge pull request #8366 from MSedgeMC/port_map/client-003-display-light
🤖 Agent: checked on main: text_displays.rs display_light answers the packed brightness override or the world light at the display's block, and both geometry passes call it.
2026-11-03 17:59:36 +01:00
Ludovic Marie 084bdbbd25 Merge pull request #8364 from MSedgeMC/port_map/client-005-layer-color
🤖 Agent: checked on main: armor_stands.rs layer_color reads the stack's dyed_color for a dyeable layer and returns white otherwise, so the gap note about undyed leather was stale.
2026-11-03 17:59:32 +01:00
Ludovic Marie 576fb83f6e Merge pull request #8362 from MSedgeMC/port_map/game-004-display-save
🤖 Agent: checked on main: native_entities.rs NativeDisplay::write stores the transformation, both durations and the flipped start_interpolation, and nothing writes billboard, brightness or shadow, which the new note says.
2026-11-03 17:59:27 +01:00
Ludovic Marie 6915962807 Merge pull request #8345 from MSedgeMC/fix/guest-nautilus-jump
🤖 Agent: on_player_jump matches the 26.3 bytecode (isSaddled and dashCooldown <= 0, then getPlayerJumpPendingScale); in vanilla the rider's client runs it, so the host running it from START_RIDING_JUMP's data is the right side for a guest, and the 40-tick clock keeps the host's re-derived bar from dashing twice.
2026-11-03 17:59:22 +01:00
Ludovic Marie 4c7fc96aec Merge pull request #8357 from MSedgeMC/port_map/game-010-bat-flap
🤖 Agent: checked on main: sculk.rs flaps is the bat arm (awake, every tenth tick) and the movement pass posts minecraft:flap over air, so a bat's beat does reach a sculk sensor.
2026-11-03 17:59:18 +01:00
Ludovic Marie 2e6a4800e3 Merge pull request #8355 from MSedgeMC/port_map/classes-01-brute-push
🤖 Agent: checked on main: piglin.rs ai_step's brute branch calls update_activity then maybe_play_brute_sound, and minecarts.rs push_along is the 1.0E-4 and 0.001 projection, so the three rows name their own fns.
2026-11-03 17:59:13 +01:00
Ludovic Marie 1f066e533a Merge pull request #8354 from MSedgeMC/port_map/client-002-tracker-ack
🤖 Agent: checked on main: remote_chat.rs send_chat_acknowledgement is the take_offset and ChatAck-above-zero body, and level_loading.rs holds start_client_load and is_level_ready with the close delay, so the three rows now name the functions that do the work.
2026-11-03 17:59:08 +01:00
Ludovic Marie f7d0fb6957 Merge pull request #8353 from MSedgeMC/port_map/game2-002-names-ammo
🤖 Agent: checked on main: commands.rs target_name's Target::Item arm reads the saved CustomName, then item_name, then the display name, and crossbow.rs mob_vanilla_ammo searches the off hand then the main hand for the weapon's supported stack, else an arrow, so neither row is missing.
2026-11-03 17:59:03 +01:00
Ludovic Marie 5ec8cb805b Merge pull request #8293 from MSedgeMC/test/campfire-animate-tick
🤖 Agent: the lava loop's bound is now drawn on every pass as in vanilla's for (i < random.nextInt(1) + 1), which only the new all-campfire tick cases could see; the harness grows from 25,578 to 58,268 lines, all tick cases on one input.
2026-11-03 17:58:57 +01:00
Ludovic Marie b7680c8178 Merge pull request #8292 from MSedgeMC/fix/vibration-provider
🤖 Agent: remote vibration packets now reach the provider arm with the sprite draw vanilla's Provider makes; the destination is resolved once at arrival, so a signal flying to a moving warden or allay lands where it was (noted in the PR as the gap left).
2026-11-03 17:58:53 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free fb613892f9 Add Қазақша (kk_kz) game translation
Bundles Horizon's own Қазақша strings so kk_kz players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:58:50 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8b7040df82 Add Қазақша (kk) launcher translation support
Registers Қазақша as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:58:07 +01:00
OpenAI Codex 9315b5a43f Preserve authored ordinary uniform initial values
Proposed independently developed replacement for closed #7842, addressing #7811. Preserve compiler-evaluated constants in actual UBO layout, retain runtime-write precedence, and add original typed and real-GPU controls. Public research input ledger records pinned permissive shader-pack inputs, frozen candidate lineage and exposure limits.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 11:57:59 -05:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 1c23b3eb70 Add Oʻzbekcha (uz_uz) game translation
Bundles Horizon's own Oʻzbekcha strings so uz_uz players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:56:23 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 31301bf5a6 Add Oʻzbekcha (uz) launcher translation support
Registers Oʻzbekcha as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:55:10 +01:00
Ludovic MarieandClaude Opus 5.5 2b4185859a docs: the desktop's parity runner is back, as a NixOS service
Since 2026-11-03 ludodesktop-horizon takes pull requests' parity jobs again
(labels horizon-game, ludodesktop; no Linux): user gha walled off from the
maintainer's files, low-priority slice, only while he isn't at the screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:54:16 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3f771f701d Add Azərbaycanca (az_az) game translation
Bundles Horizon's own Azərbaycanca strings so az_az players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:53:27 +01:00
Ludovic Marie 8dffb823a4 Merge pull request #8376 from razzo715/fix/player-frozen-ticks
🤖 Agent: index 7 now goes out in vanilla's dirty order (1, 7, 17) and only on change, as ServerEntity.sendDirtyEntityData does; Horizon's own client still ignores it for its own player (it counts the ticks itself), so only vanilla clients and other viewers see a change.
2026-11-03 17:52:38 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2d04ef0198 Add Azərbaycanca (az) launcher translation support
Registers Azərbaycanca as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:52:36 +01:00
Ludovic Marie bd66b6313f Merge pull request #8187 from rdbtCVS/t3/relocate-bench-script
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. The move also puts the bench's server runs on lab.game_env, so they now get HORIZON_NO_DISCORD and scratch XDG and launcher homes, which the old hand-built env left out. Nothing else found.
2026-11-03 17:52:34 +01:00
Ludovic Marie b6ee30c12d Merge pull request #8161 from CocofireHD/fix/set-time-clock-holder
🤖 Agent: test-only; the bytes are a real 26.3 SetTime, and the (0, 66678)/(1, 13071) keys only decode as plain registry ids, which pins WorldClock.STREAM_CODEC = holderRegistry against a later off-by-one 'fix'.
2026-11-03 17:52:29 +01:00
Ludovic Marie 91658b2dff Merge pull request #8332 from razzo715/fix/pick-potted-plant
🤖 Agent: matches FlowerPotBlock.getCloneItemStack (new ItemStack(potted) before the caller's isEmpty check); the potted lookup now runs before the air check that used to return None for every potted_* block.
2026-11-03 17:52:25 +01:00
Ludovic Marie 19f61008b8 Merge pull request #8371 from MSedgeMC/port_map/rest-003-started-cleanly
🤖 Agent: checked on main: run_loading writes startedCleanly false after unclean_start_recovery reads the last start's value, and Loading::finish sets it true and saves, so the protocol is whole.
2026-11-03 17:52:21 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 26f51528c1 Add Беларуская (be_by) game translation
Bundles Horizon's own Беларуская strings so be_by players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:50:13 +01:00
Ludovic Marie 953a24e35d Merge pull request #8147 from kacpherek/perf/tick-off-thread
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Checked hooks.rs Sim::entity_inside: only pressure plates, detector rails, buttons and tripwire act, which is exactly senses_entities, and after a block change every later position still goes in sorted order, so the calls and their order match. Nothing else found.
2026-11-03 17:50:09 +01:00
Ludovic Marie 2a08f74d46 Merge pull request #8257 from CocofireHD/fix/7832-launcher-renderer-env
🤖 Agent: env_remove on the game's Command only drops the four Mesa/WebKit workarounds, so the launcher keeps them for its own window while a radeon player's game gets the GPU; a player who wants the game on llvmpipe on purpose now has to start horizon-client directly.
2026-11-03 17:50:05 +01:00
Ludovic Marie c1372e3b14 Merge pull request #8228 from TiggerTakkyTTT/fix/server-admin-player-positions
🤖 Agent: position comes from the guest's own field, so it's that player's last known position even while another guest is swapped into Game; the API is token-gated on 127.0.0.1, so exposing coordinates stays admin-only. #8245 edits the same 'Not there yet' line in docs/api/server.md and will need main merged after this.
2026-11-03 17:50:01 +01:00
Ludovic Marie 7bcb77ae03 Merge pull request #8258 from Teiwazik/shader/displacement-grid
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Per-frame cost only when a pack declares [displacement], its option is on and the resource packs have LabPBR heights (native_pack.rs gates it); the shadow map and the water mirror still draw flat faces, as the PR says.
2026-11-03 17:49:57 +01:00
Ludovic Marie 8a8af5f0d9 Merge pull request #8203 from Teiwazik/shader/displacement-api
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. API side only: [displacement] needs [material], ranges and option kinds are checked, and MaterialInput.displaced is 0 until #8258 draws the grid. Nothing else found.
2026-11-03 17:49:53 +01:00
Ludovic Marie 7c5fb85f28 Merge pull request #8189 from rdbtCVS/perf/random-tick-next-mask
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. The reuse rule (same revision, from in [f, y]) is sound: the lowest ticking section at or above any Y in that range is still y. The tick_parity test now drives next_masked directly, so the game's own cached answer has no test of its own.
2026-11-03 17:49:49 +01:00
Ludovic Marie b7304857dd Merge pull request #8172 from rdbtCVS/perf/spawn-candidate-incremental
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Per-player segments with a per-level SpawnScratch in levels.rs; the 3,000-step random walk against the uncached union is the right proof for the order the shuffle sees. Nothing else found.
2026-11-03 17:49:45 +01:00
Ludovic Marie fcee2057b8 Merge pull request #8073 from glitchsnake/fix/7461-arrow-impact-server-parity
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Vanilla pairs the arrow at addEntity and its first sendChanges runs before the arrow ticks, so IN_GROUND reaches the client a tick later, as this does. Risk: the joined arrow's metadata is built a second time in lan_entities.rs, so it can drift from the tracker's own arrow_meta path.
2026-11-03 17:49:40 +01:00
Ludovic Marie 49c99f9fa5 Merge pull request #8004 from NerfPhaselock/perf/gpu-culling-ii
🤖 Agent: one point checked: gpu_culling::supported still needs MULTI_DRAW_INDIRECT_COUNT and 8 storage buffers, so Metal and GL keep the CPU walk and only Vulkan/DX12 frames change, the two backends the device tests cover; a camera past the i32 plane terms falls back to a CPU frame, so far teleports can't drop sections.
2026-11-03 17:49:36 +01:00
Ludovic Marie 3b3094e2f2 Merge pull request #8149 from kacpherek/far/2-coarse-first
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Each mesh dispatch now clones plan.nodes and plan.split into the snapshot (thousands of keys, beside the samples map it already clones); an Arc on the plan's sets, rebuilt only on replan, would make that free. Behaviour and tests look right.
2026-11-03 17:49:32 +01:00
Ludovic Marie 8d1e059489 Merge pull request #8151 from kacpherek/far/4-sea-floor
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. Checked: vanillagen/lod.rs shade_sky has dimmed water a level per block since ee7d443c (10-30), so lighting visited water as open sky (96877dc, b4629e0) was what drew the bright patchwork. The heightmap change (bed found under shaded water spans) has no test of its own.
2026-11-03 17:49:27 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 5121d46ea7 Add Беларуская (be) launcher translation support
Registers Беларуская as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:49:22 +01:00
Ludovic Marie 4600012a2e Merge pull request #8150 from kacpherek/far/3-hold-split
🤖 Agent: Review by Ludovic's AI agent (Claude), not by Ludovic himself. The 5% hold applies only to tiles split last plan, so the 8-to-10 band is unchanged and the new test pins both sides of the margin (670 vs 700 blocks). Nothing else found.
2026-11-03 17:49:22 +01:00
Ludovic Marie 313f351428 Merge pull request #7968 from ErikKalikas/mod-config
🤖 Agent: checked against main: nothing there covers ModConfigEvent yet (only native_config_dir, API 26), and no hook changes landed since this head's base, so the fragment still stamps cleanly; the reload poll is one stat per loaded file per second and nothing at all with no configs registered.
2026-11-03 17:49:17 +01:00
Ludovic Marie 28fb2bf226 Merge pull request #8208 from Joansitoh/fix/8205-scoreboard-air
🤖 Agent: matches ServerPlayer.doTick's lastRecordedAirLevel check: the air score moves only when getAirSupply changes, negative values included while drowning. The red note check was a GitHub 504 in overlap_note.py, rerun.
2026-11-03 17:49:13 +01:00
Ludovic Marie e98bb1c714 Merge pull request #8248 from HrafnaValkyrja/feat/admin-dimension-restore
🤖 Agent: dimension_folder refuses '..', empty segments and anything outside resource-id characters before any path is joined, and the zip entries go through enclosed_name plus a component-wise prefix match, so a crafted backup cannot write outside the dimension folder. Overlaps #8245 in api.rs/cli.rs; whichever lands second carries a small conflict.
2026-11-03 17:49:08 +01:00
Ludovic MarieandClaude Opus 5.5 2dbe322dd1 Shader packs: cite the shaders.properties reference, not Iris, in the new comments
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:48:53 +01:00
Ludovic MarieandClaude Opus 5.5 2afd3b99f8 Merge main into #7054: the particle culling row joins the Performance page's Culling group
Main moved the graphics settings to pages (General, Quality, Performance,
Advanced): Particle Culling now sits beside Entity Culling in the Culling
group, its test drives the row with main's helpers, and the docs list it
with the other culling modes. Lang tables and particles.rs keep both sides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:48:00 +01:00
Ludovic MarieandClaude Opus 5.5 c1d887afd0 cargo-horizon-mod: its releases never become the repo's latest
The launcher and nightly releases pass --latest=false too; without it every
cargo-horizon-mod tag would take GitHub's "latest" from the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:47:52 +01:00
Ludovic MarieandClaude Opus 5.5 a832968513 Powder snow: a resting entity skips the sweep
PowderSnowBlock.entityInside draws nothing without horizontal known movement, so the
per-tick sweep (and its HashSet) is skipped for entities that do not move sideways.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:47:51 +01:00
0f7f9db8cf Far terrain threads step back only while the near terrain loads
From 6f45ae4278 on #5916 (kacpherek's own fix): kept at utility QoS for
the whole session, macOS ran the far terrain on the efficiency cores long
after the near chunks were in, and it took minutes to settle. Each far
thread now steps behind (far_terrain_behind) while Lod::set_near_loading
says the near terrain loads, and back to the default once it is in. On
Linux and Android nothing changes: an unprivileged thread can't raise its
priority again, so they stay behind_server as before.

Co-Authored-By: kacpherek <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:47:17 +01:00
Ludovic Marie 0a79df7554 Merge origin/main into fix/8051-reduced-debug-info
# Conflicts:
#	crates/horizon-client/src/lan/hub.rs
2026-11-03 17:47:15 +01:00
Ludovic MarieandClaude Opus 5.5 b266bf1144 Trident flames: the front view's turned yaw, as the other entities' flames
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:46:34 +01:00
Ludovic MarieandClaude Opus 5.5 faa8038177 Keep the client's glass bottle PASS without water
BottleItem.use on the client never finds a dragon's breath cloud (an
AreaEffectCloud's owner is not synced), so with no water in reach it
PASSes and startUseItem gives the off hand its turn. The UseItem packet
is sent before this check either way, so the server still fills the
bottle from the cloud.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:46:30 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 ab212945d7 Entity saves: ghast ExplosionPower, trident LeftOwner, ticked fireballs burn
Ghast.addAdditionalSaveData writes ExplosionPower (default 1). An ownerless
projectile has left its owner after its first tick, so a trident saves
LeftOwner. AbstractHurtingProjectile.tick ignites a fireball for a second
every tick (wind charges do not burn).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 11:46:06 -05:00
Ludovic MarieandClaude Opus 5.5 e88dc500cb Server: a stop on the supervisor's stdin still ends it
Hosting panels and `horizon-server run` send `stop` on stdin and wait for
the process to exit; with the stopped phase they would wait forever. While
the game is stopped, the supervisor's stdin now takes `start` and `stop`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:45:58 +01:00
HrafnaValkyrja 765cec5be7 Merge remote-tracking branch 'origin/main' into fix/item-tnt-block-speed 2026-11-03 11:45:42 -05:00
Ludovic MarieandClaude Opus 5.5 0eab6d3656 Pterodactyl egg: online mode's description matches today
Horizon's client signs in with Microsoft and joins online servers, so the
note that it can join offline servers only was out of date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:45:39 +01:00
Ludovic Marie e18186e29e Merge pull request #8291 from senjinthedragon/shader-pass-timing
🤖 Agent: the mip timer brackets only each chain's first level (the largest, most of the cost), so read 'mipmaps colortexN' as a lower bound; the label's format! runs every frame even with timing off, a few ns.
2026-11-03 17:45:25 +01:00
Ludovic Marie a1063aadbd Merge pull request #8244 from HrafnaValkyrja/fix/dragon-breath-cloud-timing
🤖 Agent: checked in the 26.3 jar: AreaEffectCloud.serverTick discards at tickCount - waitTime >= duration, returns while waiting before radiusPerTick, and runs the victims map every 5 ticks; neither DragonFireball nor DragonSittingFlamingPhase calls setWaitTime, so the default 20 holds for both clouds.
2026-11-03 17:45:21 +01:00
Ludovic Marie daa33dcb62 Merge pull request #8243 from Joansitoh/fix/8225-pvp-fire-aspect
🤖 Agent: Fire Aspect on a PvP hit only when the hit hurt, as vanilla's doPostAttackEffects. Simpler way for later: Enchantments::ignite_seconds duplicates the ignite half of enchant_effects.rs post_attack's loop, which could call it too.
2026-11-03 17:45:16 +01:00
Ludovic Marie a0018408fe Merge pull request #8239 from HrafnaValkyrja/fix/attribute-command-mob-modifiers
🤖 Agent: modifier add/remove/value get now go through finalize's store, so the cached fields (speed, attack_damage, follow_range...) follow, and an attribute the type lacks answers commands.attribute.failed.entity as vanilla's null getAttribute does. Modifier.id as a Cow stays a borrow for the built-in ids, so no new allocation on the refresh path.
2026-11-03 17:45:11 +01:00
Ludovic MarieandClaude Opus 5.5 8e7b5fa7e9 Merge main into perf/startup-core-overlap
main now restores the block registry from registry-v1.bin (load_registry_with_flags); keep that,
and parse facts.json from a slice on a snapshot miss.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:45:07 +01:00
Ludovic Marie f8350550da Merge pull request #8132 from HrafnaValkyrja/fix/projectile-vehicle-hits
🤖 Agent: checked in the 26.3 jar: LlamaSpit.onHitEntity hurts only for a LivingEntity owner and never discards (only onHitBlock does), so the spit flying on through an entity is right. Moving vehicle_targets into projectile_targets also gives fireworks' and potions' callers boats and carts, which matches VehicleEntity.isPickable for every projectile.
2026-11-03 17:45:07 +01:00
Ludovic Marie b5a8a4271c Merge pull request #8113 from Joansitoh/fix/8100-scrolling-labels
🤖 Agent: ui::scrolling_text is the existing AbstractWidget.extractScrollingStringOverContents port, so the three Horizon widgets now behave like vanilla buttons. The cycler's clip box is w - 18, inside its 9 px arrow gutters, so the sliding text never runs under the arrows. Nothing else found.
2026-11-03 17:45:02 +01:00
Ludovic MarieandClaude Opus 5.5 9835a47fdc install.sh signature test: edit files without GNU sed -i
BSD sed (macOS) reads the expression after -i as a backup suffix, so the
test failed on a Mac with OpenSSL 3 or later on PATH (Homebrew's), where
it does not skip. Edit through a copy instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:45:00 +01:00
Ludovic Marie cf463d354f Merge pull request #8365 from MSedgeMC/test/scene-entity-boxes
🤖 Agent: checked: the oracle's getEntityCollisions keeps CollisionGetter's getSize() < 1e-7 shortcut and the bounds.inflate(1e-7) query, and the wall fixtures sit on the player's leading face plus or minus the inflation, so the probe's entities slice is pinned at the boundary that decides it; it carries #8278's two commits, queued before it.
2026-11-03 17:44:58 +01:00
Ludovic Marie 9ac513c02d Merge pull request #8096 from HrafnaValkyrja/fix/entity-move-block-speed
🤖 Agent: no mob path scaled by the block speed factor before, so no double scaling. LivingEntity.getBlockSpeedFactor also lerps by movement_efficiency, which is 0 for every mob type by default, so leaving it out changes nothing today; it matters once armor with Soul Speed is on a mob.
2026-11-03 17:44:53 +01:00
Ludovic Marie 4054a9e9fc Merge pull request #8086 from Joansitoh/fix/8046-peaceful-targets
🤖 Agent: checked in the 26.3 jar: LivingEntity.canAttack returns false for a Player target in PEACEFUL before canBeSeenAsEnemy, and spares_players feeds can_target_player, can_keep_target_player, HurtByTarget and the golem's DefendVillage, so every targeting path gets it. The w.player.is_some() half is redundant (every caller already has a player) but harmless.
2026-11-03 17:44:49 +01:00
Ludovic Marie f3220f820c Merge pull request #8387 from MSedgeMC/fix/support-blocks
🤖 Agent: checked in the 26.3 jar: handlePlayerPositionChange reads verticalCollisionBelow of the previous move before player.move, as this does; one small difference: the check runs after the anticheat drops a false ground claim, so with [anticheat] on a corrected claim skips the resend vanilla would do, which is harmless.
2026-11-03 17:44:44 +01:00
Ludovic Marie 10a06ec47a Merge pull request #8155 from arslanarm/shaderpacks/pack-clear-both-sides
🤖 Agent: clearing the other texture too is right whenever a buffer flips more than once a frame (both 2 and 3 writes leave the first target stale); it costs one more full-screen clear per cleared buffer each frame, so a later perf pass could skip buffers that flip exactly once, whose alt side still holds that frame's clear.
2026-11-03 17:44:40 +01:00
Ludovic Marie 6cff270d12 Merge pull request #8379 from MSedgeMC/fix/dragon-arena-ticket
🤖 Agent: checked in the 26.3 jar: EnderDragonFight.tick adds TicketType.DRAGON at (0, 0) with radius 9 while the boss bar has a player and removes it otherwise, so ARENA_LEVEL = 33 - 9 = 24 is right, and the source follows fight.players, the same 20-tick validPlayer scan the bar uses.
2026-11-03 17:44:36 +01:00
Ludovic Marie 82d02678d9 Merge pull request #8144 from TiggerTakkyTTT/fix/server-management-hide-online-players
🤖 Agent: hide-online-players now lives in an AtomicBool on lan::Shared that status_json reads per ping, so a management change applies to the next server-list ping without a restart; harness ids 190–199 are unique across the open management PRs.
2026-11-03 17:44:31 +01:00
Ludovic MarieandClaude Opus 5.5 c7c48fe7a8 Riptide: the server tests the player's current box only
A ServerPlayer is client authoritative, so LivingEntity.aiStep does not travel on the server and checkAutoSpinAttack gets the current box twice (26.3 bytecode). Sweeping from where the tick's first move started hit mobs vanilla's server passes through.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:44:22 +01:00
Ludovic MarieandClaude Opus 5.5 60a1ee3176 Minecarts: look the display state up once per cart
The cull now needs the display state (a custom air state stretches nothing), and the draw needed it again: compute it once past the distance cut instead of two registry lookups per cart each frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:44:20 +01:00
Ludovic MarieandClaude Opus 5.5 bbc4e8f6c7 Shader constructors: bvec4 arrays and members too
ELEMENTS listed bvec2 and bvec3 but not bvec4, so a bvec4[] constructor or a struct with a bvec4 member was left unconverted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:44:17 +01:00
Ludovic MarieandClaude Opus 5.5 c93829b157 Keep camera_rotation's doc comment on camera_rotation
level_can_have_weather sat between the comment and its function, so rustdoc gave the camera's comment to the weather helper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:44:12 +01:00
Ludovic MarieandClaude Opus 5.5 f50c9f25fe import-resources: copy to the folder the server reads first
The destination ignored [engine] resources and an existing resources/
folder, both of which the server reads before the installer's copy, so an
import could land where the next start never looks. Follow the lookup
order, and take the version from horizon_core's pinned VERSION_ID.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:44:11 +01:00
Ludovic MarieandClaude Opus 5.5 4518465581 LOD thread test: < cores, not <= cores - 1 (clippy int_plus_one)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:43:53 +01:00
arismoko 14e5230c9e Wrap relative teleport angle deltas before resolving them 2026-11-03 16:43:32 +00:00
Ludovic MarieandClaude Opus 5.5 3f73256b01 Translations: keep only real ones, fill the launcher's new strings
Over the 19 tables merged above (fa, he, hu, ro, da, fi, no, bg, sk, lt):

- Game tables: entries equal to en_us dropped (the game falls back to
  en_us per key), as main did for hi_in, id_id, pt_pt and ur_pk.
- Entries that translated a product name as a word (Discord as
  "Nesantaika", Fabric mods as textile mods, Horizon as "Хоризонт",
  Tailscale as "tail scale") dropped in the game, English in the launcher.
- The six controller options (Look Sensitivity, Invert Look X/Y, Sneak
  Button, Move/Look Deadzone) were verbs in every table ("look at the
  deadzone", "invert appearance X"): rewritten as option names.
- Launcher tables: the 8 strings main added since (offline names,
  Microsoft sign-in), so every_language_has_every_string passes.
- Language::parse: nb and nn (what macOS and Windows report for
  Norwegian) pick the Norwegian table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:43:28 +01:00
Kacpherek 512d5cf856 Measure scene_replay's memory with the game's allocator
The replay ran on the system heap, which after --world freed its
remeshed meshes kept 0.8 to 4.9 GB of them dirty ("Malloc Small"),
depending on how the meshes were laid out, so --memory's footprint did
not say what the game holds. It now uses the game's own allocator, as
horizon-client does: the heap's dirty memory is 26 MB after the run.

Also takes clippy's then_some in SectionGpu::vertex_ranges.
2026-11-03 17:43:11 +01:00
Kacpherek f2c8e2ab18 Store whole cube faces of near sections as one 24-byte record
Most solid quads of a section are whole faces of a block's cube on the
block grid: their corners, UVs, light and colour follow from the block,
the face and a few bytes. The mesher now lays such a quad out as one
24-byte record (block and face, UV rectangle, layer, tint, alpha, each
corner's grey level and light) instead of four 24-byte vertices, and the
rest stay as vertices that their record points to. The quads keep their
order, so the side buckets, draws, occlusion culling and GPU culling
count quads as before. A record is kept only when expanding it gives
back the quad's four vertices bit for bit.

The solid pipelines now read the arena page themselves through the flat
draws' page groups, flat and per-section draws alike: a vertex index
below 2^28 names a vertex, above it a corner of the record at that slot.
They expand records to the same vertex words, so the shading after is
unchanged; the colour is converted as the M1's vertex fetch converts
Unorm8x4 (times 1/255), which keeps the old layout's picture exact
through them. The visibility buffer reads records in its resolve; its
IDs now hold a record bit and 6 bits of page, and frames with more than
64 pages draw without it. Translucent quads and far tiles keep their
vertices. With a shader pack (or one of Horizon's own) the sections are
meshed again as vertices, since its programs read the arena as such.
HORIZON_PACKED_QUADS=0 turns the layout off.

On the RD 48 capture, meshed again from its save, 30.4M of 34.4M solid
quads get a record: near-section vertex data falls from 3,362 MB to
1,367 MB and the process's graphics memory from 5.4 GB to 3.4 GB, with
the same GPU frame time. Per-section draws give the same image as
before. Flat draws differ by 1/255 in 15 to 25 pixels of 3.7M: moving
unchanged meshes to other places in the arena does the same (22 pixels),
since the draws then group by page differently.
2026-11-03 17:43:11 +01:00
Ludovic MarieandClaude Opus 5.5 164eb13b65 Drop the source-text test for the launcher's GAME constant
GAME is now horizon_core::version::VERSION_ID itself, so it cannot drift;
a regex over browser.rs tests the words in the source, not behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:51 +01:00
Ludovic MarieandClaude Opus 5.5 28718ed4ee Ordered ticks: sort the run's entities once instead of rescanning per entity
run_ordered_ticks scanned the orb, TNT and falling-block lists once per
entity it ticked (and again to find it), quadratic in their count per
tick. Collect the run's entities once, sort by join number and look each
up with a binary search (linear fallback for a list out of join order).
Same order and same skipped entities as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:36 +01:00
Ludovic MarieandClaude Opus 5.5 876ffc8e4d fa: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:10 +01:00
Ludovic MarieandClaude Opus 5.5 3e8acdf30d el: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:10 +01:00
Ludovic MarieandClaude Opus 5.5 a7b22dde01 Merge main and the translations before it into #8329 (fa)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:10 +01:00
Ludovic MarieandClaude Opus 5.5 5943ae630a Merge main and the translations before it into #8327 (el)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:10 +01:00
Ludovic MarieandClaude Opus 5.5 50022747fe sv: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:09 +01:00
Ludovic MarieandClaude Opus 5.5 10f32b5c05 Merge main and the translations before it into #8325 (sv)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:09 +01:00
Ludovic MarieandClaude Opus 5.5 23bda81bb2 cs: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:08 +01:00
Ludovic MarieandClaude Opus 5.5 e2c852bdd9 Merge main and the translations before it into #8323 (cs)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:08 +01:00
Ludovic MarieandClaude Opus 5.5 4aaec2e26b ur: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:07 +01:00
Ludovic MarieandClaude Opus 5.5 f6721e5930 Merge main and the translations before it into #8317 (ur)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:07 +01:00
Ludovic MarieandClaude Opus 5.5 702764374a th: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:06 +01:00
Ludovic MarieandClaude Opus 5.5 85e59adf3d Merge main and the translations before it into #8306 (th)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:06 +01:00
Ludovic MarieandClaude Opus 5.5 2aa71b0c72 vi: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:05 +01:00
Ludovic MarieandClaude Opus 5.5 2149056a27 Merge main and the translations before it into #8304 (vi)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:05 +01:00
Ludovic MarieandClaude Opus 5.5 98b45cff64 nl: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:04 +01:00
Ludovic MarieandClaude Opus 5.5 3f5e2f0c7b Merge main and the translations before it into #8302 (nl)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:04 +01:00
Ludovic MarieandClaude Opus 5.5 d36f6e7e2e it: add the Account page's 8 strings, keep the name Horizon
main's Account page added 8 strings after this table was written; the
launcher's i18n test needs every language to have them. Strings that
translated the name Horizon as the word horizon now keep the name.

The fallback assertions used it-IT as the language the launcher lacks;
Italian is here now, so they use Esperanto (eo) instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:03 +01:00
Ludovic MarieandClaude Opus 5.5 d71adf169c Merge main and the translations before it into #8286 (it)
Each PR of this series adds its language to the same lines of i18n.rs; this
step holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:03 +01:00
Ludovic MarieandClaude Opus 5.5 69132ee3d3 Merge main and the translation PRs #8330 to #8382 into #8385
One union of the 19 translations, which all add lines at the same places
(lang.rs Bundled arms, the launcher Language enum and Language::ALL):
each merges clean with main alone but not with the others. Every file
equals its PR's; lang.rs and i18n.rs carry all of them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:41:28 +01:00
Ludovic MarieandClaude Opus 5.5 7fe3549887 el_gr: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:40 +01:00
Ludovic MarieandClaude Opus 5.5 92e7dfbeb1 Merge main and the translations before it into #8328 (el_gr)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:40 +01:00
Ludovic MarieandClaude Opus 5.5 3fec1f53e7 sv_se: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:38 +01:00
Ludovic MarieandClaude Opus 5.5 f0a0c0519d Merge main and the translations before it into #8326 (sv_se)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:38 +01:00
Ludovic MarieandClaude Opus 5.5 2f5141eb46 cs_cz: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:37 +01:00
Ludovic MarieandClaude Opus 5.5 0b939ab69d Merge main and the translations before it into #8324 (cs_cz)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:37 +01:00
Ludovic MarieandClaude Opus 5.5 e5310a4bf0 pt_br: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:36 +01:00
Ludovic MarieandClaude Opus 5.5 3881c85f75 Merge main and the translations before it into #8318 (pt_br)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:36 +01:00
Ludovic MarieandClaude Opus 5.5 b2cd4ad7d6 ar_sa: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:35 +01:00
Ludovic MarieandClaude Opus 5.5 4b72588a80 Merge main and the translations before it into #8315 (ar_sa)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:35 +01:00
Ludovic MarieandClaude Opus 5.5 f2ab85d7da ja_jp: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:34 +01:00
Ludovic MarieandClaude Opus 5.5 4f7ac75bef Merge main and the translations before it into #8314 (ja_jp)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:34 +01:00
Ludovic MarieandClaude Opus 5.5 76654ac3b6 th_th: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:33 +01:00
Ludovic MarieandClaude Opus 5.5 b56cb1e293 vi_vn: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:32 +01:00
Ludovic MarieandClaude Opus 5.5 67f9e4fa3e Merge main and the translations before it into #8307 (th_th)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:32 +01:00
Ludovic MarieandClaude Opus 5.5 a9e0496cc5 nl_nl: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:31 +01:00
Ludovic MarieandClaude Opus 5.5 02af8ae24e Merge main and the translations before it into #8305 (vi_vn)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:31 +01:00
Ludovic MarieandClaude Opus 5.5 d47f36726f Merge main and the translations before it into #8303 (nl_nl)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:30 +01:00
Ludovic MarieandClaude Opus 5.5 3a93bcc3b6 it_it: keep the name Horizon untranslated
The table translated the name Horizon as the word horizon (or dropped stray
zero-width spaces into it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:29 +01:00
Ludovic MarieandClaude Opus 5.5 ea756a2cc1 Merge main and the translations before it into #8287 (it_it)
Each PR of this series adds its table to the same lines of lang.rs; this step
holds the ones before it, so the series lands in any order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:29 +01:00
Ludovic Marie 14bbe8bf98 Merge pull request #8278 from MSedgeMC/fix/armor-instances
🤖 Agent: reading the hit record from cached_value keeps the armour instances dirty for a bypasses_armor source, as getDamageAfterArmorAbsorb returns before getArmorValue; the record's two fields only feed hurt_log, so no gameplay changes, and native_scene_motion should get past its first fall hit.
2026-11-03 17:40:26 +01:00
Ludovic Marie 1470ef7f60 Merge pull request #8270 from MSedgeMC/fix/loot-table-containers
🤖 Agent: the 25 names match the 26.3 RandomizableContainer implementors (RandomizableContainerBlockEntity subclasses plus DecoratedPotBlockEntity); both callers place a chest today, so worldgen output does not change.
2026-11-03 17:40:21 +01:00
Ludovic Marie 989f8084c5 Merge pull request #8266 from MSedgeMC/fix/dispenser-loot-table
🤖 Agent: create_dispenser already returns early outside the chunk box or on an existing dispenser, so only a frame's keep list can decline now; the jungle temple and desert pyramid frames keep nothing, so worldgen output does not change and the guard is defensive.
2026-11-03 17:40:16 +01:00
Ludovic MarieandClaude Opus 5.5 622f370fc2 NativeServerPlayer.entity_id: an API number, and the acting guest's id when the hub is out
native_acting_player now takes the id from native_acting_entity, which falls back to the
guest list when lan_acting_entity is unset, as the mount hooks do; a helper fragment gives
the field an API number so mods can require it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:15 +01:00
Ludovic MarieandClaude Opus 5.5 245107d65c Shader packs: keep the flip keys' doc comment on flips
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:15 +01:00
Ludovic Marie d5d7051098 Merge pull request #8254 from MSedgeMC/fix/ocean-ruin-sea-level
🤖 Agent: the drowned arm compares getY() with ServerLevelAccessor.getSeaLevel(), and PieceWorld::sea_level is the same answer blocks() and mineshaft already use; nothing else found.
2026-11-03 17:40:12 +01:00
Ludovic MarieandClaude Opus 5.5 cf5671a3de Merge main into fix/sniffer-hop-nudge
Both sides added tests at the end of mobs/living.rs's test module; both kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:08 +01:00
Ludovic Marie fc69982ff8 Merge pull request #8289 from MSedgeMC/fix/sulfur-cube-body-tests
🤖 Agent: sulfur_cube::has_body reads extra.body, so the two tests set a field nothing read and only passed where entity-types.json is absent; nothing else found.
2026-11-03 17:40:08 +01:00
Ludovic Marie a661df2680 Merge pull request #8349 from MSedgeMC/port_map/rest-016-transfer
🤖 Agent: checked on main: execute_command dispatches transfer to cmd_transfer and lan/commands.rs lists it in DEDICATED_ONLY; Hub::transfer sends the packet.
2026-11-03 17:40:04 +01:00
Ludovic MarieandClaude Opus 5.5 76ae2acc14 Merge #8122, #8118 and #8108 (management series) into entity broadcast range management
Stacks the management series so the queue lands them in order; every
handler, setter, port-map row and harness check of the four is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:40:00 +01:00
Ludovic Marie 34379152c3 Merge pull request #8348 from MSedgeMC/port_map/rest-015-idletimeout
🤖 Agent: checked on main: execute_command dispatches setidletimeout to cmd_setidle_timeout and lan/commands.rs lists it in DEDICATED_ONLY, so both rows are ports.
2026-11-03 17:39:59 +01:00
Ludovic Marie 7af93bf769 Merge pull request #8271 from MSedgeMC/port_map/client-chunk-cache-rows
🤖 Agent: Streaming::forget no longer exists and forget_columns is the column drop; the per-debris draw lives inside tick_explosions_with, so inline is the right verdict.
2026-11-03 17:39:55 +01:00
Ludovic Marie 4c11af734c Merge pull request #8262 from MSedgeMC/fix/cart-blast-ledger
🤖 Agent: checked on main: explosion.rs exploded_positions spares rails under combat.rail_proof_blast, set from fuse >= 0 in minecarts.rs and saved across nested blasts in native_explosions.rs.
2026-11-03 17:39:51 +01:00
Ludovic Marie 7cacb9417c Merge pull request #8259 from MSedgeMC/fix/enough-food-ledger
🤖 Agent: checked in the 26.3 jar: LocalPlayer is the only class besides Player that references hasEnoughFoodToDoExhaustiveManoeuvres, and sprint.rs Conditions::possible is exactly enough_food || may_fly.
2026-11-03 17:39:46 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 79634c271f Add Bahasa Melayu (ms_my) game translation
Bundles Horizon's own Bahasa Melayu strings so ms_my players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:39:44 +01:00
Ludovic Marie da586c1ca2 Merge pull request #8250 from MSedgeMC/port_map/client2-017-accessibility-rows
🤖 Agent: checked on main: options_ui.rs layout puts options.accessibility.link beside Done (Act::AccessibilityHelp) and greys Rotate with Minecarts on in_world && minecart_improvements, so the two rows are ports; init keeps missing for the High Contrast half.
2026-11-03 17:39:41 +01:00
Ludovic Marie 78f292e3a0 Merge pull request #8139 from masa-masa-0314/fix/falling-end-portal
🤖 Agent: matches EndPlatformFeature.createEndPlatform(…, true): each mismatching block goes through destroyBlock(pos, true) (drops + 2001 particles) before the obsidian/air is set; still no regression test, the platform rebuild has none.
2026-11-03 17:39:36 +01:00
Ludovic MarieandClaude Opus 5.5 62f3edb377 Merge #8118 and #8108 (view distance, spawn protection management) into simulation distance management
Stacks the management series so the queue lands them in order; every
handler, setter, port-map row and harness check of the three is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:39:19 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 57a40ae32a Add Bahasa Melayu (ms) launcher translation support
Registers Bahasa Melayu as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:39:01 +01:00
Ludovic MarieandClaude Opus 5.5 08fe7a8ca0 Test hooks: the player_chat stub NativeClientHooks now needs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:38:04 +01:00
Ludovic MarieandClaude Opus 5.5 560e63c0ea Merge #8108 (spawn protection management) into view distance management
Stacks the management series so the queue lands them in order: both add
handlers, a lan.rs setter, a port-map row and harness checks at the same
places; all of both are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:37:50 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 31daade750 Add Afrikaans (af_za) game translation
Bundles Horizon's own Afrikaans strings so af_za players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:37:20 +01:00
Ludovic MarieandClaude Opus 5.5 b3017ca6d4 Splitscreen: offline guests join only servers on this computer or its local network
Everyone who plays on another server owns the game (the project's rule,
decided 2026-11-03): P1's offline-profile guests may follow it only to a
server whose resolved addresses (after the SRV redirect) are all loopback,
private or link-local. Public servers, even in offline mode, and friends'
invites refuse them on the profile page with a clear message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:37:20 +01:00
Ludovic MarieandClaude Opus 5.5 ada0c3374f Management harness: move operator level ids to 220-229
They clashed with #8108 (spawn-protection radius), which uses 150-159.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:36:50 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free bb45e3e267 Add Afrikaans (af) launcher translation support
Registers Afrikaans as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:36:39 +01:00
ElyTheCatandOpenAI Codex 2716f761c4 Remove obsolete occlusion test filename
The tests now live in occlusion_culling_tests.rs, matching the feature test naming convention.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 20:06:14 +03:30
Ludovic Marie bb1a8aeffb Merge pull request #8360 from NikitaMGrimm/prepare-accept-26.3-republish-6
🤖 Agent: checked against Mojang's live manifest: 26.3 now points at 80608ff6 with the same client jar (e877b6a0) and asset index 331e5c80, so only translations moved; without this, prepare rejects every fresh launcher install.
2026-11-03 17:35:50 +01:00
ElyTheCatandOpenAI Codex d3ae3e9f46 Reuse async occlusion traversal buffers
Keep DDA worker scratch and result vectors across jobs, reset voxel state on snapshot changes, and move culling tests into standard feature test files.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 20:05:10 +03:30
dontstopgorkingitandDeepSeek V4.1 Flash Free 35be9810d1 Add Íslenska (is_is) game translation
Bundles Horizon's own Íslenska strings so is_is players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:34:43 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free cdbda60df6 Add Íslenska (is) launcher translation support
Registers Íslenska as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:34:04 +01:00
Ludovic Marie 27e290b18a Merge pull request #8370 from horizon-rust/feat/launcher-glass-account
🤖 Agent: Account card in the glass look; account_rows is split into microsoft_rows and sign_in_parts, so the light look draws the same rows as before.
2026-11-03 17:32:46 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3b46ba0360 Add Српски (sr_cs) game translation
Bundles Horizon's own Српски strings so sr_cs players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:32:39 +01:00
MSedgeMC 95cba00465 port_map: Entity.playSound names the mobs' voice path 2026-11-03 16:32:24 +00:00
MSedgeMC ce5e42e3dc test: a silent cow makes no ambient sound
The cow's ambient sound goes through the same path a spawned mob's does, so the
test asks one cow with Silent:1b and one without for their ambient sound: the
silent one raises nothing, the loud one entity.cow.ambient at Cow.getSoundVolume
(0.4) and a pitch in the voice range, and both leave the same random state.
2026-11-03 16:32:23 +00:00
MSedgeMC 884536458a fix: a silent mob keeps its voice quiet
Mob.playAmbientSound, and every other sound a mob plays through playSound, ends
in Entity.playSound, which returns early for a silent entity:

  public void playSound(SoundEvent, float, float);
     0: aload_0
     1: invokevirtual #736  // Method isSilent:()Z
     4: ifne          34

Mob::voice pushed its sound event unconditionally, so a mob summoned with
Silent:1b went on humming: an ambient sound, a creaking's death, an armadillo's
roll, a horse's whinny, all of them.

The pitch is still drawn before the check, because Java evaluates the arguments
of playSound(event, getSoundVolume(), getVoicePitch()) before the call; gating
first would leave the random state two draws behind vanilla.
2026-11-03 16:32:23 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free a8030fc2bd Add Српски (sr) launcher translation support
Registers Српски as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:32:06 +01:00
ErikKalikasandClaude Opus 5.5 420ef24de8 Native mods: a mod's own data folders, read on each data load
native_add_server_reload_listeners lists a mod's listeners (NeoForge's
AddServerReloadListenersEvent): an id and a folder under
data/<namespace>/. On each data load of a server (a world opening,
/reload), before native_server_data_loaded,
native_server_reload_listener_apply hands over the folder's .json files
as vanilla's SimpleJsonResourceReloadListener reads them: <ns>:<path>
ids, the top pack's file for each id over the resource root and the
world's enabled data packs, a file that isn't JSON logged and left out.
Fixes #8400.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 18:30:59 +02:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 024a9dac9f Add Slovenščina (sl_si) game translation
Bundles Horizon's own Slovenščina strings so sl_si players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:30:51 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 110726c5f2 Entity saves: Fire starts at 0, summoned flags survive, every living entity saves its speed instance
Entity.remainingFireTicks starts at 0, so the shared base no longer writes -1.
Orbs and projectiles kept only Tags and Item from a summon; Silent, Glowing,
Invulnerable, CustomName and CustomNameVisible are kept too. AttributeMap.pack
saves the movement_speed instance every living entity makes on its first tick
(LivingEntity.removeFrost), not only zombies and piglins.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 11:30:45 -05:00
razzo715andClaude Opus 5.5 cc5107e8e9 A player's death drops the off hand before the armour (#8367)
Inventory.dropAll drops the main inventory, then EntityEquipment.dropAll,
which walks its EnumMap in EquipmentSlot order: the off hand, then feet,
legs, chest and head. drop_inventory threw the armour first. death_drops
now collects the stacks in that order, with the vanishing-curse filter as
before, so each stack takes the same random throw as in vanilla.

Fixes #8367

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:30:32 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 302c8a16f4 Add Slovenščina (sl) launcher translation support
Registers Slovenščina as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:30:10 +01:00
Ludovic Marie 72cb603f16 Merge pull request #8157 from Akirabane/feat/tempban-mods170
🤖 Agent: /tempban is a banned-players.json entry with expires, so pardon, banlist and the login check already handle it; parity 140/140 across two runs on this head (proven.txt). Translation follow-up filed separately.
2026-11-03 17:29:36 +01:00
Ludovic Marie a057ca1140 Merge pull request #8159 from Akirabane/fix/8153-boat-yaw-lerp
🤖 Agent: The remote boat's yaw eases over the Lerp's 3 steps like LinearInterpolationHandler; parity 140/140 across two runs on this head, the failures were flakes or main's (proven.txt).
2026-11-03 17:29:32 +01:00
Ludovic Marie 67dad0d1a5 Merge pull request #8168 from Akirabane/fix/8140-mob-climbable
🤖 Agent: Mob climbing matches LivingEntity.onClimbable/handleOnClimbable (26.3 bytecode); parity 140/140 across two runs on this head, the failures were flakes or main's (proven.txt).
2026-11-03 17:29:27 +01:00
MSedgeMC 40ca330b73 The ledger knows the shulker's boarding reset is ported
Shulker.startRiding is no longer missing: it is mobs/shulker.rs::on_start_riding,
called from both rider entry points.
2026-11-03 16:29:16 +00:00
MSedgeMC eb7e87b0ee Test the shulker's attach face on boarding
riders::start_riding on a shulker attached to the block to its east (face 5)
and a pig: the shulker boards and its face is DOWN. A vehicle that already
carries someone refuses the board and the face has still gone back from 3 to
DOWN, with no mount link made. A cow rider keeps the face data it had.
2026-11-03 16:29:16 +00:00
MSedgeMC 311c2f82f3 A shulker that boards a vehicle sits lid up
Shulker.startRiding sets its attach face to Direction.DOWN and only then hands
over to Entity.startRiding, which decides whether the ride happens at all. A
shulker stuck to a wall, a ceiling or the side of a block therefore rides a
boat or a minecart lid up, and one whose board is refused is left lid up too.

mobs/riders.rs had no such reset: extra.variant3 came from Attachable and the
save, so a shulker that boarded kept the face it had and rode on its side. The
reset now runs first in start_riding (before every refusal, matching the
vanilla ordering) and again in link, which the game loop's own mount path
uses.
2026-11-03 16:29:16 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e6aac81666 Add Latviešu (lv_lv) game translation
Bundles Horizon's own Latviešu strings so lv_lv players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:28:35 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e80459c495 Add Latviešu (lv) launcher translation support
Registers Latviešu as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:27:55 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free c04758dfec Add Eesti (et_ee) game translation
Bundles Horizon's own Eesti strings so et_ee players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:26:19 +01:00
MSedgeMC 5efca3696e test: releasing a column keeps no queued job, and no other
Two jobs queued for (0, 0), one for its neighbour, one far off and a save:
releasing nothing or a column that is not queued leaves all five (the count
vanilla's release answers with is zero too), releasing (0, 0) reports two and
leaves the neighbour's job and the save in their order, and releasing every
column leaves only the save. Without the release the first count comes back 0
instead of 2.
2026-11-03 16:25:39 +00:00
MSedgeMC 42fa57f516 port_map: the two chunk task queue release rows are ported
ChunkTaskPriorityQueue.release and ChunkTaskDispatcher.release were both
missing with a note about queued jobs not being cancelled; both now name
release_columns, which Streaming::forget_columns calls for the columns a view
drop or a server unload removes.
2026-11-03 16:25:39 +00:00
MSedgeMC b28622695d fix: a column that unloads releases the jobs queued for it
Vanilla's ChunkTaskPriorityQueue.release(chunkPos, clearQueue) empties what a
column still has queued when it unloads, and ChunkTaskDispatcher.release calls
it that way from the unload. Horizon's heap had no per-column release: a
teleport, a smaller render distance or a server's forget of a thousand columns
left every generation, decoration, light and mesh job queued for the world the
view had left, and each ran only to have its result dropped on arrival by the
Done::Proto range check.

release_columns drops the heap's jobs whose column is gone, keeping the jobs
without a column (saves, meshes to free) and the order of the rest, and
Streaming::forget_columns - where a remote view's drop and the server's unload
both land - calls it before the columns' other state goes.
2026-11-03 16:25:39 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 1a5a195fbb Add Eesti (et) launcher translation support
Registers Eesti as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:25:38 +01:00
k3yhandClaude Opus 5.5 05aa0711e6 Warn when a template pool can't be read
A pool element that fails to decode (a mod's processor list naming a block
state in the pre-26.3 {"Name": ...} form, for one) left the pool out with
no message unless HORIZON_JIGSAW_DEBUG was set: every structure using it
silently stopped generating. Warn once per pool instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 11:25:10 -05:00
itarqos5andClaude Opus 5 9267d457a0 perf(worldgen): Reduced far detail paints only the top of a wide column
Vanilla's surface rules reach eight blocks down, layering dirt under
grass and sand under a beach. A far tile 256 or 1024 blocks across draws
at most a block or two of each column's vertical face, so the six below
that are work no view resolves.

Reduced far detail now stops at depth 2 for tiles 16 blocks a column or
wider. Depth 1 is still painted, so a tile's surface -- its height, its
top state, its water and its biome -- is exactly what it was: dumping
every column of 25 tiles at levels 4 and 6 gives a file identical to the
one before this change, all 12800 columns. Only the interior of a span,
seen on a cliff face, loses its vanilla material. Full far detail, the
default, is untouched, and so are narrow tiles, whose faces are tall
enough in view to show the layering.

Measured with `lod_grid_bench` over 100 tiles a run, five runs, taking
the least-interfered run of each (this machine's spread is wide):

| level | stride | before | after |
|---|---|---|---|
| 2 | 4 | 10.6 ms | 10.8 ms (gated off) |
| 4 | 16 | 11.1 ms | 10.3 ms (-7.2%) |
| 6 | 64 | 8.7 ms | 8.2 ms (-5.7%) |

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 16:24:17 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free efc18e8b0d Add Català (ca_es) game translation
Bundles Horizon's own Català strings so ca_es players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:23:59 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 1184009b11 Add Català (ca) launcher translation support
Registers Català as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:23:18 +01:00
MSedgeMC f7ac67e929 port_map: the dolphin and axolotl attack sounds name their arm
Dolphin.playAttackSound and Axolotl.playAttackSound had no row, so the two
overrides were only visible by reading do_hurt_target.
2026-11-03 16:22:10 +00:00
Ludovic Marie 0af10f3266 Merge pull request #8351 from horizon-rust/feat/launcher-glass-settings
🤖 Agent: Settings' frame in the glass look; index_row and section_title draw SettingRows only inside glass_ui::flat_rows, so other pages keep their rows.
2026-11-03 17:21:30 +01:00
MSedgeMC 185abc7c52 test: the dolphin, axolotl and panda bite sounds
Pretends nothing without the extracted entity data: the three mobs are built
from the mob types and their blow goes through do_hurt_target, then the sound
events they raised are compared. Without the dolphin arm the list is empty,
and an axolotl with Silent:1b still clicks; the panda is the control that
already honoured both.
2026-11-03 16:18:31 +00:00
MSedgeMC cb7b4d7707 fix: a silent axolotl keeps its attack sound quiet
Axolotl.playAttackSound calls playSound, and Entity.playSound returns early for
a silent entity. The panda arm next to it already checked, the axolotl's did
not, so an axolotl summoned with Silent:1b clicked on every hit.
2026-11-03 16:18:31 +00:00
MSedgeMC cdbad640b6 fix: a dolphin plays its attack sound when its blow lands
Mob.doHurtTarget ends with playAttackSound, which the dolphin overrides with
playSound(DOLPHIN_ATTACK, 1.0, 1.0). Horizon had arms for the panda's bite, the
axolotl's click and the killer bunny's snarl, but none for the dolphin, so a
dolphin that bit a player or a squid was silent. Its goal list does have a
MeleeAttackGoal at 1.2, so the arm is reached in play.
2026-11-03 16:18:31 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 74dc4dc215 Add Lietuvių (lt) launcher translation support
Registers Lietuvių as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:17:38 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free af70571d9c Add Slovenčina (sk) launcher translation support
Registers Slovenčina as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:17:20 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free f77e1df87c Add Български (bg) launcher translation support
Registers Български as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:17:03 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free ef10feee0c Add Norsk (no) launcher translation support
Registers Norsk as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:16:46 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d2133cb5e2 Add Suomi (fi) launcher translation support
Registers Suomi as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:16:30 +01:00
Ludovic Marie 93cc95b510 Merge pull request #8331 from horizon-rust/feat/launcher-glass-notes
🤖 Agent: Patch notes in the glass look; markdown keeps its old look in light, the glass branch only changes spacing, bullets and code corners.
2026-11-03 17:16:15 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 55b1173b07 Add اردو (ur) launcher translation support
Registers اردو as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:16:13 +01:00
arismoko de02700c81 Initialize command registries and permissions in the pitch fixture 2026-11-03 16:16:07 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2b36c5d080 Add Dansk (da) launcher translation support
Registers Dansk as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:15:56 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 523e9b3a3d Add Română (ro) launcher translation support
Registers Română as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:15:39 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 9d76381f66 Add Magyar (hu) launcher translation support
Registers Magyar as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:15:22 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 6c1b80b2a5 Add עברית (he) launcher translation support
Registers עברית as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:15:05 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d5a61f8f56 Add فارسی (fa) launcher translation support
Registers فارسی as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:14:48 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 87f1e12831 Add Ελληνικά (el) launcher translation support
Registers Ελληνικά as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:14:32 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 5d8c7522b7 Add Svenska (sv) launcher translation support
Registers Svenska as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:14:15 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d81d843209 Add Čeština (cs) launcher translation support
Registers Čeština as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:13:58 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b1cf9f9fa7 Add ไทย (th) launcher translation support
Registers ไทย as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:13:40 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 954f2753bb Add Tiếng Việt (vi) launcher translation support
Registers Tiếng Việt as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:13:23 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e95a5a1066 Add Nederlands (nl) launcher translation support
Registers Nederlands as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:13:06 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 5a40f62a94 Add Italiano (it) launcher translation support
Registers Italiano as a launcher language with a full table translated
from the English strings.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:12:48 +01:00
arismoko 5d17cd57d3 Keep command angle wrapping out of the shared teleport writer 2026-11-03 16:12:02 +00:00
MSedgeMC 17f9e72104 port_map: forceSendPlayerSupportBlocks is ported
The row said the blocks under a player standing on air are never sent again. They are now, from
Hub::position_change, so the verdict is `port` with the function that does it.
2026-11-03 16:10:55 +00:00
MSedgeMC f005a6dcd2 test: pin the blocks a guest standing on nothing is sent
The hub test drives the move packets a vanilla client sends: the first 200 ticks of the connection
send nothing, the four corners of the box each get their block with the server's state, a tick
later a second claim sends nothing (one send per 200 ticks), a move the server resolved onto
something is not helped, a client that does not claim the ground is not helped, and a box that sits
across one block gets it once.

Without the send the guest receives no block update at all.
2026-11-03 16:10:55 +00:00
MSedgeMC fa06bc3d72 fix: send a guest standing on nothing the blocks under it
ServerGamePacketListenerImpl.handlePlayerPositionChange: a move packet that claims the ground
while the last move the server resolved came down onto nothing is followed by
forceSendPlayerSupportBlocks, which sends the four blocks under the player's box again
(ClientboundBlockUpdatePacket, plus the block entity's update tag where the block has one), at
most once every 200 ticks of the connection.

The hub only kept the ground claim in `on_ground`, which the accepted move overwrites, so a
guest whose block below went missing without its client noticing stood on air for good: nothing
ever told it what the server has there. It now keeps Entity.move's verticalCollisionBelow of the
last accepted move (`rests_on_ground`) and sends the blocks below on a claim that contradicts it.
2026-11-03 16:10:55 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 195a3a17ce Add Lietuvių (lt_lt) game translation
Bundles Horizon's own Lietuvių strings so lt_lt players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:08:58 +01:00
Kacpherek 41cf95bc1e Report where GPU memory goes in scene_replay
--memory on adds the renderer's largest GPU resources to the report: the
terrain arena pages and what near sections and far tiles use of them,
the translucent arena and sorted indices, the quad indices, the block
sprites with their mips, the LabPBR maps, flat draws' buffers and the
visibility buffer's. On macOS it also runs footprint on the process, so
the arena numbers can be checked against the graphics memory the system
actually charges.
2026-11-03 17:08:44 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b7cc798bcb Add Slovenčina (sk_sk) game translation
Bundles Horizon's own Slovenčina strings so sk_sk players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:06:29 +01:00
MSedgeMC 5d49a985b0 port_map: the ticket rows name the arena ticket and the PORTAL timeout
removeTicketWithRadius is no longer missing: the levels are rebuilt from the
sources, so the fight's arena ticket is the source Game::update_chunk_tickets
sets while EnderDragonFight.tick reports a watcher. addTicketWithRadius now
describes both radius adds (PORTAL 3, DRAGON 9), purgeStaleTickets points at
tick_portal (the PORTAL timeout it already ran), and the two getLowestTicket /
getTicketLevelAt gap notes no longer claim only players and forced chunks.
2026-11-03 16:05:43 +00:00
MSedgeMC 867066a5bb test: the arena ticks out to 7 chunks from its watcher, not the watcher's range
A watcher 12 chunks from (0, 0) whose simulation distance is 2 leaves nothing
around the island ticking without the ticket (checked first), then the fight's
ticket gives entity ticking to 7 chunks in every direction, block ticking to 8,
random ticks where both reach 31, and the watcher's own chunks are unchanged;
dropping the arena stops it again. The random-tick bounds case now holds an
arena with no player near it, and both grid-against-map fuzzes draw one, so the
grid and tile maps have to carry it too.
2026-11-03 16:05:43 +00:00
MSedgeMC 6e6dfa06f2 fix: the end arena ticks while a player watches the dragon fight
EnderDragonFight.tick holds a TicketType.DRAGON ticket on the arena while its
boss bar has a player and removes it when none has:
addTicketWithRadius(DRAGON, new ChunkPos(0, 0), 9) is level FULL - 9 (24) of
both kinds, so the island's chunks are entity ticking out to 7 chunks and block
ticking out to 8, whatever the watcher's simulation distance. ticket_levels
knew players, forced chunks and PORTAL tickets, so a fight watched from the
edge of the arena only ticked the chunks inside the viewer's own simulation
distance: the island's mobs, crystals and scheduled ticks stopped a few chunks
from (0, 0).

Sources gains the arena (Some((0, 0)) while watched, None once nobody is, which
is the removeTicketWithRadius side: the levels are rebuilt from the sources),
the level map lowers it like the PORTAL ticket's ring, and the random-tick
bounding box covers it so the arena still random ticks with no player near it.
2026-11-03 16:05:43 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 04daff56b8 Add Български (bg_bg) game translation
Bundles Horizon's own Български strings so bg_bg players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:04:18 +01:00
MSedgeMC bd143d0b43 test: the scene motion corpus resolves the player against entity boxes
`MotionWorld.entities` was already real — `EntityCollisions` inflates the
entity query by 1e-7 and turns each box into a collision shape — but nothing
ever reached it: `VanillaSceneMotionOracle.Level.getEntityCollisions` returned
`List.of()` and the probe passed `entities: &[]`, so no fixture resolved the
player against another body's box.

`entity_box_corpus` adds 29 fixtures of boxes: a wall whose near face sits on
the player's leading face plus or minus the amounts the 1e-7 inflation decides
between (0, 5e-8, 1e-7, 2e-7, 1e-4, signed zero, half a block), a box low
enough to step onto and ones too tall, a box the player starts inside, a gap
narrower than the player, diagonal and sprinting approaches, and boxes met
while jumping and overhead. The oracle answers
`getEntityCollisions` from them the way `ColliderGetter` does: the
`getSize() < 1e-7` shortcut, `bounds.inflate(1e-7)`, then one
`Shapes.create(box)` per intersecting body.

Dropping the slice again fails at output line 4263: vanilla stops at the wall
with `horizontalCollision` true and z held at 4039800000000000, the probe
walks through with z 40398504816ec226. With the slice the suite matches at
2,853,483 states per side.

The corpus claims collisions only. `LivingEntity.pushEntities` gives the
bodies a velocity change and can cram the player, and the snapshot carries
player state alone, so `getPushableEntities` stays empty and nothing here
claims the pushing half.
2026-11-03 16:03:10 +00:00
MSedgeMC 3157ef700f The ledger knows the sniffer's hop is ported
Sniffer.jumpFromGround is no longer missing: it is
mobs/living.rs::jump_from_ground, which now has the sniffer arm.
2026-11-03 16:03:03 +00:00
MSedgeMC b1070002de Test the sniffer hop that carries it forward
Mob::jump_from_ground on a sniffer whose move control wants to move, from a
standstill: the hop ends with 0.1 on z (yaw 0 faces south) and keeps its
ascent. A sniffer already moving 0.2 keeps that, one the move control did not
ask to move goes straight up, and a cow never takes the push.

The test runs through the jump the AI calls, with a real mob world from the
extracted data, and fails without the sniffer arm: the z velocity is 0.
2026-11-03 16:03:03 +00:00
razzo715andClaude Opus 5.5 8e06e16d37 A player's frozen ticks go out as entity data (#8280)
Entity.DATA_TICKS_FROZEN (index 7) never left the server for a player:
sync_player_state now sends it to the player when the body's ticks_frozen
changes, beside the air and absorption, and frozen_meta puts it in the
player's tracked state for the others, with 0 among its defaults. A
vanilla client on a Horizon server reads its frost overlay from it, and
every client shakes a fully frozen player.

Fixes #8280

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:02:23 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d9688f3096 Add Norsk (no_no) game translation
Bundles Horizon's own Norsk strings so no_no players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 17:02:04 +01:00
MSedgeMC 2eb87de143 A sniffer's hop from a standstill carries it forward
Sniffer.jumpFromGround hands its super's hop one more push: when the move
control wanted to move this tick (MoveControl.getSpeedModifier above zero)
and the sniffer is moving slower than 0.1 a tick across the ground, it calls
moveRelative(0.1F, (0, 0, 1)), a tenth of a block along its yaw. Mob
jump_from_ground had no sniffer arm, so a sniffer that hopped off the spot it
was sniffing at went straight up and came down where it left.

The sniffer arm sits with the rabbit's and the cubes' own jumps, before the
native hook, so a content mod sees the velocity the hop leaves behind.
2026-11-03 16:01:54 +00:00
Ludovic MarieandClaude Opus 5.5 ccc3ad7c69 launcher: unlock a world's lock explicitly before closing it
A file lock taken with flock belongs to the open file, which a process
started meanwhile shares until it execs: closing our copy alone left the
world locked for that long, so worlds::tests failed now and then while
another test started a process. The launcher's world lock now unlocks
when dropped, and the test unlocks as the game does when it closes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:00:05 +01:00
MSedgeMC 2ab429f046 port map: the startedCleanly protocol is in run_loading and Loading::finish
One row said there was no unclean-start recovery and the other that
startedCleanly is never written after load. It is written false at start,
read by unclean_start_recovery, and written true with the options saved at
the handoff.
2026-11-03 15:59:46 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8ed846b3e3 Add Suomi (fi_fi) game translation
Bundles Horizon's own Suomi strings so fi_fi players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:59:33 +01:00
Ludovic Marie 44a0b9a559 Merge pull request #8313 from horizon-rust/feat/launcher-glass-versions
🤖 Agent: Versions page in the glass look; release dates now read published_at's time, so the backend test constructors gained an empty time.
2026-11-03 16:56:25 +01:00
MSedgeMC e3315e0717 port map: a display's light level is display_light, not the geometry pass
The row pointed at Game::text_display_geometry, which only calls it.
display_light answers the brightness override packed as light coords, and the
world's light at the position when there is no override.
2026-11-03 15:56:08 +00:00
MSedgeMC bc60d450bf port map: getColorForLayer is layer_color, and it reads the dyed colour
The row pointed at Game::armor_layers and said a dyed leather piece keeps
the undyed brown. layer_color takes the stack's dyed colour when it has one
and answers -1 for a layer that is not dyeable.
2026-11-03 15:54:35 +00:00
MSedgeMC 73e1d5b828 port map: a display Horizon holds does save its transformation
Display.addAdditionalSaveData was marked missing as "no local display entity
to save". NativeDisplay::write stores the transformation, both durations and
the start delay into the entity's saved compound; the rest of the synched
data is not written.
2026-11-03 15:54:03 +00:00
MSedgeMC 4c5335c529 port map: a bat's wing beat is flaps, and the flap vibration goes out
The row said a bat's every-tenth-tick flap sends no minecraft:flap. flaps
has the Bat arm and the sculk movement pass posts the event when the mob
flaps over air.
2026-11-03 15:52:52 +00:00
HrafnaValkyrjaandClaude Sonnet 5.5 be63126164 Add GET /api/v1/mods: the native mods a dedicated server's game program was built with
Part of #5147.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:52:32 -05:00
MSedgeMC 123323b0e5 port map: a brute's AI step and the furnace cart's push name their fns
Both brute rows pointed at register_brute, which only sets goals: the step is
ai_step's brute branch and the activity switch is update_activity. The
furnace cart's push is push_along, not the slowdown it is called from.
2026-11-03 15:51:45 +00:00
SenjinandClaude Opus 5.5 9efa76d039 Shader packs: End portals, gateways and beams draw with the pack's programs
End portal and gateway faces (position-only quads Horizon's entity
shader fills with its screen-projected starfield) and beacon and End
gateway beams (whose texture that shader wraps per pixel) were left to
Horizon's own entity shader under a pack, drawn into the pack's buffers
as if they were Horizon's frame: under a pack that renders at reduced
resolution they came out black and in the wrong place.

They now go to the pack, by the programs of the pack format: portal
faces to gbuffers_block (block entities) with end_portal.png over each
face, white and at full light, the pack telling them by blockEntityId;
beams to gbuffers_beaconbeam and its fallbacks gbuffers_textured and
gbuffers_basic, after deferred and blended, each face cut where its
texture repeats (at most 64 pieces) so every piece holds one copy of
the sprite in plain atlas coordinates. A block entity's run, and the
beacon beams' own run at stage NONE, is split by part (plain, portal
faces, beams), and under a pack neither portal faces nor beams fall
back to Horizon's entity shader.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 16:50:42 +01:00
Nikita Maximilian GrimmandClaude Opus 5.5 a32fe1db93 Prepare: accept Mojang's sixth 26.3 republish (80608ff6, index 331e5c80)
Only assetIndex differs from the last accepted version JSON. The new index
changes 142 minecraft/lang files and adds or removes nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 16:49:52 +01:00
Ludovic Marie 6feb425580 Merge pull request #8298 from horizon-rust/feat/launcher-glass-server-tabs
🤖 Agent: Rule lines are dropped only in the glass look (a local transparent rule); the light tabs keep their borders and rows unchanged.
2026-11-03 16:49:44 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 284fba6c68 Slow dropped items and primed TNT on soul sand and honey
Entity.move ends with getBlockSpeedFactor for every entity; items and
primed TNT now call the shared helper from #8096.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:49:25 -05:00
MSedgeMC f068c11d5c port map: the level-load tracker rows name the tracker
Three rows of client-002 pointed at Game::tick_remote_level or
mark_message_processed. The real homes are LevelLoadTracker's own
start_client_load and is_level_ready, and Game::send_chat_acknowledgement.
2026-11-03 15:49:20 +00:00
MSedgeMC 2d31cdbd6d port map: a dropped item's name and a mob's held ammo are both read
ItemEntity.getName is the Target::Item arm of Game::target_name, and
Monster.getProjectile is Game::mob_vanilla_ammo: off hand then main hand,
the weapon's supported stack, else an arrow.
2026-11-03 15:48:38 +00:00
HrafnaValkyrjaandClaude Sonnet 5.5 ad261e3ae4 horizon-ctl: describe the replies of hello and status (#8242)
The command table gains a reply field list per command. hello and status
carry theirs; the generated reference gets a Replies section and the MCP
tool list declares outputSchema (with structuredContent in the call result).
A test requires every command in the group to name its reply fields.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:48:01 -05:00
MSedgeMC 49d2a37c52 port map: /transfer is in the tree, both rows said it was not
The register row claimed no /transfer node and the transfer row that no
command sends a ClientboundTransferPacket. The node comes from the commands
report, Game::cmd_transfer drives it, and Hub::transfer sends the packet.
2026-11-03 15:47:36 +00:00
JoansitohandClaude Sonnet 5.5 71d661a522 Name the stack (count and item) in the known-item no-change failure (#8277)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:47:10 +01:00
JoansitohandClaude Sonnet 5.5 ec4a536a87 Treat empty stacks as empty in the equipment slot gate (#8277)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:47:10 +01:00
JoansitohandClaude Sonnet 5.5 19512add34 Gate /item replace armour slots on the item's equippable slot (#8277)
LivingEntity.createEquipmentSlotAccess refuses a non-empty stack in
chest/legs/feet unless getEquipmentSlotForItem matches.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:47:10 +01:00
MSedgeMC 3f499241d7 port map: two /setidletimeout rows the command now answers
The register row said there was no literal and the setIdleTimeout row said
the timeout could not be changed in game. Both are in the tree: the node
comes from the data generator's commands.json and the command branch is
Game::cmd_setidle_timeout, which stores the minutes and names them.
2026-11-03 15:46:51 +00:00
TeiwazikandClaude Opus 5.5 47c26bc0c7 Shader packs: [displacement]'s relief casts into the shadow map
With [shadow], the pick also lists the quads with relief near the camera
on every side, and the shadow pass draws their grid where the flat quads
leave those texels, from the material's module (it holds displacement
and the vertex stage). The pass's frame group gains the height maps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 16:46:35 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d7e29f589f Add Dansk (da_dk) game translation
Bundles Horizon's own Dansk strings so da_dk players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:45:59 +01:00
MSedgeMC 404bb22d32 port_map: the nautilus jump rows name the arm the packet reaches
`AbstractNautilus.onPlayerJump` is `nautilus::on_player_jump` now rather than
an inline note on `charge_mount_jump`, and the `handleStartJump` row says
where the packet's scale lands and that DASH and the dash sound belong to the
dash itself.
2026-11-03 15:45:54 +00:00
MSedgeMC c11630ff47 test: the released jump bar's scale reaches a guest's nautilus
The test goes through `mounts::start_riding_jump`, the arm
`handlePlayerCommand` START_RIDING_JUMP calls: a three-quarter bar leaves
0.733 on the rider, a full bar 1.0, an unsaddled nautilus takes nothing, and a
dash still in its 40-tick cooldown keeps the scale it had. The last part
follows the scale into the mount's travel (`equine::ridden_step`): the rider
stays on with an empty pending jump, the dash clock starts, DASH is raised,
the dash sound is queued for the next tick and the velocity turns along the
rider's look.

The nautilus is built from the trip's own `MobType`
(`sensor_scan_tests::kind`), so the test runs without the prepared resources.
2026-11-03 15:45:54 +00:00
MSedgeMC 914cf3267d fix: a guest's released jump bar arms the nautilus it rides
`AbstractNautilus.onPlayerJump` keeps the released bar's scale on the rider
(`playerJumpPendingScale`), and `tickRidden` dashes with it. A guest's ride is
simulated by the host, so the only thing that reaches the mount is its
START_RIDING_JUMP packet — and `mounts::start_riding_jump` answered every
nautilus with None. The host was left re-deriving the bar from the guest's
`PlayerInput` bits, which it samples once per tick: a press and release that
arrive together are collapsed to the last flags, and that release never
dashes.

The packet's own scale now goes to the nautilus through
`nautilus::on_player_jump`, behind vanilla's gate (saddled, dash cooldown at
zero), and the mount's next travel spends it. The scale out of 100 is
`PlayerRideableJumping.getPlayerJumpPendingScale`, now one function
(`equine::jump_pending_scale`) shared with the host's own bar charge.

Nothing sets DASH here: Horizon's `flag2` gates the dash, so raising it before
the momentum lands would cancel the dash instead of starting it.
2026-11-03 15:45:54 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free e7b8d6a0a1 Add Română (ro_ro) game translation
Bundles Horizon's own Română strings so ro_ro players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:45:29 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 89598c575a Add Magyar (hu_hu) game translation
Bundles Horizon's own Magyar strings so hu_hu players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:45:02 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free be7cf6611c Add עברית (he_il) game translation
Bundles Horizon's own עברית strings so he_il players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:44:35 +01:00
Ludovic Marie 73ab09ef53 Merge pull request #8285 from horizon-rust/feat/launcher-glass-server-dialog
🤖 Agent: The dialog's friend chips feed the whitelist; a name failing Minecraft's 3–16 rule stays in the field instead of being added.
2026-11-03 16:40:13 +01:00
razzo715andClaude Opus 5.5 34088bafca Pick Block on a potted plant gives the plant (#8272)
picked_stack returned nothing when the block's own item was air, before
the flower pot lookup ran, and a potted plant's block has no item of its
own. picked_item now looks the potted plant up first, as
FlowerPotBlock.getCloneItemStack does (new ItemStack(potted)), and only an
item that is still air picks nothing.

Fixes #8272

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 16:38:30 +01:00
JoansitohandClaude Sonnet 5.5 c87d15a28d Sync negative frozen ticks and axolotl air supply in mob entity data
Part of #8279

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 16:37:55 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 360a7a50b7 Add فارسی (fa_ir) game translation
Bundles Horizon's own فارسی strings so fa_ir players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:36:21 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 8236aa329f Add Ελληνικά (el_gr) game translation
Bundles Horizon's own Ελληνικά strings so el_gr players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:35:53 +01:00
Kacper 352aef0008 Merge pull request #8198 from Akirabane/fix/8192-title-entity-draws
Draw no world entity over the title's panorama
2026-11-03 16:35:41 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d4052f7c5c Add Svenska (sv_se) game translation
Bundles Horizon's own Svenska strings so sv_se players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:35:24 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 4698f8f423 Add Čeština (cs_cz) game translation
Bundles Horizon's own Čeština strings so cs_cz players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:34:52 +01:00
Kacpherek 796a87f53d Let scene_replay mesh the captured sections again from a save
A capture holds finished meshes, so a mesher change could not be
measured on it. --world SAVE meshes every captured section again from
that save's region files (blocks, biomes and saved light, with ao,
biomeBlendRadius and cutoutLeaves from ./options.txt) on every core,
with the mode --leaf-culling names. A section whose 3x3 columns are not
all saved keeps its captured mesh. The report now also counts solid and
leaf quads.
2026-11-03 16:32:09 +01:00
Kacpherek 3778026966 Add a Hidden Faces leaf culling mode
With fancy leaves every face between two leaf blocks is drawn, so tree
crowns are full of faces that are almost never seen, and they dominate
the cutout quads of a forest. The new mode drops a face between two
leaves when the leaf it faces has another leaf or a full opaque cube
behind it: such a face only shows through two cutout layers, while the
faces just behind a crown's outer layer stay. The faced leaf must be in
the section, so the block behind it is at most a border cell of the
next section, whose edits already remesh this one; a missing chunk or
a Y outside the column never counts as covered.

On the RD 48 forest capture it cuts leaf quads from 7.6M to 4.6M and the
GPU frame by about 1 ms. Off by default; Off meshes exactly as before.
2026-11-03 16:32:09 +01:00
Kacpherek 940d1f9df6 Report the fastest and 10th percentile frame times in scene_replay
Another process on the same GPU, or the GPU's clock state, moves the
median frame time of a whole run by several milliseconds, which hid
changes of a few tenths. The summaries now also give the minimum and
the 10th percentile, which stay put across such runs.
2026-11-03 16:32:09 +01:00
Kacpherek ce9e113d9a Occlusion test far terrain tiles like near sections
Far terrain tiles were culled only by the frustum: every tile in view
was drawn in phase 1, also those behind nearer hills and mountains. At
render distance 32 that was about 1,000 tiles and a third of the solid
pass's time.

Tiles now go through the same two-phase occlusion test as sections. A
test carries its box's corners around the origin (a section's stays its
cell grown by a block); a tile's box is its mesh's bounds grown by a
block, and it has a culling slot of its own, kept while meshes of the
same tile replace one another. Tiles that are fading or have a stand-in
mesh stay in phase 1 untested, as their depth or mesh is not the box's.

The image is the same: the test only leaves out a tile whose every
fragment would fail the depth test, and tiles are drawn a little
farther back than their box. scene_replay reports the culling result.
On the captured RD-32 scene at 1440p with the visibility buffer, the
frame's GPU p50 goes from 8.31 to 7.95 ms looking ahead and from 8.73,
8.76 and 7.99 to 7.64, 7.85 and 6.94 ms turned 90, 180 and 270 degrees;
the screenshots are byte-identical with the visibility buffer, without
it, and with indirect section draws.
2026-11-03 16:32:09 +01:00
Kacpherek d61c1d6b6c Resolve corner by corner, and HDR's inputs only with HDR output
The resolve ran terrain_vertex on its triangle's three corners and
then interpolated every output, the face's local position and light
levels included, and worked out the face's normal for every pixel.
Only HDR output reads those, and fs_opaque computes the normal only
with it on. The corners now go into the sums one at a time, and the
light levels, position and normal are worked out only with HDR output
on.

The sums are the same, taken in the same order: the screenshot is
bit-identical to the previous commit's. The resolve goes from 1.72 to
1.69 ms in the RD-32 capture at 1440p.
2026-11-03 16:32:09 +01:00
Kacpherek e7440c5703 Pick the resolved pixel's triangle by its side of the quad's diagonal
The resolve worked out the barycentrics of both of a quad's triangles
and kept the one whose smallest weight was larger, then built the
chosen triangle's rows again for the gradients. The triangles share
the diagonal 0 2, so the side of it the pixel lies on decides: corner
1's unnormalised weight against the sign of triangle 0 1 2's
determinant. That is one cross product instead of six and one set of
barycentrics instead of two.

Inside a triangle both rules pick the same one, and on the diagonal
both triangles give the same values, so the image is the same up to
float rounding (a few hundred texel-edge pixels of 3.7 million, as many
nearer the normal path as farther). The resolve goes from 1.75 to
1.715 ms in the RD-32 capture at 1440p.
2026-11-03 16:32:09 +01:00
Kacpherek b4c85ed027 Read a resolved quad's words in one switch over its page
The visibility resolve read a quad's six 16-byte words through six
separate switches over the 16 bound pages. Where a GPU thread group's
pixels show quads of different pages, each switch ran once per page
among them, six times over. One switch now loads all six words, so the
group walks its pages once.

The loaded words are the same, so the shading is too; the image differs
from before only by float rounding in a few hundred texel-edge pixels
of 3.7 million, as many nearer the normal path's as farther. The
resolve goes from 2.15 to 1.76 ms in the RD-32 capture at 1440p.
2026-11-03 16:32:09 +01:00
Kacpherek 59ca5112f1 Resolve the visibility buffer in one draw for up to 16 pages
The resolve drew a full-screen triangle per arena page. Pages' sections
lie all over the screen, so every GPU thread group ran the shading once
for each page among its pixels with most lanes idle: 36 ms at 1440p
with nine pages. It now binds up to 16 pages at once and reads a quad
as six vec4 loads; the origin comes through one copy of the drawn
pages' block tables, so the IDs stay 32-bit. The resolve takes 2.1 ms.

Both passes sample only the side of RGSS's blend with the nearest
texel that the blend keeps, one tap where texels are large, which
gives the same value; the cutout alpha test in the ID pass gets cheaper.

scene_replay gets --screenshot PNG, which saves the first view's last
frame, to compare the visibility buffer's image with the normal one.
2026-11-03 16:32:09 +01:00
Kacpherek de2a7fa0cf Visibility buffer: phase 2's opaque and cutout ranges 2026-11-03 16:32:08 +01:00
Kacpherek 453ca8ffdb Add an opt-in visibility buffer for solid terrain
HORIZON_VISBUFFER=1 draws the solid flat draws (near sections and far
tiles, both occlusion culling phases) into a depth and 32-bit quad ID
pass first, then shades each pixel once in a full-screen resolve per
arena page. The resolve reads the quad back from the arena, runs the
terrain vertex code on the triangle the pixel falls in, interpolates
with perspective-correct barycentrics and works out the UV gradients
analytically, so texels, mip levels, light and fog match the normal
path. Cutout and fading quads keep their alpha test in the ID pass.

Only frames drawn flat use it; shader pack terrain, material stages,
shadow passes and surface targets keep the normal solid passes.
2026-11-03 16:32:08 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free cb4573aeb9 Add Brazilian Portuguese (pt_br) game translation
Bundles Horizon's own Brazilian Portuguese strings so pt_br players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:28:22 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 2c12bd8e05 Add Arabic (ar_sa) game translation
Bundles Horizon's own Arabic strings so ar_sa players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:27:14 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free b9558afaa6 Add Japanese (ja_jp) game translation
Bundles Horizon's own Japanese strings so ja_jp players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:27:04 +01:00
Kacpherek a4f89dde97 RGSS takes one tap where the sprite is a single texel
Past a few hundred blocks, and on every distant tile, RGSS asks for mip
levels at or beyond the sprite's last one, where a 16 pixel sprite is a
single texel (with the default Mipmap Levels of 4) and the sampler clamps
any higher level to it. All eight taps, four at each of the two levels,
then read that same texel, whatever their position under the clamped
sampler, and their mean is that texel.

The globals now carry that level (filtering.z): the views' last mip level
when a sprite is one texel there, else 0, which turns the shortcut off (a
lower Mipmap Levels setting, or anything that leaves the field unset). At
or past it RGSS takes one tap; one level below it, the upper level's four
taps become one. The mirror and crosshair groups keep the full chain the
main group then also has, since the level is only set when the two agree.
The result differs from the eight-tap mean only in how float rounding
falls when summing four equal values, a last-bit difference far below
one step of the frame's colour.
2026-11-03 16:26:58 +01:00
Kacpherek d693267be8 RGSS samples only the side of its blend that has weight
sampleRGSS mixes sample_nearest's one tap with the rotated grid's eight by
how far the texels have shrunk below a screen pixel, and every terrain
pixel paid for both. That weight is 0 wherever a texel covers a screen
pixel or more (all the nearby terrain) and 1 wherever it covers half a
pixel or less (everything from a few dozen blocks out, the distant tiles
included), so most pixels sampled nine times to keep one or eight of them.

Now a weight of 0 returns sample_nearest alone and a weight of 1 the
rotated grid alone; only the band in between still mixes the two.
mix(a, b, 0) is a exactly, so nearby terrain is bit for bit the same. At
a weight of 1 the mix's a + (b - a) can differ from b in the last bit of
a float, far below one step of the frame's colour. The taps that remain
use explicit levels or gradients, so they are fine inside the branch.
2026-11-03 16:26:58 +01:00
Kacpherek b0fa89401d Capture a frame's scene and replay it offscreen for renderer timing
horizon-ctl render-capture on keeps CPU copies of the section and far tile
meshes the renderer receives (HORIZON_RENDER_CAPTURE=1 from the start);
render-capture DIR writes them with the next frame's camera, sky, fog and
lightmap inputs and the settings that change GPU work. The scene_replay
example loads a capture into the real Renderer offscreen and prints GPU,
render-call and per-pass times as JSON, with overrides for A/B toggles.
2026-11-03 16:26:58 +01:00
Kacpherek 1a004befca Look NBT compound keys up without allocating them
Tag::get and get_mut turned the &str key into a new JavaString (a
Vec<u16>) on every call. Far terrain reads saved chunks' palettes and
sections through them, and in a flight over visited ground the key
allocations and their UTF-16 encoding were the biggest part of that
work. The key is now encoded into a buffer kept per thread; the
compound is searched the same way, with the same result.
2026-11-03 16:26:50 +01:00
Kacpherek 5631f912fb Metal: occlusion culling's phase 2 splits its draws by pass too
Phase 1 already gives each solid pass only its own quads, but the sections
occlusion culling leaves to phase 2 still listed every quad once, and both
the opaque and the cutout pipeline drew that whole list, each clipping the
other's quads in the vertex shader. With culling on (render distance 32 on
Metal), every phase 2 vertex ran the vertex shader twice.

Phase 2 now builds its list as phase 1 does: every section's opaque runs,
then its cutout runs (a fading section's quads all in the cutout part),
grouped so the opaque ones come first. A section keeps one occlusion test,
which now names a range of draws in each pass and turns both on when it
sees the box. The indirect path and the flat path (a call break where
phase 2's cutout pass begins) draw only each pass's own range.

The vertex shader still leaves out the other pass's quads: meshes that were
not sorted by side give both passes all of their quads.
2026-11-03 16:26:50 +01:00
Kacpherek e979fbc2ad Skip the solid terrain's HDR lighting without HDR output
Every opaque terrain pixel worked out a face normal from derivatives, the
scene's HDR light and the fog a second time, only to write it to the
frame's alpha, which nothing but HDR output reads. hdr_light.z now says
whether HDR output is on, and without it the shader leaves the alpha at
1 and skips that work. The colour is unchanged.
2026-11-03 16:26:41 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free d8e6f2b354 Add ไทย (th_th) game translation
Bundles Horizon's own ไทย strings so th_th players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:22:51 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free a463de44f4 Add Tiếng Việt (vi_vn) game translation
Bundles Horizon's own Tiếng Việt strings so vi_vn players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:22:22 +01:00
dontstopgorkingitandDeepSeek V4.1 Flash Free 3ef168d9af Add Dutch (nl_nl) game translation
Bundles Horizon's own Dutch strings so nl_nl players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:21:36 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 c6e3709517 List the bed explosion parity harness in the game-home test's exemptions
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:16:21 -05:00
CocofireHDandDeepSeek V4.1 Flash ab49fe48b7 cargo-horizon-mod: prebuilt binaries for cargo-binstall
`cargo install --git ...` compiles the tool and its workspace, which for a
mod developer on a slow machine is a long wait to write one block (#2120).
`cargo binstall` skips the build when the release holds a binary for the
platform.

- crates/cargo-horizon-mod/Cargo.toml gains [package.metadata.binstall]:
  one `cargo-horizon-mod-v<version>` release, one tar.gz per Rust target,
  the binary at the archive's root; a `.sha256` beside each.
- .github/workflows/cargo-horizon-mod.yml builds those targets (Linux
  x86_64 and aarch64, Windows x86_64, macOS x86_64 and arm64), starts
  each binary it can run, and publishes them on the tag. A pull request
  builds them without publishing.
- tools/horizon_mod_binstall.py is the one list of targets: the workflow's
  matrix comes from it, and it checks the built archives and the tag
  against the manifest before anything is published.
- docs/mods.md shows the binstall command first, the source build after.

Co-Authored-By: DeepSeek V4.1 Flash <[email protected]>
2026-11-03 16:16:07 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 f960294f84 Add the held weapon's attack damage to a mob's melee hit
Mob.doHurtTarget reads the attack_damage attribute, which in vanilla
includes the main-hand item's attack_damage modifier. do_hurt_target used
only the mob's own value, so a vindicator with an iron axe hit for 5
instead of 13 on Normal, and every mob that attacks with a held weapon
(zombie with a sword, wither skeleton, piglin brute, drowned with a
trident) was short by the item's modifier before the difficulty scaling.

Adds gear::attack_damage and a table-driven test over nine mob and
weapon pairs, plus a test of the Hard/Normal/Easy scaling of a mob hit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:15:38 -05:00
MSedgeMC e4504910c0 fix: a campfire's lava loop asks the random for its bound again
Vanilla's `for (int i = 0; i < random.nextInt(1) + 1; i++)` draws the
bound on the check that fails too; Horizon drew it once before the loop,
so every lava event left the level random a draw ahead.
2026-11-03 15:13:51 +00:00
MSedgeMC 33ac800df5 test: the campfire block's crackle and its lava particles
The animateTick loop the suite drives ran over barriers only, so
CampfireBlock.animateTick - the crackle sound, its volume and pitch, and
the lava particle a lit campfire spawns - had no case. Run the whole loop
over a world that is all campfire, with the case's seed driving both the
sampled positions and the block's draws, and compare every sound and
particle as exact bits, then the random's next draw.
2026-11-03 15:13:51 +00:00
MSedgeMC 55e2ab1c3d port_map: the vibration rows point at the provider arm
`VibrationSignalParticle.Provider.createParticle` is `ParticleEngine::make`
now that the arm builds the signal from the option's destination, and
`ParticleEngine.makeParticle` no longer has to admit that vibration options
return nothing.
2026-11-03 15:11:18 +00:00
MSedgeMC ae1168091f test: a vibration option makes the signal its provider draws
`a_vibration_option_makes_the_signal_its_provider_draws` goes through
`ParticleEngine::add_with`, the entry the client's packet handler reaches,
with the destination and arrival time a `VibrationParticleOption` carries.
On the previous commit `make` returns nothing for the type, so the engine
records no vibration particle at all (`left: None, right: Some(1)`); here
the particle has lifetime 20, size 0.3 and no physics, its behaviour holds
the listener, and its initial yaw and pitch are the ones the vanilla
constructor computes. A bare `ParticleOptions::simple(Vibration)` still
makes nothing: only the option names a listener.
2026-11-03 15:11:18 +00:00
MSedgeMC 4e4542f23f fix: the provider path makes the vibration signal a packet carries
`ParticleEngine::make` answered `T::Vibration => return None`, so the only
vibration Horizon ever drew were the ones its own vibration system spawned
in-process through `ParticleEngine::vibration`. A remote server's
`ClientboundLevelParticlesPacket` with a `VibrationParticleOption` was
dropped twice: `Game::received_particle` fell into `Some(_) => return None`,
and the provider had no arm to build it from.

`ParticleOptions` now carries the option's `vibration` destination and
arrival ticks, built by `ParticleOptions::vibration(dest, ticks)`. `make`
builds the particle from it through `vibration_particle`, the body
`vibration` used, and takes the sprite set's own draw from the engine's
random, which is the `sprite.get(random)` the vanilla provider makes.

`received_particle` resolves the option's `PositionSource` in
`vibration_destination`: a block's centre, or the entity's feet raised by
the option's offset. An entity this client has no position for is no
destination and makes no particle, as vanilla's first tick removes the one
it made.

The destination is resolved once, where vanilla's `VibrationSignalParticle`
asks its position source again every tick, so a signal does not yet chase a
moving warden or allay: the particle engine has no entity lookup to give it.
2026-11-03 15:11:18 +00:00
MSedgeMC 0250ed09b6 Set the sulfur cube's body, not its head, in the two tests that hold a block
sulfur_cube::has_body reads extra.body, so a test that sets extra.head only
passes while the prepared resources are absent and the test skips. Both now
set the field the code reads.
2026-11-03 15:08:47 +00:00
dontstopgorkingitandDeepSeek V4.1 Flash Free ce75f3f3fd Add Italian (it_it) game translation
Bundles Horizon's own Italian strings so it_it players see translated
menus and options instead of the English fallback.

Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
2026-11-03 16:08:44 +01:00
Ludovic Marie 2f0c80826c Merge pull request #8267 from horizon-rust/feat/launcher-glass-servers
🤖 Agent: Servers page in the mockup's grid; the lower tabs still draw their old rows inside a glass plate until the next PR restyles them.
2026-11-03 16:02:54 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 45899355d6 Bed explosion parity harness: fire resistance and no regeneration, so health is exact
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:00:31 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 a700c4d819 horizon-ctl --api: refuse a game on another control protocol line (#8242)
`horizon-ctl --api 0.1` asks the game `hello` before its first command and
refuses one whose protocol is on another line, or one with no hello at all
(exit status 5, kind "api"). `0.1` takes 0.1.x. Docs: the "version that is
checked" gap leaves "Not there yet", changelog and stability table updated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:59:28 -05:00
MSedgeMC 47c09e613f test: a bypassing hit leaves the armor instances dirty
`health::tests::a_bypassing_hit_leaves_the_armor_instances_dirty`: with base 7
armour and toughness, a `minecraft:fall` hit must leave both instances dirty
with creation's zero cache and report 0 in the hurt record, while a
`minecraft:mob_attack` hit (not in `#minecraft:bypasses_armor`) must recompute
both to 7 and report that.

On upstream/main the fall hit leaves `(base 7, dirty false, cached 7)`, which
the test prints as `left: [(7.0, false, 7.0), (7.0, false, 7.0)]`.
2026-11-03 14:55:40 +00:00
MSedgeMC 94a62a9d93 fix: a bypassing hit leaves the armor attribute instances dirty
`PlayerMotion::hurt_caused_by` read `minecraft:armor` and
`minecraft:armor_toughness` before the hit, ahead of the damage path's own
`#minecraft:bypasses_armor` gate. Native `AttributeInstance.getValue` is what
recomputes a dirty instance and clears its flag, so a bypassing source (fall,
stalagmite, magic, drown) cleared flags vanilla keeps, and the scene snapshot
compares both the cache and the dirty bit.

`LivingEntity.getDamageAfterArmorAbsorb` is the only reader of these two
instances on a damage path; it returns before `getArmorValue` and
`getAttributeValue(ARMOR_TOUGHNESS)` for a source in the tag, and a hit that
does meet the armour has already recomputed both in `after_armor`. The hurt
record now takes the caches the hit left, through `LiveAttributes::cached_value`
which never recomputes, so the record stays the value vanilla's damage path
read (after `hurtArmor`) and a bypassing hit leaves both instances as their
creation left them.

Found by `tools/test_native_scene_motion.py` on upstream/main: it failed at
output line 2245308, vanilla `minecraft:armor:...:true:...` against Horizon's
`...:false:...`.
2026-11-03 14:55:40 +00:00
Ludovic Marie e4aaced974 Merge pull request #8261 from horizon-rust/fix/launcher-mixins-rev-e8cd0aa
🤖 Agent: MIXINS_REV ddd9700 → e8cd0aa (horizon-mixins#25, the only commit between them): native mods build again with horizon-client's #![recursion_limit]; launcher fmt/clippy/538 tests pass.
2026-11-03 15:51:15 +01:00
MSedgeMC a7539e34d8 port_map: the client chunk cache and explosion rows name live fns
`Streaming::forget` is `Streaming::forget_columns` (the unload packet path takes
the whole set of columns at once), and `ClientExplosionTracker.addParticle` is
not a fn of its own: it is the body of `tick_explosions`'s per-debris loop, so
the row is `inline` at `ParticleEngine::tick_explosions_with`.
2026-11-03 14:49:51 +00:00
MSedgeMC 98f1c5cd5a test: pin the blocks that take a worldgen loot table
`loot_table_nbt` against a registry of the blocks in question: a chest, a
dispenser, a hopper, a shulker box, a coloured shulker box, a crafter and a
decorated pot each get the table and the first long of the random, and a
furnace, an ender chest and air get nothing and leave the random untouched.
2026-11-03 14:49:07 +00:00
MSedgeMC 2fa16379af fix: any randomizable container takes a worldgen loot table
`RandomizableContainer.setBlockEntityLootTable` asks for the block entity at the
position and hands the table to it when it is a `RandomizableContainer`: every
`RandomizableContainerBlockEntity` -- chest, trapped chest, barrel, dispenser,
dropper, hopper, shulker box and the crafter -- and the decorated pot, whose
block entity implements the interface on a plain `BlockEntity`.

`set_block_entity_loot_table` knew only the three blocks its callers place
today. Both of them (the dungeon chest in `cave.rs` and the bonus chest in
`bonus_chest.rs`) place a chest, so this changes nothing a player can reach: the
wider set is defensive, matching the vanilla interface rather than the two calls
that reach it. The NBT the container takes moves into `loot_table_nbt`, next to
the set, so the decision and the seed draw it guards can be read in one place.
2026-11-03 14:49:07 +00:00
Ludovic Marie a217a255d1 Merge pull request #8256 from horizon-rust/feat/launcher-glass-controls
🤖 Agent: dark-only restyle of the shared controls; the light screenshot is pixel-identical to main, so the risk is limited to the dark look of pages not yet rebuilt.
2026-11-03 15:47:56 +01:00
SenjinandClaude Opus 5.5 36e330d36c Shader packs: time compute passes and mip chains
The pass timer (F3, HORIZON_SHADER_PACK_TIMING) left out a pack's
compute dispatches and the mip chains rebuilt before the programs that
ask for them, so their cost never showed. Compute passes now take
timestamps as render passes do, and each mip chain is timed by its first
level, labelled with its buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 15:45:51 +01:00
JoansitohandClaude Sonnet 5.5 abc4edbf15 Remote arrows emit water bubbles and crit trails (#8265)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 15:45:30 +01:00
MSedgeMC 83080f6bc6 test: pin a dispenser's loot table to the placement
`PieceFrame::create_dispenser` gets two cases with a piece-world double that
records the blocks and block entities written: over air it must write the
dispenser and one block entity carrying the table and a seed, and over a block
the piece keeps it must write neither while still reporting the placement.
2026-11-03 14:43:42 +00:00
MSedgeMC 44c09adb15 fix: a declined dispenser placement writes no loot table
`StructurePiece.createDispenser` places the dispenser and then reads the block
entity back: `level.getBlockEntity(pos) instanceof DispenserBlockEntity` before
`setLootTable(table, random.nextLong())`. `create_dispenser` wrote the tag
unconditionally, so a placement the piece declines -- a block it keeps, or a
position outside its box -- still left a loot-table compound behind and still
drew the seed, which every later draw the piece makes then sees.

`PieceFrame::place` now has the `StructurePiece.placeBlock` half that answers
whether the block was written (`place_block`; `place` keeps its signature for
the 137 callers that do not care), and `create_dispenser` sets the table only
when the dispenser is there.
2026-11-03 14:43:42 +00:00
JoansitohandClaude Sonnet 5.5 1622c53e2c Drop unused lore setup from disc fragment test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 15:42:46 +01:00
JoansitohandClaude Sonnet 5.5 3c9a5524cc Show the Music Disc - 5 line on disc fragments
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 15:40:00 +01:00
MSedgeMC 991c33e49f port_map: a primed cart's blast rows point at the rail sparing
`MinecartTNT.getBlockExplosionResistance` and `MinecartTNT.shouldBlockExplode` both still
said `missing`. Both are in the tree: while a TNT cart is primed, its blast leaves a rail —
and a block with a rail above it — with no blast resistance and out of the destroyed set, in
`crates/horizon-client/src/game/explosion.rs::Game::exploded_positions`. The flag behind it
is `combat.rail_proof_blast`, set from the cart's fuse in `minecarts.rs` and carried through
a nested blast, and the case is covered by the command corpus group `tnt minecart rails`.

Nothing to fix, so no code: the rows now name the function that decides them.
2026-11-03 14:37:52 +00:00
Ludovic MarieandClaude Opus 5.5 b1cd4d04a7 Launcher: build native mods with horizon-mixins e8cd0aa
horizon-mixins#25 accepts the compiler's crate-level attributes (`#![recursion_limit]`
and the like) and the known tool attributes on a module. Since horizon-client's lib.rs
gained `#![recursion_limit = "256"]`, every native mod failed at ddd9700 with
E_UNSUPPORTED_MACRO (#8169). e8cd0aa is that merge and the only commit since ddd9700.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 15:37:11 +01:00
MSedgeMC 5fe6c42ef8 port_map: the food-or-flying gate is the sprint condition, not a gap
`Player.hasEnoughFoodToDoExhaustiveManoeuvres` is
`foodData.hasEnoughFood() || abilities.mayfly`, and the one place vanilla asks
it is `LocalPlayer.canStartSprinting`. Horizon has that exact test as the
sprint gate's `enough_food || may_fly`, with `enough_food` filled from
`FoodData::has_enough_food` (a food level above 6) in `motion.rs`, and
`player_food::enough_food_for_manoeuvres` is the same predicate as a free
function the food probe already compares against the jar.

The row said `missing`; it now points at the gate that decides it.
2026-11-03 14:36:50 +00:00
TeiwazikandClaude Opus 5.5 c7fbdc6008 Shader packs: [displacement] draws relief as geometry near the camera
Each frame the solid quads of the sections within [displacement]
distance are copied out of the arena, a compute pass picks the ones with
LabPBR relief that face the eye and are in view into an indirect draw,
and the material's displaced pipeline draws each as a grid of cells
moved along the face's normal by the pack's displacement, from the
texture's mean height so that face edges meet. The flat quads leave
those pixels to the grid. The height maps are visible to vertex shaders
now. The shadow map still takes the flat faces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 15:36:15 +01:00
CocofireHDandDeepSeek V4.1 Flash e67541686c launcher: keep the launcher's renderer workarounds out of the game
A player who starts the launcher with LIBGL_ALWAYS_SOFTWARE=1 to get a
visible window (transparent window on the radeon driver) had the game
inherit the same variables: horizon-client then rendered on the CPU at
2-3 FPS. The game picks its own backend, so strip those four variables
from the child environment and leave the rest alone.

Fixes #7832

Co-Authored-By: DeepSeek V4.1 Flash <[email protected]>
2026-11-03 15:35:01 +01:00
MSedgeMC 5324b1bf4a test: pin an ocean ruin's drowned marker to the piece world's sea level
`ocean_ruin::post_process` now has a test with a piece-world double: a solid
seabed at 77, a sea level the test chooses, and a log of every `set`. The same
piece is post-processed with the sea level at 90, at the marker's own height
and one below it, so the water/air decision has to follow the world and not a
constant.
2026-11-03 14:33:00 +00:00
MSedgeMC abb96b6834 fix: an ocean ruin's drowned marker floods at the world's sea level
`OceanRuinPieces.OceanRuinPiece.postProcess` picks the block a `drowned`
marker leaves by comparing its height with `level.getSeaLevel()`, and
`post_process` compared it with a hardcoded 63. In a world whose sea level is
not 63 -- a datapack dimension, a superflat with its own sea level -- every
marker above 63 is left dry and every marker below it is flooded, whichever
side of the real sea level it is on.

`PieceContext` already carries the world's answer (`PieceWorld::sea_level`,
which `blocks()` and `mineshaft::generate` use), so the piece asks it.
2026-11-03 14:33:00 +00:00
HrafnaValkyrjaandClaude Sonnet 5.5 b59777f00b Hosting: a Pterodactyl egg for horizon-server
Adds packaging/server/pterodactyl-egg.json and panel-start.sh, a docs/hosting.md section,
and tests/test_server_panels.py. Part of #8238.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:23:32 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 4c0697a727 Derive the launcher's mod-browser game version from the pinned version
browser::GAME was a literal "26.3" that no generator touched, so a version port
left the mod browser filtering for the old release. It now reads
horizon_core::version::VERSION_ID, which tools/gen_version_consts.py regenerates.
A test checks the two agree.

Part of #4758

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:21:12 -05:00
MSedgeMC 8b08a67b75 port_map: AccessibilityOptionsScreen.init keeps only the High Contrast gap
Rotate with Minecarts is greyed out now, so the row names the one half
that is still missing: High Contrast stays clickable when the
high_contrast pack is unavailable and gets no error tooltip.
2026-11-03 14:20:34 +00:00
MSedgeMC d1de8739df port_map: the accessibility footer link and the minecart grey-out are ported
`AccessibilityOptionsScreen.addFooter` builds the Accessibility Help link
button beside Done, and `Act::AccessibilityHelp` confirms
`CommonLinks.ACCESSIBILITY_HELP` over the options screen, the
`ConfirmLinkScreen.confirmLink` button vanilla adds there.

`AccessibilityOptionsScreen.isMinecartOptionEnabled` greys Rotate with
Minecarts out unless a world is open whose feature flags carry
minecart_improvements, read from the level or the remote server.
2026-11-03 14:20:34 +00:00
NerfPhaselockandClaude Opus 5.5 ce776dff98 Renderer: GPU culling leaves fading sections to the CPU
Since the pass culls the near solid sections itself, a section it draws
appears whole where a CPU frame fades it in or out (vanilla's chunk
fade-in, far terrain's fades). A recorded section now gets FADING in its
record, which cull skips, and its walk mark, so the CPU draws it with its
fade, exactly while the instance loop's own expression for it is not a
whole section's (section_visibility and the far-terrain fade, bit for bit).
The flag is decided at upload, when a section leaves or is held for far
terrain, and anew for every record when the fade-in time changes.

A heap of fade ends in GpuCulling says when to look again, so a frame with
no end due does no fade work; Records counts the flagged records, and
switching GPU culling off forgets the flags with the records. The debug
check also compares each flag and mark with what the fades say.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 09:16:16 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 22769e76c9 Format and lint fixes for the join-order tick
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:14:45 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 08a168094a horizon-server: restore a single dimension from a backup
`restore NAME --dimension minecraft:the_nether` (API: `dimension` in the POST /api/v1/restore body; MCP: `dimension`) brings back only that dimension's folder and leaves the other dimensions, level.dat and the players alone. The folder it replaces goes to backups/replaced-<time>/.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:08:56 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 732265ffad horizon-server: import-resources DIR copies prepared game files into place (#8240)
Checks the folder (version stamp, derived files and checksums, asset folders), copies it through a temp folder and an atomic rename, keeps the old copy on any failure, and prints the next step.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:07:58 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 80643ef336 install.sh: verify the release signature when OpenSSL 3 is installed
Checks SHA256SUMS.sig against the release key, then the archive against
SHA256SUMS; older OpenSSL, LibreSSL or none says so and keeps the GitHub
SHA-256 check. Closes #8241.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:02:35 -05:00
Med.cssandCodex a668f9fb30 Declare prepared resources required by the mount regression test
Co-Authored-By: Codex (GPT-6.1 Sol) <[email protected]>
2026-11-03 14:59:09 +01:00
TiggerTakkyTTTandCodex 60000e7e9c Server admin: edit player lists while game is stopped
Keep the supervisor and control API alive after a game-issued stop, add an API start endpoint, and route file-backed operator and whitelist edits through the existing vanilla list handling. Cover the stopped lifecycle in unit and end-to-end tests.

Fixes #8232

Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 20:57:08 +07:00
HrafnaValkyrjaandClaude Sonnet 5.5 19db9ef223 Dragon breath cloud: vanilla lifetime, wait-time radius growth, per-entity hit cadence
Part of #6771.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:47:26 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 6483aa3498 Send the explosion push to a hurt player too, as ServerExplosion.hitPlayers does (untested)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:47:24 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 79ea3cec34 Route every mob attribute command to the store the mob reads (#7877)
/attribute on a mob now handles base, modifier add, remove and value get for
every attribute the mob's gameplay reads from finalize, not only max health,
movement speed and attack damage. Modifier ids typed at run time are kept.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:46:44 -05:00
oxi-does-dev 7a6c1518fb the tooltip test counts the clicked frame against its own pointer state
Whole-frame equality kept meeting offsets that were no tooltip: the
click cycles the extra (one glyph of a value label), the key-bound rows
swap in their capture markers, and the focus sprite is drawn for hover
anyway. Instead the same drawn UI counts the frame with the pointer on
the clicked widget — description at the cursor — against the one after
it moved off: with the fix fewer vertices; while the old draw kept the
description, the anchored tooltip made the two counts equal.
2026-11-03 16:43:59 +03:00
itarqos5andClaude Opus 5 7402b17949 perf(startup): parse the model library beside the registry, facts from a slice
Two changes to the head of the core bundle, which every other table waits
on.

The model library reads every file under `assets/` and needs no block
registry, but it sat inside `Assets::reload`, behind both the registry read
and the block facts. It now runs beside `Assets::load` instead, so its
reading overlaps the registry's rather than following it. A server draws
nothing and parses no models, so it skips this and is unaffected.

`facts.json` is about 10 MB and is parsed before anything else in the
bundle can begin. `serde_json` cannot borrow out of a reader, so
`from_reader` copies every string it parses; over one slice it borrows.
`BlockRegistry::from_facts_json_bytes` reads the file whole and parses from
that, and `from_facts_json_with_flags` keeps its reader for callers that
have one.

Steps are added inside the model and sprite work (`core.models_parse`,
`core.models_bake`, `core.bake_states`, `core.bake_standalone`,
`core.item_library`, `core.fusion`), which is what the above was found
with: before them the whole 2.5 s of a cold `core.block_models_sprites` was
one opaque span.

Measured on 12 threads, five warm runs each, the cold first run excluded:

    core, median    448 ms before    404 ms after    -10%

Of that, `core.assets` falls from 106 ms to 73 ms and the model parse
(65 ms) moves off the critical path entirely.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 13:43:18 +00:00
itarqos5andClaude Opus 5 893fc9ae96 perf(lod): give the far-terrain sampler two thirds of the cores
Sampling is the cold-load bottleneck and already had half the cores rather
than a quarter. On a 12-thread machine that is six samplers beside five
meshers, and the mesher has little to do until tiles are sampled, so its
threads sit idle through the part of a cold build that waits on sampling.

Measured on 12 threads, building 4336 tiles at LOD distance 256, from the
game answering the control socket until every target tile is sampled, four
runs a configuration:

    samplers/meshers   sampling   whole build
    6/5 (before)         15.0 s        23.9 s
    8/3                  11.8 s        18.6 s
    9/2                  10.6 s        19.1 s

Two thirds, so eight here. Nine finishes sampling sooner still but leaves
the mesher two threads and the whole build ends later. The frame and the
ticks keep their core at every size, which the test now checks directly
rather than only through the expected numbers.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-03 13:40:32 +00:00
voidsipandCodex 0f4313d19c fix(input): read unmapped Linux trigger axes
Read conventional Linux trigger axes when no trigger button is mapped.
Preserve mapped button input and exclude the 8BitDo stick-axis layout.
Cover pull values, absent input and mapping precedence.

Co-Authored-By: Codex <[email protected]>
2026-11-03 07:38:31 -06:00
Med.cssandCodex 649d0c580a Share powder snow particles across block-affected entities
Co-Authored-By: Codex (GPT-6.1 Sol) <[email protected]>
2026-11-03 14:37:52 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 4efd21aef2 Shader packs: convert struct constructor arguments to the member types
Same missing conversion as array constructors: S(1u, 2) with an int and a
float member composed unconverted and failed naga validation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:34:59 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 b6a8a45460 Format array_constructors
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:33:49 -05:00
JoansitohandClaude Sonnet 5.5 167ebfc2af Fire Aspect ignites the player it hits in PvP (#8225)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:32:12 +01:00
JoansitohandClaude Sonnet 5.5 01b9a33298 Fix clippy useless_vec in spin target test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:30:04 +01:00
TiggerTakkyTTT 87c075391b Expose online player positions in the admin API
Include each dedicated player's current coordinates in server-status so the server-admin HTTP API and MCP players tool can report them. Update the generated API reference and server documentation, with focused serialization coverage.\n\nFixes #8224\n\nCo-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 20:29:11 +07:00
JoansitohandClaude Sonnet 5.5 b549f9555a Riptide spin hits, bounces off and ends on the first mob it touches (#8223)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:28:35 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 9d7d671e0b Shader packs: convert array constructor arguments to the element type
Drivers accept int[2](1u, 2); naga composed the arguments unconverted and its
validator refused the program (Composing 0's component type is not expected).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:27:20 -05:00
AkirabaneandClaude Sonnet 5.5 b26ee56a70 Fonts: draw a glyph whose advance is fishy, as vanilla does
#7550 skipped a provider glyph whose advance leaves 0..32 in Font::resolve
(drawing) and provider_advance (the by-width table), so every glyph of a
server pack's `space` provider (kerning, -512 to 512) or of a tall bitmap
(Nexo's, wider than 31 px) stopped drawing.

Vanilla's FontSet.computeGlyphInfo draws the first provider's glyph
(SelectedGlyphs.any) whatever its advance, and only the glyph obfuscated
text draws (SelectedGlyphs.nonFishy, from getRandomGlyph) moves on to the
first provider with a good advance, else the missing glyph. FontSet.reload
files each character in glyphsByWidth by its first glyph's advance, fishy
or not.

Font::resolve now skips a fishy glyph only for nonFishy
(Font::glyph_non_fishy, cached apart), provider_advance takes the first
glyph's advance, and the table is keyed by i32 so a negative advance does
not land in the 0 bucket. #7550's test claimed font.glyph('a').advance is 3
for a first glyph of 65, contrary to vanilla; it now covers what vanilla
does, and the fall-through #7550 wanted stays for obfuscated text.

Fixes #8222

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 14:25:44 +01:00
oxi-does-dev 8c67fd63dd the tooltip test's comparison UI keeps the click's extra value
The fresh comparison UI drew the same already-cycled settings; cycling
again gave it the next value and the label widths drifted for text, not
tooltips (verify: 34896 vs 34926).
2026-11-03 16:16:19 +03:00
CocofireHDandHermes 3764b7d9d6 Protocol: pin the SetTime clock key to the registry id
A packet captured from a vanilla 26.3 server at join carries two clocks:
`Long 13071`, `VarInt 2`, then `(0, 66678, 0.0, 1.0)` and
`(1, 13071, 0.0, 1.0)`. The key is therefore a plain registry id —
`WorldClock.STREAM_CODEC` is `ByteBufCodecs.holderRegistry`, not `holder`,
so there is no inline form and no +1. Reading it as a holder id shifts the
first key to "inline" and the whole packet stops decoding.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 14:16:13 +01:00
TiggerTakkyTTT 0932e968bd Fix integrated world shutdown worker cleanup
Abort the client-side streaming workers when a world close or native application termination starts. The integrated server already stops its own workers, but the window-side registration otherwise waits during drop after extended sessions.\n\nFixes #8178\n\nCo-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 20:10:55 +07:00
HrafnaValkyrjaandClaude Sonnet 5.5 9e9b277609 Ticks of fresh TNT and falling blocks wait for their spawn packets
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:09:38 -05:00
Med.cssandCodex 6bd36e517e Add powder snow particles for minecarts and mobs
Match vanilla's movement gate, random order, and snowflake velocity for minecarts, living mobs, and controlled mounts. Relay the same particle parameters to LAN clients.

Co-Authored-By: Codex (GPT-6 Luna) <[email protected]>
2026-11-03 14:07:52 +01:00
AkirabaneandClaude Opus 5.5 acc6d017c4 A server sends its world packs' tags for every registry, not only dialogs
TagNetworkSerialization.serializeToNetwork sends each synchronized registry's
tags as TagLoader bound them from the whole pack stack. Horizon's server read
the resource root's tag files only and merged the world's data packs into
the dialog tags alone, so no client (vanilla or Horizon) was told that a
pack put dirt in #minecraft:mineable/pickaxe or a block in #climbable. After
/reload, keep_registries read the root's tags again without any pack, the
packs' dialog tags included.

merge_pack_tags merges, for every synchronized registry the world's packs
have tag files for (tags/<path>, a mod's registry under tags/<ns>/<path> as
Registries.tagsDirPath has it), the root's files and then each pack's in
order ("replace": true, nested tags expanded), at load and on /reload.
Registries no pack touches keep load_tags' tags.

Refs #7843

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:03:41 +01:00
oxi-does-dev 3a19fe597a the tooltip test compares the same extra value
Clicking an extras button cycles the extra, so the clicked frame's labels
differed from the fresh one and the vertex counts drifted for text, not
tooltips (verify: 34884 vs 34878). The comparison UI now cycles the same
extra directly, leaving the click's focus the only difference; a tooltip
would still add its vertices.

The clicked widget is also picked among the non-key extras, whose click
selects a key instead of cycling.
2026-11-03 15:58:27 +03:00
HrafnaValkyrjaandClaude Sonnet 5.5 78499843d3 WIP: tick orbs, TNT and falling blocks in join order; wind push waits by join number
Not ready: anvil_turtle_egg and server_entities parity regress (see notes). Not pushed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 07:57:41 -05:00
rdbtCVSandClaude Opus 5.5 4f2d0fce4a Comments and docs: the network threads, not a writer thread per player
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:57:14 +00:00
rdbtCVSandClaude Opus 5.5 2a1cfe65bc A fixed pool of network threads instead of two per player
Every play connection had a reader and a writer thread (plus a post thread
waking the writers): 100 bots meant 200 threads fighting over the cores.
They now live on a fixed pool, one thread per two cores, each polling its
players' sockets through mio (epoll, kqueue, AFD). The game thread only
queues bodies in the player's outbox, bounded by MAX_PENDING bytes; framing,
compression, encryption, socket writes, reading, keep-alives and timeouts
run on the pool. The integrated server's own player goes through the same
threads: its in-memory pipe tells the thread when bytes arrive.

horizon-protocol: Connection::detach gives the stream up, ConnReader reads
from any source without blocking (read_from, buffered), ConnWriter frames
into a buffer (frame_into), and Pipe gains non-blocking reads and on_ready.

SharedFrames hashes a body once (XXH3-128 keyed by a random secret) where it
hashed it twice with SipHash, and a body being compressed is marked: a
second sender waits for that frame instead of compressing it again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:57:14 +00:00
masa-masa-0314andCodex 34543f259f Merge upstream main and fix launcher relocation CI
Complete relocation strings in new language tables, explicitly release completed world-operation locks, and retain unsaved settings when a move cannot save them.

Co-Authored-By: Codex <[email protected]>
2026-11-03 20:55:24 +08:00
AkirabaneandClaude Sonnet 5.5 7bac913ec3 Server: config set server.motd and server.max_players apply live
On a running server, `horizon-server config set` and PATCH /api/v1/config sent
only console commands, so the message of the day and the player limit were
always reported as "restart required", although the game takes both live
through the management settings (`serversettings/motd/set` and
`serversettings/max_players/set`).

`live_line` now returns the control line to send: the same management
request for these two settings, `console ...` for the ones vanilla changes
through its console, and nothing for the supervisor's own settings. The
CLI talks to the game's control endpoint the way the API already did, and
a reply with an error leaves the setting for the next start.

Fixes #8206

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:51:06 +01:00
JoansitohandClaude Sonnet 5.5 5639aee01e Scoreboard air criterion follows the player's real air supply
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:50:28 +01:00
HrafnaValkyrjaandClaude Sonnet 5.5 7cd36228aa Add a bed explosion parity harness (untested): four facings, three positions each, against vanilla
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 07:41:42 -05:00
oxi-does-dev d5c46f91bb a tooltip a mouse click left behind stays while the pointer is gone
A click leaves the clicked widget focused (focus_from_keyboard false),
and the draw loop drew the tooltip for hover OR focused. So after
clicking a button, walking the pointer away (or off the screen) left its
description up indefinitely: blocking the button — the report's
"description doesn't disappear", over the label that does scroll.

Vanilla draws the tooltip while the widget is hovered, or against the
widget while the focus came from the keyboard or a controller
(MenuTooltipPositioner's focus tooltip); a mouse-only focus does not.

Draw it for the pointer, or for keyboard focus only: the description
follows the pointer back out.
2026-11-03 15:35:48 +03:00
CocofireHDandHermes 3e13c1a8cb Player skins: evict the least recently used 3D skin model
The cache cleared all 512 entries when it filled, so a server with more
distinct skins than the cap would rebuild every model on screen in a single
frame. `game/skin_models.rs` keeps a use counter per entry and an insert
evicts exactly one least recently used model; the cap and the
(512 entries) behaviour are otherwise unchanged.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 13:35:20 +01:00
TiggerTakkyTTTandCodex fa310f522d Use free status replies parity ids
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:34:46 +07:00
AkirabaneandClaude Opus 5.5 ba3cd22c7c Draw no world entity over the title's panorama
The GPU path for entities (skin_frame, since #7801) starts each frame's draws
in begin_skinning, which only entity_geometry runs. render skips
entity_geometry when the frame shows the panorama (the title screen, a
server's loading screen), so the draws stayed those of the last world frame,
and the renderer drew them again every frame: after Save and Quit to Title,
the mobs that were in view stood over the panorama. The panorama's frames now
clear those draws; the models the renderer stores stay, so the next world
draws its entities as before.

Fixes #8192

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:29:51 +01:00
AkirabaneandClaude Sonnet 5.5 fa22f0e6ea Renderer: keep every pipeline within 15 inter-stage variables, and test it
The entity shader's vertex output had 15 user-defined locations, and the
fragment stage's front_facing counts as one more: 16 against the 15 an
OpenGL 3.3 GPU (a GeForce 9100M G) allows, so 'Breaking cracks' (and every
entity-shader pipeline) failed to build at start-up.

The spherical and cylindrical fog distances now share one vec2 location
(fog_distance); each component is the same expression, interpolated on its
own, so the output is unchanged. A naga test audits the vertex outputs and
fragment inputs of every assembled shader and every standalone .wgsl file
against that limit, front_facing / sample_index / sample_mask /
primitive_index included, and fails for a .wgsl file it cannot place.

Fixes #8195

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:29:26 +01:00
AkirabaneandClaude Opus 5.5 4cbd817683 Parity harnesses: name sources under a linked .local within the repository
source_hashes named each tested file by resolving it, then taking it relative
to the repository. In a worktree whose `.local` is a link to another
checkout's (a junction on Windows, as the contributor docs suggest for the
prepared resources), resolving leaves the repository, and every harness that
hashes its inputs under `.local` stopped with "is not in the subpath of".

repo_path tries the path's absolute spelling first, which stays under the
link, and the resolved one after, so a repository reached through a link
(macOS's /var) is still found. The test makes a `.local` link (a symlink, or a
junction where symlinks need a privilege) and fails without the change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:29:12 +01:00
TiggerTakkyTTTandCodex a4f76cc3c2 Move status replies parity ids
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:26:44 +07:00
TeiwazikandClaude Opus 5.5 eb58c6bb30 Shader API: [displacement], relief as geometry near the camera
The manifest's [displacement] (distance 4..32 blocks, cells 4..64 a
side, and the options that turn it on, pick the cell count and make
cells steps), the material stage's
fn displacement(input: DisplacementInput) -> f32, checked with its
signature and composed with an entry point that calls it, and
MaterialInput.displaced. The renderer passes 0 for now; the grid that
draws the relief comes next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 13:24:44 +01:00
TiggerTakkyTTTandCodex 63554a33a7 Merge upstream main into entity range management
Preserve entity broadcast range parity alongside the merged allow-flight management changes and log clamped values.

Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:24:37 +07:00
AkirabaneandClaude Opus 5.5 33dd3825e1 Shader packs: 1D images are made and bound as 1D textures
A pack's 1D image is now a D1 texture with a D1 view, sized against the
device's 1D limit; `image1D`/`uimage1D` bindings and their stand-ins are D1,
and its `sampler1D`/`usampler1D` reads it through the image's own dimension.

Fixes #8177

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:21:43 +01:00
AkirabaneandClaude Opus 5.5 80f0a25624 Shader packs: an image.* with one size is a 1D image
An Iris-format `image.<name>` gives its size in pixels after `relative`: two
for a 2D image, three for a 3D one, and one for a 1D image (a table read by
index, such as a per-block lookup a setup program fills). CustomImage::parse
refused the one-size form, so the image was "not an image" and its sampler and
`image1D` reads got nothing.

ImageSize::Line holds that width; `extent` is [width, 1, 1] and `is_1d` tells
the renderer. An `image1D` declaration without a format gets the image's, as
2D and 3D ones do.

Refs #8177

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:21:43 +01:00
TiggerTakkyTTTandCodex 76fdd95603 Merge upstream main into simulation distance management
Preserve simulation-distance parity alongside the merged allow-flight management changes.

Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:21:16 +07:00
TiggerTakkyTTTandCodex f823c66dae Merge upstream main into view distance management
Preserve view-distance parity alongside the merged allow-flight management changes.

Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:18:11 +07:00
AkirabaneandClaude Sonnet 5.5 685d0b1e8c Buckets: the fluid ray passes through the hollow of a torch, fence or flower
pick_fluid stopped at any non-air cell without a fluid instead of clipping
the block's outline, so a water bucket could not fill through the empty part
of a torch's cell. ClipContext.Block.OUTLINE lets the ray through; the ray
now stops only where it meets an outline box. This covers the buckets
(empty, fish), glass bottle, lily pad / frogspawn and spawn eggs, which
all use this ray.

Fixes #8180

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:15:02 +01:00
rdbtCVSandCodex gpt-6.1-sol 78ef64dbb7 Use shared scratch environment for relocated benchmark
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 12:13:41 +00:00
rdbtCVSandCodex gpt-6.1-sol f41d7a6f43 Move standalone benchmark script into tools
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 12:12:26 +00:00
AkirabaneandClaude Sonnet 5.5 7aa91682b6 docs: say that a pack's post chain owns anti-aliasing
While a pack's post chain draws the frame, `taa`, `fxaa` and `upscaling` have no
effect and the projection is not jittered (gfx.rs turns TAA off under a pack
post or a native post, and the resolve that does TAA, FXAA and the upscale is
the step the pack's last pass replaces). `resolutionScale` still applies. The
reference said nothing, so pack authors assumed the settings still worked, and
a temporal pass of their own, which has no jitter to work with, did nothing.
Say it, and what a pack can do instead.

Refs #8173

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:12:04 +01:00
TiggerTakkyTTTandCodex 52c5740b56 Merge upstream main into spawn protection management
Preserve the spawn-protection parity path alongside the merged allow-flight management changes.

Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 19:08:09 +07:00
AkirabaneandClaude Sonnet 5.5 ee480fe577 fix(shaders): a bool member of a std430 buffer translates
GLSL gives a `bool` in a `layout(std430)` buffer a size and an alignment of
4. naga does not let a bool into a storage buffer at all, so the program
failed with "Global variable [6] '' is invalid: ... The type is not
host-shareable": no name, no member, and the line of the include site (#8175).

Such a member now becomes a `uint` of the same size and every use of it is
rewritten before the stage is scanned: a read is `(flag != 0u)` (also through
an instance, `state.flag`, and an array, `flags[i]`), a plain assignment is
`flag = uint(...)`. Nothing is added or removed from a line, so the pack's
line numbers stay right. It applies to render and compute programs.

What the rewrite cannot make sure of is refused with the member's name and its
line, instead of naga's anonymous error: a compound assignment (`flag |= x`),
an assignment used as a value, a local or parameter of the same name, a `bool`
vector member and an instance array of such a buffer.

Tests: the five shapes of the issue translate; the refusals name the member and
the line; the rewritten text is checked exactly; a compute program reads and
writes a bool member. Before the change the first test fails with the exact
message of the issue for every shape.

Fixes #8175

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 13:05:45 +01:00
AkirabaneandClaude Opus 5.5 6e26955fd5 A gliding mob is not held by vines
LivingEntity.onClimbable answers false for an entity that isFallFlying in a
#minecraft:can_glide_through block (vines, twisting and weeping vines, cave
vines) before it looks at #minecraft:climbable or a trapdoor over a ladder.
Mob::on_climbable skipped that test. A ladder is not in the tag, so a glider
still holds on to it. Spider.onClimbable overrides the whole method and is
unchanged.

Refs #8140

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:05:23 +01:00
AkirabaneandClaude Opus 5.5 67b1d9fc4a server_knockback: put the half-shield case's zombie where Bob's shield always faces it
zombie-shield-partial gave vanilla itself two results from one script
(#8164): blocked in the 2026-11-03 audit (Bob -0.08191 0.31362), not blocked
in a local run (-0.21840 0.27516, as Horizon). The zombie stood one block east
of Bob, behind him while his position packets face him west, and at exactly 90
degrees once KnockbackClient's use packet turns him south
(ServerGamePacketListenerImpl.handleUseItem snaps the player to the packet's
rotation, 0 0). Which rotation counts at the tick of the hit is timing.

The zombie now stands south-west of Bob, facing him: 45 degrees from his view
either way, so the half-blocking shield blocks every run. No other case
changes.

Fixes #8164

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 13:00:56 +01:00
AkirabaneandClaude Sonnet 5.5 359d60f55f fix(shaders): a flat varying with centroid or sample is flat
GLSL (4.60, 4.5) lets `centroid` and `sample` stand beside `flat` and means
nothing by them, since a flat varying is not interpolated. naga validates the
pair and refuses it ("Cannot combine Flat interpolation with the Centroid
sample type"), so a pack that writes `flat centroid out vec2 uv;` or a block
member `flat sample vec2 uv;` lost the whole program. The declaration scanner
now keeps `flat` alone when it is there, in either order and on either side of
the storage qualifier.

Tests translate the varyings and the interface block members of #8174 through
the whole pipeline: 3 profiles, 7 qualifier combinations, both qualifier
orders, and 11 block member shapes. The block cases are the ones whose
"Expected Void, Struct or a type, found Interpolation(Flat)" #6875 fixed; they
had no test above the function that flattens a block. Before #6875 they fail
with exactly the message of the issue.

Refs #8174

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:59:03 +01:00
TeiwazikandClaude Opus 5.5 0829fdd82a Shader API: a pack may chain 12 post passes
Eight leave no room for ambient occlusion (a pass and its apply) and
TAA: reimagined_horizon chains 11, bloom (4), ambient occlusion (2),
screen-space reflections, light shafts (march and apply), TAA and the
final pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 12:51:08 +01:00
rdbtCVSandClaude Opus 5.5 34e8edaa45 Random ticks: ask for the next section's mask, not a list of all of them
A chunk's random ticks asked the section cache for every ticking section
and cloned each mask into a list, again after every block change, building
masks for sections the pass had already left. The cache now answers with
the next ticking section from a Y up, building and sharing only that mask;
an answer stands while no block changes and the asked Y stays below it.
Draws, positions and the ticks they reach are unchanged.

Fixes #7886

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 11:51:06 +00:00
janibert1andClaude Sonnet 5.5 13e3636ff2 horizon-server: whitelist-bypass.txt lets UUID prefixes (Floodgate) pass the whitelist
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:36:55 +01:00
janibert1andClaude Sonnet 5.5 00d32ff93a Native mods: NativeServerPlayer carries the player's entity id
Hooks that only know entity ids (living_incoming_damage, living_knockback) can now be
matched to players.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:36:35 +01:00
TiggerTakkyTTTandCodex 921d5c7a18 Move hide online players parity ids
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 18:33:38 +07:00
AkirabaneandClaude Opus 5.5 54a8a4e47c Superflat worlds without structures place their features and lakes too
A superflat world that decorates (`features` or `lakes`) but generates no
structure set, because `generate_structures` is off or its
`structure_overrides` is `[]`, still went through FlatTerrain, which lays the
layers and the Void platform only. FlatLevelSource decorates with
adjustGenerationSettings whatever its structures do.

FlatTerrain::structure_settings becomes pipeline_settings: the settings of a
superflat world that lets a structure set generate or that decorates. World
loading streams such a world on the flat pipeline when its structures generate
or it decorates; the pipeline then has no structure starts when
generate_structures is off, and no set when the overrides are empty.
FlatTerrain keeps the worlds with neither, and the Void.

Refs #2912

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:29:30 +01:00
CocofireHDandHermes e2d38b13d5 World: a moving piston cell supports like the block arriving in it
`PistonBaseBlock.moveBlocks` writes `moving_piston` into the destination cells
and then updates the neighbours of every source cell. A cell that is both a
source and a destination of a chain push still holds `moving_piston` when that
update runs, so a rail on top of it was asked whether it could survive against
the bare `moving_piston`, found no rigid support and dropped as an item
(#8111).

`support_state` already stood in for a retracting piston base's block-entity
collision shape (#4728); any other moving cell now reads as `moved_state`,
which is what `PistonMovingBlockEntity.getCollisionShape` returns.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 12:12:52 +01:00
CocofireHDandHermes 6938bc45ef Protocol: read the SetTime clock key as a Holder<WorldClock>
`ClientboundSetTimePacket` keys its clocks with `WorldClock.STREAM_CODEC`,
which is `ByteBufCodecs.holderRegistry`: the wire form is `varint(registry id
+ 1)`, with 0 reserved for an inline definition. Read as a bare VarInt, a
vanilla server's overworld clock (1 on the wire) landed on the End's entry, so
the name lookup in the `C::SetTime` handler never matched
`minecraft:overworld` and `day_time` stayed where it was — `/time set day`
updated the game time but the client's sky and time never moved (#7542).

Horizon's own writers already pass 0-based registry ids (the LAN hub and the
1.21 adapter), so they now emit the holder form vanilla expects instead of a
bare 0, which vanilla would decode as an inline holder.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 12:12:06 +01:00
AkirabaneandClaude Opus 5.5 4b3c4f853a Test that a mob in vines slides down at 0.15 a tick
A cow let go at rest drops 0, 0.0784, then 0.155232 in open air; in a column
of vines every drop from the third tick on is 0.15F and its fall distance
never grows past one move.

Refs #8140

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:10:40 +01:00
AkirabaneandClaude Sonnet 5.5 209f2fd34d fix(motion): a passenger freezes in powder snow, and the frostbite overlay shows it
A player carried by a boat only ran `passenger_pose_tick`, never the part of
`LivingEntity.aiStep` that applies the effects of the blocks it is in. Powder
snow's FREEZE never added a tick of frost to the window's own player, and
nothing thawed it, so `ticks_frozen`, which the frostbite overlay reads, stayed
where it was: the server froze and hurt the rider, who saw no frost (#8156).

`passenger_block_effects_tick` samples the blocks the passenger is in, as the
client does on foot, and thaws two ticks a tick out of powder snow as the
server does; the riding branch of the client tick calls it after the pose.
The server's copy of a riding guest is untouched: it already freezes in
`server_block_damage`.

Refs #8156

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:10:24 +01:00
AkirabaneandClaude Opus 5.5 c63db5f701 Slow every mob down in vines and on ladders, not only spiders
LivingEntity.handleRelativeFrictionAndCalculateMovement calls
handleOnClimbable for every living entity: when onClimbable() (the block it
stands in is #minecraft:climbable, or an open trapdoor over a ladder facing
the same way), the fall distance is reset and the motion is clamped to 0.15F
across and to -0.15F down before the move; after the move, a mob pressed
against a wall or jumping while still on a climbable goes up at 0.2. Only
Spider overrides onClimbable (isClimbing).

Mob::travel_in_air did this for spiders only, so a cow or a villager let go
in vines fell freely and took fall damage (a cow from 10 to 3 health over 10
blocks). The spider keeps its own test, and now clamps to the float 0.15F as
vanilla does instead of the double 0.15. The pusher's onClimbable in ai.rs
uses the same test.

Refs #8140

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:10:09 +01:00
TiggerTakkyTTTandCodex 37d0888489 Add live status replies management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 18:08:41 +07:00
AkirabaneandClaude Sonnet 5.5 add4366765 Boats: fix the rot_lerp test's 180-degree case
A 180-degree gap is ambiguous (Mth.wrapDegrees maps it to -180), so the test
now uses -90 to 80, whose short arc is unambiguous.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:08:20 +01:00
AkirabaneandClaude Sonnet 5.5 36eddf9710 docs: describe /tempban for server operators
Refs horizon-rust/horizon-mods#170

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:03:29 +01:00
AkirabaneandClaude Sonnet 5.5 8c10244e45 feat(server): /tempban, a ban that ends by itself
Vanilla only has /ban, which is permanent, so an operator who wants to
send a player away for an hour or a week has to remember to pardon them.
`/tempban <player> <duration> [reason]` (durations as /tempmute: 30m, 12h,
7d, 2w) writes a banned-players.json entry with `expires` set, as the chat
filter's automatic temporary ban already does, so the login check,
/banlist and /pardon treat it like any ban and it survives a restart.

Operators of level 3 (/ban's level) run it in game on dedicated servers;
the console takes the same words. A player who is online is kicked with
the reason and the time the ban ends, the message they read again when they
try to join (now one function, `ban_message`, shared with the login check).
A player whose ban is still in force is left as they are, as /ban does;
a ban that has ended no longer counts. It is logged as `[tempban]` and goes
to the event stream as a `ban` with `reason`, `by` and `until`. Like the
mute commands it is handled as raw words rather than in the vanilla tree,
so it has no completions.

Refs horizon-rust/horizon-mods#170

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:03:29 +01:00
AkirabaneandClaude Opus 5.5 b40b532a67 Parity harness: superflat chunks against vanilla's FlatLevelSource
tools/test_flat_generation_parity.py runs VanillaChunkGenerationOracle with
HORIZON_FLAT=<flat_level_generator_preset>, which builds a real FlatLevelSource
from the preset registry (with ChunkMap's random state for a generator without
noise, and createState's structure state), and chunk_dump with the same
variable on OverworldGenerator::flat. Every block, quart biome and block entity
of the target chunks is compared after decoration, for the three presets that
decorate (Overworld, Desert, Tunnelers' Dream) and three that only place layers
and structures. A decorating preset must hold blocks beyond its layers in
vanilla, so the decoration is known to be covered.

Refs #2912

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:03:18 +01:00
AkirabaneandClaude Opus 5.5 679b9f53be Superflat worlds with structures place their features and lakes
A superflat world on the structure pipeline (Generator::flat, #5509) built its
decoration with no placed feature at all. FlatLevelSource decorates with
FlatLevelGeneratorSettings.adjustGenerationSettings of its biome (26.3
bytecode): the lava lakes of createLakesList in the lakes step when `lakes` is
on; the biome's own features when `features` is on and the layers are not all
air (or the biome is the_void), except those of the underground and surface
structure steps, and of the lakes step when `lakes` is on.

FlatSettings now carries `features` and `lakes`, and Decoration::new_with takes
that adjustment. The FillLayerFeatures stay last in TOP_LAYER_MODIFICATION, as
the builder adds them after the biome's features.

Refs #2912

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:03:17 +01:00
AkirabaneandClaude Sonnet 5.5 b59836d46f Boats: ease a remote boat's yaw over three ticks, as AbstractBoat's LinearInterpolationHandler
A client that plays on a server (the window of a single-player world is
one) put a boat's yaw at once when a move packet came, every third tick,
while its position was eased over the three ticks. A boat pulled on a lead
turns every tick, so it turned in steps. AbstractBoat creates
LinearInterpolationHandler.create(this, 3): position and rotation both move
a 1/steps share of the way each tick (Mth.rotLerp, the short arc).

The yaw of the boat now follows the lerp's rotation target with the same
steps as its position. A driven boat and minecarts are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 12:03:03 +01:00
Arslan ArmanulyandClaude Opus 5.5 82e8967c10 Shader packs: clear both textures of a cleared buffer every frame
A cleared colortex buffer had only its "main" texture cleared at the start
of the frame. The main/alt mapping carries over frames, so with an odd
number of flips a frame the texture a program writes first was "main" the
frame before, and still held what a later program wrote after that frame's
clear: pixels the first write discards, or a blended first write (with
#8044), read the previous frame's data. Iris 1.11.7 reads the clear value
there (probed with our own packs: a discarding first write reads 0 where
Horizon read the previous frame's 0.25; a compute imageStore then a blended
write (with #8044) blends onto 0 where Horizon blended onto 0.25).

The frame-start clear now also clears the other texture of every cleared
buffer, grouped like the existing clears. Buffers with Clear=false keep
both textures.

Part of #6812

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 15:58:13 +05:00
arismoko 387d2d5855 Test non-finite teleport rotations 2026-11-03 10:57:15 +00:00
LokiandAntigravity 14f4b9d332 game/spawner: overflow-safe remote spawner distance scanning (fixes #7730)
In vanilla Java Edition 26.3 (SpawnerBlockEntity.clientTick and BaseSpawner.clientTick),
client ticking is only performed for authentic spawners, trial spawners and vaults.
Non-spawner block entities (including dummy container menus at i32::MIN) never reach
spawner distance calculation or client ticking.

In Horizon, Game::tick_remote_spawners previously iterated through all block entities
and performed signed coordinate subtraction (pos.0 - center[0]).abs(). When a dummy
container menu at (i32::MIN, 0, 0) was present, this panicked on signed integer
overflow in debug mode (i32::MIN - 1024 underflow or i32::MIN.abs() overflow).

Filter upfront for Spawner, TrialSpawner and Vault block entities in nearby_remote_spawner_keys
and compute Chebyshev distance using unsigned integer absolute difference (abs_diff)
to avoid any possibility of signed integer overflow at coordinate boundaries.

Co-Authored-By: Antigravity <[email protected]>
2026-11-03 19:55:45 +09:00
TiggerTakkyTTTandCodex 0fe2117572 Add hide online players management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 17:54:58 +07:00
arismoko 233e61d62f Guard non-finite teleport rotations 2026-11-03 10:38:20 +00:00
masa-masa-0314andCodex 8b758ff22e World: preserve drops when rebuilding the End platform
Destroy replaced platform blocks with drops before setting obsidian or air, matching EndPlatformFeature. This preserves sand and container contents on portal arrival. Fixes #8127.

Co-Authored-By: Codex <[email protected]>
2026-11-03 18:31:58 +08:00
TiggerTakkyTTTandCodex bb991d6f15 Merge upstream/main into operator permission level
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 17:29:46 +07:00
Loki a9f4573d1b Merge remote-tracking branch 'origin/main' into fix/8123-cycle-backwards 2026-11-03 19:23:02 +09:00
LokiandAntigravity 4f9fdf8bc7 render: cycle backwards through button options with shift (fixes #8123)
In vanilla Java Edition 26.3, CycleButton.onPress checks input.hasShiftDown()
and calls cycleValue(-1) when Shift is held down, cycling options backwards
with positive modulo wrapping.

In Horizon, OptionsUi.click previously ignored self.shift and passed right
(which was always false due to earlier early return), preventing cycling backwards
on Act::Cycle, Act::Extra, and in GraphicsUi::click.

Pass self.shift into cycle_option, item.cycle, and graphics.click, allowing
Shift-clicking to cycle options backwards with wrap-around across all options pages.

Co-Authored-By: Antigravity <[email protected]>
2026-11-03 19:22:19 +09:00
TiggerTakkyTTTandCodex 09496d8f2a Add operator permission level management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 17:21:41 +07:00
HrafnaValkyrjaandClaude Sonnet 5.5 3b7fe12fe2 WIP: tick orbs, primed TNT and falling blocks in join order between the other kinds
Not ready: the wind burst cells got worse (see the proof runs). Not pushed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 05:21:17 -05:00
TiggerTakkyTTTandCodex f90f7aac52 Add live entity broadcast range management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 17:00:44 +07:00
rdbtCVSandClaude Opus 5.5 d4365151d0 Spawning candidates: rebuild only the squares a chunk crossing changes
The candidate union is kept as one segment per player (the chunks of its
square that no earlier player's square holds). A border crossing rebuilds
the mover's segment and the later overlapping ones, with no hash set, so
clustered and mixed groups no longer rebuild every player's square. Each
level keeps its own cache, so players in several dimensions stop
invalidating it every tick. Order, count and live proximity are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 09:54:19 +00:00
HrafnaValkyrjaandClaude Sonnet 5.5 626cf0542d rustfmt
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 04:54:06 -05:00
masa-masa-0314andCodex 3eda0605cf Projectiles: restore fire on player-thrown tridents
Share arrow environment fire effects with player tridents, retain grounded and return timing, persist Fire, and synchronize and render the burning flag. Fixes #7500.

Co-Authored-By: Codex <[email protected]>
2026-11-03 17:53:15 +08:00
TiggerTakkyTTTandCodex aa9341243e Add live simulation distance management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 16:46:28 +07:00
JanandClaude Sonnet 5.5 23c7618560 Native mods: a player's chat message, cancellable (player_chat, #8120)
Adds the hook point player_chat(player, name, message, replies, cancel): heard once for each chat message a player sends on a server, after the secure-chat chain and the chat filter and before anyone sees it. cancel drops it for everybody; lines in replies go to the sender. The text is read-only (a rewritten signed message would not verify).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:46:11 +01:00
Arslan ArmanulyandClaude Opus 5.5 e00ffd6092 Shader packs: SNORM colortex buffers clamp and quantise
A colortexNFormat of RGBA8_SNORM, RG16_SNORM and the other SNORM formats was
stored in a half float, so a buffer read back -1.5 or 1000 unclamped and
0.0999756 for 0.1. Iris 1.11.7 reads them clamped to [-1, 1] and quantised
to 8 or 16 bits, as probe packs of our own show. Where the adapter can
render to the SNORM wgpu format, the buffer now uses it; elsewhere the half
float stays.

Part of #8106

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:46:05 +05:00
Arslan ArmanulyandClaude Opus 5.5 7b9b688fa4 Shader packs: three-channel colortex buffers read alpha 1
A colortex buffer of a three-channel format (RGB8, RGB16, RGB16F, RGB32F,
RGB32UI, RGB565, R3_G3_B2, R11F_G11F_B10F, RGB8_SNORM, ...) is stored in a
four-channel wgpu format, so it read back whatever alpha was written or
cleared. In Iris 1.11.7 it reads alpha 1 in every case, as probe packs of
our own show. Passes of colortex programs now leave such a buffer's alpha
alone, its clears and first contents set it to 1, and the world blit loads
a three-channel colortex0 with alpha 1.

Part of #8106

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:46:05 +05:00
Arslan ArmanulyandClaude Opus 5.5 8247cdbcb7 Shader packs: shadowcolor2 to shadowcolor7 with HIGHER_SHADOWCOLOR
A pack that names the HIGHER_SHADOWCOLOR feature (iris.features.required or
.optional) gets six more shadow buffers, shadowcolor2 to shadowcolor7, as
Iris's documentation describes them: identical to the first two. Shadow and
shadowcomp programs write them through RENDERTARGETS or DRAWBUFFERS, every
program samples them, and each has its own format, clear switch and clear
colour (white by default). Without a directive a shadow program still writes
shadowcolor0 and 1 only, as Iris 1.11.7 does with the feature in probe packs
of our own. The feature is defined as IRIS_FEATURE_HIGHER_SHADOWCOLOR for an
optional request and no longer noted as missing when required.

Not included: the shadowcolorimg2 to 7 images, which need image access to the
shadow buffers in the first place (#7945).

Part of #7951

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:46:05 +05:00
Arslan ArmanulyandClaude Opus 5.5 5073caa885 Copied signs keep their text when placed
A sign picked with Ctrl + Pick Block carries its text as the item's
sign_text_front/sign_text_back components (SignBlockEntity
.collectImplicitComponents). Vanilla's client places the copy itself
(BlockItem.place inside MultiPlayerGameMode.useItemOn), and
updateBlockEntityComponents gives the predicted sign that text, so the
editor the server opens (SignBlock.setPlacedBy) shows the copied lines and
Done sends them back unchanged.

Horizon lost the text on the way: the server never wrote the two
components on the wire, the client read past them, and the client's
predicted sign never took the stack's components. The editor opened on an
empty sign, and Done wrote the empty lines back.

- item stacks write and read SignText.STREAM_CODEC for both components;
- the client applies the stack's components (not block_entity_data, which
  updateCustomBlockEntityTag leaves to the server) to the block it predicts;
- lan_e2e gains a sign_copy check, for the host and a guest.

Fixes #8102

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:45:32 +05:00
ElyTheCatandOpenAI Codex 3ea5d68c2a Add configurable entity precheck slider
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 13:13:13 +03:30
HrafnaValkyrjaandClaude Sonnet 5.5 4cac42c4ef Weather follows the dimension type, not the Overworld id
Rain, thunder and lightning rules ask one canHaveWeather helper (sky light,
no ceiling, not the End) instead of comparing the dimension id. Adds a unit
test for the rule.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 04:42:07 -05:00
TiggerTakkyTTTandCodex 8aab0488dc Add live view distance management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 16:35:17 +07:00
ElyTheCatandOpenAI Codex d387eb8c3c Apply entity precheck threshold to both culling modes
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 13:03:52 +03:30
ElyTheCatandOpenAI Codex a38ef04585 Make entity precheck threshold configurable
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 13:02:30 +03:30
Slavik-85andClaude Opus 5.5 3dbe994f44 resource packs: a pack's core/rendertype_lines draws the block outline
A pack that replaces core/rendertype_lines (an RGB outline animated from
GameTime, say) left the selection outline black: only core/text was run.
Its shaders now go through the same naga translation (pack_text's loader,
generalised to load_core) and draw both strokes of the outline, as
vanilla's LINES and secondaryBlockOutline both use rendertype_lines.

The glue feeds vanilla's lines vertex format from the outline's edge
instances: Position (the start for vertices 0 and 1, the end for 2 and
3), Color, Normal (the direction) and LineWidth, the side from
gl_VertexIndex % 2, as vs_line draws them. The blocks are vanilla's:
Globals (GameTime, ScreenSize), Projection (the lens with the bob and
TAA jitter, 0 to 1 depth like 26.3's), DynamicTransforms (the rotation
with the PERSPECTIVE layering scale) and Fog, so ProjMat * ModelViewMat
is vs_line's view_proj. A pack shader the backend rejects, or whose
blocks outgrow vanilla's, falls back to the built-in outline. Shader
packs that draw the outline still take it.

Fixes #8020.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 11:26:22 +02:00
HrafnaValkyrjaandClaude Sonnet 5.5 6d214c14c2 Merge origin/main into dimension-type weather branch
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 04:25:56 -05:00
Teiwazik 0ec7c93ad0 Merge remote-tracking branch 'fork/older-servers/v1-21-10' into older-servers/v1-21-10 2026-11-03 10:21:25 +01:00
Teiwazik 84b959af89 Merge remote-tracking branch 'origin/main' into older-servers/v1-21-10 2026-11-03 10:21:12 +01:00
ElyTheCatandOpenAI Codex 7e22c998dd Split async occlusion into ray and plane workers
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:49:33 +03:30
HrafnaValkyrjaandClaude Sonnet 5.5 8d0c2bbd55 Merge remote-tracking branch 'origin/main' into fix/projectile-vehicle-hits
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 04:19:25 -05:00
HrafnaValkyrjaandClaude Sonnet 5.5 44c9719f41 Eggs and ender pearls strike boats and minecarts; vehicles are targets for every projectile kind
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 04:19:19 -05:00
ElyTheCatandOpenAI Codex d5abaf67c8 Fix async entity occlusion cache reuse
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-03 12:40:36 +03:30
Arslan ArmanulyandClaude Opus 5.5 9c74bbeace Shader packs: a program without RENDERTARGETS writes colortex0 only
Without a RENDERTARGETS or DRAWBUFFERS directive Horizon bound buffers 0 to 7
to a program's outputs, so gl_FragData[n] or layout(location = n) wrote
colortex n. Iris 1.11.7 writes only colortex0 for gbuffers, begin, prepare,
deferred and composite programs, and shadowcolor0 and 1 for shadow and
shadowcomp programs, as probe packs of our own show. Non-shadow programs
now default to buffer 0; shadow programs keep their two buffers.

Fixes #8107

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 14:07:27 +05:00
JoansitohandClaude Sonnet 5.5 1a14bdfcde Slide overlong Horizon-styled button, slider and cycler labels
Part of #8100

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 10:03:31 +01:00
TiggerTakkyTTTandCodex ccda2b69eb Add live spawn protection management
Co-Authored-By: Codex (GPT-6.1) <[email protected]>
2026-11-03 15:57:20 +07:00
CocofireHDandHermes 072cd038c5 Mobs: an AvoidEntityGoal target needs sight, visibility and a non-Peaceful level
`AvoidEntity::can_use` picked what to flee with a distance and height test,
where `AvoidEntityGoal` targets through `TargetingConditions.forCombat()`:
`canAttack` (no player is a target at all in Peaceful), the range scaled by
`getVisibilityPercent` with a floor of 2, and line of sight. Fish, ocelots,
foxes, rabbits, pandas and illusioners fled a player standing behind a wall or
on the other side of a hill, a sneaking or invisible one from the full 8 or 16
blocks, and still fled in Peaceful; creepers fled cats and skeletons fled
wolves through walls.

The player arm now runs `Mob::can_target_player` (the existing port of
`TargetingConditions.test`) after the goal's own predicate, and the species arm
needs `Mob::sees`. The target lookup moved into `AvoidEntity::avoid_target`, so
the conditions are testable without the random retreat position and the path.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 09:45:29 +01:00
JoansitohandClaude Sonnet 5.5 bc4fffc20e Minecarts: air display shows nothing, unreadable DisplayState is dropped
Part of #8050.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:44:17 +01:00
Florian ERNSTandClaude Opus 5.5 3238d09f66 Borrow jigsaw connector strings from their template
Template jigsaws cloned each connector's name, pool and target, plus
the block state's orientation property, every time a piece's
connectors were shuffled. Borrow them from the cached template and
registry instead. Palette selection, rotation, shuffle draws and the
priority sort are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 09:41:31 +01:00
HrafnaValkyrjaandClaude Opus 5.5 19a7803283 Skip the block speed test when the vanilla data is missing
CI has no extracted vanilla data; the test now skips like its neighbours.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 03:33:48 -05:00
JoansitohandClaude Sonnet 5.5 4ee1b9859f Minecarts: fall back to the kind's block, cull with the shown block
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:29:59 +01:00
JoansitohandClaude Sonnet 5.5 eabb9ba84e Minecarts: read and save DisplayState and DisplayOffset
Part of #8050. AbstractMinecart.read/addAdditionalSaveData: a saved custom
display block and offset now draw and survive a save; the offset is omitted
when it is the kind's default.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 09:27:34 +01:00
Slavik-85andClaude Opus 5.5 c557d53446 Credit a guest's raider kill to the guest's raid hero, not the host
Raider.die made the world owner the hero of the village for any player's
kill, so on LAN the host got Hero of the Village for a guest's kills and
the guest never did, and on a dedicated server nobody did. The killer's
connection now resolves to its own UUID, as villager_murdered already does.

Same mix-up in two commands: /fetchprofile entity @s in a guest's command
reported the host's profile, and /execute on owner missed guest owners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 10:15:16 +02:00
masa-masa-0314andCodex b3259b8b37 Tools: keep dimension pacing scenarios alive in flight
Synchronize creative flight through normal movement before End and Nether measurements, validate each dimension hop, and reject dead portal fixtures instead of reporting a false portal failure. Refs #7702.

Co-Authored-By: Codex <[email protected]>
2026-11-03 16:06:34 +08:00
HrafnaValkyrja c91fbfd777 Merge remote-tracking branch 'origin/main' into fix/entity-move-block-speed 2026-11-03 03:06:15 -05:00
Slavik-85andClaude Opus 5.5 9897e6bc6c game: a guest's tames, smashes and sweeps go by its own UUID
A nautilus a guest tamed, a horse a guest tamed by riding it, and the
allies a guest's mace smash and sword sweep spare all went by the world
owner's UUID (level.player_uuid, or a placeholder on a dedicated server)
instead of the acting player's.

The nautilus, the smash and the sweep run in the guest's turn, so they
take the acting player's UUID, as wolves and cats already do. A horse is
tamed in the mob tick, so its tame now runs in its rider's turn, found
the way Buck finds it: the rider owns it, then gets the tame_animal
trigger (AbstractHorse.tameWithName(player)), not the host.

Fixes #8047.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 10:02:36 +02:00
CocofireHDandHermes 92d02a0e84 Player skins: 3D skin layers
The outer skin layer is drawn as one box inflated by 0.25 px, so a hat,
jacket or sleeve reads as a flat skin over the body. With
threeDSkinLayers (Options -> Skin Customization, off by default) every
texel the skin paints becomes a slab one texel deep, with its sides filled
in where the next texel is transparent: the layer gets a silhouette of its
own and the gaps between painted texels stay open.

The geometry is built once per skin (and slim/wide) from the 64x64 image
the game already decodes and cached with it; the model tree and UVs are
the ones the renderer already poses, so the CPU and GPU skin paths draw it
unchanged.

Co-Authored-By: Hermes <[email protected]>
2026-11-03 08:43:44 +01:00
LokiandAntigravity e9fd2edf5d menu: enforce limited_crafting game rule for unknown recipes (fixes #8052)
According to vanilla Java Edition 26.3 (RecipeCraftingHolder.setRecipeUsed,
CraftingMenu.slotChangedCraftingGrid, and MinecraftServer.onGameRuleChanged):
- When the limited_crafting game rule is active, crafting recipes that are
  not special and not contained in the player's recipe book are refused,
  leaving the crafting result empty (None). Special recipes (Recipe::Special)
  bypass the recipe book check.
- When limited_crafting changes, MinecraftServer sends ClientboundGameEventPacket
  type 12 (LIMITED_CRAFTING) to all players, and ClientboundLoginPacket carries
  the rule on join.

Co-Authored-By: Antigravity <[email protected]>
2026-11-03 16:35:09 +09:00
JoansitohandClaude Sonnet 5.5 46fb47af41 Collapse the reduced_debug_info event arm (clippy)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:33:29 +01:00
JoansitohandClaude Sonnet 5.5 fc16743cf3 Mobs never target players in Peaceful
LivingEntity.canAttack and TargetingConditions.test refuse a player target
when the difficulty is PEACEFUL; spares_players now does too.

Fixes #8046

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:33:29 +01:00
OlaHullebergandClaude Opus 5.5 da8eb9e43b Content blocks may occlude nothing (properties.occludes)
A content block occluded as its template does, so a thin panel or a block
drawn by its block entity on a full-cube template hid the faces of the
blocks beside it, leaving a hole in the floor under it.
`properties.occludes: false` is vanilla's `noOcclusion()`: the block's
gameplay state can't occlude and isn't a solid render, and its render
definition can't occlude (the faces beside it are drawn). A solid render's
full light dampening becomes a non-solid block's, as vanilla's data has it
for leaves and spawners: 1, or 0 when skylight passes down.

Item 2 of #5550.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ChJKHFsqiw1XFe27mMdroL
2026-11-03 07:28:03 +00:00
masa-masa-0314andCodex 45b1e501de Launcher: use octal permissions in relocation regression test
Fix Linux clippy::non_octal_unix_permissions without changing the unreadable-source fixture or its assertions.

Co-Authored-By: Codex <[email protected]>
2026-11-03 15:27:26 +08:00
JoansitohandClaude Sonnet 5.5 11c50fd0d9 Send the reduced_debug_info rule to players (Login and entity events 22/23)
Fixes #8051

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 08:20:28 +01:00
masa-masa-0314andCodex ed7f1f4428 Launcher: retain data relocation safety regression tests
Cover source-preserving migration, real unreadable-file failures, unsafe destinations and links, stale workers, leases, atomic pointer failure and structured path remapping. Fix canonical Windows drive prefix validation exposed by the permanent tests.

Refs #7218

Co-Authored-By: Codex <[email protected]>
2026-11-03 15:08:13 +08:00
GabrielNichols 5bd3afa1ad launcher: bound native build caches and support safe cleanup (#8028)
Limit fast/release compiler outputs after builds and expose cache inspection and cleanup. Coordinate builds and cleanup with OS/Cargo locks; preserve installed versions and player data.
2026-11-03 04:00:03 -03:00
OlaHullebergandClaude Opus 5.5 dd26d27880 Food effects keep their ambient and show_particles flags
A consumable's `apply_effects` read only each effect's id, duration and
amplifier, so a data pack's or content mod's food that asked for a quiet
effect (`"ambient": true`, `"show_particles": false`) gave a normal one.
Each `MobEffectInstance` now keeps both, with vanilla's codec defaults
(false and true), and the effect the player gets carries them.

Fixes #8080

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ChJKHFsqiw1XFe27mMdroL
2026-11-03 06:48:06 +00:00
rdbtCVSandCodex gpt-6.1-sol 0d969ae57c Merge parrot flight-speed parity prerequisite (#8077)
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 06:44:46 +00:00
ClickingMaster e644192a1c Merge origin/main 2026-11-02 22:20:55 -08:00
LokiandAntigravity 0d29ccecac potions: collect dragon's breath from ender dragon clouds (fixes #8054)
In vanilla Java Edition 26.3 (BottleItem.use), using a glass bottle
within reach of an active Ender Dragon breath cloud shrinks the cloud
radius by 0.5, plays item.bottle.fill_dragonbreath, emits FLUID_PICKUP,
and turns the bottle into dragon_breath. In MultiPlayerGameMode.useItem,
the client forwards the use item packet without requiring a local target.

Co-Authored-By: Antigravity <[email protected]>
2026-11-03 15:14:29 +09:00
Ludovic MarieandClaude Opus 5.5 c2bf88085a Merge origin/main into #7968 after #8011: the mod API is generated at build time
generated.rs is no longer tracked, and xtask's generator moved to
horizon-mod-api-gen, so the dispatch tests' stand-in types get NativeConfig
and NativeConfigFile there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 06:48:28 +01:00
ClickingMasterandClaude Sonnet 5.5 e1197bfb6e Format the baby armour test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 21:39:41 -08:00
ClickingMaster 80fcd18c2e Merge origin/main 2026-11-02 21:37:30 -08:00
HrafnaValkyrjaandClaude Sonnet 5.5 813143c35b Slow boats, derailed minecarts and mobs by the block speed factor
Entity.move ends by multiplying the horizontal velocity by
getBlockSpeedFactor. Only the player did it; zombies, husks, boats and
derailed minecarts skipped soul sand and honey. The step is now one
function, entity_move::scale_by_block_speed, called by the player's move
and by the mob, boat and derailed-cart moves; the block lookup for kinds
without a motion world is motion::block_speed_factor_at.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-03 00:32:18 -05:00
LokiandAntigravity 244eb0c347 game/lan: defer point-blank fresh arrow in_ground update (fixes #7461)
Co-Authored-By: Antigravity <[email protected]>
2026-11-03 14:31:53 +09:00
Ludovic MarieandClaude Opus 5.5 24f8b0cfc5 Merge origin/main into #8032 (after #8008 landed)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 06:30:47 +01:00
Ludovic MarieandClaude Opus 5.5 873782c24d Merge origin/main into #8065; keep both uniform tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 06:28:58 +01:00
rdbtCVSandCodex gpt-6.1-sol 33cd293811 Merge current main before validating spawning cache
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 05:27:10 +00:00
Arslan ArmanulyandClaude Opus 5.5 fc93a1d48d Shader packs: fog and per-draw uniforms as Iris gives them per program kind
Read back exactly with a probe pack in Iris 1.11.7 and Horizon, same scenes:
- fogStart/fogEnd are vanilla's environmental fog (0 to 1024 on a clear day,
  -160 to 768 in rain, -8 to 96 under water, 10 to 96 in the Nether), not the
  render distance's (172.8 to 192); fogDensity is 0.
- Composite and final programs read fogMode 0, fogShape -1, alphaTestRef 0.1,
  blockEntityId -1; gbuffers programs read fogMode 9729 (GL_LINEAR), fogShape
  1 (cylinder) and centerDepthSmooth 0.

Fixes #8060

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 10:06:30 +05:00
Ludovic Marie a45326c556 Merge remote-tracking branch 'origin/main' into perf/slow-tick-culprit 2026-11-03 05:56:42 +01:00
Ludovic MarieandClaude Opus 5.5 60accdc5d5 Merge origin/main (main's CI fixed in #8040)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 05:55:22 +01:00
NerfPhaselock 3e48866617 Merge remote-tracking branch 'upstream/main' into perf/gpu-culling-ii 2026-11-02 23:51:56 -05:00
arismoko 868bc02e8e Merge remote-tracking branch 'upstream/main' into v2/ses_01M6FN1T2FS6T4M8P7GFXJ6WTR-tp-pitch-clamp 2026-11-03 04:51:06 +00:00
ClickingMaster 5900585aac Merge origin/main 2026-11-02 20:43:16 -08:00
ClickingMasterandClaude Sonnet 5.5 a696e54055 Baby zombie armour: use the humanoid_baby equipment textures
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 20:43:16 -08:00
HrafnaValkyrjaandClaude Sonnet 5.5 4dc208a416 Rules read the dimension type, not the dimension id
A level's weather, natural spawning, map colouring, shader hasCeiling and
spawn search now read the type's has_ceiling, ambient_light and sky light
(Level.canHaveWeather, NaturalSpawner, MapItem.update, PlayerSpawnFinder),
carried in LevelShape from data packs, remote servers and LAN guests.
overworld_caves gets its ceiling. Fixes #7864.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 23:34:41 -05:00
Arslan ArmanulyandClaude Opus 5.5 0582226502 Shader packs: blend.<program> blends composite-style programs
`blend.<program>` was read for gbuffers programs only, so a begin,
prepare, deferred or composite program with one wrote its source over the
buffer. Iris 1.11.7 blends them (probed with our own pack: 0.25 over 0.75
with SRC_ALPHA ONE_MINUS_SRC_ALPHA ONE ZERO reads 0.625) and ignores
`blend.<program>.<buffer>` for deferred and composite programs (probed;
begin, prepare, setup and final are assumed to match). These passes
already load the buffers they write, so what the buffer holds is the
destination.

Part of #6812

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 09:31:02 +05:00
Arslan ArmanulyandClaude Opus 5.5 514bada684 Shader packs: currentRenderedItemId per draw, and the hand per held item
`currentRenderedItemId` was a frame uniform reading 0 in every program, and
a hand program that read it without declaring it failed to translate, so
the hand fell back to gbuffers_textured_lit.

- `HzDraw`'s fourth int, a pad until now, is `currentRenderedItemId`: -1 for
  terrain, water and the sky, 0 for entity runs (items drawn in the level
  are not done).
- The hand draws one run per arm and held item, each with its own `HzDraw`
  slot. A block item reads its block's block.properties id, or 0 when that
  file lacks it, whatever item.properties says; any other item reads its
  item.properties id, 65535 when the file lacks it, and 0 without the file.
- The hand's programs may read `currentRenderedItemId` undeclared; terrain's
  and entities' may not.

This is what Iris 1.11.7 does, observed with probe packs of our own.

Part of #6812

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 09:23:27 +05:00
arismoko 18ae21bcca Wrap teleport rotations like vanilla 2026-11-03 04:19:06 +00:00
arismoko 4ac46cd511 Wrap teleport pitch before clamping 2026-11-03 04:02:19 +00:00
NerfPhaselockandClaude Opus 5.5 85b95500f2 Renderer: GPU culling applies cave culling on the GPU
GPU frames now leave out the near solid sections that cave culling's graph
does not reach, as CPU frames do: cull also asks reached, which answers as
Occlusion::contains from a copy of the graph the frame's walk reads, the
clamped box and its sky band included. Since the previous commit they drew
every near solid section in view: the same pixels, but the GPU also shaded
every section the graph hides.

The graph keeps a bit per reached cell beside its cells (set_reached writes
both), and the occlusion store a process-wide generation that moves
whenever an answer of contains may change: a search lands, a partial update
reaches more, or the graph goes (clear, a teleport's remove_columns, a lost
camera). The pass keeps a copy of the bits and sends it again through the
staging belt only when the generation moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 22:53:48 -05:00
rdbtCVSandCodex gpt-6.1-sol bb80d6cce7 Cite the spawning candidate cache reference
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 03:45:33 +00:00
Ludovic MarieandClaude Opus 5.5 457da5d383 Dedicated server: a slow tick's line names whose packets or event took it
The slow-tick log said a 39.5 s freeze of the official server (2026-11-03)
was all tick_lan_packets, but not whose packets. Time each guest's packets
in the hub and each hub event in the game while spans are on (always on a
dedicated server), keep the three slowest of at least 10 ms, and end the
slow-tick line with them ("; slowest: Alex's 40 packets 39000.0").
tick_lan_packets also gets spans for its poll, drain, events and the
mods' commands, grants and menus.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 04:43:15 +01:00
rdbtCVSandCodex gpt-6.1-sol 9836b0f0f2 Cache ordered spawning candidates across player chunk movements
Co-Authored-By: Codex gpt-6.1-sol <[email protected]>
2026-11-03 03:40:04 +00:00
TeiwazikandClaude Opus 5.5 9027ef0a54 Older servers: join 1.21.9 and 1.21.10 servers
1.21.9 and 1.21.10 (protocol 773) get their packet and registry tables;
generate_packet_id_adapter.py learns --rename for horse_screen_open,
which 1.21.11 renamed mount_screen_open. Its packets are otherwise
1.21.11's; entity data takes 1.21.11's types for the bee's and the
wolf's anger end (a LONG, an INT before) and an avatar's main arm (a
HUMANOID_ARM, a BYTE before), and the serializers lack 1.21.11's zombie
nautilus variant.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NbhTr6rUbVKx6iB2X73DNG
2026-11-03 04:25:11 +01:00
NerfPhaselockandClaude Opus 5.5 9952a8539f Renderer: GPU culling culls the near solid sections itself
The pass now decides which near solid sections it draws instead of drawing
the ones the walk chose: cull keeps a record whose column is within the
render distance (streaming's in_view_distance) and whose box passes an
integer frustum test. The box is the section's bounds rounded out to whole
blocks; the test adds integer terms the CPU makes each frame from the
camera's planes, each rounded up, with a margin for the walk's own f32
rounding, so it keeps every box the walk keeps. A camera so far above or
below the level that the terms could overflow makes the frame a CPU frame.

The walk lists only what it still draws within the render distance: the
sections with translucent quads or without a record (Resident's marks, kept
through every insert, removal and remove_columns), and past it everything as
before. Freed records are written to the GPU again, as the pass now reads
every record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 21:49:45 -05:00
Ludovic MarieandClaude Opus 5.5 f545530d3e launcher: pick the loader's version in New instance
Modded now lists the chosen loader's versions for the chosen Minecraft
version, asked of its service once per loader and version: Newest stable
first, then every version newest first, betas marked. The choice goes to
loaders::choose when the instance is made, and goes back to the newest
stable one when the loader or the game version changes. The loader card
shows the version chosen. Its four strings are in every language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 03:44:18 +01:00
Minantiii 71566a3268 Armadillos: rolling up and out posts GameEvent.ENTITY_ACTION
Armadillo.rollUp and Armadillo.rollOut call gameEvent(ENTITY_ACTION)
before their sound, silent or not; sculk sensors, shriekers and wardens
now hear it.

Fixes #8714
2026-11-02 23:38:29 -03:00
Ludovic MarieandClaude Opus 5.5 0b47accde1 launcher: import a modded .mrpack as a Java instance
instance import <file> --java makes a Minecraft: Java Edition instance from a
Modrinth pack, as Prism Launcher imports one: the Minecraft version and the
mod loader its index names (minecraft, fabric-loader, quilt-loader, forge,
neoforge), every override (overrides/, client-overrides/) and file it
carries, files checked against their hash; a server-only file and
server-overrides/ are left out, and a path that leaves the folder is
refused. A pack that fails half way leaves no instance behind. Without
--java a modded pack still goes to the Modpacks import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 02:58:28 +01:00
Ludovic MarieandClaude Opus 5.5 349deacbb3 launcher: test Forge's and NeoForge's real install profiles and a dry-run launch
The processors are planned (steps) before they run, so a test checks the
client steps three real install profiles ask for (NeoForge 26.3.0.101,
Forge 26.3-66.1.0 and 1.20.1-47.4.0, recorded without icon and library
lists) against values read off the profiles by hand. The ignored real
install now also builds Play's command and runs it with the JVM's
--dry-run: module path, classpath and main class resolve, nothing of the
game runs, no account is involved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 02:43:41 +01:00
Ludovic Marie d0bdbc9eb0 Merge branch 'launcher-forge-versions' into launcher-forge-install 2026-11-03 02:37:45 +01:00
ErikKalikasandClaude Opus 5.5 ceadedaa0f Native mods: mod config files, loaded and reloaded (ModConfigEvent)
native_register_configs lists a mod's configs: a kind (Client, Common,
Server), a file in config/ (<mod id>-<kind>.toml unless named) and the
text written there when it is missing. Client configs load on the
window when the game starts, Common once per process, Server before
native_server_about_to_start for each world, from the world's
serverconfig/ copy when there is one. native_config_loading hands over
the text, which the mod parses. The files' modification times are read
once a second; changed text fires native_config_reloading. A server's
configs fire native_config_unloading when it stops. Fixes #7950.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 03:05:59 +02:00
reservedbytes 03f2b226ff fix(items): player drops use vanilla's exact throw motion 2026-11-03 00:01:39 -01:00
gigamans442andCodex GPT-6.1 Sol 0f983e34d1 fix(shaders): reset GLSL type for each declarator
Keep one array declarator from changing the base type of following
comma-separated variables.

Co-Authored-By: Codex GPT-6.1 Sol <[email protected]>
2026-11-02 19:17:48 -05:00
CorbonatandCodex 8a529538f2 Merge pinned upstream main for GUI glint validation
Integrate e2385d0ddb while retaining logical item-atlas glint coordinates, metadata rejection and GUI/CIT separation.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-03 01:51:00 +03:00
deloskiyt eb0a4cf524 feat(realms): implement in-game Configure Realm and Add Realm screens, widen join button 2026-11-02 22:50:34 +01:00
deloskiyt fae8efb8fd fix(realms): restore button icons, wire up all click actions, and add join code & pending invites screens 2026-11-02 22:35:21 +01:00
deloskiyt 2b427b6ccc feat(realms): exact 1:1 port of vanilla RealmsMainScreen and RealmsHeader layout 2026-11-02 22:07:23 +01:00
deloskiyt bef44dd626 fix(client): match authentic vanilla Realms UI layout and correct cookie authentication format 2026-11-02 21:47:53 +01:00
0a499bde42 Splitscreen: use the launcher's other Microsoft accounts
Hand off private per-account sessions when Splitscreen is enabled, retain unavailable accounts in the picker, and connect guests with their own authentication, skins and secure-chat keys. Preserve per-launch account selection and validate the metadata UUID before accepting a session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Codex GPT-6 <[email protected]>
2026-11-02 15:33:02 -05:00
Kacpherek fa2de56df1 Sort only the entity-sensing blocks entities touch
Every tick tick_blocks gathered the blocks inside every mob's, item's
and other entity's box, sorted the whole list by position and called
entityInside at each one. With hundreds of mobs that is thousands of
positions sorted per tick, and the list cannot be kept ordered between
ticks: it is each entity's own sorted run, in entity order, and the
entities move.

entityInside only acts on pressure plates, detector rails, buttons and
tripwires; at any other block it just reads the state. The positions
are now split by what is there first, and only the sensing ones are
sorted and visited. A non-sensing position is skipped only while the
world's block revision (and chunk membership) is unchanged since it was
looked at, so it still holds the same block and the call would have
done nothing. If a call changes any block, every later position goes
in sorted order as before, so the calls and their order are the same
as sorting the whole list.
2026-11-02 21:23:43 +01:00
Kacpherek c27d6a22a9 Make players' block effects sweep cheaper
Entity.applyEffectsFromBlocks runs for every player every tick, and on
a server it was the biggest part of a guest's tick. Most of its cost
was bookkeeping around the blocks, not the blocks: both visited sets
(the sweep's and checkInsideBlocks') hashed positions with SipHash and
grew from empty on every sweep, and every block the path crossed, air
included, was kept in a list and read from the world a second time.

The sets now use the fast hash (they are only asked whether they hold
a position, never iterated) and the sweep's starts sized for a short
move. Each block is read once as the sweep visits it and air is passed
over there; nothing in the loop changes a block, so the states read
are the same, and the blocks reach the effects in the same order with
the same steps and iteration count as before.
2026-11-02 21:20:51 +01:00
Kacpherek b66c44849b Keep the far sea floor as dark as near water leaves it
Visited chunks lit their sea floor and water as open sky
(light_open_water), to match the seed's sea when it was fully lit. The
seed now shades water a level per block (shade_sky), so every place the
player had passed showed a bright, shallow-looking floor through the far
water, in a patchwork against the dark seed sea. The chunk's own light is
kept now, for saved chunks (decode_lod_surfaces) as for loaded ones.

Heightmap tiles (level 6 and up) took the span under the top one as the
ground; with shaded water that is another water span, so the far sea had
no bed and showed fog through it. The ground is the top solid span.
2026-11-02 21:18:03 +01:00
Kacpherek f14b413dde Write chunk bodies' light on the warm-up threads
Columns were already encoded once per tick however many players take
them, and their new sections went to the warm-up threads, but each
column's body (scanning every section's light layers and copying them
and the section bytes into the packet) was still written one by one on
the tick thread, about a third of the hub's time with walking players.

A body is now split in two: what reads the level and the caches (the
section bytes, heightmaps, block entities and which light sections
exist) stays on the tick thread, column by column as before; the light
layers and the write, which read only the column's own immutable
sections, are shared out to the warm-up threads, the tick thread taking
bodies too. The bodies come back in the columns' order and the sending
loop is unchanged, so every connection gets the same bytes in the same
order. A batch of fewer than four columns is written inline.
2026-11-02 21:15:55 +01:00
Kacpherek e0bded6fa7 Hold split tiles 5% past the detail ring and the world threshold
A tile split by the last plan stays split until its distance is 5% past
the ring of full detail around the camera, or past the world-wide
threshold (3 tile widths). Those two had no hysteresis, unlike the 8 to
10 width rule, so a tile on the line changed level each time the camera
crossed it by a block.
2026-11-02 21:15:52 +01:00
Kacpherek a9e638a4db Far terrain: an unknown neighbour is not empty
A tile meshed next to a planned tile that was not drawn yet treated it
as empty air and drew its full side, so tall walls stood at the edge of
the filled area and vanished once the neighbour arrived.

mesh_input now marks an edge unknown when nothing is drawn across it but
the finest planned tile there is a leaf (Snapshot::planned_leaf), and the
mesher draws no side against an unknown edge. Past the planned range, or
past a split tile's out-of-range child, the edge is still empty. The
neighbour's arrival already remeshes the tile through the selection
change; a planned tile that leaves the range before it was drawn now
remeshes its neighbours in replan.
2026-11-02 21:15:04 +01:00
Kacpherek 9cfac94b06 Lower far terrain threads on macOS and Windows too
behind_server lowers helper threads only on Linux and Android; on macOS and Windows the far terrain threads (sampling, the far terrain thread and meshing) ran at normal priority and competed with the threads that mesh and light the chunks around the player, most visibly while a world opens. far_terrain_current keeps behind_server on Linux and lowers the thread one step elsewhere: utility quality of service on macOS (background would throttle it on battery) and below-normal priority on Windows. The far decoration threads already go to idle.
2026-11-02 21:13:10 +01:00
deloskiyt a5391f2e9c feat(client): implement Minecraft Realms support and title screen browser
- Enable Minecraft Realms button on main menu and handle navigation
- Implement dedicated Realms browser screen supporting world list, status badges, selection and refreshing
- Implement Realms HTTPS client querying pc.realms.minecraft.net using AuthSession access token
- Add join endpoint resolution and direct server connection via Action::Connect
- Update agent mode serialization and port map ledger
2026-11-02 21:02:53 +01:00
Ludovic MarieandClaude Opus 5.5 d9e8401558 launcher: install and launch Forge and NeoForge instances
forge_install downloads the installer (checked against the .sha1 its
repository publishes), takes the libraries from its maven/ folder or the
repository (each sha1 checked), runs the client's processors on the
instance's Java as java -cp <jar+classpath> <Main-Class> <args> with the
install profile's data, skips a processor whose outputs already match and
refuses one that leaves another sha1. The profile is kept as
versions/<id>/<id>.json with a copy of the game's jar named after it, as
Forge's ignoreList (${version_name}.jar) expects; java_launch::resolve now
lets a child name its own jar.

java_game picks the Java before installing the loader, so the installer
runs on the Java the game runs on. The new instance's loader picker shows
every loaders::Kind with its logo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 20:57:45 +01:00
Ludovic MarieandClaude Opus 5.5 2c9dac6bbc Block sprites: keep the CPU copy compressed once uploaded
The block texture array's pixels (21 MB with the default resources) stayed in
RenderAssets for the whole session, though the GPU holds them and the copy
only serves a renderer made again. Once a renderer exists they are
lz4-compressed on a thread of their own, as the GUI atlas is (#6843); a
renderer built again uncompresses them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 20:26:53 +01:00
ElyTheCat 6dca822e6a Merge remote-tracking branch 'origin/main' into perf/async-entity-occlusion-tuned 2026-11-02 22:37:03 +03:30
ElyTheCatandOpenAI Codex 37380065b7 Optimize async entity occlusion hot paths
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 22:34:15 +03:30
martipopsandClaude Opus 5.5 45d56f3d8a Merge upstream main into servers
Lang conflict: main moved "Culling"; this branch's two online-mode strings kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 13:45:54 -05:00
ElyTheCatandOpenAI Codex 4e069b1e21 Merge origin/main before occlusion performance follow-up
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 21:04:45 +03:30
ElyTheCatandOpenAI Codex c13e224a44 Merge origin/main into entity occlusion branch
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 20:10:58 +03:30
ElyTheCatandOpenAI Codex ae1a4ec23c Merge origin/main into particle culling branch
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 20:10:55 +03:30
ElyTheCatandOpenAI Codex 740b215a99 Fix particle culling Clippy findings
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 19:47:53 +03:30
ElyTheCatandOpenAI Codex 03ef18163d Format entity occlusion culling module
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 19:45:19 +03:30
masa-masa-0314andCodex 7df27f1cf9 Launcher: move managed data to another drive
Add a two-step data-folder move that copies and verifies launcher, game and build data offline, preserves source recovery copies, and atomically commits an independent location pointer before reopening. Protect migration with process leases, reject links and overlapping destinations, preserve Windows access permissions and remap managed structured paths.

Fixes #7218

Co-Authored-By: Codex <[email protected]>
2026-11-03 00:03:28 +08:00
ElyTheCat 32c30eb98f Merge remote-tracking branch 'origin/main' into review/particle-only 2026-11-02 18:49:44 +03:30
ElyTheCatandOpenAI Codex 1068905d3d Add entity occlusion benchmark evidence
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 18:49:10 +03:30
ElyTheCat 7bee9ec3cf Merge origin/main into entity occlusion branch 2026-11-02 18:47:38 +03:30
ElyTheCatandOpenAI Codex a9a08ef1a6 Separate async entity occlusion rewrite
Isolate the entity occlusion cache and worker from particle visibility. Keep entity modes in the existing settings, submit inflated entity AABBs before model generation, and refine visible entities with their emitted bounds. Preserve fail-open handling and add async culling telemetry.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 18:47:26 +03:30
ElyTheCatandOpenAI Codex 5d5dd03eb8 Add ordinary-scene particle culling measurements
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 18:37:35 +03:30
ElyTheCatandOpenAI Codex 7fc42e8269 Add standalone particle culling worker
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 18:25:52 +03:30
CorbonatandCodex c5adff2477 Merge main and reject invalid GUI glint atlas texture metadata
Preserve main's face-normal and sprite-rectangle caches while keeping GUI
vanilla atlas coordinates separate from CIT sprite-local glint UVs.
Reject malformed texture sections before stitching and read metadata from
the same prepared snapshot as rendered textures. Add rejection, control,
prepared-resource and real-oracle emitted-UV regression coverage.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-02 14:55:28 +03:00
martipopsandClaude Opus 5.5 c784009d45 Merge upstream main (controller setup merged) into servers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 05:46:25 -05:00
ElyTheCatandOpenAI Codex a71e1d0665 Translate particle culling graphics settings
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 13:57:47 +03:30
CorbonatandCodex 709fa73ee3 Fix GUI item glint UV scale using the vanilla item atlas
Reconstruct the pinned item atlas layout from the active sprite sources so
standard GUI glint receives the same atlas UVs as vanilla. Use the device
limit and selected filtering when rebuilding the renderer; keep the HUD
texture coordinates and CIT glint coordinates separate.

Add independent vanilla UV and packing regressions, including animation,
generated sources, padding, invalid metadata and atlas-limit boundaries.

Co-Authored-By: Codex (gpt-6.1-sol) <[email protected]>
2026-11-02 13:16:52 +03:00
ElyTheCatandOpenAI Codex e6ce596144 Update mouse input fixture for trace logging
Stub the new input trace types and no-op recorder so the focused device-event fixture continues to compile when it extracts Game::device_event.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 13:09:26 +03:30
ElyTheCatandOpenAI Codex 8d603dc51f Refresh async culling benchmark evidence
Record both mode orders on the merged head and make the single-scene and cache-counter comparison limits explicit.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 11:55:38 +03:30
ElyTheCat 627309b80a Merge remote-tracking branch 'origin/main' into perf/async-occlusion-culling 2026-11-02 11:40:05 +03:30
ElyTheCatandOpenAI Codex 9c10104446 Optimize asynchronous entity and particle culling
Replace the collision-prone four-way visibility cache with a bounded sorted cache and validate repeated occlusion proofs through frame-local ordered lookup. Keep entity visibility conservative and off block entities, and add batched particle culling modes sharing the occlusion worker.

Add a reproducible benchmark note and screenshots for Sync and Async modes.

Fixes #6684

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 11:40:02 +03:30
ElyTheCatandOpenAI Codex 778dad1e4a Keep entity occlusion culling off block entities
Keep block entity frustum checks and section cache rendering independent of the ordinary entity occlusion culler. Show mode-specific culling help in the graphics UI.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-02 08:04:05 +03:30
martipops 493a315a44 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 22:14:41 -05:00
martipopsandClaude Opus 5.5 fa76a40d45 Merge controller setup (main merged) into servers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 22:10:28 -05:00
martipopsandClaude Opus 5.5 1a5c943591 Merge split/fresh-controller-setup (main merged) into split/fresh-servers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 21:12:07 -05:00
martipopsandClaude Opus 5.5 26af67b082 Merge controller setup (main merged) into servers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 20:54:14 -05:00
rdbtCVSandClaude Sonnet 5.5 e7bdd16474 Remove the RAM limit
A soft limit that lowers render distance and then crashes the game is not
a cap, and only Windows could hold the game under a number at all. Takes out
the launcher's Maximum memory row, HORIZON_MEMORY_LIMIT_MB, /ramlimit, the
governor and the watcher thread (reverts #5800 and #5801). A Java instance's
-Xmx stays settable from the launcher CLI.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 00:48:32 +00:00
martipops 4e4ae63d40 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 19:32:48 -05:00
martipops 77c58d477d Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 19:19:06 -05:00
martipopsandClaude Opus 5.5 b11536f39a Merge controller Setup (main merged) into servers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 17:58:45 -05:00
martipops 018f9005c3 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 16:20:20 -05:00
martipops 2cce47fc9d Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 16:14:47 -05:00
martipopsandClaude Opus 5.5 b41cedea4b Localize the online-mode messages for splitscreen players on P1's server
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 15:50:34 -05:00
martipops 262ed43366 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 15:49:24 -05:00
martipopsandOpenAI Codex 78ca40d8a5 Merge current main through server and LAN joins
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 15:36:26 -05:00
martipopsandOpenAI Codex 73f9ba613c Cover native input before reclick and foreground-window selection
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 15:00:02 -05:00
martipopsandOpenAI Codex 81ad72d464 Keep native window handoff test aware of per-player menus
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:58:30 -05:00
martipopsandOpenAI Codex a74c13032b Use position stability in native input regression checks
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:57:24 -05:00
martipopsandOpenAI Codex 7441ce96da Merge portable native mouse fixture updates
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:56:47 -05:00
martipopsandOpenAI Codex c00651d4d0 Keep native desktop tests opt-in with cleanup on setup failure
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:56:24 -05:00
martipopsandOpenAI Codex 77cce1d217 Extend native input coverage to both players cameras
Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:55:14 -05:00
martipops ddacea4d6f Merge native mouse ownership fixes and native input regressions
Co-Authored-By: OpenAI Codex <[email protected]>

# Conflicts:
#	tools/splitscreen_e2e.py
2026-11-01 14:54:11 -05:00
martipops 1e3317a9e2 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 14:35:44 -05:00
martipops 3a539aa588 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 14:33:37 -05:00
martipopsandOpenAI Codex 77b7eae96d Validate every splitscreen admission before opening a connection
Apply duplicate-name and online-mode checks to automatic test joins as well as picker selections.

Co-Authored-By: OpenAI Codex <[email protected]>
2026-11-01 14:31:28 -05:00
martipops f7920f30f7 Merge branch 'split/fresh-controller-setup' into split/fresh-servers 2026-11-01 14:31:23 -05:00
martipopsandClaude Opus 5.5 bd7849a6cb Splitscreen: the others join the server P1 is on
From the full feature (#3541): on a server P1 joined over the network (dedicated, LAN,
invite) the other players connect to the same address as their own profiles. Names in the
server's player list can't be picked; an online-mode server refuses offline profiles before
they try; a player turned away while coming in picks again, told why (an online-mode refusal
says each player needs its own account); P1 leaving the server takes everyone with it; the
server's resource packs are asked once, of P1, and the others follow its answer.
Live scenarios: server, packs, dedicated_profiles, integrated_profiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 14:28:21 -05:00
1601 changed files with 309647 additions and 18287 deletions

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
self-hosted-runner:
# The Mac mini's runner (ludovics-mac-mini), which holds the maintainer's own Minecraft files.
labels: [horizon-game, ludovics-mac-mini]
# windows-11-vs2026-arm is GitHub's Windows ARM64 image (2026-08), newer than actionlint's label list.
labels: [horizon-game, ludovics-mac-mini, windows-11-vs2026-arm]
+15 -9
View File
@@ -1,10 +1,16 @@
# Trusted reviewers: one list for two things (docs/release-flow.md "Trusted reviewers").
# Trusted reviewers: one list for three things (docs/release-flow.md "Trusted reviewers").
# - `/nightly 2640 2642` picks the pull requests the Nightly holds (tools/ci/nightly_set.py);
# - `/close`, `/reopen`, `/label`, `/unlabel` triage issues and pull requests (tools/ci/triage_command.py).
# Ludovic is always allowed and isn't listed. One GitHub login per line, with who added it and when. Removing a
# line revokes that login at once. A line with only `paused` stops both for every reviewer (Ludovic's still work).
kacpherek # added by Ludovic, 2026-10-27
rdbtCVS # added by Ludovic, 2026-10-27
Online5277 # added by Ludovic, 2026-10-27 (his top three by merged pull requests)
levzzz5154 # added by Ludovic, 2026-10-28 (Horizon Team; author of horizon-mixins)
Qwerner88880 # added by Ludovic, 2026-10-31 (Discord vladislav_hagen; native-mod hooks)
# - `/close`, `/reopen`, `/label`, `/unlabel` triage issues and pull requests (tools/ci/triage_command.py);
# - `/unclaim @login` releases someone else's claim, and listed reviewers have no claim limit (tools/ci/claim_command.py).
# One reviewer per line: `<numeric GitHub ID> <login>`, with who added it and when. The ID decides; the login is only
# for people reading this file and for messages. A login is a name anyone can claim once its owner renames or deletes
# the account; an ID is never reused. Get it with `gh api users/<login> --jq .id`, or run
# `python3 tools/ci/resolve_reviewer_ids.py` to fill in the IDs and `--check` to catch renames.
# A line in any other form (a bare login included) grants nothing. Ludovic is always allowed (OWNER_ID in
# tools/ci/nightly_set.py) and isn't listed. Removing a line revokes that account at once. A line with only `paused`
# stops all three for every reviewer (Ludovic's still work).
54669067 kacpherek # added by Ludovic, 2026-10-27
87152661 rdbtCVS # added by Ludovic, 2026-10-27
84875247 Online5277 # added by Ludovic, 2026-10-27 (his top three by merged pull requests)
86072227 levzzz5154 # added by Ludovic, 2026-10-28 (Horizon Team; author of horizon-mixins)
87478350 Qwerner88880 # added by Ludovic, 2026-10-31 (Discord vladislav_hagen; native-mod hooks)
+2 -2
View File
@@ -9,9 +9,9 @@ permissions:
actions: write
jobs:
cancel:
# One of playhorizon's small runners, out of GitHub's shared pool: no checkout, no code of the pull request
# One of our small runners (horizon-light), out of GitHub's pool: no checkout, no code of the pull request
# (docs/ci-runners.md). SELF_HOSTED_CI=off: GitHub's runners.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
steps:
- name: Cancel the pull request's unfinished runs
env:
+107
View File
@@ -0,0 +1,107 @@
name: cargo-horizon-mod
# `cargo binstall --git https://github.com/horizon-rust/horizon cargo-horizon-mod` (#2120): binstall reads
# [package.metadata.binstall] from crates/cargo-horizon-mod/Cargo.toml and downloads the archive this workflow
# attaches to the tag `cargo-horizon-mod-v<version>`, whose version must be the manifest's. The targets come from
# tools/horizon_mod_binstall.py, the same file the manifest's template is checked against, so a platform added there
# is built here and one nobody publishes is caught before it ships. A pull request builds the archives and publishes
# nothing.
on:
push:
tags: ['cargo-horizon-mod-v*']
pull_request:
paths:
- 'crates/cargo-horizon-mod/**'
- 'tools/horizon_mod_binstall.py'
- '.github/workflows/cargo-horizon-mod.yml'
permissions:
contents: read
jobs:
plan:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
platforms: ${{ steps.platforms.outputs.platforms }}
steps:
- uses: actions/checkout@v7
- id: platforms
run: echo "platforms=$(python3 -c 'import json, tools.horizon_mod_binstall as m; print(json.dumps(m.PLATFORMS))')" >> "$GITHUB_OUTPUT"
build:
needs: plan
name: build ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.plan.outputs.platforms) }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: The aarch64 Linux linker
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
- name: Build
run: cargo build --release --locked -p cargo-horizon-mod --target ${{ matrix.target }}
- name: It starts
if: matrix.run
shell: bash
run: |
set -euo pipefail
binary="target/${{ matrix.target }}/release/cargo-horizon-mod"
[ -f "$binary.exe" ] && binary="$binary.exe"
out=$("$binary" 2>&1 || true)
case "$out" in
*"usage: cargo horizon-mod"*) ;;
*) echo "$out"; echo "::error::$binary does not start"; exit 1 ;;
esac
- name: Package
shell: bash
run: |
set -euo pipefail
binary="target/${{ matrix.target }}/release/cargo-horizon-mod"
[ -f "$binary.exe" ] && binary="$binary.exe"
mkdir -p dist
tar -czf "dist/$(basename "$binary" | sed 's/\.exe$//')-${{ matrix.target }}.tar.gz" -C "$(dirname "$binary")" "$(basename "$binary")"
- uses: actions/upload-artifact@v7
with:
name: cargo-horizon-mod-${{ matrix.target }}
path: dist/*.tar.gz
if-no-files-found: error
retention-days: 3
publish:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
pattern: cargo-horizon-mod-*
path: dist
merge-multiple: true
- name: The tag and the manifest name the same release and archives
run: python3 tools/horizon_mod_binstall.py dist "$GITHUB_REF_NAME"
- name: Checksums
run: |
set -euo pipefail
cd dist
for file in *.tar.gz; do sha256sum "$file" | cut -d' ' -f1 > "$file.sha256"; done
- name: Publish
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
notes="\`cargo binstall --git https://github.com/horizon-rust/horizon cargo-horizon-mod\`"
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
gh release upload "$GITHUB_REF_NAME" dist/* --clobber
else
gh release create "$GITHUB_REF_NAME" dist/* --latest=false --title "cargo-horizon-mod ${GITHUB_REF_NAME#cargo-horizon-mod-v}" --notes "$notes"
fi
+136 -21
View File
@@ -27,19 +27,24 @@ jobs:
# One job, not one per check: each job takes a runner from the organisation's shared pool, and with every pull request
# and every merge to main starting this workflow, three jobs a run left the pool's queue tens of minutes deep.
#
# Where: GitHub's runners. With the repository variable SELF_HOSTED_CI=all (for when that pool is full: their 4 CPUs
# are about one GitHub runner, docs/ci-runners.md), main's pushes and this repository's own pull requests run on
# playhorizon's checks runners (label playhorizon-ci); a fork's pull request never does (and the runners refuse it
# themselves). There the build folder persists (CARGO_TARGET_DIR, outside the checkout), so the apt packages,
# Python and the Rust cache steps are GitHub's only.
# Where (docs/ci-runners.md): our checks runners (label horizon-checks: the desktop's, an isolated user, so a fork's
# pull request runs there too) take the pull requests whose number ends in 0 or 1, about what their three runners
# can do; GitHub's runners take the others and main's pushes (which also save the Rust cache GitHub's pull request
# runs read), so both pools work at once. The repository variable SELF_HOSTED_CI moves them: `all` every job to
# ours, `light` (the desktop paused) or `off` every job to GitHub's. On ours the build folder persists
# (CARGO_TARGET_DIR, outside the checkout), so the apt packages, Python and the Rust cache steps are GitHub's only.
verify:
runs-on: ${{ vars.SELF_HOSTED_CI == 'all' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted", "linux", "playhorizon-ci"]') || 'ubuntu-latest' }}
runs-on: >-
${{ vars.SELF_HOSTED_CI != 'off' && vars.SELF_HOSTED_CI != 'light' && (vars.SELF_HOSTED_CI == 'all' ||
github.event_name == 'pull_request' && (endsWith(format('{0}', github.event.pull_request.number), '0') ||
endsWith(format('{0}', github.event.pull_request.number), '1'))) &&
fromJSON('["self-hosted", "linux", "horizon-checks"]') || 'ubuntu-latest' }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
if: runner.environment == 'github-hosted'
with:
python-version: '3.12'
@@ -63,6 +68,16 @@ jobs:
else
python tools/check_public_tree.py --history
fi
# Our runners as GitHub's: some Python tests compile Rust with a bare `rustc` (GitHub's image has a default
# toolchain, our runners' own rustup homes may not), and the GPU tests find no adapter there, so they return
# early. Ours have Mesa's software Vulkan for parity; a backend Linux lacks keeps the tests from it, so a pull
# request's verify doesn't depend on which pool took it (#8627: a GPU test that flakes on lavapipe).
- name: Our runners as GitHub's (a default Rust toolchain, no GPU)
if: runner.environment != 'github-hosted'
run: |
rustup toolchain install stable --profile minimal --component rustfmt --component clippy
rustup default stable
echo "WGPU_BACKEND=dx12" >> "$GITHUB_ENV"
- name: Test offline research tooling
run: python -m unittest discover -s tests -v
- name: Install Rust toolchain and the ALSA and udev headers the client links against
@@ -104,10 +119,14 @@ jobs:
# changes it or a crate it builds is checked here, and so is every push to main: two pull requests can each pass
# alone and break it together (#2059 and the registry ratings did, 2026-10-26).
launcher:
runs-on: ${{ vars.SELF_HOSTED_CI == 'all' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted", "linux", "playhorizon-ci"]') || 'ubuntu-latest' }}
runs-on: >-
${{ vars.SELF_HOSTED_CI != 'off' && vars.SELF_HOSTED_CI != 'light' && (vars.SELF_HOSTED_CI == 'all' ||
github.event_name == 'pull_request' && (endsWith(format('{0}', github.event.pull_request.number), '0') ||
endsWith(format('{0}', github.event.pull_request.number), '1'))) &&
fromJSON('["self-hosted", "linux", "horizon-checks"]') || 'ubuntu-latest' }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Does this pull request change the launcher or a crate it builds?
@@ -139,18 +158,113 @@ jobs:
run: |
cargo +stable fmt --check
cargo +stable clippy --all-targets --locked -- -D warnings
cargo +stable test --locked --lib
cargo +stable test --locked --lib --bins
# Compile and test Windows ARM64 on an actual ARM64 host, and inspect the resulting PE headers. By hand only
# (`gh workflow run checks --ref <branch>`): GitHub's runner queue is the bottleneck, and main's runs gate the
# releases (tools/release_train.py waits for them), so neither pull requests nor main's pushes start this
# 90-minute job. The Nightly and launcher releases build and check these binaries on every run.
windows-arm64:
name: Windows ARM64 game and launcher
if: github.event_name == 'workflow_dispatch'
runs-on: windows-11-vs2026-arm
timeout-minutes: 90
env:
RUSTFLAGS: -C target-feature=+crt-static
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Use every runner core for Cargo
shell: pwsh
run: |
$cores = (Get-CimInstance Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
"CARGO_BUILD_JOBS=$cores" >> $env:GITHUB_ENV
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
with:
shared-key: windows-arm64-game
- uses: Swatinem/rust-cache@v2
with:
workspaces: launcher
shared-key: windows-arm64-launcher
- name: Check LLVM assembler used by ring
shell: pwsh
run: |
$llvmBin = Join-Path $env:ProgramFiles 'LLVM\bin'
if (-not (Get-Command clang -ErrorAction SilentlyContinue) -and (Test-Path (Join-Path $llvmBin 'clang.exe'))) {
$env:PATH = "$llvmBin;$env:PATH"
"PATH=$env:PATH" >> $env:GITHUB_ENV
}
$clang = Get-Command clang -ErrorAction Stop
Write-Output "Using $($clang.Source)"
& $clang.Source --version
- name: Build the game for native Windows ARM64
run: cargo build --release --locked --target aarch64-pc-windows-msvc -p horizon-client -p horizon-client-lib --bin horizon-client --bin horizon-ctl -p horizon-prepare --bin horizon-prepare -p horizon-server --bin horizon-server
- name: Check the game's PE machine
run: python tools/check_pe_arch.py arm64 target/aarch64-pc-windows-msvc/release/horizon-client.exe target/aarch64-pc-windows-msvc/release/horizon-ctl.exe target/aarch64-pc-windows-msvc/release/horizon-prepare.exe target/aarch64-pc-windows-msvc/release/horizon-server.exe
- name: Check game DLL imports
run: python tools/check_imports.py target/aarch64-pc-windows-msvc/release/horizon-client.exe target/aarch64-pc-windows-msvc/release/horizon-ctl.exe target/aarch64-pc-windows-msvc/release/horizon-prepare.exe target/aarch64-pc-windows-msvc/release/horizon-server.exe
- name: Start every game executable
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$client = 'target/aarch64-pc-windows-msvc/release/horizon-client.exe'
$output = & $client --help 2>&1
if ($LASTEXITCODE -ne 0 -or ($output -join "`n") -notmatch '--resources') { throw 'horizon-client --help failed' }
foreach ($binary in @('horizon-ctl.exe', 'horizon-prepare.exe', 'horizon-server.exe')) {
$path = "target/aarch64-pc-windows-msvc/release/$binary"
$output = & $path --help 2>&1
if ($LASTEXITCODE -ne 0 -or -not $output) { throw "$binary --help failed" }
}
foreach ($binary in @('horizon-prepare.exe', 'horizon-server.exe')) {
$path = "target/aarch64-pc-windows-msvc/release/$binary"
$output = & $path --version 2>&1
if ($LASTEXITCODE -ne 0 -or -not $output) { throw "$binary --version failed" }
Write-Output ($output -join "`n")
}
- name: Test and build the native Windows ARM64 launcher
working-directory: launcher
run: |
cargo test --release --locked --target aarch64-pc-windows-msvc --lib
cargo build --release --locked --target aarch64-pc-windows-msvc
- name: Check the launcher's PE machine
working-directory: launcher
run: python ../tools/check_pe_arch.py arm64 target/aarch64-pc-windows-msvc/release/horizon-launcher.exe
- name: Check launcher DLL imports and command-line startup
working-directory: launcher
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$launcher = 'target/aarch64-pc-windows-msvc/release/horizon-launcher.exe'
python ../tools/check_imports.py $launcher
$output = & $launcher --version 2>&1
if ($LASTEXITCODE -ne 0 -or -not $output) { throw 'horizon-launcher --version failed' }
Write-Output ($output -join "`n")
- name: Build a native-mod game with the launcher's managed toolchain
working-directory: launcher
shell: pwsh
env:
HORIZON_LAUNCHER_HOME: ${{ runner.temp }}\horizon-native-arm64-toolchain
HORIZON_NATIVE_TARGET_DIR: ${{ runner.temp }}\horizon-native-arm64-toolchain\target
run: |
$ErrorActionPreference = 'Stop'
cargo test --release --locked --target aarch64-pc-windows-msvc --lib rust_toolchain::tests::managed_arm64_toolchain_builds_the_game -- --ignored --exact --nocapture
$client = Join-Path $env:HORIZON_NATIVE_TARGET_DIR 'fast/horizon-client.exe'
python ../tools/check_pe_arch.py arm64 $client
python ../tools/check_imports.py $client
# Most pull requests leave the harnesses to parity-main, which runs them on main a batch of merges at a time
# (.github/workflows/parity-main.yml; releases wait for it). A pull request still runs them itself when it changes
# a harness, an oracle, a probe or the runner, or carries the run-parity label (run-parity.yml, when it is added).
parity-scope:
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
# A git diff of this repository's own branch: one of playhorizon's small runners (docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
# A git diff of this repository's own branch: one of our small runners (horizon-light, docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
outputs:
run: ${{ steps.scope.outputs.run }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
@@ -162,7 +276,7 @@ jobs:
run: |
changed=$(git diff --name-only "$(git merge-base "$BASE_SHA" HEAD)" HEAD)
harness=$(grep -E '^(tools/test_[a-z0-9_]+_parity\.py|tools/(parity[a-z_]*|lab)\.py|tools/parity_hosts\.json|mods/horizon/src/test/|crates/[^/]+/examples/|crates/horizon-client/src/game/[a-z_]*(fixture|harness)\.rs|\.github/workflows/parity[a-z-]*\.yml)' <<< "$changed" || true)
if [ -n "$harness" ] || [[ " $LABELS " == *" run-parity "* ]]; then
if [ -n "$harness" ] || [[ " $LABELS " == *" run-parity "* ]] || [[ " $LABELS " == *" frame-identity "* ]]; then
echo "run=true" >> "$GITHUB_OUTPUT"
echo "The pull request runs its harnesses: ${harness:-label run-parity}"
else
@@ -177,6 +291,7 @@ jobs:
base: ${{ github.event.pull_request.base.sha }}
head: ${{ github.event.pull_request.head.sha }}
full: ${{ contains(github.event.pull_request.labels.*.name, 'full-parity') }}
frame_identity: ${{ contains(github.event.pull_request.labels.*.name, 'frame-identity') }}
# Horizon never downloads the game. These jobs need a self-hosted Linux runner
# (label horizon-game) holding the maintainer's own copy: the official launcher's
# game directory in HORIZON_MINECRAFT_DIR and the pinned server jar in
@@ -185,13 +300,13 @@ jobs:
if: github.event_name == 'workflow_dispatch'
runs-on: [self-hosted, linux, horizon-game]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal
- uses: actions/setup-java@v4
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: '25'
@@ -533,11 +648,11 @@ jobs:
if: github.event_name == 'workflow_dispatch'
runs-on: [self-hosted, linux, horizon-game]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- uses: actions/setup-java@v4
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: '25'
+8 -6
View File
@@ -29,14 +29,14 @@ jobs:
# the skipped runs of ordinary comments must not cancel a waiting one.
concurrency:
group: claim-${{ github.event.issue.number }}
# One of playhorizon's small runners, out of GitHub's shared pool: main's script only (docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
# One of our small runners (horizon-light), out of GitHub's pool: main's script only (docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
persist-credentials: false
@@ -50,20 +50,22 @@ jobs:
GH_TOKEN: ${{ github.token }}
BODY: ${{ github.event.comment.body }}
AUTHOR: ${{ github.event.comment.user.login }}
# Who may act is decided by this numeric ID: a login can be claimed by someone else after a rename.
AUTHOR_ID: ${{ github.event.comment.user.id }}
ISSUE: ${{ github.event.issue.number }}
COMMENT_ID: ${{ github.event.comment.id }}
REPO: ${{ github.repository }}
run: python3 tools/ci/claim_command.py command
release:
if: github.event_name != 'issue_comment' && github.repository == 'horizon-rust/horizon'
# One of playhorizon's small runners, out of GitHub's shared pool: main's script only (docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
# One of our small runners (horizon-light), out of GitHub's pool: main's script only (docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 10
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
persist-credentials: false
+49 -12
View File
@@ -1,6 +1,6 @@
name: game build
# Builds the game for every platform from `ref`: the Java exporters, then Linux and the Linux server and Windows on
# GitHub, macOS on the Mac mini's runner with a 1500-frame offscreen run of a new world (smoke-test.json): Apple
# Builds the game for every platform from `ref`: the Java exporters, then Linux and the Linux server, Windows x64
# and ARM64 on GitHub, and macOS on the Mac mini's runner with a 1500-frame offscreen run of a new world (smoke-test.json): Apple
# Silicon, and Intel cross-built there for x86_64-apple-darwin and checked under Rosetta 2 (#1161). Called by
# release.yml (the releases) and nightly-build.yml (the opt-in Nightly), always from main's copy of this file: the
# caller's commit, never the one being built. It holds no secrets: signing the checksums is the callers' own job,
@@ -45,7 +45,7 @@ jobs:
# Three full preparations (two isolated, one batched) besides the compile.
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
persist-credentials: false
@@ -73,7 +73,7 @@ jobs:
! \( -name '*.class' \( -path 'exporters/server/dev/horizonlab/parity/*' -o -path 'exporters/client/dev/horizonlab/parity/*' \) \))
[ -z "$stray" ] || { echo "::error::not one of our classes: $stray"; exit 1; }
python3 tools/check_prepare_exporters.py --binary target/release/horizon-prepare
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: original-exporters
path: exporters/
@@ -83,6 +83,10 @@ jobs:
build:
needs: exporters
name: build ${{ matrix.name }}
# Windows ARM64 and musl are new: a failure never holds the other platforms' release (the signing job
# needs this job, and a failed entry of it would fail it). The release steps leave the missing
# optional archives out with a warning.
continue-on-error: ${{ matrix.name == 'windows-arm64' || matrix.name == 'linux-musl' }}
strategy:
fail-fast: false
matrix:
@@ -94,13 +98,28 @@ jobs:
# The server build too: packaging/server/install.sh installs it on Linux.
server_dir: horizon-server-linux-x86_64
server_asset: horizon-server-linux-x86_64.tar.gz
- name: linux-musl
os: ubuntu-22.04
musl: true
dir: horizon-linux-musl-x86_64
asset: horizon-linux-musl-x86_64.tar.gz
- name: windows
os: windows-latest
dir: horizon-windows-x64
asset: horizon-windows-x64.zip
exe: .exe
pe_arch: x64
# The C runtime linked in, so the game runs without the Visual C++ redistributable.
rustflags: -C target-feature=+crt-static
- name: windows-arm64
os: windows-11-vs2026-arm
target: aarch64-pc-windows-msvc
dir: horizon-windows-arm64
asset: horizon-windows-arm64.zip
exe: .exe
pe_arch: arm64
# The ARM64 runner builds and runs native ARM64 executables; keep the C runtime in the archive.
rustflags: -C target-feature=+crt-static
- name: macos
mac: true
dir: horizon-macos-arm64
@@ -128,7 +147,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
persist-credentials: false
@@ -141,21 +160,29 @@ jobs:
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
if: runner.environment == 'github-hosted'
if: runner.environment == 'github-hosted' && !matrix.musl
with:
# A release restores only what a release saved: an untrusted build has its own key and saves nothing.
shared-key: ${{ inputs.trusted && 'release' || 'nightly' }}-${{ matrix.name }}
save-if: ${{ inputs.trusted }}
- name: ALSA and udev headers
if: runner.os == 'Linux'
if: runner.os == 'Linux' && !matrix.musl
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
- name: Build the client, horizon-ctl, horizon-prepare and horizon-server
if: ${{ !matrix.musl }}
run: cargo build --release --locked ${{ matrix.target && format('--target {0}', matrix.target) || '' }} -p horizon-client -p horizon-client-lib --bin horizon-client --bin horizon-ctl -p horizon-prepare --bin horizon-prepare -p horizon-server --bin horizon-server
- name: Every program the release folder takes was built
if: ${{ !matrix.musl }}
run: |
for binary in horizon-client horizon-ctl horizon-prepare horizon-server; do
test -f "$BIN/$binary${{ matrix.exe }}" || { echo "::error::$BIN/$binary${{ matrix.exe }} is missing"; exit 1; }
done
- name: Verify Windows executable architecture
if: runner.os == 'Windows'
run: |
python tools/check_pe_arch.py "${{ matrix.pe_arch }}" \
"$BIN/horizon-client${{ matrix.exe }}" "$BIN/horizon-ctl${{ matrix.exe }}" \
"$BIN/horizon-prepare${{ matrix.exe }}" "$BIN/horizon-server${{ matrix.exe }}"
- name: The signing keychain, unlocked
if: runner.os == 'macOS' && vars.MACOS_SIGN_IDENTITY != '' && inputs.developer_id
env:
@@ -173,6 +200,7 @@ jobs:
codesign --verify --strict --verbose=2 "$BIN/$binary"
done
- name: Only system libraries
if: ${{ !matrix.musl }}
# Windows: no non-system DLL (a "DLL not found" dialog on some players' machines). Linux: the standard
# loader and libraries every desktop distribution has. macOS: only the system's own libraries.
run: |
@@ -188,13 +216,14 @@ jobs:
- name: Baseline x86-64 CPUs only
# No POPCNT or LZCNT at all (the script says why only those): a C library's count intrinsic killed the
# game before main on a Core 2 (#7264). Not the Mac builds: every Intel Mac that runs macOS 11 has both.
if: runner.os != 'macOS'
if: runner.os != 'macOS' && matrix.pe_arch != 'arm64' && !matrix.musl
run: |
set -euo pipefail
rustup component add llvm-tools
${{ runner.os == 'Windows' && 'python' || 'python3' }} tools/check_cpu_baseline.py \
$(for binary in horizon-client horizon-ctl horizon-prepare horizon-server; do echo "$BIN/$binary${{ matrix.exe }}"; done)
- name: Every program starts
if: ${{ !matrix.musl }}
run: |
set -euo pipefail
bin=$BIN
@@ -239,18 +268,26 @@ jobs:
# Published with the release; the publish job checks it again before it publishes anything.
cp "$home/smoke.json" "$RUNNER_TEMP/smoke-test.json"
# One smoke-test.json per build, the Apple Silicon one's; the Intel build must pass its own run too.
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: runner.environment == 'self-hosted' && !matrix.target
with:
name: smoke-test.json
path: ${{ runner.temp }}/smoke-test.json
if-no-files-found: error
retention-days: 3
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
name: original-exporters
path: exporters
- name: Build, check and package for musl in Alpine
if: matrix.musl
# Run Docker on the Ubuntu host: JavaScript actions themselves require glibc.
run: |
docker run --rm -v "$PWD:/work" -w /work \
-e HORIZON_VERSION -e HORIZON_NIGHTLY \
rust:alpine3.22 sh tools/ci/build-musl.sh
- name: Package
if: ${{ !matrix.musl }}
run: |
set -euo pipefail
cargo run --locked -p xtask -- package "$BIN/horizon-client${{ matrix.exe }}" "dist/${{ matrix.dir }}"
@@ -277,7 +314,7 @@ jobs:
codesign --verify --strict "dist/${{ matrix.dir }}/$binary"
done
packaging/macos/notarize.sh "dist/${{ matrix.asset }}"
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.asset }}
path: dist/${{ matrix.asset }}
@@ -299,7 +336,7 @@ jobs:
rm -f "${{ matrix.server_asset }}"
tar czf "${{ matrix.server_asset }}" "${{ matrix.server_dir }}"
ls -l "${{ matrix.server_asset }}"
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: matrix.server_asset
with:
name: ${{ matrix.server_asset }}
+47 -15
View File
@@ -1,5 +1,5 @@
name: launcher
# Builds the launcher on Linux, macOS and Windows, and releases it by itself (docs/release-flow.md): after a
# Builds the launcher on Linux, macOS, Windows x64 and ARM64, and releases it by itself (docs/release-flow.md): after a
# push to main that changes the launcher or a crate it builds in (the paths below),
# every 10 minutes (a release waiting for merges to settle goes out) and by hand, tools/release_train.py decides as
# for the game.
@@ -15,8 +15,9 @@ name: launcher
# under Rosetta 2 (#1161). With the repository variable MACOS_SIGN_IDENTITY set, Horizon.app and the .dmg are signed with
# Developer ID, notarized and stapled, from the runner's signing keychain (packaging/macos/README.md);
# unset (forks), they are signed ad hoc.
# Windows ships the launcher's own binary twice: in the ZIP (what a launcher updates itself from) and as
# horizon-launcher-setup.exe, which opens the per-user installer instead of Home (launcher/src/installer.rs).
# Windows ships each architecture's launcher in its ZIP (what a launcher updates itself from) and as
# horizon-launcher-setup.exe or horizon-launcher-setup-arm64.exe, which opens the per-user installer instead of Home
# (launcher/src/installer.rs).
# gh workflow run launcher --ref <branch> # dry run: builds everything, publishes nothing
# gh workflow run launcher --ref main -f dry_run=false -f force=true
@@ -73,7 +74,7 @@ jobs:
version: ${{ steps.decide.outputs.version }}
dry_run: ${{ steps.mode.outputs.dry_run }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- id: mode
@@ -102,6 +103,10 @@ jobs:
needs: decide
if: needs.decide.outputs.release == 'true'
name: build ${{ matrix.name }}
# Windows ARM64 is new: its failure never holds the other platforms' release (the signing job
# needs this job, and a failed entry of it would fail it). The release steps leave the missing
# ARM64 files out with a warning.
continue-on-error: ${{ matrix.name == 'windows-arm64' }}
strategy:
fail-fast: false
matrix:
@@ -125,9 +130,20 @@ jobs:
os: windows-latest
asset: horizon-launcher-windows-x64.zip
binary: horizon-launcher.exe
pe_arch: x64
setup_asset: horizon-launcher-setup.exe
# The C runtime linked in: without it the launcher asks for VCRUNTIME140.dll,
# which only the Visual C++ redistributable installs.
rustflags: -C target-feature=+crt-static
- name: windows-arm64
os: windows-11-vs2026-arm
target: aarch64-pc-windows-msvc
asset: horizon-launcher-windows-arm64.zip
binary: horizon-launcher.exe
pe_arch: arm64
setup_asset: horizon-launcher-setup-arm64.exe
# The C runtime linked in, so the standalone ARM64 launcher needs no redistributable.
rustflags: -C target-feature=+crt-static
runs-on: ${{ matrix.mac && (vars.MAC_RUNNER || 'ludovics-mac-mini') || matrix.os }}
# Notarizing the app and then the .dmg can take a few minutes each.
timeout-minutes: ${{ matrix.mac && 60 || 40 }}
@@ -150,7 +166,7 @@ jobs:
working-directory: launcher
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ needs.decide.outputs.head }}
persist-credentials: false
@@ -182,6 +198,9 @@ jobs:
# Every test target (the library, the binary, tests/), on each system the launcher ships for.
- run: cargo test --release --locked ${{ matrix.target && format('--target {0}', matrix.target) || '' }} ${LAUNCHER_FEATURES:+--features "$LAUNCHER_FEATURES"}
- run: cargo build --release --locked ${{ matrix.target && format('--target {0}', matrix.target) || '' }} ${LAUNCHER_FEATURES:+--features "$LAUNCHER_FEATURES"}
- name: Verify Windows executable architecture
if: runner.os == 'Windows'
run: python ../tools/check_pe_arch.py "${{ matrix.pe_arch }}" "$BIN/${{ matrix.binary }}"
- name: The version is the release's
run: |
out=$("$BIN/${{ matrix.binary }}" --version)
@@ -212,7 +231,8 @@ jobs:
"$launcher" links --json
# The Intel Mac launcher can come out before any game build has its asset (#1161): then there is nothing
# to install yet. Only that entry skips, and only on a version list that parsed and had no build here
# (exit 3); a launcher or a script that fails still fails the step.
# (exit 3); a launcher or a script that fails still fails the step. The Windows ARM64 launcher always has
# one: it installs the x64 build where a release has no ARM64 one (backend.rs, GAME_FALLBACK).
if [[ "${{ matrix.name }}" == macos-x64 ]]; then
versions=$(retry "$launcher" --json versions)
no_build='import json, sys; sys.exit(3 if not any(r["available_here"] for r in json.load(sys.stdin)) else 0)'
@@ -236,6 +256,11 @@ jobs:
# release linked to a Nix store is a warning here, not a broken launcher.
soft() { if [[ "$RUNNER_OS" == "Linux" ]]; then "$@" || echo "::warning::$* failed"; else "$@"; fi; }
if [[ "$RUNNER_OS" == "Windows" ]]; then
if ! python ../tools/check_pe_arch.py "${{ matrix.pe_arch }}" "$client"; then
# A Nightly without an ARM64 build: the ARM64 launcher installs the x64 one (backend.rs, GAME_FALLBACK).
[[ "${{ matrix.pe_arch }}" == arm64 ]] && python ../tools/check_pe_arch.py x64 "$client" || exit 1
echo "::warning::the latest game has no ARM64 build: the launcher installed the x64 one"
fi
python ../tools/check_imports.py "$client"
elif [[ "$RUNNER_OS" == "Linux" ]]; then
soft python3 ../tools/check_imports.py "$client"
@@ -295,8 +320,8 @@ jobs:
# installer instead of Home (launcher/src/installer.rs). Its name is what makes it the setup,
# so the ZIP's copy stays the launcher. Both go into the release's signed SHA256SUMS.
if: runner.os == 'Windows'
run: cp "$BIN/${{ matrix.binary }}" out/horizon-launcher-setup.exe
- uses: actions/upload-artifact@v4
run: cp "$BIN/${{ matrix.binary }}" "out/${{ matrix.setup_asset }}"
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.asset }}
path: launcher/out/*
@@ -314,12 +339,12 @@ jobs:
# tools/ci/sign_release.sh, which calls only the runner's sha256sum and OpenSSL (docs/release-flow.md).
environment: ${{ needs.decide.outputs.dry_run != 'true' && 'release' || '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
sparse-checkout: tools/ci/sign_release.sh
sparse-checkout-cone-mode: false
persist-credentials: false
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
path: dist
pattern: horizon-launcher-*
@@ -331,13 +356,13 @@ jobs:
EPHEMERAL: ${{ needs.decide.outputs.dry_run == 'true' && 'yes' || '' }}
TAG: ${{ needs.decide.outputs.tag }}
run: bash tools/ci/sign_release.sh "$TAG" dist/horizon-launcher-*
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: signature
path: dist/SHA256SUMS*
if-no-files-found: error
retention-days: 3
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: needs.decide.outputs.dry_run == 'true'
with:
name: ephemeral.pub
@@ -351,7 +376,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Notes
@@ -361,7 +386,7 @@ jobs:
python3 tools/release_train.py notes --kind launcher --tag "${{ needs.decide.outputs.tag }}" \
--head "${{ needs.decide.outputs.head }}" --out notes > /dev/null
{ echo "## $(cat notes/title.txt)"; echo; cat notes/body.md; } >> "$GITHUB_STEP_SUMMARY"
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
@@ -373,6 +398,13 @@ jobs:
key=(); [[ -n "$EPHEMERAL" ]] && key=(--key "$(cat dist/ephemeral.pub)")
cargo run --locked --quiet -p horizon-release-sign -- verify --tag "$TAG" --publishing "${key[@]}" dist
# Never marked latest: Horizon's own releases stay the repository's latest.
- name: The Windows ARM64 launcher, if it built
# Its build may fail without holding the release (continue-on-error): the release then has no ARM64
# files, and ARM64 launchers stay on their version until one has (backend::launcher_update_from).
run: |
for file in horizon-launcher-windows-arm64.zip horizon-launcher-setup-arm64.exe; do
[[ -f "dist/$file" ]] || echo "::warning::$file is missing: this release goes out without it"
done
- name: Publish ${{ needs.decide.outputs.tag }}
if: needs.decide.outputs.dry_run != 'true'
env:
@@ -387,7 +419,7 @@ jobs:
run: |
echo "Would publish ${{ needs.decide.outputs.tag }} at ${{ needs.decide.outputs.head }}: $(cat notes/title.txt)"
ls -l dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: launcher-release-notes
path: notes/
+8 -2
View File
@@ -15,17 +15,23 @@ on:
- '.github/workflows/mod-registry.yml'
permissions:
contents: read
concurrency:
group: mod-registry-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
runs-on: ubuntu-latest
# Our checks runners (label horizon-checks, docs/ci-runners.md); SELF_HOSTED_CI=light or off: GitHub's.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && vars.SELF_HOSTED_CI != 'light' && fromJSON('["self-hosted", "linux", "horizon-checks"]') || 'ubuntu-latest' }}
timeout-minutes: 20
defaults:
run:
working-directory: crates/horizon-mod-registry
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy
# Ours keep their build folder between jobs.
- uses: Swatinem/rust-cache@v2
if: runner.environment == 'github-hosted'
with:
workspaces: crates/horizon-mod-registry
save-if: ${{ github.ref == 'refs/heads/main' }}
+3 -2
View File
@@ -21,10 +21,11 @@ concurrency:
jobs:
check:
runs-on: ubuntu-latest
# One of our small runners (label horizon-light, docs/ci-runners.md): main's script, Mojang's public manifest.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Check the manifest
env:
GH_TOKEN: ${{ github.token }}
+6 -2
View File
@@ -24,7 +24,7 @@ jobs:
pull-requests: write
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
fetch-depth: 0
@@ -52,4 +52,8 @@ jobs:
git fetch origin "+refs/heads/$branch:refs/remotes/origin/$branch"
fi
git push --force-with-lease origin "$branch"
gh pr create --base main --head "$branch" --title 'Stamp native hook API fragments' --body 'Assign API numbers to the pending native hook fragments. Close and reopen this PR to run CI.'
# The repo doesn't let GitHub Actions open pull requests (that setting would also let it approve them):
# the branch is pushed, and a maintainer opens the PR from it.
if ! gh pr create --base main --head "$branch" --title 'Stamp native hook API fragments' --body 'Assign API numbers to the pending native hook fragments. Close and reopen this PR to run CI.'; then
echo "::warning::Stamped fragments are on $branch; open a pull request from it (GitHub Actions may not open one here)."
fi
+47 -12
View File
@@ -92,7 +92,7 @@ jobs:
source_tag: ${{ steps.pick.outputs.source_tag }}
dry_run: ${{ steps.mode.outputs.dry_run }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
@@ -124,14 +124,14 @@ jobs:
env:
SHA: ${{ steps.pick.outputs.sha }}
run: git archive --format=tar.gz --prefix="horizon-${SHA:0:7}/" -o horizon-source.tar.gz "$SHA"
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: steps.pick.outputs.build == 'true'
with:
name: horizon-source
path: horizon-source.tar.gz
if-no-files-found: error
retention-days: 3
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: nightly-notes
path: nightly-notes.md
@@ -155,32 +155,42 @@ jobs:
# The key's only job: main's sign_release.sh hashes the archives and signs with the runner's OpenSSL.
environment: ${{ needs.pick.outputs.dry_run != 'true' && 'release' || '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
sparse-checkout: tools/ci/sign_release.sh
sparse-checkout-cone-mode: false
persist-credentials: false
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
path: dist
pattern: horizon-*
merge-multiple: true
- name: Sign the checksums (SHA256SUMS, SHA256SUMS.sig) for the nightly channel
- name: Sign the checksums for the nightly channel (SHA256SUMS.sig) and for this build (SHA256SUMS.v2.sig)
# SHA256SUMS.sig is for launchers from before v2 (signed for "nightly"); SHA256SUMS.v2.sig is signed for
# nightly-<date>-<commit>, the version the release title names, which current launchers and servers
# require (docs/security.md, "Nightly signatures"). The publish step titles the release from the same values.
env:
RELEASE_SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
RELEASE_SIGNING_KEY_NEXT: ${{ secrets.RELEASE_SIGNING_KEY_NEXT }}
EPHEMERAL: ${{ needs.pick.outputs.dry_run == 'true' && 'yes' || '' }}
ALSO_FOR: nightly-${{ needs.pick.outputs.date }}-${{ needs.pick.outputs.short }}
run: |
# Windows ARM64's build may fail without holding the Nightly (game-build.yml): then it is left out.
arm64=(); if [[ -f dist/horizon-windows-arm64.zip ]]; then arm64=(dist/horizon-windows-arm64.zip)
else echo "::warning::horizon-windows-arm64.zip is missing: SHA256SUMS goes out without it"; fi
musl=(); if [[ -f dist/horizon-linux-musl-x86_64.tar.gz ]]; then musl=(dist/horizon-linux-musl-x86_64.tar.gz)
else echo "::warning::horizon-linux-musl-x86_64.tar.gz is missing: SHA256SUMS goes out without it"; fi
bash tools/ci/sign_release.sh nightly dist/horizon-linux-x86_64.tar.gz dist/horizon-windows-x64.zip \
"${arm64[@]}" "${musl[@]}" \
dist/horizon-macos-arm64.zip dist/horizon-macos-x64.zip dist/horizon-server-linux-x86_64.tar.gz \
dist/horizon-source.tar.gz
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: signature
path: dist/SHA256SUMS*
if-no-files-found: error
retention-days: 3
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: needs.pick.outputs.dry_run == 'true'
with:
name: ephemeral.pub
@@ -195,19 +205,24 @@ jobs:
contents: write
issues: read # the open release-blocker issues (gate)
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
- name: The signature, checked as launchers check it
- name: The signatures, checked as launchers check them
env:
EPHEMERAL: ${{ needs.pick.outputs.dry_run == 'true' && 'yes' || '' }}
DATE: ${{ needs.pick.outputs.date }}
SHORT: ${{ needs.pick.outputs.short }}
run: |
key=(); [[ -n "$EPHEMERAL" ]] && key=(--key "$(cat dist/ephemeral.pub)")
cargo run --locked --quiet -p horizon-release-sign -- verify --tag nightly --publishing "${key[@]}" dist
# The version's own signature, which current launchers require: the title below names the same version.
cargo run --locked --quiet -p horizon-release-sign -- verify --tag "nightly-${DATE}-${SHORT}" \
--signature SHA256SUMS.v2.sig --publishing "${key[@]}" dist
- name: Ready to publish (the smoke test drew a world, no release-blocker is open)
# Right before publishing, as for a release: an issue labelled while the builds ran still holds it. A dry run
# only reports what a real run would do (that is how a blocker's fix is tried).
@@ -224,18 +239,37 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
SHA: ${{ needs.pick.outputs.sha }}
SHORT: ${{ needs.pick.outputs.short }}
DATE: ${{ needs.pick.outputs.date }}
SOURCE_TAG: ${{ needs.pick.outputs.source_tag }}
run: |
set -euo pipefail
python3 tools/ci/nightly.py rotate
signature=(); [[ -f dist/SHA256SUMS.sig ]] && signature=(dist/SHA256SUMS.sig)
[[ -f dist/SHA256SUMS.v2.sig ]] && signature+=(dist/SHA256SUMS.v2.sig)
# The title is what launchers parse (strictly) into the version SHA256SUMS.v2.sig is signed for.
[[ "${SHA:0:7}" == "$SHORT" ]] || { echo "::error::the build's commit isn't the one signed"; exit 1; }
# The ARM64 archive only when its build succeeded (the sign job left it out of SHA256SUMS otherwise).
arm64=()
if [[ -f dist/horizon-windows-arm64.zip ]]; then
arm64=("dist/horizon-windows-arm64.zip#Game files the launcher installs (Nightly): Windows ARM64 (horizon-windows-arm64.zip)")
else
echo "::warning::horizon-windows-arm64.zip is missing: the Nightly goes out without it (ARM64 launchers install the x64 build)"
fi
musl=()
if [[ -f dist/horizon-linux-musl-x86_64.tar.gz ]]; then
musl=("dist/horizon-linux-musl-x86_64.tar.gz#Game files for musl Linux (horizon-linux-musl-x86_64.tar.gz)")
else
echo "::warning::horizon-linux-musl-x86_64.tar.gz is missing: the Nightly goes out without it"
fi
# A pre-release, never GitHub's latest: the latest stays the last vX.Y.Z, which launchers and servers from
# before the Nightly-only switch keep (they don't read Nightlies).
gh release create nightly --prerelease --latest=false --target "$SHA" \
--title "Nightly $DATE · ${SHA:0:7}" --notes-file dist/nightly-notes.md \
"dist/horizon-linux-x86_64.tar.gz#Game files the launcher installs (Nightly): Linux (horizon-linux-x86_64.tar.gz)" \
"${musl[@]}" \
"dist/horizon-windows-x64.zip#Game files the launcher installs (Nightly): Windows (horizon-windows-x64.zip)" \
"${arm64[@]}" \
"dist/horizon-macos-arm64.zip#Game files the launcher installs (Nightly): macOS on Apple Silicon (horizon-macos-arm64.zip)" \
"dist/horizon-macos-x64.zip#Game files the launcher installs (Nightly): macOS on Intel (horizon-macos-x64.zip)" \
"dist/horizon-server-linux-x86_64.tar.gz#Nightly dedicated server for Linux (horizon-server-linux-x86_64.tar.gz)" \
@@ -253,7 +287,8 @@ jobs:
# Tells the thread that asked for this build how it ended. A conflict `pick` already explained there.
needs: [pick, build, sign, publish]
if: always() && inputs.issue != '' && needs.pick.result == 'success'
runs-on: ubuntu-latest
# One comment, no checkout and no secret: one of our small runners (label horizon-light, docs/ci-runners.md).
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 5
permissions:
issues: write
+3 -1
View File
@@ -27,7 +27,7 @@ jobs:
issues: write # answers in the thread
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
persist-credentials: false
@@ -41,6 +41,8 @@ jobs:
GH_TOKEN: ${{ github.token }}
BODY: ${{ github.event.comment.body }}
AUTHOR: ${{ github.event.comment.user.login }}
# Who may act is decided by this numeric ID: a login can be claimed by someone else after a rename.
AUTHOR_ID: ${{ github.event.comment.user.id }}
ISSUE: ${{ github.event.issue.number }}
COMMENT_URL: ${{ github.event.comment.html_url }}
run: python3 tools/ci/nightly_set.py command
+2 -2
View File
@@ -48,7 +48,7 @@ jobs:
else
echo "run=true" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@v4
- uses: actions/checkout@v7
if: steps.when.outputs.run == 'true'
with:
fetch-depth: 0
@@ -82,7 +82,7 @@ jobs:
run: python3 tools/ci/parity_issues.py --since "${{ steps.audit.outputs.since }}" ${{ inputs.dry_run && '--dry-run' || '' }} | tee -a "$GITHUB_STEP_SUMMARY"
- name: Logs of the failed harnesses
if: steps.when.outputs.run == 'true' && steps.audit.outputs.exit != '0'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: nightly-parity-logs
path: .local/parity-runner/logs/
+3 -3
View File
@@ -19,15 +19,15 @@ jobs:
concurrency:
group: overlap-note-${{ github.event.pull_request.number }}
cancel-in-progress: true
# One of playhorizon's small runners, out of GitHub's shared pool: it runs main's script only (above), so a fork's
# One of our small runners (horizon-light), out of GitHub's pool: it runs main's script only (above), so a fork's
# pull request runs none of its code there (docs/ci-runners.md). SELF_HOSTED_CI=off: GitHub's runners.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 10
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
fetch-depth: 0
+15 -4
View File
@@ -22,17 +22,24 @@ env:
jobs:
bench:
runs-on: ubuntu-latest
# Our checks runners (label horizon-checks, docs/ci-runners.md): the branch and the base on the same machine, as
# the comparison needs. SELF_HOSTED_CI=light or off: GitHub's.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && vars.SELF_HOSTED_CI != 'light' && fromJSON('["self-hosted", "linux", "horizon-checks"]') || 'ubuntu-latest' }}
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Rust and the ALSA and udev headers
env:
HOSTED: ${{ runner.environment == 'github-hosted' }}
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
if [ "$HOSTED" = true ]; then
sudo apt-get update && sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
fi
rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
if: runner.environment == 'github-hosted'
with:
shared-key: pack-bench
- name: Bench the branch
@@ -46,11 +53,15 @@ jobs:
SCALE: ${{ inputs.scale || '1' }}
run: |
git fetch https://github.com/horizon-rust/horizon.git "$BASE"
# Our runners keep the folder beside the checkout between jobs.
git worktree remove --force ../base 2> /dev/null || rm -rf ../base
git worktree prune
git worktree add ../base FETCH_HEAD
cp crates/horizon-client-render/examples/pack_load_bench.rs ../base/crates/horizon-client-render/examples/
# A bench row that times a function the base lacks keeps it from building there: then
# the branch's own rows compare the two ways.
(cd ../base && CARGO_TARGET_DIR="$GITHUB_WORKSPACE/target" cargo run --profile fast -p horizon-client-render \
target=${CARGO_TARGET_DIR:-$GITHUB_WORKSPACE/target}
(cd ../base && CARGO_TARGET_DIR="$target" cargo run --profile fast -p horizon-client-render \
--example pack_load_bench -- --scale "$SCALE") > base.md \
|| echo "The bench does not build on the base." > base.md
- name: Summary
+2 -2
View File
@@ -30,7 +30,7 @@ jobs:
runs-on: [self-hosted, macOS, horizon-parity-main]
timeout-minutes: 240 # a core-crate batch reruns ~300 harnesses (~60-90 min), a bisect a few rounds of the failures
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ github.sha }}
fetch-depth: 0
@@ -69,7 +69,7 @@ jobs:
python3 tools/parity_main.py bisect "$BASE_SHA" --comment
- name: Logs of the failed harnesses
if: steps.harnesses.outcome == 'failure'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: parity-main-logs
path: .local/parity-main-logs/
+14 -2
View File
@@ -20,6 +20,12 @@ on:
busy the job waits for it.
type: boolean
default: false
frame_identity:
description: >-
The pull request carries the frame-identity label: it must leave the picture alone (HDR, shader packs), so
the frame_identity harness, which no automatic selection picks, runs too.
type: boolean
default: false
permissions:
contents: read
env:
@@ -33,7 +39,7 @@ jobs:
# harnesses at a time) up to a few hours, and any pull request's job may land there.
timeout-minutes: ${{ inputs.full && 360 || 180 }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
# The commit the event names: a fork's later pushes need another run-parity label. The next step merges
# main into it.
@@ -87,9 +93,15 @@ jobs:
PARITY_HOSTS: ''
BASE_SHA: ${{ steps.merge.outputs.base }}
run: python3 tools/parity.py --changed "$BASE_SHA" --timeout 2400 # world_spawn takes ~1480 s on a busy runner
- name: The pictures this change must leave alone
if: ${{ !cancelled() && inputs.frame_identity }}
env:
PARITY_HOSTS: ''
BASE_SHA: ${{ steps.merge.outputs.base }}
run: python3 tools/parity.py frame_identity --timeout 2400
- name: Logs of the failed harnesses
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: parity-logs
path: .local/parity-runner/logs/
+3 -3
View File
@@ -16,15 +16,15 @@ jobs:
label:
# Title-only edits change nothing: skip them before a runner starts.
if: github.event.action != 'edited' || github.event.changes.body != null
# One of playhorizon's small runners, out of GitHub's shared pool: it runs main's script only (above), so a fork's
# One of our small runners (horizon-light), out of GitHub's pool: it runs main's script only (above), so a fork's
# pull request runs none of its code there (docs/ci-runners.md). SELF_HOSTED_CI=off: GitHub's runners.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "playhorizon-light"]') || 'ubuntu-latest' }}
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
persist-credentials: false
+1 -1
View File
@@ -53,7 +53,7 @@ jobs:
urgent: ${{ steps.decide.outputs.urgent }}
dry_run: ${{ steps.mode.outputs.dry_run }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- id: mode
+1
View File
@@ -27,3 +27,4 @@ jobs:
base: ${{ github.event.pull_request.base.sha }}
head: ${{ github.event.pull_request.head.sha }}
full: ${{ contains(github.event.pull_request.labels.*.name, 'full-parity') }}
frame_identity: ${{ contains(github.event.pull_request.labels.*.name, 'frame-identity') }}
+8 -2
View File
@@ -15,17 +15,23 @@ on:
- '.github/workflows/telemetry-server.yml'
permissions:
contents: read
concurrency:
group: telemetry-server-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
runs-on: ubuntu-latest
# Our checks runners (label horizon-checks, docs/ci-runners.md); SELF_HOSTED_CI=light or off: GitHub's.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && vars.SELF_HOSTED_CI != 'light' && fromJSON('["self-hosted", "linux", "horizon-checks"]') || 'ubuntu-latest' }}
timeout-minutes: 20
defaults:
run:
working-directory: crates/horizon-telemetry-server
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy
# Ours keep their build folder between jobs.
- uses: Swatinem/rust-cache@v2
if: runner.environment == 'github-hosted'
with:
workspaces: crates/horizon-telemetry-server
save-if: ${{ github.ref == 'refs/heads/main' }}
+5 -2
View File
@@ -21,14 +21,15 @@ jobs:
startsWith(github.event.comment.body, '/reopen') ||
startsWith(github.event.comment.body, '/label') ||
startsWith(github.event.comment.body, '/unlabel'))
runs-on: ubuntu-latest
# One of our small runners (label horizon-light, docs/ci-runners.md): main's script only, as above.
runs-on: ${{ vars.SELF_HOSTED_CI != 'off' && fromJSON('["self-hosted", "linux", "horizon-light"]') || 'ubuntu-latest' }}
timeout-minutes: 5
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: main
persist-credentials: false
@@ -42,6 +43,8 @@ jobs:
GH_TOKEN: ${{ github.token }}
BODY: ${{ github.event.comment.body }}
AUTHOR: ${{ github.event.comment.user.login }}
# Who may act is decided by this numeric ID: a login can be claimed by someone else after a rename.
AUTHOR_ID: ${{ github.event.comment.user.id }}
ISSUE: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
COMMENT_URL: ${{ github.event.comment.html_url }}
+5 -2
View File
@@ -9,8 +9,10 @@ Feature → files → harness for the most-changed areas: [docs/architecture.md]
- **Never commit Mojang's files**: game jars, assets, decompiled source, prepared resources (`.local/`).
`tools/check_public_tree.py` rejects them; `git config core.hooksPath .githooks` runs it on commit.
- **Keep your runs away from real player data.** Any game or launcher you start gets fresh `mktemp -d`
folders in `HORIZON_HOME` (the game's data), `HORIZON_LAUNCHER_HOME`, `XDG_DATA_HOME` and
`XDG_CONFIG_HOME`, plus `HORIZON_LAUNCHER_NO_SELF_UPDATE=1` and `HORIZON_NO_AUDIO=1`, and, for the
folders in `HORIZON_HOME` (logs, crash reports, telemetry consent, recordings; not saves), `HORIZON_LAUNCHER_HOME`, `XDG_DATA_HOME` and
`XDG_CONFIG_HOME`, plus `HORIZON_LAUNCHER_NO_SELF_UPDATE=1` and `HORIZON_NO_AUDIO=1`. Saves, `options.txt` and
caches go in the game folder, by default the working directory: start the game from a scratch folder with
`--game-dir` pointing at it, or they land in the repo root, hidden by `.gitignore`. For the
launcher, `HORIZON_LAUNCHER_TRASH`, `HORIZON_LAUNCHER_CLIPBOARD` and `HORIZON_LAUNCHER_DESKTOP` pointing into the scratch home. Never write to
`~/.local/share/{applications,horizon,horizon-launcher}` or `~/.local/bin`.
- **Mark what an agent posts.** A PR body starts with a line naming the person whose agent opened it and
@@ -33,6 +35,7 @@ Feature → files → harness for the most-changed areas: [docs/architecture.md]
- **No hardcoded user-facing strings.** Keep UI translation-ready from the start. In the launcher (`launcher/`), wrap visible text with `tr("...")` or `trf("... {arg} ...", &[("arg", &val)])` from `crate::i18n` instead of raw string literals or `format!`. In the game, use translation keys (`Text::tr`, `lang::get`), never hardcoded English strings.
- **Claim before you start**: comment `/claim` on the issue (no issue yet: open one, then claim it). An assigned
issue is taken: pick another. `/unclaim` when you stop; a claim with no open PR linking it is released after 5 days.
- **Controllers reach what registers.** Draw controls with a registering helper (`ui::button`, `settings_shell::foot_button`); `graphics_style::button` and `screen_draw::button` only paint, and registering one part of a screen ends its crosshair, so register all of it.
## Crates
+34 -33
View File
@@ -5,7 +5,8 @@ everything is that **it plays exactly like vanilla**. This page is the short ver
welcome on [Discord](https://discord.gg/playhorizon).
This repository holds the game and the launcher, plus the tools, tests and docs that build, check and release them.
The website (playhorizon.dev) is built in a separate repository from this one's README, `docs/api/` and roadmap. Anything else (videos, Discord and other community material) lives elsewhere.
The website (playhorizon.dev) is built in a separate repository from this one's README, `docs/api/` and roadmap. Anything
else (videos, Discord and other community material) lives elsewhere.
**Where to start: [playhorizon.dev/hub](https://playhorizon.dev/hub).** It shows what is being done now and next
([ROADMAP.md](ROADMAP.md) in the repository), the work board, good first tasks, and the forms to report a bug or
@@ -14,23 +15,25 @@ queue (the hub, or `/suggest` on Discord) rather than to issues, which are for b
## Build it
You need Rust (stable), Python 3.10+, JDK 25, and on Linux the ALSA and udev headers (`libasound2-dev libudev-dev`).
Horizon never downloads the game: it prepares its resources from your own copy of Minecraft 26.3, as described in
[Build from source](README.md#build-from-source).
- **Prerequisites:** Rust (stable), Python 3.10+, JDK 25, and on Linux the ALSA and udev headers
(`libasound2-dev libudev-dev`).
- **Resources:** Horizon never downloads the game; it prepares its resources from your own copy of Minecraft 26.3, as
described in [Build from source](README.md#build-from-source).
- **Commands:**
```sh
cargo run --release -p horizon-prepare -- --prepare --server-jar ~/Downloads/server.jar
cargo run --release -p horizon-client
```
```sh
cargo run --release -p horizon-prepare -- --prepare --server-jar ~/Downloads/server.jar
cargo run --release -p horizon-client
```
The launcher is its own Cargo workspace in `launcher/` (`cd launcher && cargo run`; on NixOS, `nix-shell` first).
- **Launcher:** its own Cargo workspace in `launcher/` (`cd launcher && cargo run`; on NixOS, `nix-shell` first).
## Vanilla first
Wherever vanilla has a feature, vanilla is the specification, down to the order of random calls. "Parity" here
means Horizon gives the same results as the pinned 26.3 client and server for the same inputs, checked by a
**harness**: a `tools/test_*_parity.py` script that runs a small Java oracle against the real game and a Rust
probe against Horizon, and compares their outputs. There are about 290 of them.
Wherever vanilla has a feature, vanilla is the specification, down to the order of random calls. "Parity" here means
Horizon gives the same results as the pinned 26.3 client and server for the same inputs, checked by a **harness**: a
`tools/test_*_parity.py` script that runs a small Java oracle against the real game and a Rust probe against Horizon,
and compares their outputs. There are about 290 of them.
- **Read the vanilla code before writing Horizon's.** `tools/rea_vanilla.py` queries the pinned game bytecode:
`python3 tools/rea_vanilla.py method net.minecraft.world.level.block.DispenserBlock dispenseFrom`.
@@ -41,11 +44,10 @@ probe against Horizon, and compares their outputs. There are about 290 of them.
off by default wherever they would change the vanilla look.
- **Everything players run is Rust.** Python and Java are fine for dev tools and harness drivers in `tools/`, never
for player-facing code.
Never commit game files, decompiled source or prepared resources (`.local/`): `tools/check_public_tree.py` rejects
them (`git config core.hooksPath .githooks` runs it before every commit).
The pre-push hook checks the full history reachable from the branches and tags being pushed. Run
`python3 tools/check_public_tree.py --history` to audit the history of all local refs.
- **No game files in the repo.** Never commit game files, decompiled source or prepared resources (`.local/`):
`tools/check_public_tree.py` rejects them (`git config core.hooksPath .githooks` runs it before every commit).
The pre-push hook checks the full history reachable from the branches and tags being pushed. Run
`python3 tools/check_public_tree.py --history` to audit the history of all local refs.
## Only original code, or code whose license allows it
@@ -54,24 +56,23 @@ another project's source may also be read and used, **only when that project's l
- **Allowed:** MIT, MIT-0, BSD-2-Clause, BSD-3-Clause, 0BSD, ISC, zlib, Apache-2.0, Unlicense, and the CC0-1.0
public-domain dedication. That code may be read, copied or adapted.
- **Everything else is off limits, even to read:** GPL, LGPL (Iris), AGPL, MPL, EPL, Polyform (Sodium), the Creative
Commons licenses (CC BY, CC BY-SA, CC BY-NC and the others; CC0 is a public-domain dedication, not one of them),
custom or "source available" licenses, all rights reserved (OptiFine), and any project with no license or an
unclear one. Don't read, copy, translate or paraphrase their source, and don't send code an AI tool
wrote from it. Being able to download a mod or a pack does not give you the right to read its files.
- **Off limits, even to read:** GPL, LGPL (Iris), AGPL, MPL, EPL, Polyform (Sodium), the Creative Commons licenses
(CC BY, CC BY-SA, CC BY-NC and the others; CC0 is a public-domain dedication, not one of them), custom or
"source available" licenses, all rights reserved (OptiFine), and any project with no license or an unclear one.
Don't read, copy, translate or paraphrase their source, and don't send code an AI tool wrote from it. Being able
to download a mod or a pack does not give you the right to read its files.
- **Check the license yourself.** Read the LICENSE file at the commit you use and the header of each file you take:
some repositories mix licenses, and a file under another license is off limits. A license that changed: the one
at your commit counts. In doubt, don't: ask in #contributors first.
some repositories mix licenses, and a file under another license is off limits. A license that changed: the one at
your commit counts. In doubt, don't: ask in #contributors first.
- **Say it in the pull request:** the project, a link to the commit, its license, and what you read or copied. A
pull request that used another project's source without saying so is closed.
- **Copied or adapted code** keeps its copyright line and license notice at the top of the file, and gets an entry
in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). Apache-2.0 code also keeps its NOTICE text and says what
was changed.
User documentation and file formats are fine to read, and packs and mods are fine to run and observe, whatever
their license. Shader packs were removed on 24 October 2026 (#1561) because their code had been written from
another project's source; they come back only as a clean-room rewrite from a written description of the pack
format.
User documentation and file formats are fine to read, and packs and mods are fine to run and observe, whatever their
license. Shader packs are a clean-room rewrite of the pack format, produced from a written description of it (see
#1561); they carry no foreign source, and the rules above still apply to anything you read while working on them.
## Before asking for review
@@ -87,8 +88,8 @@ your change can affect. Without the vanilla data on your machine it lists those
`--quick` skips the harnesses. It exits non-zero when something fails.
For the game workspace, Clippy checks all targets of the touched crates and their transitive workspace dependents,
including examples. The dependency scope includes optional, platform, build and development dependencies.
Tests run library, binary, integration and doc tests without building unrelated example executables. Shared Cargo
including examples. The dependency scope includes optional, platform, build and development dependencies. Tests run
library, binary, integration and doc tests without building unrelated example executables. Shared Cargo
configuration and toolchain changes select the whole workspace; CI also keeps its workspace-wide checks.
## Claim before you start
@@ -123,8 +124,8 @@ it (edited on every push, never repeated): talk to its author in the thread befo
that label, and area labels (`launcher`, `mobs`, `worldgen`, `rendering`...) from the paths you change.
`label:parity` is the list of real progress toward vanilla.
- **Release labels** (we set them if you can't): `feature` also puts it under "New" in the release notes,
`skip-release` when players see no change (tooling, docs, tests), nothing for a fix.
`release-now` is for crash fixes that shouldn't wait. pr_ready suggests one.
`skip-release` when players see no change (tooling, docs, tests), nothing for a fix. `release-now` is for crash
fixes that shouldn't wait. pr_ready suggests one.
Who reviews and merges: the Horizon Team, on CI for ordinary pull requests; risky ones (saves, network, world
generation, the launcher's updates) wait for a local proof first ([merging](docs/release-flow.md#merging)).
Generated
+18
View File
@@ -1318,6 +1318,7 @@ dependencies = [
"ab_glyph",
"bytemuck",
"chrono",
"dunce",
"flate2",
"fs4",
"gilrs",
@@ -1400,6 +1401,7 @@ dependencies = [
"chrono",
"flate2",
"fs4",
"getrandom 0.3.4",
"gilrs",
"glam",
"horizon-anticheat",
@@ -1411,6 +1413,7 @@ dependencies = [
"horizon-client-render",
"horizon-command",
"horizon-core",
"horizon-cosmetics",
"horizon-dualsense",
"horizon-friends",
"horizon-hdr",
@@ -1429,6 +1432,7 @@ dependencies = [
"horizon-world",
"log",
"miniz_oxide 0.8.9",
"mio",
"naga",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
@@ -1445,6 +1449,7 @@ dependencies = [
"ureq",
"wgpu",
"winit",
"xxhash-rust",
"zip",
]
@@ -1713,6 +1718,7 @@ dependencies = [
"horizon-mcp",
"horizon-release-sign",
"horizon-server-files",
"horizon-world",
"libc",
"p12-keystore",
"png",
@@ -2315,6 +2321,18 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "mio"
version = "1.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
dependencies = [
"libc",
"log",
"wasi",
"windows-sys 0.61.2",
]
[[package]]
name = "multiversion_no_op"
version = "1.0.0"
+4 -4
View File
@@ -7,7 +7,7 @@
<img src="https://img.shields.io/badge/Minecraft-Java%2026.3-5D9C3F" alt="Minecraft Java 26.3">
<img src="https://img.shields.io/badge/Rust-stable-B7410E?logo=rust&logoColor=white" alt="Rust">
<img src="https://img.shields.io/badge/vanilla%20parity-100%25-F0795A" alt="Vanilla parity 100%">
<a href="#project-status"><img src="https://img.shields.io/badge/player--visible%20gaps-833%20open-F0795A" alt="Player-visible gaps open"></a>
<a href="#project-status"><img src="https://img.shields.io/badge/player--visible%20gaps-0%20open-F0795A" alt="Player-visible gaps open"></a>
<img src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-2A2470" alt="Linux, macOS and Windows">
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-3B2F7E" alt="MIT license"></a>
</p>
@@ -30,7 +30,7 @@ Minecraft: Java Edition 26.3, rewritten in Rust. Same worlds, same rules, same t
## Download
Get **the Horizon launcher** from [playhorizon.dev](https://playhorizon.dev) or [the launcher releases](https://github.com/horizon-rust/horizon/releases?q=launcher-v&expanded=true) (Linux x86-64, macOS on Apple Silicon, macOS on Intel from the next Nightly, Windows x64). It installs and updates the game, prepares its files from your copy of Minecraft, and updates itself.
Get **the Horizon launcher** from [playhorizon.dev](https://playhorizon.dev) or [the launcher releases](https://github.com/horizon-rust/horizon/releases?q=launcher&expanded=true) (Linux x86-64, macOS on Apple Silicon, macOS on Intel from the next Nightly, Windows x64). It installs and updates the game, prepares its files from your copy of Minecraft, and updates itself.
**You need** a Microsoft account that owns Java Edition ([why](docs/microsoft-account.md)) and a GPU with Vulkan or OpenGL 3.3 (Linux), Vulkan or DirectX 12 (Windows), or a Mac (Apple Silicon, or Intel from the next Nightly). An existing Minecraft install (official launcher, Prism, MultiMC...) is reused; without one, Play downloads 26.3 from Mojang for your account. Step by step: [Install and first launch](https://playhorizon.dev/docs/install).
@@ -122,13 +122,13 @@ It runs rustfmt, clippy, the touched crates' tests, the Python tests, the public
## Project status
**Player-visible gaps: 833 open** of the 833 the [port ledger](tools/port_ledger.py) found, reading every vanilla 26.3 method against Horizon's code: vanilla behaviour a player would notice that Horizon doesn't have yet. By area: Screens, HUD and client packets [197](https://github.com/horizon-rust/horizon/issues/3518); Entity and block rendering, models [129](https://github.com/horizon-rust/horizon/issues/3519); Animals [110](https://github.com/horizon-rust/horizon/issues/3512); Server and players on the server [106](https://github.com/horizon-rust/horizon/issues/3520); Blocks, redstone and fluids [86](https://github.com/horizon-rust/horizon/issues/3516); Entities, projectiles, vehicles and decorations [64](https://github.com/horizon-rust/horizon/issues/3514); Monsters and bosses [53](https://github.com/horizon-rust/horizon/issues/3513); Mob AI, villagers and raids [35](https://github.com/horizon-rust/horizon/issues/3521); World, world generation and saves [32](https://github.com/horizon-rust/horizon/issues/3517); Items, enchantments and inventories [21](https://github.com/horizon-rust/horizon/issues/3515). This number goes down as gaps close (`tools/parity_gaps.py`); the harness results below say that what is tested matches.
**Player-visible gaps: 0 open** of the 833 the [port ledger](tools/port_ledger.py) found, reading every vanilla 26.3 method against Horizon's code: vanilla behaviour a player would notice that Horizon doesn't have yet. By area: Animals [0](https://github.com/horizon-rust/horizon/issues/3512); Monsters and bosses [0](https://github.com/horizon-rust/horizon/issues/3513); Entities, projectiles, vehicles and decorations [0](https://github.com/horizon-rust/horizon/issues/3514); Items, enchantments and inventories [0](https://github.com/horizon-rust/horizon/issues/3515); Blocks, redstone and fluids [0](https://github.com/horizon-rust/horizon/issues/3516); World, world generation and saves [0](https://github.com/horizon-rust/horizon/issues/3517); Screens, HUD and client packets [0](https://github.com/horizon-rust/horizon/issues/3518); Entity and block rendering, models [0](https://github.com/horizon-rust/horizon/issues/3519); Server and players on the server [0](https://github.com/horizon-rust/horizon/issues/3520); Mob AI, villagers and raids [0](https://github.com/horizon-rust/horizon/issues/3521). This number goes down as gaps close (`tools/parity_gaps.py`); the harness results below say that what is tested matches.
The table is the project's own audit: every subsystem matches vanilla in every harness that compares it. 100% means 100% of what the harnesses compare, not that nothing else differs.
### Java parity: 100%
Scores: 0 (absent), 0.25 (started), 0.5 (playable, major features missing), 0.75 (mostly complete) or 1 (complete and verified by differential tests); the percentage is their average. Last audited 2026-10-13: all 281 harnesses pass on Linux and macOS. The [port ledger](tools/port_ledger.py) adds a method-by-method view of what is ported.
Scores: 0 (absent), 0.25 (started), 0.5 (playable, major features missing), 0.75 (mostly complete) or 1 (complete and verified by differential tests); the percentage is their average. Last audited 2026-10-13: the harnesses pass on Linux and macOS. The [port ledger](tools/port_ledger.py) adds a method-by-method view of what is ported.
| Subsystem | Score | Main gaps |
| --- | ---: | --- |
+14 -33
View File
@@ -206,7 +206,7 @@ Manage a server from a console, ban and pardon players, and drive it from other
<details><summary>Technical</summary>
`horizon-server console` (a text interface), `ban`, `pardon`, `ban-ip` and `mcp` over stdio. Admin API additions: the player list, kick, ban, op and whitelist, an SSE stream of logs and events, a text metrics endpoint, config GET and PATCH, backup delete and download. The panel's later features (bans, worlds, server.properties import, logs and crash reports, modpacks) and vanilla's management protocol (the JSON-RPC over WebSocket that the `management-server-*` keys configure), so vanilla's tools can manage a Horizon server. [docs/server.md](docs/server.md), [docs/api/server.md](docs/api/server.md).
`horizon-server console` (a text interface), `ban`, `pardon`, `ban-ip` and `mcp` over stdio. Admin API additions: the player list, kick, ban, op and whitelist, an SSE stream of logs and events, a text metrics endpoint, config GET and PATCH, backup delete and download. The last pieces merged: bans edited while the server is stopped ([#9767](https://github.com/horizon-rust/horizon/issues/9767)) and the MCP tools' contracts pinned by a test ([#9748](https://github.com/horizon-rust/horizon/issues/9748)). The panel's later features and vanilla's management protocol are their own item (server-panel-management). [docs/server.md](docs/server.md), [docs/api/server.md](docs/api/server.md).
</details>
@@ -396,6 +396,16 @@ A Datapacks tab beside Mods and Resource packs: install into a chosen world's da
### Servers and multiplayer
#### Server panel extras and vanilla's management protocol
More of a server managed from its web panel (bans, worlds, logs and crash reports, modpacks), and vanilla's own server-management tools working with a Horizon server.
<details><summary>Technical</summary>
The panel's later features (bans, worlds, server.properties import, logs and crash reports, modpacks) and vanilla's management protocol (the JSON-RPC over WebSocket that the `management-server-*` keys configure), so vanilla's tools can manage a Horizon server. Split from server-admin. [docs/server.md](docs/server.md), [docs/api/server.md](docs/api/server.md).
</details>
#### Ely.by and other sign-in providers
Sign in with other account providers, such as Ely.by or any Yggdrasil-compatible one, beside Microsoft.
@@ -600,16 +610,6 @@ An output device list in Music & Sounds, falling back to the system default. [#1
</details>
#### Play in your language
Item names, container titles and server messages follow the language you pick, as in vanilla. Today parts of the game stay in English.
<details><summary>Technical</summary>
Translatable components resolved through the selected language for items, containers and server text ([#1806](https://github.com/horizon-rust/horizon/issues/1806)), on top of the bundled languages the prepared resources carry ([#1594](https://github.com/horizon-rust/horizon/issues/1594)). Left: the client's own screens ([#1672](https://github.com/horizon-rust/horizon/issues/1672)) and the main menu with zh_cn.
</details>
### Rendering
#### A light default shader pack
@@ -860,30 +860,11 @@ More: [https://playhorizon.dev/docs/performance](https://playhorizon.dev/docs/pe
</details>
### Gameplay parity
#### End city banners keep their pattern
Banners in End cities show as plain magenta instead of with their pattern.
<details><summary>Technical</summary>
Compare the banner block entities the End city templates place with vanilla's (`EndCityPieces`, the templates' block entity NBT, `BannerBlockEntity`'s patterns), in `crates/horizon-world/src/worldgen/structure/`. Issue [#1438](https://github.com/horizon-rust/horizon/issues/1438); possibly related: [#526](https://github.com/horizon-rust/horizon/issues/526).
</details>
#### Enchanted loot in End cities
Armour and tools in End city chests should come enchanted, as in vanilla.
<details><summary>Technical</summary>
`loot.rs` implements `enchant_with_levels`: find why the End city chest table's rolls come out bare, and compare them with vanilla's for a few seeds. Issues [#1437](https://github.com/horizon-rust/horizon/issues/1437), [#1660](https://github.com/horizon-rust/horizon/issues/1660).
</details>
## Recently shipped
- **Enchanted loot in End cities** (v0.2.73): Armour and tools in End city chests should come enchanted, as in vanilla. [#1437](https://github.com/horizon-rust/horizon/issues/1437) · [#1660](https://github.com/horizon-rust/horizon/issues/1660) · [#1911](https://github.com/horizon-rust/horizon/issues/1911) · [#2037](https://github.com/horizon-rust/horizon/issues/2037)
- **End city banners keep their pattern** (v0.2.67): Banners in End cities show as plain magenta instead of with their pattern. [#1438](https://github.com/horizon-rust/horizon/issues/1438) · [#526](https://github.com/horizon-rust/horizon/issues/526) · [#1928](https://github.com/horizon-rust/horizon/issues/1928)
- **Play in your language** (v0.2.65): Item names, container titles and server messages follow the language you pick, as in vanilla. Today parts of the game stay in English. [#1806](https://github.com/horizon-rust/horizon/issues/1806) · [#1594](https://github.com/horizon-rust/horizon/issues/1594) · [#1672](https://github.com/horizon-rust/horizon/issues/1672)
- **Chickens flap while they fall** (v0.2.67): Chickens should flap their wings while they fall, not stand still in the air. [#1706](https://github.com/horizon-rust/horizon/issues/1706) · [#1892](https://github.com/horizon-rust/horizon/issues/1892)
- **Ctrl+Backspace and scroll bars in menus** (v0.2.67): Ctrl+Backspace should delete a whole word in the creative search, and every list's scroll bar should be draggable. [#1764](https://github.com/horizon-rust/horizon/issues/1764) · [#1782](https://github.com/horizon-rust/horizon/issues/1782) · [#1884](https://github.com/horizon-rust/horizon/issues/1884) · [#1931](https://github.com/horizon-rust/horizon/issues/1931)
- **A pointing hand over buttons** (v0.2.67): The mouse pointer should turn into a pointing hand over menu buttons, as in vanilla 26.3. [#1347](https://github.com/horizon-rust/horizon/issues/1347) · [#1897](https://github.com/horizon-rust/horizon/issues/1897)
+47
View File
@@ -14,6 +14,11 @@ Apache-2.0; both licenses are in that folder (`LICENSE.MIT`, `LICENSE.APACHE`).
fixes to its GLSL frontend that shader packs need, each applied in the commit that needed it. It is licensed under MIT or Apache-2.0; both licenses
are in that folder (`LICENSE.MIT`, `LICENSE.APACHE`).
The GLSL frontend also resets the common type for each comma-separated declarator so one
variable's array specifier does not change later variables.
It also reads a struct member outside a constant expression through a pointer to the member,
not out of a loaded copy of the whole struct, so a member an atomic function uses can be read.
## libmimalloc-sys and mimalloc
`third_party/libmimalloc-sys` is [libmimalloc-sys](https://github.com/purpleprotocol/mimalloc_rust)
@@ -165,3 +170,45 @@ BlueMap is licensed under the MIT license:
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
## JOML
`crates/horizon-client-render/src/camera.rs` (`joml::Mat4::rotation`, `invert_orthonormal`) and
`crates/horizon-client-render/src/gfx/pack_uniforms.rs` (`invert_generic`, `invert_affine`, the
formulas of `pack_projection` and `shadow_ortho`) adapt the float arithmetic of
`Matrix4f.rotation(Quaternionfc)`, `invertOrthonormal`, `invertGenericNonThis`, `invertAffine`,
`setPerspective` and `setOrtho` from
[JOML](https://github.com/JOML-CI/JOML/tree/faf9eef2511242122beb6055fe3da92daed214c5) 1.10.9, the
library vanilla 26.3 uses, so that shader packs get the same matrices to the last bit. Changes:
ported to Rust; the pack_uniforms.rs functions drop JOML's property flags, and
`pack_projection` works the formula in doubles. The copyright line and license notice also head
both files.
`camera.rs` also adapts `Quaternionf.rotationX`, `rotationY` and `rotationZ`,
`Matrix4f.rotateAffine` and `Vector4f.mulAffine` (`joml::Quat::rotation_x`/`_y`/`_z`,
`joml::Mat4::rotate_affine`, `transform_affine`), for the sky's positions shader packs read.
Changes: ported to Rust; `rotate_affine` keeps only the affine case.
```
The MIT License
Copyright (c) 2015-2026 Richard Greenlees
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
@@ -0,0 +1,42 @@
# Entity occlusion split measurements — 2026-11-02
These measurements came from the pre-split integration branch for PR #7054. That build contained the entity-occlusion rewrite and particle light lookup cache; Particle Culling was Off. They are useful comparison evidence, but they are not a benchmark of this isolated entity-only commit. The cache-only run in PR #7391 measured effectively the same CPU time on the ordinary scene, but the combined result still cannot isolate interactions.
Host: Intel Core i7-3770S, Intel HD Graphics 4000, Vulkan/Mesa, 675×727, render distance 4, VSync off, 260 FPS cap. Two opposite-order passes measured for 8 seconds after warmup. Values are means. CPU is harness average CPU ms per frame; p99 is frame time. The driver supplied no usable GPU timing.
## Ordinary scene
The scene had 24 mobs, roughly 9,400–10,100 rain particles and campfire smoke.
| Build and mode | FPS | CPU ms/frame | Frame p99 ms |
| --- | ---: | ---: | ---: |
| Main, entity culling Off | 88.59 | 1.829 | 24.51 |
| Pre-split integration branch, all culling Off | 88.33 | 2.063 | 24.51 |
| Main, entity culling Synchronous | 89.34 | 1.965 | 23.99 |
| Pre-split integration branch, entity Synchronous | 89.13 | 2.113 | 24.15 |
This normal-scene run does not show a large FPS change; its CPU differences are small relative to frame time and not attributable to the entity-only change by themselves.
## Opaque-wall scene
A 32×32 platform at Y=300, a 7-block wall with a one-block vertical opening, and 192 pigs spawned behind the wall (216 mobs in the captured scene). The player looked toward the opening from the near side. The same world and camera path were used for the main and integration builds.
| Build and mode | FPS | CPU ms/frame | Frame p99 ms |
| --- | ---: | ---: | ---: |
| Main, Off | 89.08 | 2.423 | 13.52 |
| Integration branch, Off | 89.23 | 2.355 | 13.27 |
| Main, Synchronous | 92.81 | 2.566 | 14.60 |
| Integration branch, Synchronous | 93.21 | 2.550 | 12.84 |
| Main, Asynchronous | 92.73 | 2.364 | 13.04 |
| Integration branch, Asynchronous | 92.62 | 2.314 | 13.18 |
The asynchronous mode reduced measured CPU time slightly in this wall scene but did not improve FPS beyond run-to-run spread. This is a synthetic occlusion-heavy scene, not a broad performance claim.
## Captures
The HUD performance overlay is visible in each capture. The integration-build screenshots were recorded with the same wall and camera position in Off, Synchronous, and Asynchronous modes.
- Main, Off: `main-off.png`
- Integration branch, Off: `branch-off.png`
- Integration branch, Synchronous: `branch-sync.png`
- Integration branch, Asynchronous: `branch-async.png`
Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

@@ -0,0 +1,42 @@
# Entity occlusion pipeline — release/OpenGL run (2026-11-04)
This is the final local smoke benchmark for the entity-occlusion pipeline before opening the PR. It was run from the branch after the release build completed, with the OpenGL backend selected explicitly. The same process created each scene, switched the culling mode, flew the camera for two seconds, collected frame/CPU telemetry, and captured the screenshot after the scene settled.
**Host:** Intel Core i7-3770S, Intel HD Graphics 4000, Mesa OpenGL 4.2
**Window:** 1280×720, offscreen, VSync disabled
**World:** fresh temporary home, 32×32 platform at Y=300; wall scenes add a solid stone wall and an optional one-block slit
**Entities:** 24 pigs in the normal scene, 192 pigs in wall scenes, 512 pigs in stress scenes
**Settings:** render distance 8, `entityCullingPrecheck:64`, FPS overlay on, no resource-pack occlusion assumptions
**Build:** `cargo build --release -p horizon-client`
## Results
The values below are branch-only measurements. They are useful for comparing the three modes under identical geometry and for checking that the worker is doing useful work. A fresh main binary was not built in this short pass, so these numbers do not claim a controlled main-to-branch delta.
| Scene | Off FPS / CPU p50 | Sync FPS / CPU p50 | Async FPS / CPU p50 | Async entities culled |
| --- | ---: | ---: | ---: | ---: |
| `entity_normal` (24 visible) | 240.5 / 0.586 ms | 233.5 / 0.762 ms | 239.3 / 0.686 ms | 0 |
| `entity_wall` (192, solid) | 228.8 / 1.245 ms | 318.6 / 1.342 ms | **324.5 / 0.478 ms** | 124,608 |
| `entity_wall_slit` (192, one-block slit) | 231.4 / 1.102 ms | 265.0 / 1.387 ms | **281.2 / 0.716 ms** | 102,826 |
| `entity_stress` (512, solid) | 190.3 / 2.467 ms | 299.2 / 2.593 ms | **325.5 / 0.691 ms** | 290,234 |
| `entity_stress_slit` (512, one-block slit) | 190.4 / 2.476 ms | 262.2 / 2.573 ms | **262.1 / 1.297 ms** | 227,301 |
Async telemetry confirmed that the render thread stayed non-blocking (`try_recv`/`try_send`, `worker_blocking_wait_ms: 0`). The latest wall/slit run completed 562 worker jobs, queued 3,982 queries, avoided about 4.0 million entity bytes, and had 379 ns recent p50 worker-job time. The solid 512-pig run culled 15,552 generated vertices; the slit run culled 120,290 generated vertices. The normal scene recorded no pre-model hides and kept the opt-in path close to Off.
## Captures
Every image includes the FPS performance overlay. The names are `<mode>-<scene>.png`:
- [Off — normal](screenshots/off-entity_normal.png), [wall](screenshots/off-entity_wall.png), [wall slit](screenshots/off-entity_wall_slit.png), [stress](screenshots/off-entity_stress.png), [stress slit](screenshots/off-entity_stress_slit.png)
- [Sync — normal](screenshots/sync-entity_normal.png), [wall](screenshots/sync-entity_wall.png), [wall slit](screenshots/sync-entity_wall_slit.png), [stress](screenshots/sync-entity_stress.png), [stress slit](screenshots/sync-entity_stress_slit.png)
- [Async — normal](screenshots/async-entity_normal.png), [wall](screenshots/async-entity_wall.png), [wall slit](screenshots/async-entity_wall_slit.png), [stress](screenshots/async-entity_stress.png), [stress slit](screenshots/async-entity_stress_slit.png)
## Reproduction
From the repository root, with prepared 26.3 resources available:
```sh
python3 tools/entity_occlusion_bench.py
```
The script uses fresh temporary game data, the release binary in `target/release`, OpenGL, the FPS overlay, and writes JSON plus captures under `/tmp/horizon-entity-occlusion-release-quick/`.
Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

@@ -0,0 +1,27 @@
# Particle culling review measurements — 2026-11-02
Ordinary-scene captures and measurements for PR #7054. The scene contains 24 mobs, about 9,400–10,100 rain particles, and about 50–100 campfire smoke particles. Two opposite-order passes were run with 2 s warmup and 8 s measurement per condition. Host: Intel Core i7-3770S, Intel HD Graphics 4000, Vulkan/Mesa, 675×727, render distance 4, VSync off, 260 FPS cap.
These are means of the two samples. CPU is the harness's average CPU time per frame; p99 is frame time. The normal scene is not expected to show large gains because most particles are visible.
| Condition | FPS | CPU ms/frame | Frame p99 ms |
| --- | ---: | ---: | ---: |
| Main, culling Off | 88.39 | 1.930 | 23.85 |
| Particle branch, culling Off | 88.55 | 1.828 | 24.88 |
| Main, Entity Culling Synchronous | 89.12 | 1.887 | 23.07 |
| Particle branch, Entity Culling Synchronous, Particle Culling Off | 89.06 | 1.897 | 25.18 |
| Particle Culling Synchronous | 88.87 | 1.774 | 24.94 |
| Particle Culling Asynchronous* | 89.00 | 1.754 | 24.90 |
*The asynchronous samples predate the final switch to a dedicated particle worker. They are retained only as historical context and are not a measurement of the final worker implementation. No FPS improvement is claimed from these ordinary-scene runs. The Off path delegates directly to `render`; `disabled_culled_render_matches_the_regular_particle_path` checks that it produces the same vertices.
The FPS and CPU differences are within run-to-run variability for this GPU-limited scene. The first four conditions are the reviewer's requested Main-versus-branch default and existing synchronous-mode comparisons. Particle Sync/Async rows are branch-internal mode comparisons.
## Captures
The screenshots show the same ordinary test world and FPS overlay:
- `main-off.png`
- `particle-off.png`
- `particle-sync.png`
- `particle-async.png`
Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

+870
View File
@@ -0,0 +1,870 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T13:00:15Z",
"app": {
"name": "horizon-client",
"version": "nightly-2026-11-04-67dad0d",
"commit": "67dad0d"
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 24,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.57)",
"cpu": "13th Gen Intel(R) Core(TM) i7-13700KF",
"ram_mb": 31904,
"gpu": {
"name": "NVIDIA GeForce RTX 4080",
"vendor": "nvidia",
"driver": "NVIDIA 595.71.05",
"backend": "vulkan",
"kind": "discrete"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 28.408,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 66658.183,
"stdev": 61839.502,
"min": 1827.42,
"max": 124993.694,
"ci95": 153630.237
},
"startup.world_ms": {
"n": 3,
"mean": 74754.411,
"stdev": 59189.587,
"min": 13600.651,
"max": 131761.773,
"ci95": 147046.952
},
"chunks.village.load_ms": {
"n": 3,
"mean": 5571.499,
"stdev": 1900.32,
"min": 3378.38,
"max": 6730.394,
"ci95": 4721.037
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 15287.0,
"stdev": 527.501,
"min": 14788.0,
"max": 15839.0,
"ci95": 1310.49
},
"fps.village.avg_fps": {
"n": 3,
"mean": 2958.557,
"stdev": 376.543,
"min": 2526.453,
"max": 3216.434,
"ci95": 935.46
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 368.457,
"stdev": 90.668,
"min": 300.631,
"max": 471.438,
"ci95": 225.25
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 91.04,
"stdev": 40.506,
"min": 46.124,
"max": 124.796,
"ci95": 100.63
},
"memory.village.gpu_mb": {
"n": 3,
"mean": 581.0,
"stdev": 48.0,
"min": 533.0,
"max": 629.0,
"ci95": 119.248
},
"memory.village.rss_mb": {
"n": 3,
"mean": 1277.531,
"stdev": 25.546,
"min": 1253.879,
"max": 1304.623,
"ci95": 63.466
},
"tick.village.client_ms": {
"n": 3,
"mean": 0.529,
"stdev": 0.127,
"min": 0.396,
"max": 0.649,
"ci95": 0.315
},
"cpu.village.p50_ms": {
"n": 3,
"mean": 0.185,
"stdev": 0.034,
"min": 0.162,
"max": 0.224,
"ci95": 0.085
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 3318.3,
"stdev": 911.608,
"min": 2266.627,
"max": 3883.075,
"ci95": 2264.743
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 16565.333,
"stdev": 172.755,
"min": 16367.0,
"max": 16683.0,
"ci95": 429.182
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 2333.626,
"stdev": 569.124,
"min": 1745.365,
"max": 2881.457,
"ci95": 1413.897
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 336.615,
"stdev": 185.666,
"min": 208.133,
"max": 549.487,
"ci95": 461.257
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 160.734,
"stdev": 127.586,
"min": 39.777,
"max": 294.05,
"ci95": 316.967
},
"memory.forest.gpu_mb": {
"n": 3,
"mean": 666.333,
"stdev": 24.44,
"min": 645.0,
"max": 693.0,
"ci95": 60.718
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 1346.816,
"stdev": 42.279,
"min": 1305.547,
"max": 1390.037,
"ci95": 105.035
},
"tick.forest.client_ms": {
"n": 3,
"mean": 0.669,
"stdev": 0.084,
"min": 0.598,
"max": 0.761,
"ci95": 0.208
},
"cpu.forest.p50_ms": {
"n": 3,
"mean": 0.222,
"stdev": 0.032,
"min": 0.197,
"max": 0.258,
"ci95": 0.079
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 2463.434,
"stdev": 1056.0,
"min": 1527.516,
"max": 3608.283,
"ci95": 2623.462
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 14226.667,
"stdev": 307.077,
"min": 14038.0,
"max": 14581.0,
"ci95": 762.883
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 2192.874,
"stdev": 1320.904,
"min": 673.829,
"max": 3071.415,
"ci95": 3281.573
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 345.406,
"stdev": 294.904,
"min": 8.977,
"max": 559.232,
"ci95": 732.642
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 172.573,
"stdev": 149.386,
"min": 1.038,
"max": 274.089,
"ci95": 371.125
},
"memory.ocean.gpu_mb": {
"n": 3,
"mean": 629.0,
"stdev": 32.0,
"min": 597.0,
"max": 661.0,
"ci95": 79.499
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 1352.223,
"stdev": 51.951,
"min": 1301.492,
"max": 1405.314,
"ci95": 129.065
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.512,
"stdev": 0.099,
"min": 0.406,
"max": 0.603,
"ci95": 0.246
},
"cpu.ocean.p50_ms": {
"n": 3,
"mean": 0.178,
"stdev": 0.038,
"min": 0.135,
"max": 0.206,
"ci95": 0.094
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 6260.675,
"stdev": 3077.348,
"min": 2976.342,
"max": 9077.55,
"ci95": 7645.173
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 16015.333,
"stdev": 209.872,
"min": 15826.0,
"max": 16241.0,
"ci95": 521.393
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 1412.095,
"stdev": 962.145,
"min": 714.773,
"max": 2509.775,
"ci95": 2390.293
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 182.479,
"stdev": 177.563,
"min": 13.364,
"max": 367.429,
"ci95": 441.126
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 88.451,
"stdev": 87.578,
"min": 1.526,
"max": 176.667,
"ci95": 217.572
},
"memory.mountain.gpu_mb": {
"n": 3,
"mean": 799.667,
"stdev": 18.475,
"min": 789.0,
"max": 821.0,
"ci95": 45.899
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 1491.572,
"stdev": 36.719,
"min": 1459.775,
"max": 1531.76,
"ci95": 91.221
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 0.697,
"stdev": 0.155,
"min": 0.602,
"max": 0.876,
"ci95": 0.386
},
"cpu.mountain.p50_ms": {
"n": 3,
"mean": 0.325,
"stdev": 0.115,
"min": 0.239,
"max": 0.456,
"ci95": 0.286
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 1545.896,
"stdev": 30.591,
"min": 1524.965,
"max": 1581.004,
"ci95": 75.999
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1348.389,
"stdev": 52.5,
"min": 1296.172,
"max": 1401.168,
"ci95": 130.428
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 37594,
"seconds": 12.0,
"avg_fps": 3132.783,
"low_1pct_fps": 471.438,
"low_01pct_fps": 124.796,
"p50_ms": 0.271,
"p95_ms": 0.494,
"p99_ms": 1.127,
"p999_ms": 2.15,
"max_ms": 155.204,
"cpu_p50_ms": 0.168,
"gpu_p50_ms": 0.104,
"histogram": [
37151,
394,
30,
8,
5,
2,
2,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 38598,
"seconds": 12.0,
"avg_fps": 3216.434,
"low_1pct_fps": 300.631,
"low_01pct_fps": 46.124,
"p50_ms": 0.267,
"p95_ms": 0.446,
"p99_ms": 1.034,
"p999_ms": 1.941,
"max_ms": 493.993,
"cpu_p50_ms": 0.162,
"gpu_p50_ms": 0.104,
"histogram": [
38177,
387,
16,
8,
4,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 30318,
"seconds": 12.0,
"avg_fps": 2526.453,
"low_1pct_fps": 333.302,
"low_01pct_fps": 102.199,
"p50_ms": 0.305,
"p95_ms": 0.757,
"p99_ms": 1.69,
"p999_ms": 3.539,
"max_ms": 170.856,
"cpu_p50_ms": 0.224,
"gpu_p50_ms": 0.106,
"histogram": [
29368,
759,
139,
35,
11,
3,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 34578,
"seconds": 12.0,
"avg_fps": 2881.457,
"low_1pct_fps": 549.487,
"low_01pct_fps": 294.05,
"p50_ms": 0.32,
"p95_ms": 0.483,
"p99_ms": 1.213,
"p999_ms": 2.5,
"max_ms": 5.358,
"cpu_p50_ms": 0.197,
"gpu_p50_ms": 0.154,
"histogram": [
34119,
379,
64,
9,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 28489,
"seconds": 12.0,
"avg_fps": 2374.055,
"low_1pct_fps": 208.133,
"low_01pct_fps": 39.777,
"p50_ms": 0.313,
"p95_ms": 0.937,
"p99_ms": 1.863,
"p999_ms": 4.318,
"max_ms": 571.48,
"cpu_p50_ms": 0.211,
"gpu_p50_ms": 0.151,
"histogram": [
27193,
1071,
140,
51,
19,
9,
1,
2,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 20945,
"seconds": 12.0,
"avg_fps": 1745.365,
"low_1pct_fps": 252.226,
"low_01pct_fps": 148.375,
"p50_ms": 0.343,
"p95_ms": 1.505,
"p99_ms": 2.758,
"p999_ms": 5.341,
"max_ms": 11.642,
"cpu_p50_ms": 0.258,
"gpu_p50_ms": 0.162,
"histogram": [
18145,
2293,
337,
106,
38,
13,
6,
5,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 36856,
"seconds": 12.0,
"avg_fps": 3071.415,
"low_1pct_fps": 559.232,
"low_01pct_fps": 274.089,
"p50_ms": 0.286,
"p95_ms": 0.492,
"p99_ms": 1.179,
"p999_ms": 2.711,
"max_ms": 6.718,
"cpu_p50_ms": 0.135,
"gpu_p50_ms": 0.127,
"histogram": [
36366,
405,
60,
13,
10,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 34001,
"seconds": 12.0,
"avg_fps": 2833.377,
"low_1pct_fps": 468.008,
"low_01pct_fps": 242.591,
"p50_ms": 0.295,
"p95_ms": 0.589,
"p99_ms": 1.41,
"p999_ms": 3.048,
"max_ms": 7.7,
"cpu_p50_ms": 0.206,
"gpu_p50_ms": 0.126,
"histogram": [
33314,
544,
106,
23,
10,
2,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 8086,
"seconds": 12.0,
"avg_fps": 673.829,
"low_1pct_fps": 8.977,
"low_01pct_fps": 1.038,
"p50_ms": 0.302,
"p95_ms": 0.665,
"p99_ms": 2.495,
"p999_ms": 15.716,
"max_ms": 4849.364,
"cpu_p50_ms": 0.194,
"gpu_p50_ms": 0.128,
"histogram": [
7808,
166,
50,
26,
8,
2,
3,
5,
2,
5,
1,
2,
2,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
2
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 12141,
"seconds": 12.0,
"avg_fps": 1011.738,
"low_1pct_fps": 166.643,
"low_01pct_fps": 87.16,
"p50_ms": 0.641,
"p95_ms": 2.642,
"p99_ms": 4.468,
"p999_ms": 7.821,
"max_ms": 22.536,
"cpu_p50_ms": 0.456,
"gpu_p50_ms": 0.138,
"histogram": [
7840,
2996,
866,
278,
87,
38,
16,
11,
2,
5,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 30118,
"seconds": 12.0,
"avg_fps": 2509.775,
"low_1pct_fps": 367.429,
"low_01pct_fps": 176.667,
"p50_ms": 0.316,
"p95_ms": 0.771,
"p99_ms": 1.931,
"p999_ms": 4.2,
"max_ms": 14.633,
"cpu_p50_ms": 0.239,
"gpu_p50_ms": 0.127,
"histogram": [
29101,
775,
173,
38,
16,
8,
4,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 8577,
"seconds": 12.0,
"avg_fps": 714.773,
"low_1pct_fps": 13.364,
"low_01pct_fps": 1.526,
"p50_ms": 0.416,
"p95_ms": 2.257,
"p99_ms": 4.36,
"p999_ms": 212.217,
"max_ms": 1051.428,
"cpu_p50_ms": 0.28,
"gpu_p50_ms": 0.132,
"histogram": [
7017,
978,
377,
111,
39,
24,
10,
6,
1,
0,
2,
2,
0,
0,
0,
0,
0,
0,
1,
0,
1,
2,
4,
2
]
}
],
"label": "horizon-desktop"
}
+870
View File
@@ -0,0 +1,870 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T14:47:19Z",
"app": {
"name": "horizon-client",
"version": "nightly-2026-11-04-67dad0d",
"commit": "67dad0d"
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 24,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.57)",
"cpu": "13th Gen Intel(R) Core(TM) i7-13700KF",
"ram_mb": 31904,
"gpu": {
"name": "NVIDIA GeForce RTX 4080",
"vendor": "nvidia",
"driver": "NVIDIA 595.71.05",
"backend": "vulkan",
"kind": "discrete"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 29.665,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 45386.16,
"stdev": 38970.921,
"min": 1077.276,
"max": 74343.156,
"ci95": 96816.948
},
"startup.world_ms": {
"n": 3,
"mean": 86585.608,
"stdev": 71331.593,
"min": 11201.581,
"max": 153020.143,
"ci95": 177211.803
},
"chunks.village.load_ms": {
"n": 3,
"mean": 11082.587,
"stdev": 5351.291,
"min": 7620.454,
"max": 17246.096,
"ci95": 13294.417
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 48440.333,
"stdev": 656.16,
"min": 48060.0,
"max": 49198.0,
"ci95": 1630.124
},
"fps.village.avg_fps": {
"n": 3,
"mean": 853.775,
"stdev": 345.646,
"min": 524.913,
"max": 1214.059,
"ci95": 858.701
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 130.235,
"stdev": 117.39,
"min": 9.024,
"max": 243.388,
"ci95": 291.635
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 70.65,
"stdev": 68.628,
"min": 1.125,
"max": 138.345,
"ci95": 170.496
},
"memory.village.gpu_mb": {
"n": 3,
"mean": 2202.333,
"stdev": 33.307,
"min": 2165.0,
"max": 2229.0,
"ci95": 82.745
},
"memory.village.rss_mb": {
"n": 3,
"mean": 1652.647,
"stdev": 73.452,
"min": 1568.063,
"max": 1700.344,
"ci95": 182.478
},
"tick.village.client_ms": {
"n": 3,
"mean": 0.493,
"stdev": 0.169,
"min": 0.319,
"max": 0.657,
"ci95": 0.42
},
"cpu.village.p50_ms": {
"n": 3,
"mean": 0.692,
"stdev": 0.207,
"min": 0.531,
"max": 0.925,
"ci95": 0.513
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 15019.921,
"stdev": 12855.4,
"min": 5613.942,
"max": 29668.11,
"ci95": 31937.162
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 80224.667,
"stdev": 678.709,
"min": 79626.0,
"max": 80962.0,
"ci95": 1686.142
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 898.208,
"stdev": 446.3,
"min": 382.944,
"max": 1163.61,
"ci95": 1108.759
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 178.513,
"stdev": 107.096,
"min": 54.933,
"max": 244.255,
"ci95": 266.064
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 103.369,
"stdev": 78.403,
"min": 12.974,
"max": 152.87,
"ci95": 194.779
},
"memory.forest.gpu_mb": {
"n": 3,
"mean": 2201.667,
"stdev": 34.429,
"min": 2163.0,
"max": 2229.0,
"ci95": 85.532
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 1809.063,
"stdev": 93.103,
"min": 1707.98,
"max": 1891.305,
"ci95": 231.3
},
"tick.forest.client_ms": {
"n": 3,
"mean": 0.585,
"stdev": 0.147,
"min": 0.493,
"max": 0.754,
"ci95": 0.365
},
"cpu.forest.p50_ms": {
"n": 3,
"mean": 0.989,
"stdev": 0.725,
"min": 0.57,
"max": 1.826,
"ci95": 1.802
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 12399.047,
"stdev": 15052.073,
"min": 3174.115,
"max": 29768.486,
"ci95": 37394.441
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 64737.0,
"stdev": 16149.666,
"min": 46089.0,
"max": 74089.0,
"ci95": 40121.232
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 735.22,
"stdev": 601.75,
"min": 108.108,
"max": 1307.912,
"ci95": 1494.952
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 134.654,
"stdev": 147.391,
"min": 1.252,
"max": 292.881,
"ci95": 366.169
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 62.062,
"stdev": 66.294,
"min": 0.202,
"max": 132.042,
"ci95": 164.697
},
"memory.ocean.gpu_mb": {
"n": 3,
"mean": 1942.333,
"stdev": 251.725,
"min": 1657.0,
"max": 2133.0,
"ci95": 625.369
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 1812.661,
"stdev": 102.065,
"min": 1697.912,
"max": 1893.313,
"ci95": 253.564
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.421,
"stdev": 0.227,
"min": 0.193,
"max": 0.646,
"ci95": 0.563
},
"cpu.ocean.p50_ms": {
"n": 3,
"mean": 0.513,
"stdev": 0.194,
"min": 0.303,
"max": 0.686,
"ci95": 0.483
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 31815.539,
"stdev": 36758.245,
"min": 9582.166,
"max": 74243.988,
"ci95": 91319.913
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 90876.333,
"stdev": 1525.588,
"min": 89793.0,
"max": 92621.0,
"ci95": 3790.075
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 712.657,
"stdev": 252.815,
"min": 450.565,
"max": 955.041,
"ci95": 628.077
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 117.93,
"stdev": 85.922,
"min": 24.389,
"max": 193.34,
"ci95": 213.46
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 72.407,
"stdev": 65.468,
"min": 3.577,
"max": 133.895,
"ci95": 162.646
},
"memory.mountain.gpu_mb": {
"n": 3,
"mean": 2783.667,
"stdev": 48.881,
"min": 2741.0,
"max": 2837.0,
"ci95": 121.436
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 1931.359,
"stdev": 106.681,
"min": 1808.184,
"max": 1994.242,
"ci95": 265.031
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 1.03,
"stdev": 0.685,
"min": 0.564,
"max": 1.817,
"ci95": 1.702
},
"cpu.mountain.p50_ms": {
"n": 3,
"mean": 1.025,
"stdev": 0.315,
"min": 0.765,
"max": 1.376,
"ci95": 0.783
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2051.333,
"stdev": 147.151,
"min": 1884.176,
"max": 2161.316,
"ci95": 365.573
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1810.92,
"stdev": 94.623,
"min": 1707.342,
"max": 1892.828,
"ci95": 235.075
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 6301,
"seconds": 12.004,
"avg_fps": 524.913,
"low_1pct_fps": 9.024,
"low_01pct_fps": 1.125,
"p50_ms": 0.555,
"p95_ms": 2.072,
"p99_ms": 4.067,
"p999_ms": 282.455,
"max_ms": 3525.74,
"cpu_p50_ms": 0.531,
"gpu_p50_ms": 0.218,
"histogram": [
4878,
1060,
217,
86,
19,
15,
6,
2,
5,
0,
1,
2,
0,
0,
0,
0,
0,
0,
0,
2,
0,
4,
3,
1
]
},
{
"phase": "village",
"repeat": 1,
"frames": 9869,
"seconds": 12.001,
"avg_fps": 822.353,
"low_1pct_fps": 138.293,
"low_01pct_fps": 72.479,
"p50_ms": 0.976,
"p95_ms": 2.871,
"p99_ms": 5.065,
"p999_ms": 9.942,
"max_ms": 23.337,
"cpu_p50_ms": 0.925,
"gpu_p50_ms": 0.245,
"histogram": [
5262,
3404,
771,
248,
81,
49,
23,
11,
12,
3,
0,
3,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 14570,
"seconds": 12.001,
"avg_fps": 1214.059,
"low_1pct_fps": 243.388,
"low_01pct_fps": 138.345,
"p50_ms": 0.655,
"p95_ms": 1.486,
"p99_ms": 2.883,
"p999_ms": 5.366,
"max_ms": 26.145,
"cpu_p50_ms": 0.62,
"gpu_p50_ms": 0.239,
"histogram": [
11502,
2683,
257,
77,
25,
23,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 4595,
"seconds": 11.999,
"avg_fps": 382.944,
"low_1pct_fps": 54.933,
"low_01pct_fps": 12.974,
"p50_ms": 2.269,
"p95_ms": 5.193,
"p99_ms": 8.719,
"p999_ms": 21.933,
"max_ms": 243.247,
"cpu_p50_ms": 1.826,
"gpu_p50_ms": 0.502,
"histogram": [
273,
1654,
1395,
836,
172,
122,
52,
38,
26,
10,
7,
5,
0,
2,
1,
0,
0,
0,
1,
0,
1,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 13964,
"seconds": 12.001,
"avg_fps": 1163.61,
"low_1pct_fps": 244.255,
"low_01pct_fps": 152.87,
"p50_ms": 0.682,
"p95_ms": 1.524,
"p99_ms": 2.877,
"p999_ms": 5.801,
"max_ms": 7.977,
"cpu_p50_ms": 0.57,
"gpu_p50_ms": 0.467,
"histogram": [
11067,
2532,
235,
82,
23,
16,
6,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 13777,
"seconds": 12.0,
"avg_fps": 1148.071,
"low_1pct_fps": 236.351,
"low_01pct_fps": 144.264,
"p50_ms": 0.691,
"p95_ms": 1.637,
"p99_ms": 3.131,
"p999_ms": 5.794,
"max_ms": 9.301,
"cpu_p50_ms": 0.57,
"gpu_p50_ms": 0.465,
"histogram": [
10826,
2511,
284,
106,
23,
16,
5,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1224,
"seconds": 11.322,
"avg_fps": 108.108,
"low_1pct_fps": 1.252,
"low_01pct_fps": 0.202,
"p50_ms": 0.439,
"p95_ms": 3.015,
"p99_ms": 7.359,
"p999_ms": 2880.23,
"max_ms": 7005.436,
"cpu_p50_ms": 0.303,
"gpu_p50_ms": 0.258,
"histogram": [
1081,
31,
49,
10,
3,
7,
23,
12,
4,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
2
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 15695,
"seconds": 12.0,
"avg_fps": 1307.912,
"low_1pct_fps": 292.881,
"low_01pct_fps": 132.042,
"p50_ms": 0.624,
"p95_ms": 1.219,
"p99_ms": 2.173,
"p999_ms": 4.841,
"max_ms": 16.764,
"cpu_p50_ms": 0.551,
"gpu_p50_ms": 0.401,
"histogram": [
13558,
1932,
140,
37,
14,
6,
3,
1,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 9476,
"seconds": 12.0,
"avg_fps": 789.641,
"low_1pct_fps": 109.83,
"low_01pct_fps": 53.941,
"p50_ms": 0.802,
"p95_ms": 3.406,
"p99_ms": 5.844,
"p999_ms": 14.977,
"max_ms": 22.481,
"cpu_p50_ms": 0.686,
"gpu_p50_ms": 0.403,
"histogram": [
5819,
2151,
787,
455,
112,
65,
36,
18,
7,
7,
7,
5,
4,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 5352,
"seconds": 11.878,
"avg_fps": 450.565,
"low_1pct_fps": 24.389,
"low_01pct_fps": 3.577,
"p50_ms": 1.431,
"p95_ms": 4.548,
"p99_ms": 7.601,
"p999_ms": 96.086,
"max_ms": 714.027,
"cpu_p50_ms": 1.376,
"gpu_p50_ms": 0.398,
"histogram": [
1412,
2323,
811,
460,
138,
84,
49,
34,
13,
9,
8,
2,
1,
1,
0,
1,
0,
0,
1,
2,
1,
1,
1,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 8789,
"seconds": 12.001,
"avg_fps": 732.365,
"low_1pct_fps": 136.06,
"low_01pct_fps": 79.749,
"p50_ms": 0.972,
"p95_ms": 3.329,
"p99_ms": 5.68,
"p999_ms": 9.7,
"max_ms": 18.289,
"cpu_p50_ms": 0.935,
"gpu_p50_ms": 0.383,
"histogram": [
4529,
3007,
715,
287,
120,
61,
37,
16,
12,
1,
1,
2,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 11461,
"seconds": 12.001,
"avg_fps": 955.041,
"low_1pct_fps": 193.34,
"low_01pct_fps": 133.895,
"p50_ms": 0.787,
"p95_ms": 2.026,
"p99_ms": 3.953,
"p999_ms": 6.511,
"max_ms": 9.761,
"cpu_p50_ms": 0.765,
"gpu_p50_ms": 0.379,
"histogram": [
7754,
3114,
328,
165,
46,
33,
14,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
],
"label": "horizon-desktop"
}
+854
View File
@@ -0,0 +1,854 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T12:44:40Z",
"app": {
"name": "horizon-client",
"version": "nightly-2026-11-04-67dad0d",
"commit": "67dad0d"
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "",
"driver": "",
"backend": "metal",
"kind": "integrated"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": true,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 17.39,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 1516.155,
"stdev": 34.227,
"min": 1476.782,
"max": 1538.813,
"ci95": 85.032
},
"startup.world_ms": {
"n": 3,
"mean": 4080.9,
"stdev": 748.712,
"min": 3273.516,
"max": 4752.301,
"ci95": 1860.054
},
"chunks.village.load_ms": {
"n": 3,
"mean": 3363.749,
"stdev": 224.552,
"min": 3105.622,
"max": 3514.059,
"ci95": 557.864
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 15473.667,
"stdev": 339.602,
"min": 15123.0,
"max": 15801.0,
"ci95": 843.686
},
"fps.village.avg_fps": {
"n": 3,
"mean": 999.753,
"stdev": 41.901,
"min": 970.527,
"max": 1047.758,
"ci95": 104.095
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 336.821,
"stdev": 17.834,
"min": 318.068,
"max": 353.566,
"ci95": 44.306
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 263.782,
"stdev": 31.556,
"min": 227.767,
"max": 286.582,
"ci95": 78.395
},
"memory.village.rss_mb": {
"n": 3,
"mean": 1147.654,
"stdev": 31.82,
"min": 1116.875,
"max": 1180.422,
"ci95": 79.052
},
"tick.village.client_ms": {
"n": 3,
"mean": 0.414,
"stdev": 0.036,
"min": 0.373,
"max": 0.44,
"ci95": 0.089
},
"cpu.village.p50_ms": {
"n": 3,
"mean": 0.52,
"stdev": 0.071,
"min": 0.44,
"max": 0.577,
"ci95": 0.177
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 3685.368,
"stdev": 844.43,
"min": 2932.117,
"max": 4598.204,
"ci95": 2097.85
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 16795.333,
"stdev": 437.802,
"min": 16325.0,
"max": 17191.0,
"ci95": 1087.648
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 592.615,
"stdev": 20.339,
"min": 580.401,
"max": 616.094,
"ci95": 50.529
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 250.069,
"stdev": 31.227,
"min": 217.065,
"max": 279.149,
"ci95": 77.58
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 151.684,
"stdev": 77.064,
"min": 64.033,
"max": 208.811,
"ci95": 191.454
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 1064.344,
"stdev": 148.185,
"min": 901.203,
"max": 1190.609,
"ci95": 368.142
},
"tick.forest.client_ms": {
"n": 3,
"mean": 0.424,
"stdev": 0.003,
"min": 0.422,
"max": 0.427,
"ci95": 0.007
},
"cpu.forest.p50_ms": {
"n": 3,
"mean": 0.617,
"stdev": 0.016,
"min": 0.599,
"max": 0.629,
"ci95": 0.039
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 3594.311,
"stdev": 1381.026,
"min": 2011.153,
"max": 4551.541,
"ci95": 3430.936
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 14527.0,
"stdev": 319.629,
"min": 14166.0,
"max": 14774.0,
"ci95": 794.068
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 789.003,
"stdev": 25.076,
"min": 766.83,
"max": 816.216,
"ci95": 62.297
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 276.887,
"stdev": 51.785,
"min": 217.373,
"max": 311.665,
"ci95": 128.651
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 169.278,
"stdev": 29.119,
"min": 137.156,
"max": 193.944,
"ci95": 72.341
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 982.995,
"stdev": 287.819,
"min": 651.109,
"max": 1164.063,
"ci95": 715.039
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.397,
"stdev": 0.028,
"min": 0.38,
"max": 0.429,
"ci95": 0.069
},
"cpu.ocean.p50_ms": {
"n": 3,
"mean": 0.569,
"stdev": 0.045,
"min": 0.533,
"max": 0.62,
"ci95": 0.112
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 5682.993,
"stdev": 1272.063,
"min": 4476.873,
"max": 7012.069,
"ci95": 3160.234
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 15640.0,
"stdev": 204.105,
"min": 15507.0,
"max": 15875.0,
"ci95": 507.067
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 716.475,
"stdev": 8.139,
"min": 707.613,
"max": 723.617,
"ci95": 20.221
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 313.736,
"stdev": 3.759,
"min": 311.007,
"max": 318.023,
"ci95": 9.338
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 270.042,
"stdev": 19.572,
"min": 247.802,
"max": 284.642,
"ci95": 48.624
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 997.474,
"stdev": 231.733,
"min": 790.266,
"max": 1247.703,
"ci95": 575.704
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 0.385,
"stdev": 0.023,
"min": 0.359,
"max": 0.401,
"ci95": 0.057
},
"cpu.mountain.p50_ms": {
"n": 3,
"mean": 0.609,
"stdev": 0.044,
"min": 0.56,
"max": 0.645,
"ci95": 0.109
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 1213.255,
"stdev": 81.897,
"min": 1136.078,
"max": 1299.172,
"ci95": 203.461
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1034.279,
"stdev": 188.802,
"min": 816.453,
"max": 1150.961,
"ci95": 469.049
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 2167.747,
"stdev": 14.039,
"min": 2153.721,
"max": 2181.799,
"ci95": 34.878
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 1889.468,
"stdev": 24.444,
"min": 1862.799,
"max": 1910.807,
"ci95": 60.727
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 12573,
"seconds": 12.0,
"avg_fps": 1047.758,
"low_1pct_fps": 353.566,
"low_01pct_fps": 286.582,
"p50_ms": 0.921,
"p95_ms": 1.077,
"p99_ms": 2.675,
"p999_ms": 2.946,
"max_ms": 5.36,
"cpu_p50_ms": 0.44,
"gpu_p50_ms": 0.914,
"histogram": [
11056,
1291,
218,
6,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 11646,
"seconds": 12.0,
"avg_fps": 970.527,
"low_1pct_fps": 318.068,
"low_01pct_fps": 227.767,
"p50_ms": 0.973,
"p95_ms": 1.264,
"p99_ms": 2.805,
"p999_ms": 3.808,
"max_ms": 5.305,
"cpu_p50_ms": 0.577,
"gpu_p50_ms": 0.969,
"histogram": [
7035,
4334,
230,
39,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 11771,
"seconds": 11.999,
"avg_fps": 980.973,
"low_1pct_fps": 338.828,
"low_01pct_fps": 276.996,
"p50_ms": 0.985,
"p95_ms": 1.157,
"p99_ms": 2.779,
"p999_ms": 3.068,
"max_ms": 4.308,
"cpu_p50_ms": 0.542,
"gpu_p50_ms": 0.98,
"histogram": [
6880,
4663,
208,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 7394,
"seconds": 12.001,
"avg_fps": 616.094,
"low_1pct_fps": 253.993,
"low_01pct_fps": 182.207,
"p50_ms": 1.565,
"p95_ms": 1.915,
"p99_ms": 3.329,
"p999_ms": 4.661,
"max_ms": 7.32,
"cpu_p50_ms": 0.599,
"gpu_p50_ms": 1.551,
"histogram": [
82,
6988,
144,
162,
14,
2,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 6965,
"seconds": 12.0,
"avg_fps": 580.401,
"low_1pct_fps": 217.065,
"low_01pct_fps": 64.033,
"p50_ms": 1.654,
"p95_ms": 1.983,
"p99_ms": 3.233,
"p999_ms": 3.893,
"max_ms": 81.863,
"cpu_p50_ms": 0.629,
"gpu_p50_ms": 1.645,
"histogram": [
11,
6622,
153,
174,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 6977,
"seconds": 12.001,
"avg_fps": 581.35,
"low_1pct_fps": 279.149,
"low_01pct_fps": 208.811,
"p50_ms": 1.659,
"p95_ms": 2.006,
"p99_ms": 3.273,
"p999_ms": 3.982,
"max_ms": 5.889,
"cpu_p50_ms": 0.623,
"gpu_p50_ms": 1.653,
"histogram": [
17,
6606,
164,
186,
1,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 9793,
"seconds": 11.998,
"avg_fps": 816.216,
"low_1pct_fps": 301.624,
"low_01pct_fps": 176.734,
"p50_ms": 1.171,
"p95_ms": 1.499,
"p99_ms": 2.928,
"p999_ms": 3.333,
"max_ms": 23.472,
"cpu_p50_ms": 0.533,
"gpu_p50_ms": 1.163,
"histogram": [
259,
9293,
182,
56,
2,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 9202,
"seconds": 12.0,
"avg_fps": 766.83,
"low_1pct_fps": 217.373,
"low_01pct_fps": 137.156,
"p50_ms": 1.226,
"p95_ms": 1.912,
"p99_ms": 3.396,
"p999_ms": 6.003,
"max_ms": 13.562,
"cpu_p50_ms": 0.62,
"gpu_p50_ms": 1.219,
"histogram": [
635,
8130,
261,
124,
27,
15,
7,
2,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 9408,
"seconds": 12.001,
"avg_fps": 783.964,
"low_1pct_fps": 311.665,
"low_01pct_fps": 193.944,
"p50_ms": 1.22,
"p95_ms": 1.541,
"p99_ms": 2.865,
"p999_ms": 3.298,
"max_ms": 13.861,
"cpu_p50_ms": 0.555,
"gpu_p50_ms": 1.214,
"histogram": [
100,
9066,
204,
34,
2,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 8618,
"seconds": 12.0,
"avg_fps": 718.194,
"low_1pct_fps": 312.177,
"low_01pct_fps": 277.681,
"p50_ms": 1.338,
"p95_ms": 1.664,
"p99_ms": 3.068,
"p999_ms": 3.364,
"max_ms": 4.008,
"cpu_p50_ms": 0.622,
"gpu_p50_ms": 1.329,
"histogram": [
62,
8301,
130,
125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 8492,
"seconds": 12.001,
"avg_fps": 707.613,
"low_1pct_fps": 311.007,
"low_01pct_fps": 284.642,
"p50_ms": 1.35,
"p95_ms": 1.707,
"p99_ms": 3.08,
"p999_ms": 3.329,
"max_ms": 3.796,
"cpu_p50_ms": 0.645,
"gpu_p50_ms": 1.342,
"histogram": [
32,
8216,
111,
133,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 8684,
"seconds": 12.001,
"avg_fps": 723.617,
"low_1pct_fps": 318.023,
"low_01pct_fps": 247.802,
"p50_ms": 1.318,
"p95_ms": 1.699,
"p99_ms": 2.875,
"p999_ms": 3.573,
"max_ms": 5.186,
"cpu_p50_ms": 0.56,
"gpu_p50_ms": 1.306,
"histogram": [
46,
8389,
199,
49,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
],
"label": "horizon-macmini"
}
+854
View File
@@ -0,0 +1,854 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T13:17:26Z",
"app": {
"name": "horizon-client",
"version": "nightly-2026-11-04-67dad0d",
"commit": "67dad0d"
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "",
"driver": "",
"backend": "metal",
"kind": "integrated"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": true,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 17.712,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 1528.444,
"stdev": 181.21,
"min": 1319.58,
"max": 1643.783,
"ci95": 450.188
},
"startup.world_ms": {
"n": 3,
"mean": 12368.716,
"stdev": 6475.37,
"min": 7168.429,
"max": 19621.62,
"ci95": 16087.01
},
"chunks.village.load_ms": {
"n": 3,
"mean": 6926.208,
"stdev": 3712.691,
"min": 4208.555,
"max": 11156.419,
"ci95": 9223.581
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 46790.333,
"stdev": 1381.89,
"min": 45236.0,
"max": 47880.0,
"ci95": 3433.082
},
"fps.village.avg_fps": {
"n": 3,
"mean": 453.505,
"stdev": 14.384,
"min": 441.517,
"max": 469.455,
"ci95": 35.735
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 222.897,
"stdev": 10.449,
"min": 212.173,
"max": 233.048,
"ci95": 25.96
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 173.55,
"stdev": 31.798,
"min": 142.967,
"max": 206.437,
"ci95": 78.996
},
"memory.village.rss_mb": {
"n": 3,
"mean": 1544.565,
"stdev": 26.422,
"min": 1516.75,
"max": 1569.328,
"ci95": 65.64
},
"tick.village.client_ms": {
"n": 3,
"mean": 0.528,
"stdev": 0.018,
"min": 0.511,
"max": 0.548,
"ci95": 0.045
},
"cpu.village.p50_ms": {
"n": 3,
"mean": 1.496,
"stdev": 0.049,
"min": 1.453,
"max": 1.549,
"ci95": 0.121
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 8297.116,
"stdev": 689.909,
"min": 7716.447,
"max": 9059.776,
"ci95": 1713.966
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 78617.667,
"stdev": 494.532,
"min": 78228.0,
"max": 79174.0,
"ci95": 1228.586
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 216.265,
"stdev": 6.372,
"min": 209.501,
"max": 222.156,
"ci95": 15.831
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 137.027,
"stdev": 3.787,
"min": 133.07,
"max": 140.617,
"ci95": 9.408
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 114.683,
"stdev": 7.985,
"min": 106.585,
"max": 122.551,
"ci95": 19.839
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 1420.638,
"stdev": 247.812,
"min": 1266.047,
"max": 1706.469,
"ci95": 615.649
},
"tick.forest.client_ms": {
"n": 3,
"mean": 0.423,
"stdev": 0.059,
"min": 0.355,
"max": 0.458,
"ci95": 0.148
},
"cpu.forest.p50_ms": {
"n": 3,
"mean": 1.605,
"stdev": 0.269,
"min": 1.295,
"max": 1.779,
"ci95": 0.668
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 8354.659,
"stdev": 2877.749,
"min": 5454.947,
"max": 11209.93,
"ci95": 7149.301
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 74315.667,
"stdev": 63.106,
"min": 74246.0,
"max": 74369.0,
"ci95": 156.776
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 274.828,
"stdev": 4.993,
"min": 270.041,
"max": 280.004,
"ci95": 12.404
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 165.765,
"stdev": 7.21,
"min": 157.538,
"max": 170.985,
"ci95": 17.912
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 140.185,
"stdev": 9.74,
"min": 129.976,
"max": 149.377,
"ci95": 24.198
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 1306.578,
"stdev": 97.011,
"min": 1199.094,
"max": 1387.641,
"ci95": 241.007
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.416,
"stdev": 0.029,
"min": 0.392,
"max": 0.448,
"ci95": 0.071
},
"cpu.ocean.p50_ms": {
"n": 3,
"mean": 1.636,
"stdev": 0.121,
"min": 1.496,
"max": 1.708,
"ci95": 0.301
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 17124.873,
"stdev": 3461.08,
"min": 13599.217,
"max": 20517.544,
"ci95": 8598.494
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 91909.0,
"stdev": 815.603,
"min": 91157.0,
"max": 92776.0,
"ci95": 2026.235
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 242.657,
"stdev": 3.405,
"min": 240.66,
"max": 246.588,
"ci95": 8.459
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 110.95,
"stdev": 14.622,
"min": 99.907,
"max": 127.532,
"ci95": 36.325
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 51.329,
"stdev": 28.253,
"min": 30.391,
"max": 83.465,
"ci95": 70.191
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 1451.688,
"stdev": 127.471,
"min": 1310.969,
"max": 1559.43,
"ci95": 316.681
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 0.614,
"stdev": 0.017,
"min": 0.594,
"max": 0.627,
"ci95": 0.043
},
"cpu.mountain.p50_ms": {
"n": 3,
"mean": 2.233,
"stdev": 0.05,
"min": 2.194,
"max": 2.289,
"ci95": 0.124
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 1697.984,
"stdev": 29.735,
"min": 1667.406,
"max": 1726.797,
"ci95": 73.871
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1428.19,
"stdev": 120.658,
"min": 1333.0,
"max": 1563.891,
"ci95": 299.756
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 4921.753,
"stdev": 30.436,
"min": 4890.971,
"max": 4951.831,
"ci95": 75.613
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 4079.43,
"stdev": 10.978,
"min": 4068.049,
"max": 4089.956,
"ci95": 27.273
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 5634,
"seconds": 12.001,
"avg_fps": 469.455,
"low_1pct_fps": 223.469,
"low_01pct_fps": 171.246,
"p50_ms": 2.054,
"p95_ms": 2.492,
"p99_ms": 3.993,
"p999_ms": 5.425,
"max_ms": 6.645,
"cpu_p50_ms": 1.453,
"gpu_p50_ms": 1.965,
"histogram": [
0,
2082,
3324,
193,
24,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 5395,
"seconds": 12.001,
"avg_fps": 449.543,
"low_1pct_fps": 233.048,
"low_01pct_fps": 206.437,
"p50_ms": 2.155,
"p95_ms": 2.611,
"p99_ms": 4.068,
"p999_ms": 4.456,
"max_ms": 5.305,
"cpu_p50_ms": 1.549,
"gpu_p50_ms": 2.043,
"histogram": [
0,
902,
4255,
206,
29,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 5298,
"seconds": 12.0,
"avg_fps": 441.517,
"low_1pct_fps": 212.173,
"low_01pct_fps": 142.967,
"p50_ms": 2.171,
"p95_ms": 3.249,
"p99_ms": 4.138,
"p999_ms": 5.591,
"max_ms": 9.676,
"cpu_p50_ms": 1.485,
"gpu_p50_ms": 2.092,
"histogram": [
0,
709,
4314,
229,
36,
6,
2,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 2606,
"seconds": 12.002,
"avg_fps": 217.137,
"low_1pct_fps": 140.617,
"low_01pct_fps": 106.585,
"p50_ms": 4.471,
"p95_ms": 5.926,
"p99_ms": 6.575,
"p999_ms": 7.735,
"max_ms": 12.187,
"cpu_p50_ms": 1.74,
"gpu_p50_ms": 4.238,
"histogram": [
0,
0,
0,
221,
2094,
172,
110,
8,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 2514,
"seconds": 12.0,
"avg_fps": 209.501,
"low_1pct_fps": 137.393,
"low_01pct_fps": 122.551,
"p50_ms": 4.627,
"p95_ms": 6.304,
"p99_ms": 6.93,
"p999_ms": 7.971,
"max_ms": 8.506,
"cpu_p50_ms": 1.779,
"gpu_p50_ms": 4.409,
"histogram": [
0,
0,
2,
35,
2097,
200,
162,
17,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 2667,
"seconds": 12.005,
"avg_fps": 222.156,
"low_1pct_fps": 133.07,
"low_01pct_fps": 114.913,
"p50_ms": 4.37,
"p95_ms": 5.756,
"p99_ms": 6.742,
"p999_ms": 8.444,
"max_ms": 8.984,
"cpu_p50_ms": 1.295,
"gpu_p50_ms": 4.152,
"histogram": [
0,
0,
0,
440,
1978,
144,
85,
16,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 3294,
"seconds": 12.003,
"avg_fps": 274.44,
"low_1pct_fps": 157.538,
"low_01pct_fps": 129.976,
"p50_ms": 3.521,
"p95_ms": 4.814,
"p99_ms": 5.592,
"p999_ms": 7.491,
"max_ms": 7.868,
"cpu_p50_ms": 1.703,
"gpu_p50_ms": 3.277,
"histogram": [
0,
4,
55,
2967,
130,
122,
10,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 3241,
"seconds": 12.002,
"avg_fps": 270.041,
"low_1pct_fps": 168.771,
"low_01pct_fps": 141.201,
"p50_ms": 3.578,
"p95_ms": 4.942,
"p99_ms": 5.631,
"p999_ms": 6.498,
"max_ms": 7.601,
"cpu_p50_ms": 1.708,
"gpu_p50_ms": 3.323,
"histogram": [
0,
2,
8,
2970,
110,
144,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 3360,
"seconds": 12.0,
"avg_fps": 280.004,
"low_1pct_fps": 170.985,
"low_01pct_fps": 149.377,
"p50_ms": 3.477,
"p95_ms": 4.678,
"p99_ms": 5.462,
"p999_ms": 6.626,
"max_ms": 6.788,
"cpu_p50_ms": 1.496,
"gpu_p50_ms": 3.23,
"histogram": [
0,
1,
5,
3125,
129,
90,
10,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 2888,
"seconds": 12.0,
"avg_fps": 240.66,
"low_1pct_fps": 127.532,
"low_01pct_fps": 83.465,
"p50_ms": 3.984,
"p95_ms": 5.171,
"p99_ms": 6.823,
"p999_ms": 9.168,
"max_ms": 15.341,
"cpu_p50_ms": 2.194,
"gpu_p50_ms": 3.786,
"histogram": [
0,
0,
4,
2048,
638,
144,
33,
16,
3,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 2889,
"seconds": 12.001,
"avg_fps": 240.722,
"low_1pct_fps": 99.907,
"low_01pct_fps": 40.132,
"p50_ms": 3.961,
"p95_ms": 5.706,
"p99_ms": 7.364,
"p999_ms": 12.597,
"max_ms": 49.156,
"cpu_p50_ms": 2.289,
"gpu_p50_ms": 3.802,
"histogram": [
0,
5,
126,
1859,
599,
194,
72,
22,
8,
1,
2,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 2959,
"seconds": 12.0,
"avg_fps": 246.588,
"low_1pct_fps": 105.411,
"low_01pct_fps": 30.391,
"p50_ms": 3.851,
"p95_ms": 5.353,
"p99_ms": 6.248,
"p999_ms": 9.05,
"max_ms": 54.378,
"cpu_p50_ms": 2.216,
"gpu_p50_ms": 3.667,
"histogram": [
0,
2,
58,
2196,
462,
196,
32,
10,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0
]
}
],
"label": "horizon-macmini"
}
+42
View File
@@ -0,0 +1,42 @@
# Horizon Nightly 2026-11-04 vs vanilla 26.3 on the Mac mini and the desktop (2026-11-04)
> **The Mac mini reports (`*-macmini-rd*.json`) are offscreen, not comparable.** Horizon rendered offscreen (no presenting)
> while vanilla drew into a window, so the Mac rows below are not a Horizon-vs-vanilla comparison, and the website does not
> publish them: it keeps the Mac mini's 2026-10-22 runs. They are kept here only as a record of that day's offscreen run.
The desktop runs are the ones behind playhorizon.dev/benchmarks as of 2026-11-04 (horizon-rust/horizon-site#58): `tools/perf_bench.py`
reports, render distance 12 and 32, three games each, every game from a fresh world (seed 1234), 1280x720, VSync off. Files:
`{horizon,vanilla}-macmini-rd{12,32}.json` and `{horizon,vanilla}-desktop-rd{12,32}.json` next to this page.
## Builds
- **Horizon:** the Nightly 2026-11-04 release bundle (67dad0d), as the launcher installs it: macOS arm64 on the Mac,
Linux x86_64 on the desktop. Its resources come from the bundle's own `horizon-prepare`. perf_bench ran from main
a55b9a2e52 and wrote that checkout's crate version and commit; `app.version` and `app.commit` were set to the bundle's by hand.
- **Vanilla:** the 26.3 client jar with Fabric Loader and the driver mod, Java 25, the official launcher's JVM flags.
## Machines and conditions
- **Mac mini, Apple M4 Pro (14 cores, 20-core GPU), macOS: offscreen, not comparable.** The session was locked, so Horizon ran `--offscreen`: a locked
session gives a window no frames, and windowed Horizon measured 0 FPS. Vanilla drew into its window. Offscreen skips
presenting, which favours Horizon, so its averages aren't held at the 144 Hz display as they were on 2026-10-22. Each game
started at a 1-minute load of 17-18 (the run waited for < 20); during the runs the load rose to 30-50.
- **Desktop, RTX 4080 + i7-13700KF, NixOS, NVIDIA 595.** Both games drew into a headless sway rendering on the RTX 4080 (never
on its screen), both through Wayland on Vulkan. Vanilla went through SDL's Wayland driver: through Xwayland each of its
frames took about 2 s on this day. The machine also runs CI and agents' builds: each game started at a load of 28-30 on
24 threads (the run waited for < 30) and the load rose to 40-70 during the runs. Vanilla at RD 32 crashed twice under that
load (`GPU timeout attempting to acquire next frame`) before a third series finished. Start-up times are inflated by the
load and by a cold disk on each series' first start (start → world up to 130-235 s).
- **Order:** RD 12 ran Horizon then vanilla; RD 32 ran vanilla then Horizon.
## Results (average over the flights of the three games; FPS average / 1% low)
| Machine | RD | Horizon | Vanilla | Horizon ÷ vanilla (avg, 1% low) |
|---|---|---|---|---|
| Mac mini (**offscreen, not comparable**) | 12 | 774 / 294 | 132 / 27 | — |
| Mac mini (**offscreen, not comparable**) | 32 | 297 / 159 | 68 / 16 | — |
| Desktop | 12 | 2,224 / 308 | 1,824 / 201 | 1.2x, 1.5x |
| Desktop | 32 | 800 / 140 | 696 / 64 | 1.15x, 2.2x |
Neither machine was idle, so these say how both games behave on busy machines. They are not clean ratios; for those, see
`windows-9800x3d-5080-2026-10-29.md`. The scripts and logs are in horizon-parity `shots/site-bench-2026-11-04/`.
+787
View File
@@ -0,0 +1,787 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T13:28:55Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 24,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.57)",
"cpu": "13th Gen Intel(R) Core(TM) i7-13700KF",
"ram_mb": 31904,
"gpu": {
"name": "NVIDIA GeForce RTX 4080",
"vendor": "NVIDIA",
"driver": "1.4.329 NVIDIA 595.71.05",
"backend": "vulkan",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 28.788,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 121075.467,
"stdev": 30646.429,
"min": 93272.034,
"max": 153935.834,
"ci95": 76136.094
},
"startup.world_ms": {
"n": 3,
"mean": 191063.8,
"stdev": 34368.16,
"min": 153895.533,
"max": 221692.034,
"ci95": 85382.134
},
"chunks.village.load_ms": {
"n": 3,
"mean": 18724.322,
"stdev": 9639.048,
"min": 13107.549,
"max": 29854.376,
"ci95": 23946.655
},
"fps.village.avg_fps": {
"n": 3,
"mean": 2161.532,
"stdev": 287.109,
"min": 1830.069,
"max": 2332.81,
"ci95": 713.276
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 162.575,
"stdev": 29.799,
"min": 136.023,
"max": 194.804,
"ci95": 74.03
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 27.752,
"stdev": 3.186,
"min": 24.403,
"max": 30.746,
"ci95": 7.916
},
"memory.village.gpu_mb": {
"n": 3,
"mean": 13.0,
"stdev": 0.0,
"min": 13.0,
"max": 13.0,
"ci95": 0.0
},
"memory.village.rss_mb": {
"n": 3,
"mean": 2902.054,
"stdev": 158.708,
"min": 2747.244,
"max": 3064.393,
"ci95": 394.285
},
"tick.village.client_ms": {
"n": 3,
"mean": 0.691,
"stdev": 0.097,
"min": 0.601,
"max": 0.794,
"ci95": 0.241
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 8852.332,
"stdev": 530.809,
"min": 8350.811,
"max": 9408.241,
"ci95": 1318.709
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 1841.581,
"stdev": 1186.781,
"min": 471.209,
"max": 2529.847,
"ci95": 2948.365
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 255.087,
"stdev": 217.128,
"min": 5.798,
"max": 402.877,
"ci95": 539.419
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 92.882,
"stdev": 81.722,
"min": 0.61,
"max": 156.13,
"ci95": 203.024
},
"memory.forest.gpu_mb": {
"n": 3,
"mean": 13.0,
"stdev": 0.0,
"min": 13.0,
"max": 13.0,
"ci95": 0.0
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 3008.178,
"stdev": 149.07,
"min": 2875.082,
"max": 3169.256,
"ci95": 370.34
},
"tick.forest.client_ms": {
"n": 3,
"mean": 0.687,
"stdev": 0.132,
"min": 0.562,
"max": 0.825,
"ci95": 0.327
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 21215.745,
"stdev": 22821.547,
"min": 8034.077,
"max": 47567.797,
"ci95": 56696.441
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 1525.483,
"stdev": 1472.651,
"min": 633.984,
"max": 3225.275,
"ci95": 3658.563
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 191.398,
"stdev": 272.942,
"min": 10.346,
"max": 505.335,
"ci95": 678.08
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 49.506,
"stdev": 66.145,
"min": 1.104,
"max": 124.874,
"ci95": 164.326
},
"memory.ocean.gpu_mb": {
"n": 3,
"mean": 13.0,
"stdev": 0.0,
"min": 13.0,
"max": 13.0,
"ci95": 0.0
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 3062.136,
"stdev": 128.594,
"min": 2962.541,
"max": 3207.313,
"ci95": 319.472
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 1.029,
"stdev": 0.573,
"min": 0.595,
"max": 1.678,
"ci95": 1.423
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 33255.15,
"stdev": 20451.99,
"min": 16655.144,
"max": 56102.104,
"ci95": 50809.661
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 1769.12,
"stdev": 996.863,
"min": 818.512,
"max": 2806.557,
"ci95": 2476.544
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 195.916,
"stdev": 195.285,
"min": 11.586,
"max": 400.567,
"ci95": 485.154
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 52.202,
"stdev": 51.208,
"min": 1.461,
"max": 103.864,
"ci95": 127.217
},
"memory.mountain.gpu_mb": {
"n": 3,
"mean": 13.0,
"stdev": 0.0,
"min": 13.0,
"max": 13.0,
"ci95": 0.0
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 2957.948,
"stdev": 340.935,
"min": 2586.504,
"max": 3256.625,
"ci95": 846.998
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 1.436,
"stdev": 1.406,
"min": 0.462,
"max": 3.048,
"ci95": 3.494
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 3107.953,
"stdev": 141.888,
"min": 3020.105,
"max": 3271.645,
"ci95": 352.498
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 2985.317,
"stdev": 210.327,
"min": 2761.164,
"max": 3178.35,
"ci95": 522.523
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 21963,
"seconds": 12.001,
"avg_fps": 1830.069,
"low_1pct_fps": 136.023,
"low_01pct_fps": 30.746,
"p50_ms": 0.331,
"p95_ms": 1.153,
"p99_ms": 3.001,
"p999_ms": 9.997,
"max_ms": 326.36,
"histogram": [
20336,
1238,
167,
108,
40,
23,
12,
10,
8,
7,
5,
1,
2,
1,
2,
0,
1,
1,
0,
0,
0,
1,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 27994,
"seconds": 12.0,
"avg_fps": 2332.81,
"low_1pct_fps": 194.804,
"low_01pct_fps": 28.107,
"p50_ms": 0.321,
"p95_ms": 0.771,
"p99_ms": 1.356,
"p999_ms": 3.836,
"max_ms": 331.931,
"histogram": [
27270,
652,
34,
13,
5,
2,
3,
4,
3,
2,
0,
1,
0,
0,
0,
0,
1,
0,
1,
1,
0,
2,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 27861,
"seconds": 12.0,
"avg_fps": 2321.717,
"low_1pct_fps": 156.898,
"low_01pct_fps": 24.403,
"p50_ms": 0.281,
"p95_ms": 0.852,
"p99_ms": 1.73,
"p999_ms": 6.331,
"max_ms": 301.991,
"histogram": [
26932,
726,
124,
42,
4,
4,
3,
2,
9,
2,
3,
1,
1,
1,
0,
1,
1,
0,
2,
0,
2,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 30359,
"seconds": 12.0,
"avg_fps": 2529.847,
"low_1pct_fps": 356.586,
"low_01pct_fps": 121.906,
"p50_ms": 0.353,
"p95_ms": 0.563,
"p99_ms": 1.405,
"p999_ms": 4.444,
"max_ms": 20.302,
"histogram": [
29756,
460,
57,
52,
11,
5,
3,
5,
2,
4,
1,
0,
2,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 5781,
"seconds": 12.268,
"avg_fps": 471.209,
"low_1pct_fps": 5.798,
"low_01pct_fps": 0.61,
"p50_ms": 0.359,
"p95_ms": 0.77,
"p99_ms": 1.78,
"p999_ms": 20.826,
"max_ms": 5834.37,
"histogram": [
5586,
158,
12,
11,
0,
1,
3,
2,
0,
0,
2,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
3
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 30285,
"seconds": 12.0,
"avg_fps": 2523.687,
"low_1pct_fps": 402.877,
"low_01pct_fps": 156.13,
"p50_ms": 0.351,
"p95_ms": 0.539,
"p99_ms": 1.574,
"p999_ms": 3.683,
"max_ms": 16.022,
"histogram": [
29666,
490,
74,
35,
7,
2,
2,
1,
1,
5,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 11685,
"seconds": 16.293,
"avg_fps": 717.19,
"low_1pct_fps": 10.346,
"low_01pct_fps": 1.104,
"p50_ms": 0.299,
"p95_ms": 1.119,
"p99_ms": 2.568,
"p999_ms": 12.054,
"max_ms": 5250.537,
"histogram": [
10993,
502,
102,
39,
14,
8,
6,
4,
4,
1,
1,
2,
0,
2,
0,
0,
0,
0,
1,
0,
0,
2,
0,
4
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 38704,
"seconds": 12.0,
"avg_fps": 3225.275,
"low_1pct_fps": 505.335,
"low_01pct_fps": 124.874,
"p50_ms": 0.283,
"p95_ms": 0.36,
"p99_ms": 0.909,
"p999_ms": 2.015,
"max_ms": 132.801,
"histogram": [
38385,
279,
25,
3,
2,
0,
1,
0,
2,
4,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 7609,
"seconds": 12.002,
"avg_fps": 633.984,
"low_1pct_fps": 58.513,
"low_01pct_fps": 22.539,
"p50_ms": 1.141,
"p95_ms": 4.438,
"p99_ms": 9.113,
"p999_ms": 27.496,
"max_ms": 64.424,
"histogram": [
3452,
2398,
956,
368,
143,
96,
61,
46,
20,
29,
6,
10,
6,
7,
7,
0,
1,
3,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 10168,
"seconds": 12.423,
"avg_fps": 818.512,
"low_1pct_fps": 11.586,
"low_01pct_fps": 1.461,
"p50_ms": 0.267,
"p95_ms": 0.892,
"p99_ms": 3.176,
"p999_ms": 198.757,
"max_ms": 1882.64,
"histogram": [
9733,
205,
121,
49,
12,
9,
8,
2,
2,
0,
1,
2,
1,
3,
0,
3,
2,
0,
0,
2,
4,
5,
1,
3
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 33679,
"seconds": 12.0,
"avg_fps": 2806.557,
"low_1pct_fps": 400.567,
"low_01pct_fps": 103.864,
"p50_ms": 0.324,
"p95_ms": 0.411,
"p99_ms": 1.167,
"p999_ms": 3.508,
"max_ms": 83.572,
"histogram": [
33272,
315,
46,
22,
2,
1,
4,
2,
9,
1,
2,
2,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 20188,
"seconds": 12.0,
"avg_fps": 1682.292,
"low_1pct_fps": 175.594,
"low_01pct_fps": 51.28,
"p50_ms": 0.374,
"p95_ms": 1.37,
"p99_ms": 2.821,
"p999_ms": 8.947,
"max_ms": 53.494,
"histogram": [
18109,
1592,
314,
83,
36,
19,
7,
6,
6,
1,
3,
1,
4,
2,
3,
0,
1,
1,
0,
0,
0,
0,
0,
0
]
}
],
"label": "vanilla-desktop"
}
+787
View File
@@ -0,0 +1,787 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T15:46:25Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 24,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.57)",
"cpu": "13th Gen Intel(R) Core(TM) i7-13700KF",
"ram_mb": 31904,
"gpu": {
"name": "NVIDIA GeForce RTX 4080",
"vendor": "NVIDIA",
"driver": "1.4.329 NVIDIA 595.71.05",
"backend": "vulkan",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 28.799,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 112742.179,
"stdev": 27885.804,
"min": 81110.692,
"max": 133773.748,
"ci95": 69277.769
},
"startup.world_ms": {
"n": 3,
"mean": 235049.179,
"stdev": 31461.958,
"min": 203486.748,
"max": 266409.692,
"ci95": 78162.144
},
"chunks.village.load_ms": {
"n": 3,
"mean": 79828.05,
"stdev": 109107.365,
"min": 16685.972,
"max": 205814.266,
"ci95": 271059.597
},
"fps.village.avg_fps": {
"n": 3,
"mean": 525.667,
"stdev": 390.505,
"min": 101.073,
"max": 869.433,
"ci95": 970.146
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 44.209,
"stdev": 39.491,
"min": 1.644,
"max": 79.658,
"ci95": 98.109
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 10.635,
"stdev": 9.759,
"min": 0.686,
"max": 20.192,
"ci95": 24.244
},
"memory.village.gpu_mb": {
"n": 3,
"mean": 34.333,
"stdev": 36.95,
"min": 13.0,
"max": 77.0,
"ci95": 91.797
},
"memory.village.rss_mb": {
"n": 3,
"mean": 3296.229,
"stdev": 296.464,
"min": 2956.234,
"max": 3500.773,
"ci95": 736.517
},
"tick.village.client_ms": {
"n": 3,
"mean": 1.23,
"stdev": 0.449,
"min": 0.897,
"max": 1.74,
"ci95": 1.114
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 61172.527,
"stdev": 17434.762,
"min": 46779.931,
"max": 80559.429,
"ci95": 43313.846
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 599.408,
"stdev": 492.96,
"min": 64.173,
"max": 1034.813,
"ci95": 1224.68
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 61.923,
"stdev": 56.534,
"min": 0.737,
"max": 112.221,
"ci95": 140.449
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 15.771,
"stdev": 14.11,
"min": 0.098,
"max": 27.463,
"ci95": 35.054
},
"memory.forest.gpu_mb": {
"n": 3,
"mean": 34.333,
"stdev": 36.95,
"min": 13.0,
"max": 77.0,
"ci95": 91.797
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 3278.964,
"stdev": 301.465,
"min": 2947.268,
"max": 3536.27,
"ci95": 748.941
},
"tick.forest.client_ms": {
"n": 3,
"mean": 5.908,
"stdev": 8.813,
"min": 0.693,
"max": 16.084,
"ci95": 21.895
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 61762.098,
"stdev": 3569.17,
"min": 57919.097,
"max": 64972.973,
"ci95": 8867.026
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 1175.044,
"stdev": 131.94,
"min": 1093.801,
"max": 1327.281,
"ci95": 327.785
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 119.758,
"stdev": 68.419,
"min": 77.252,
"max": 198.683,
"ci95": 169.976
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 24.224,
"stdev": 18.982,
"min": 12.308,
"max": 46.114,
"ci95": 47.159
},
"memory.ocean.gpu_mb": {
"n": 3,
"mean": 34.333,
"stdev": 36.95,
"min": 13.0,
"max": 77.0,
"ci95": 91.797
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 3275.349,
"stdev": 317.864,
"min": 2924.113,
"max": 3543.23,
"ci95": 789.681
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.654,
"stdev": 0.066,
"min": 0.579,
"max": 0.699,
"ci95": 0.163
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 113439.529,
"stdev": 64746.162,
"min": 55046.887,
"max": 183068.386,
"ci95": 160851.363
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 485.832,
"stdev": 317.254,
"min": 121.312,
"max": 699.617,
"ci95": 788.165
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 28.612,
"stdev": 23.334,
"min": 2.229,
"max": 46.542,
"ci95": 57.97
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 4.56,
"stdev": 3.408,
"min": 0.75,
"max": 7.318,
"ci95": 8.467
},
"memory.mountain.gpu_mb": {
"n": 3,
"mean": 34.333,
"stdev": 36.95,
"min": 13.0,
"max": 77.0,
"ci95": 91.797
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 3248.708,
"stdev": 480.962,
"min": 2700.645,
"max": 3600.484,
"ci95": 1194.873
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 1.832,
"stdev": 2.076,
"min": 0.618,
"max": 4.229,
"ci95": 5.157
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 3371.958,
"stdev": 280.347,
"min": 3059.926,
"max": 3602.613,
"ci95": 696.476
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 3291.249,
"stdev": 316.441,
"min": 2935.975,
"max": 3542.848,
"ci95": 786.147
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1248,
"seconds": 12.348,
"avg_fps": 101.073,
"low_1pct_fps": 1.644,
"low_01pct_fps": 0.686,
"p50_ms": 1.225,
"p95_ms": 11.161,
"p99_ms": 226.597,
"p999_ms": 1457.605,
"max_ms": 1457.874,
"histogram": [
548,
232,
97,
118,
51,
49,
24,
39,
16,
17,
13,
6,
3,
2,
5,
3,
2,
2,
4,
2,
3,
8,
1,
3
]
},
{
"phase": "village",
"repeat": 1,
"frames": 10435,
"seconds": 12.002,
"avg_fps": 869.433,
"low_1pct_fps": 79.658,
"low_01pct_fps": 20.192,
"p50_ms": 0.813,
"p95_ms": 2.537,
"p99_ms": 5.685,
"p999_ms": 13.292,
"max_ms": 351.251,
"histogram": [
7598,
2071,
393,
171,
55,
53,
22,
24,
20,
10,
9,
2,
2,
1,
3,
0,
0,
0,
0,
0,
0,
1,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 7278,
"seconds": 12.0,
"avg_fps": 606.495,
"low_1pct_fps": 51.326,
"low_01pct_fps": 11.026,
"p50_ms": 1.105,
"p95_ms": 3.854,
"p99_ms": 7.067,
"p999_ms": 24.484,
"max_ms": 443.95,
"histogram": [
3206,
2621,
800,
360,
112,
71,
34,
26,
12,
13,
3,
5,
2,
7,
2,
1,
1,
0,
1,
0,
0,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 975,
"seconds": 15.193,
"avg_fps": 64.173,
"low_1pct_fps": 0.737,
"low_01pct_fps": 0.098,
"p50_ms": 0.864,
"p95_ms": 5.083,
"p99_ms": 77.689,
"p999_ms": 10225.237,
"max_ms": 10225.237,
"histogram": [
680,
99,
104,
12,
30,
13,
8,
4,
2,
3,
2,
1,
1,
3,
0,
1,
0,
1,
2,
3,
1,
2,
1,
2
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 8391,
"seconds": 12.0,
"avg_fps": 699.237,
"low_1pct_fps": 72.811,
"low_01pct_fps": 19.752,
"p50_ms": 1.087,
"p95_ms": 2.927,
"p99_ms": 5.909,
"p999_ms": 15.268,
"max_ms": 252.557,
"histogram": [
3342,
3998,
656,
231,
56,
26,
15,
19,
12,
12,
11,
6,
1,
3,
1,
0,
0,
1,
0,
0,
0,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 12418,
"seconds": 12.0,
"avg_fps": 1034.813,
"low_1pct_fps": 112.221,
"low_01pct_fps": 27.463,
"p50_ms": 0.837,
"p95_ms": 1.394,
"p99_ms": 3.491,
"p999_ms": 13.217,
"max_ms": 245.59,
"histogram": [
11155,
1004,
100,
64,
29,
16,
16,
10,
2,
6,
5,
3,
4,
2,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 13126,
"seconds": 12.0,
"avg_fps": 1093.801,
"low_1pct_fps": 77.252,
"low_01pct_fps": 12.308,
"p50_ms": 0.714,
"p95_ms": 1.402,
"p99_ms": 2.875,
"p999_ms": 12.067,
"max_ms": 238.158,
"histogram": [
11605,
1207,
191,
54,
17,
11,
7,
12,
4,
4,
2,
3,
2,
1,
0,
0,
0,
0,
1,
2,
3,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 15928,
"seconds": 12.0,
"avg_fps": 1327.281,
"low_1pct_fps": 198.683,
"low_01pct_fps": 46.114,
"p50_ms": 0.67,
"p95_ms": 1.172,
"p99_ms": 2.111,
"p999_ms": 7.067,
"max_ms": 193.743,
"histogram": [
14891,
856,
102,
42,
7,
6,
8,
6,
0,
5,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 13249,
"seconds": 12.0,
"avg_fps": 1104.051,
"low_1pct_fps": 83.338,
"low_01pct_fps": 14.249,
"p50_ms": 0.711,
"p95_ms": 1.403,
"p99_ms": 3.046,
"p999_ms": 10.625,
"max_ms": 451.869,
"histogram": [
11824,
1165,
124,
58,
13,
16,
11,
14,
7,
7,
3,
2,
1,
0,
0,
0,
1,
0,
0,
1,
1,
1,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 1469,
"seconds": 12.109,
"avg_fps": 121.312,
"low_1pct_fps": 2.229,
"low_01pct_fps": 0.75,
"p50_ms": 2.12,
"p95_ms": 13.173,
"p99_ms": 125.189,
"p999_ms": 727.045,
"max_ms": 1939.723,
"histogram": [
196,
440,
438,
136,
50,
36,
24,
25,
22,
17,
17,
13,
6,
11,
8,
4,
1,
4,
4,
4,
3,
7,
2,
1
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 8396,
"seconds": 12.001,
"avg_fps": 699.617,
"low_1pct_fps": 46.542,
"low_01pct_fps": 7.318,
"p50_ms": 1.022,
"p95_ms": 2.433,
"p99_ms": 5.528,
"p999_ms": 13.993,
"max_ms": 305.464,
"histogram": [
3248,
4509,
361,
113,
52,
37,
21,
26,
14,
4,
3,
2,
0,
0,
0,
0,
0,
0,
1,
1,
2,
2,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 7639,
"seconds": 12.0,
"avg_fps": 636.566,
"low_1pct_fps": 37.064,
"low_01pct_fps": 5.612,
"p50_ms": 1.023,
"p95_ms": 3.0,
"p99_ms": 7.11,
"p999_ms": 17.521,
"max_ms": 268.877,
"histogram": [
3051,
3794,
413,
158,
66,
43,
35,
21,
31,
12,
3,
4,
1,
1,
0,
0,
0,
0,
0,
0,
4,
2,
0,
0
]
}
],
"label": "vanilla-desktop"
}
+771
View File
@@ -0,0 +1,771 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T12:54:29Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "Apple",
"driver": "4.1 Metal - 91.7",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 17.628,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 12652.182,
"stdev": 3231.342,
"min": 9526.004,
"max": 15979.309,
"ci95": 8027.746
},
"startup.world_ms": {
"n": 3,
"mean": 31329.516,
"stdev": 10016.129,
"min": 20777.004,
"max": 40705.309,
"ci95": 24883.451
},
"chunks.village.load_ms": {
"n": 3,
"mean": 12623.084,
"stdev": 4958.724,
"min": 7251.986,
"max": 17026.894,
"ci95": 12319.147
},
"fps.village.avg_fps": {
"n": 3,
"mean": 92.729,
"stdev": 58.527,
"min": 28.713,
"max": 143.496,
"ci95": 145.402
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 16.52,
"stdev": 10.949,
"min": 4.001,
"max": 24.308,
"ci95": 27.2
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 11.515,
"stdev": 7.155,
"min": 3.549,
"max": 17.394,
"ci95": 17.774
},
"memory.village.rss_mb": {
"n": 3,
"mean": 1834.469,
"stdev": 329.198,
"min": 1455.688,
"max": 2051.516,
"ci95": 817.839
},
"tick.village.client_ms": {
"n": 3,
"mean": 1.903,
"stdev": 1.114,
"min": 1.131,
"max": 3.18,
"ci95": 2.767
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 14590.694,
"stdev": 3260.615,
"min": 10942.613,
"max": 17221.108,
"ci95": 8100.47
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 106.817,
"stdev": 104.558,
"min": 43.857,
"max": 227.513,
"ci95": 259.759
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 23.0,
"stdev": 26.394,
"min": 7.338,
"max": 53.473,
"ci95": 65.57
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 14.841,
"stdev": 15.773,
"min": 5.157,
"max": 33.042,
"ci95": 39.186
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 1814.245,
"stdev": 154.974,
"min": 1635.453,
"max": 1910.125,
"ci95": 385.007
},
"tick.forest.client_ms": {
"n": 3,
"mean": 1.452,
"stdev": 0.542,
"min": 0.826,
"max": 1.777,
"ci95": 1.346
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 13309.049,
"stdev": 8088.157,
"min": 6394.403,
"max": 22203.194,
"ci95": 20093.716
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 164.405,
"stdev": 141.4,
"min": 62.162,
"max": 325.77,
"ci95": 351.285
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 36.242,
"stdev": 37.051,
"min": 14.736,
"max": 79.024,
"ci95": 92.047
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 20.898,
"stdev": 17.899,
"min": 8.855,
"max": 41.466,
"ci95": 44.468
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 1724.453,
"stdev": 347.692,
"min": 1323.5,
"max": 1942.734,
"ci95": 863.784
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 0.866,
"stdev": 0.248,
"min": 0.58,
"max": 1.03,
"ci95": 0.617
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 17989.43,
"stdev": 3969.295,
"min": 13444.423,
"max": 20774.261,
"ci95": 9861.07
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 162.084,
"stdev": 160.057,
"min": 68.44,
"max": 346.896,
"ci95": 397.635
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 33.74,
"stdev": 36.146,
"min": 11.158,
"max": 75.429,
"ci95": 89.798
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 17.194,
"stdev": 14.232,
"min": 7.903,
"max": 33.579,
"ci95": 35.357
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 1977.602,
"stdev": 108.627,
"min": 1872.516,
"max": 2089.453,
"ci95": 269.866
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 0.772,
"stdev": 0.332,
"min": 0.463,
"max": 1.123,
"ci95": 0.825
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2135.313,
"stdev": 54.617,
"min": 2072.344,
"max": 2169.828,
"ci95": 135.686
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1836.44,
"stdev": 223.694,
"min": 1578.141,
"max": 1965.781,
"ci95": 555.732
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 3253.456,
"stdev": 68.323,
"min": 3178.409,
"max": 3312.05,
"ci95": 169.737
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 3144.363,
"stdev": 69.868,
"min": 3069.394,
"max": 3207.66,
"ci95": 173.576
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1272,
"seconds": 12.002,
"avg_fps": 105.979,
"low_1pct_fps": 21.25,
"low_01pct_fps": 17.394,
"p50_ms": 7.527,
"p95_ms": 22.34,
"p99_ms": 40.461,
"p999_ms": 54.28,
"max_ms": 60.7,
"histogram": [
0,
0,
0,
56,
161,
170,
180,
167,
184,
118,
71,
61,
26,
25,
28,
12,
10,
3,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 1723,
"seconds": 12.007,
"avg_fps": 143.496,
"low_1pct_fps": 24.308,
"low_01pct_fps": 13.602,
"p50_ms": 5.317,
"p95_ms": 16.181,
"p99_ms": 29.771,
"p999_ms": 56.832,
"max_ms": 90.209,
"histogram": [
0,
0,
63,
413,
271,
273,
185,
148,
112,
89,
47,
43,
28,
22,
18,
4,
5,
1,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 346,
"seconds": 12.05,
"avg_fps": 28.713,
"low_1pct_fps": 4.001,
"low_01pct_fps": 3.549,
"p50_ms": 23.684,
"p95_ms": 110.057,
"p99_ms": 225.236,
"p999_ms": 281.776,
"max_ms": 281.776,
"histogram": [
0,
0,
0,
4,
8,
6,
6,
12,
21,
20,
23,
25,
24,
32,
50,
28,
24,
27,
17,
11,
6,
2,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 589,
"seconds": 12.001,
"avg_fps": 49.081,
"low_1pct_fps": 8.19,
"low_01pct_fps": 6.325,
"p50_ms": 15.443,
"p95_ms": 53.004,
"p99_ms": 94.69,
"p999_ms": 158.114,
"max_ms": 158.114,
"histogram": [
0,
0,
0,
2,
7,
20,
30,
46,
53,
48,
56,
62,
61,
66,
63,
18,
22,
20,
10,
4,
1,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 2731,
"seconds": 12.004,
"avg_fps": 227.513,
"low_1pct_fps": 53.473,
"low_01pct_fps": 33.042,
"p50_ms": 3.801,
"p95_ms": 7.955,
"p99_ms": 14.177,
"p999_ms": 24.479,
"max_ms": 38.218,
"histogram": [
0,
0,
526,
1157,
432,
257,
151,
88,
46,
32,
13,
15,
6,
6,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 527,
"seconds": 12.016,
"avg_fps": 43.857,
"low_1pct_fps": 7.338,
"low_01pct_fps": 5.157,
"p50_ms": 16.784,
"p95_ms": 57.353,
"p99_ms": 111.984,
"p999_ms": 193.905,
"max_ms": 193.905,
"histogram": [
0,
0,
0,
1,
2,
9,
16,
29,
40,
61,
50,
54,
52,
62,
57,
35,
28,
11,
13,
5,
2,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 746,
"seconds": 12.001,
"avg_fps": 62.162,
"low_1pct_fps": 14.965,
"low_01pct_fps": 12.372,
"p50_ms": 13.76,
"p95_ms": 35.144,
"p99_ms": 57.63,
"p999_ms": 80.827,
"max_ms": 80.827,
"histogram": [
0,
0,
2,
13,
12,
41,
37,
53,
67,
82,
80,
99,
82,
76,
58,
17,
11,
12,
4,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 3910,
"seconds": 12.002,
"avg_fps": 325.77,
"low_1pct_fps": 79.024,
"low_01pct_fps": 41.466,
"p50_ms": 2.685,
"p95_ms": 5.125,
"p99_ms": 8.342,
"p999_ms": 20.782,
"max_ms": 30.571,
"histogram": [
0,
78,
2526,
892,
203,
95,
49,
27,
13,
11,
7,
3,
2,
3,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 1268,
"seconds": 12.044,
"avg_fps": 105.282,
"low_1pct_fps": 14.736,
"low_01pct_fps": 8.855,
"p50_ms": 6.542,
"p95_ms": 25.245,
"p99_ms": 50.465,
"p999_ms": 79.065,
"max_ms": 146.809,
"histogram": [
0,
0,
4,
171,
190,
169,
167,
133,
105,
93,
53,
43,
35,
41,
26,
13,
11,
10,
3,
1,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 822,
"seconds": 12.011,
"avg_fps": 68.44,
"low_1pct_fps": 14.632,
"low_01pct_fps": 10.101,
"p50_ms": 11.396,
"p95_ms": 35.387,
"p99_ms": 55.24,
"p999_ms": 99.005,
"max_ms": 99.005,
"histogram": [
0,
0,
0,
10,
42,
62,
55,
86,
89,
97,
64,
73,
74,
72,
48,
21,
17,
8,
4,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 4165,
"seconds": 12.006,
"avg_fps": 346.896,
"low_1pct_fps": 75.429,
"low_01pct_fps": 33.579,
"p50_ms": 2.541,
"p95_ms": 4.838,
"p99_ms": 7.998,
"p999_ms": 20.209,
"max_ms": 53.577,
"histogram": [
0,
640,
2307,
855,
178,
93,
34,
22,
15,
3,
3,
8,
2,
2,
2,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 851,
"seconds": 12.0,
"avg_fps": 70.916,
"low_1pct_fps": 11.158,
"low_01pct_fps": 7.903,
"p50_ms": 10.128,
"p95_ms": 36.498,
"p99_ms": 68.434,
"p999_ms": 126.541,
"max_ms": 126.541,
"histogram": [
0,
0,
0,
38,
61,
87,
76,
69,
84,
100,
63,
53,
68,
53,
48,
15,
9,
16,
9,
2,
0,
0,
0,
0
]
}
],
"label": "vanilla-macmini"
}
+771
View File
@@ -0,0 +1,771 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-11-04T13:08:37Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "Apple",
"driver": "4.1 Metal - 91.7",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 18.159,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 8607.88,
"stdev": 949.596,
"min": 8010.323,
"max": 9702.854,
"ci95": 2359.119
},
"startup.world_ms": {
"n": 3,
"mean": 44182.88,
"stdev": 4031.933,
"min": 40172.323,
"max": 48235.854,
"ci95": 10016.685
},
"chunks.village.load_ms": {
"n": 3,
"mean": 17227.171,
"stdev": 5351.234,
"min": 13892.279,
"max": 23399.566,
"ci95": 13294.274
},
"fps.village.avg_fps": {
"n": 3,
"mean": 76.237,
"stdev": 45.661,
"min": 28.922,
"max": 120.041,
"ci95": 113.437
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 17.319,
"stdev": 12.99,
"min": 5.593,
"max": 31.283,
"ci95": 32.272
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 12.642,
"stdev": 9.463,
"min": 4.308,
"max": 22.93,
"ci95": 23.51
},
"memory.village.rss_mb": {
"n": 3,
"mean": 2674.987,
"stdev": 30.71,
"min": 2641.352,
"max": 2701.531,
"ci95": 76.294
},
"tick.village.client_ms": {
"n": 3,
"mean": 1.341,
"stdev": 0.407,
"min": 0.924,
"max": 1.737,
"ci95": 1.012
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 34112.389,
"stdev": 19305.487,
"min": 22633.094,
"max": 56401.09,
"ci95": 47961.36
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 72.848,
"stdev": 51.859,
"min": 18.307,
"max": 121.528,
"ci95": 128.837
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 22.096,
"stdev": 20.299,
"min": 3.973,
"max": 44.03,
"ci95": 50.429
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 16.093,
"stdev": 14.608,
"min": 3.688,
"max": 32.194,
"ci95": 36.291
},
"memory.forest.rss_mb": {
"n": 3,
"mean": 2519.729,
"stdev": 82.097,
"min": 2426.297,
"max": 2580.328,
"ci95": 203.957
},
"tick.forest.client_ms": {
"n": 3,
"mean": 1.115,
"stdev": 0.411,
"min": 0.726,
"max": 1.545,
"ci95": 1.02
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 19066.516,
"stdev": 9372.33,
"min": 13163.781,
"max": 29873.383,
"ci95": 23284.039
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 69.735,
"stdev": 46.656,
"min": 16.524,
"max": 103.635,
"ci95": 115.909
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 17.636,
"stdev": 13.616,
"min": 3.179,
"max": 30.217,
"ci95": 33.827
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 12.115,
"stdev": 10.798,
"min": 2.584,
"max": 23.842,
"ci95": 26.825
},
"memory.ocean.rss_mb": {
"n": 3,
"mean": 2557.143,
"stdev": 84.375,
"min": 2463.781,
"max": 2627.945,
"ci95": 209.616
},
"tick.ocean.client_ms": {
"n": 3,
"mean": 1.056,
"stdev": 0.233,
"min": 0.815,
"max": 1.281,
"ci95": 0.58
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 62214.712,
"stdev": 4884.13,
"min": 58937.045,
"max": 67828.14,
"ci95": 12133.83
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 51.809,
"stdev": 7.118,
"min": 45.235,
"max": 59.369,
"ci95": 17.685
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 6.336,
"stdev": 1.097,
"min": 5.545,
"max": 7.588,
"ci95": 2.725
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 3.458,
"stdev": 0.756,
"min": 2.827,
"max": 4.296,
"ci95": 1.878
},
"memory.mountain.rss_mb": {
"n": 3,
"mean": 2604.227,
"stdev": 15.043,
"min": 2588.234,
"max": 2618.094,
"ci95": 37.371
},
"tick.mountain.client_ms": {
"n": 3,
"mean": 0.957,
"stdev": 0.03,
"min": 0.926,
"max": 0.985,
"ci95": 0.074
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2731.016,
"stdev": 56.767,
"min": 2688.516,
"max": 2795.484,
"ci95": 141.03
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 2577.339,
"stdev": 77.295,
"min": 2488.203,
"max": 2625.875,
"ci95": 192.028
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 4612.571,
"stdev": 20.245,
"min": 4595.363,
"max": 4634.879,
"ci95": 50.296
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 4271.925,
"stdev": 26.308,
"min": 4246.207,
"max": 4298.785,
"ci95": 65.357
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 349,
"seconds": 12.067,
"avg_fps": 28.922,
"low_1pct_fps": 5.593,
"low_01pct_fps": 4.308,
"p50_ms": 24.684,
"p95_ms": 92.764,
"p99_ms": 150.338,
"p999_ms": 232.136,
"max_ms": 232.136,
"histogram": [
0,
0,
0,
0,
0,
0,
2,
3,
13,
17,
26,
31,
40,
46,
50,
32,
25,
20,
30,
10,
4,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 1441,
"seconds": 12.004,
"avg_fps": 120.041,
"low_1pct_fps": 31.283,
"low_01pct_fps": 22.93,
"p50_ms": 7.267,
"p95_ms": 13.622,
"p99_ms": 23.449,
"p999_ms": 42.564,
"max_ms": 44.657,
"histogram": [
0,
0,
0,
0,
0,
64,
543,
397,
218,
100,
54,
24,
20,
7,
7,
5,
2,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 958,
"seconds": 12.013,
"avg_fps": 79.749,
"low_1pct_fps": 15.082,
"low_01pct_fps": 10.689,
"p50_ms": 9.138,
"p95_ms": 28.848,
"p99_ms": 52.247,
"p999_ms": 93.55,
"max_ms": 93.55,
"histogram": [
0,
0,
0,
0,
0,
19,
144,
232,
148,
111,
64,
56,
59,
57,
32,
17,
9,
6,
4,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 220,
"seconds": 12.017,
"avg_fps": 18.307,
"low_1pct_fps": 3.973,
"low_01pct_fps": 3.688,
"p50_ms": 40.635,
"p95_ms": 157.363,
"p99_ms": 235.253,
"p999_ms": 271.153,
"max_ms": 271.153,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
1,
3,
6,
14,
17,
25,
25,
17,
27,
33,
24,
16,
11,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 1459,
"seconds": 12.005,
"avg_fps": 121.528,
"low_1pct_fps": 44.03,
"low_01pct_fps": 32.194,
"p50_ms": 7.381,
"p95_ms": 12.386,
"p99_ms": 18.354,
"p999_ms": 29.428,
"max_ms": 32.695,
"histogram": [
0,
0,
0,
0,
0,
0,
357,
642,
300,
80,
28,
28,
14,
7,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 945,
"seconds": 12.006,
"avg_fps": 78.709,
"low_1pct_fps": 18.284,
"low_01pct_fps": 12.397,
"p50_ms": 9.554,
"p95_ms": 27.657,
"p99_ms": 43.253,
"p999_ms": 80.663,
"max_ms": 80.663,
"histogram": [
0,
0,
0,
0,
0,
0,
18,
304,
191,
119,
67,
59,
53,
70,
34,
15,
10,
3,
2,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 201,
"seconds": 12.164,
"avg_fps": 16.524,
"low_1pct_fps": 3.179,
"low_01pct_fps": 2.584,
"p50_ms": 44.933,
"p95_ms": 155.019,
"p99_ms": 263.919,
"p999_ms": 387.044,
"max_ms": 387.044,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
1,
2,
4,
7,
20,
8,
29,
18,
25,
29,
29,
17,
8,
4,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 1244,
"seconds": 12.004,
"avg_fps": 103.635,
"low_1pct_fps": 30.217,
"low_01pct_fps": 23.842,
"p50_ms": 8.349,
"p95_ms": 17.445,
"p99_ms": 28.276,
"p999_ms": 38.037,
"max_ms": 45.85,
"histogram": [
0,
0,
0,
0,
0,
0,
162,
453,
312,
129,
71,
47,
32,
18,
16,
3,
1,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 1069,
"seconds": 12.005,
"avg_fps": 89.047,
"low_1pct_fps": 19.512,
"low_01pct_fps": 9.92,
"p50_ms": 9.541,
"p95_ms": 20.819,
"p99_ms": 31.409,
"p999_ms": 99.668,
"max_ms": 101.942,
"histogram": [
0,
0,
0,
0,
0,
0,
64,
266,
283,
160,
112,
74,
51,
33,
17,
4,
1,
2,
1,
1,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 551,
"seconds": 12.181,
"avg_fps": 45.235,
"low_1pct_fps": 5.545,
"low_01pct_fps": 3.252,
"p50_ms": 14.921,
"p95_ms": 50.78,
"p99_ms": 105.154,
"p999_ms": 307.476,
"max_ms": 307.476,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
42,
137,
72,
58,
50,
47,
57,
39,
20,
15,
8,
3,
2,
1,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 718,
"seconds": 12.094,
"avg_fps": 59.369,
"low_1pct_fps": 7.588,
"low_01pct_fps": 4.296,
"p50_ms": 12.178,
"p95_ms": 38.273,
"p99_ms": 65.694,
"p999_ms": 232.789,
"max_ms": 232.789,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
140,
202,
115,
72,
48,
47,
43,
19,
19,
6,
4,
0,
3,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 610,
"seconds": 12.003,
"avg_fps": 50.822,
"low_1pct_fps": 5.875,
"low_01pct_fps": 2.827,
"p50_ms": 13.894,
"p95_ms": 44.208,
"p99_ms": 75.023,
"p999_ms": 353.686,
"max_ms": 353.686,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
67,
115,
125,
88,
55,
54,
43,
25,
13,
15,
7,
0,
1,
2,
0,
0
]
}
],
"label": "vanilla-macmini"
}
+8
View File
@@ -6,6 +6,14 @@ license.workspace = true
rust-version = "1.86"
description = "cargo horizon-mod new/build/run/check: make Horizon content mods (docs/mods.md)"
# `cargo binstall --git https://github.com/horizon-rust/horizon cargo-horizon-mod` (#2120) reads this: the archive
# `cargo-horizon-mod`'s workflow attaches to the `cargo-horizon-mod-v<version>` release for the runner's target,
# holding the binary at its root. tools/horizon_mod_binstall.py expands it for the workflow's targets.
[package.metadata.binstall]
pkg-url = "https://github.com/horizon-rust/horizon/releases/download/cargo-horizon-mod-v{ version }/{ name }-{ target }.tar.gz"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[dependencies]
horizon-mods = { path = "../horizon-mods", default-features = false, features = ["index"] }
serde_json = "1.0.151"
+1 -1
View File
@@ -93,7 +93,7 @@ pub fn kind_of(path: &Path) -> Option<Kind> {
"hmod" => Some(Kind::Mod),
"hnmod" => Some(Kind::NativeMod),
"hpack" => Some(Kind::Modpack),
"zip" => Some(Kind::ResourcePack),
"zip" => Some(horizon_mods::index::zip_kind(path)),
"hshader" => Some(Kind::Shader),
_ => None,
}
+28 -7
View File
@@ -489,15 +489,36 @@ pub fn parse_duration(text: &str) -> Option<i64> {
(count > 0).then(|| count.checked_mul(unit)).flatten()
}
/// `millis` for players, rounded up: minutes up to an hour, hours up to two days, then days.
pub fn duration_text(millis: i64) -> String {
let up = |unit: i64| (millis + unit - 1) / unit;
let (count, unit) = if millis <= 60 * MINUTE {
(up(MINUTE), "minute")
/// The unit used when presenting a moderation duration to a player.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DurationUnit {
Minute,
Hour,
Day,
}
/// A duration's rounded count and unit, shared by logs and translated replies.
pub fn duration_parts(millis: i64) -> (i64, DurationUnit) {
let (unit, kind) = if millis <= 60 * MINUTE {
(MINUTE, DurationUnit::Minute)
} else if millis <= 48 * 60 * MINUTE {
(up(60 * MINUTE), "hour")
(60 * MINUTE, DurationUnit::Hour)
} else {
(up(24 * 60 * MINUTE), "day")
(24 * 60 * MINUTE, DurationUnit::Day)
};
(
millis.div_euclid(unit) + i64::from(millis.rem_euclid(unit) > 0),
kind,
)
}
/// `millis` for logs, rounded up: minutes up to an hour, hours up to two days, then days.
pub fn duration_text(millis: i64) -> String {
let (count, unit) = duration_parts(millis);
let unit = match unit {
DurationUnit::Minute => "minute",
DurationUnit::Hour => "hour",
DurationUnit::Day => "day",
};
format!("{count} {unit}{}", if count == 1 { "" } else { "s" })
}
+16
View File
@@ -327,3 +327,19 @@ fn an_allow_line_without_letters_allows_nothing() {
assert!(f.matches("nigger"), "{line}");
}
}
#[test]
fn duration_parts_preserve_rounding_without_overflow() {
for (millis, expected) in [
(1, (1, DurationUnit::Minute)),
(60_000, (1, DurationUnit::Minute)),
(61_000, (2, DurationUnit::Minute)),
(3_600_000, (60, DurationUnit::Minute)),
(3_600_001, (2, DurationUnit::Hour)),
(172_800_000, (48, DurationUnit::Hour)),
(172_800_001, (3, DurationUnit::Day)),
(i64::MAX, (106_751_991_168, DurationUnit::Day)),
] {
assert_eq!(duration_parts(millis), expected);
}
}
@@ -143,7 +143,9 @@ impl<'a> Fields<'a> {
/// `RandomizableContainer.tryLoadLootTable` / `trySaveLootTable`; true when the
/// block entity has a loot table (and so saves no items).
fn loot_table(&mut self) -> bool {
let Some(table) = text(self.input.get("LootTable")) else {
let Some(table) =
text(self.input.get("LootTable")).and_then(|id| crate::identifier::normalize_id(&id))
else {
return false;
};
self.put("LootTable", string(&table));
@@ -905,6 +907,16 @@ mod tests {
assert_eq!(out.get("LootTable"), Some(&string("minecraft:chests/x")));
}
#[test]
fn invalid_loot_table_leaves_items_intact() {
let out = canon(
"{id:\"minecraft:barrel\",x:1,y:2,z:3,LootTable:\"INVALID TABLE\",\
Items:[{Slot:0b,id:\"minecraft:stone\",count:1}]}",
);
assert!(out.get("Items").is_some());
assert!(out.get("LootTable").is_none());
}
#[test]
fn items_are_validated_and_sorted_by_slot() {
let out = canon(
+5 -3
View File
@@ -207,9 +207,11 @@ fn style_flag(v: Option<&Value>) -> Option<bool> {
}
}
fn untrusted_http_url(url: &str) -> bool {
// ExtraCodecs.UNTRUSTED_URI / Util.parseAndValidateUntrustedUri: http and
// https only, scheme case-insensitive.
/// ExtraCodecs.UNTRUSTED_URI / Util.parseAndValidateUntrustedUri: http and
/// https only, scheme case-insensitive. Every `open_url` a server sends must
/// pass it: anything else (`file:`, a UNC path, a custom protocol handler)
/// could start a program through the system's URL handler.
pub fn untrusted_http_url(url: &str) -> bool {
url.split_once(':').is_some_and(|(scheme, _)| {
scheme.eq_ignore_ascii_case("http") || scheme.eq_ignore_ascii_case("https")
})
+408 -3
View File
@@ -100,6 +100,222 @@ impl ResourceSource for Bundled {
"assets/horizon/lang/ur_pk.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ur_pk.json")
}
"assets/horizon/lang/fa_ir.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fa_ir.json")
}
"assets/horizon/lang/he_il.json" => {
include_str!("../../horizon-client/assets/horizon/lang/he_il.json")
}
"assets/horizon/lang/hu_hu.json" => {
include_str!("../../horizon-client/assets/horizon/lang/hu_hu.json")
}
"assets/horizon/lang/ro_ro.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ro_ro.json")
}
"assets/horizon/lang/da_dk.json" => {
include_str!("../../horizon-client/assets/horizon/lang/da_dk.json")
}
"assets/horizon/lang/fi_fi.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fi_fi.json")
}
"assets/horizon/lang/no_no.json" => {
include_str!("../../horizon-client/assets/horizon/lang/no_no.json")
}
"assets/horizon/lang/bg_bg.json" => {
include_str!("../../horizon-client/assets/horizon/lang/bg_bg.json")
}
"assets/horizon/lang/sk_sk.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sk_sk.json")
}
"assets/horizon/lang/lt_lt.json" => {
include_str!("../../horizon-client/assets/horizon/lang/lt_lt.json")
}
"assets/horizon/lang/it_it.json" => {
include_str!("../../horizon-client/assets/horizon/lang/it_it.json")
}
"assets/horizon/lang/nl_nl.json" => {
include_str!("../../horizon-client/assets/horizon/lang/nl_nl.json")
}
"assets/horizon/lang/vi_vn.json" => {
include_str!("../../horizon-client/assets/horizon/lang/vi_vn.json")
}
"assets/horizon/lang/th_th.json" => {
include_str!("../../horizon-client/assets/horizon/lang/th_th.json")
}
"assets/horizon/lang/ja_jp.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ja_jp.json")
}
"assets/horizon/lang/ar_sa.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ar_sa.json")
}
"assets/horizon/lang/pt_br.json" => {
include_str!("../../horizon-client/assets/horizon/lang/pt_br.json")
}
"assets/horizon/lang/cs_cz.json" => {
include_str!("../../horizon-client/assets/horizon/lang/cs_cz.json")
}
"assets/horizon/lang/sv_se.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sv_se.json")
}
"assets/horizon/lang/el_gr.json" => {
include_str!("../../horizon-client/assets/horizon/lang/el_gr.json")
}
"assets/horizon/lang/ca_es.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ca_es.json")
}
"assets/horizon/lang/et_ee.json" => {
include_str!("../../horizon-client/assets/horizon/lang/et_ee.json")
}
"assets/horizon/lang/lv_lv.json" => {
include_str!("../../horizon-client/assets/horizon/lang/lv_lv.json")
}
"assets/horizon/lang/sl_si.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sl_si.json")
}
"assets/horizon/lang/sr_cs.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sr_cs.json")
}
"assets/horizon/lang/is_is.json" => {
include_str!("../../horizon-client/assets/horizon/lang/is_is.json")
}
"assets/horizon/lang/af_za.json" => {
include_str!("../../horizon-client/assets/horizon/lang/af_za.json")
}
"assets/horizon/lang/ms_my.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ms_my.json")
}
"assets/horizon/lang/be_by.json" => {
include_str!("../../horizon-client/assets/horizon/lang/be_by.json")
}
"assets/horizon/lang/sr_sp.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sr_sp.json")
}
"assets/horizon/lang/az_az.json" => {
include_str!("../../horizon-client/assets/horizon/lang/az_az.json")
}
"assets/horizon/lang/uz_uz.json" => {
include_str!("../../horizon-client/assets/horizon/lang/uz_uz.json")
}
"assets/horizon/lang/kk_kz.json" => {
include_str!("../../horizon-client/assets/horizon/lang/kk_kz.json")
}
"assets/horizon/lang/ka_ge.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ka_ge.json")
}
"assets/horizon/lang/hy_am.json" => {
include_str!("../../horizon-client/assets/horizon/lang/hy_am.json")
}
"assets/horizon/lang/bs_ba.json" => {
include_str!("../../horizon-client/assets/horizon/lang/bs_ba.json")
}
"assets/horizon/lang/mk_mk.json" => {
include_str!("../../horizon-client/assets/horizon/lang/mk_mk.json")
}
"assets/horizon/lang/sq_al.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sq_al.json")
}
"assets/horizon/lang/cy_gb.json" => {
include_str!("../../horizon-client/assets/horizon/lang/cy_gb.json")
}
"assets/horizon/lang/ga_ie.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ga_ie.json")
}
"assets/horizon/lang/eu_es.json" => {
include_str!("../../horizon-client/assets/horizon/lang/eu_es.json")
}
"assets/horizon/lang/gl_es.json" => {
include_str!("../../horizon-client/assets/horizon/lang/gl_es.json")
}
"assets/horizon/lang/fil_ph.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fil_ph.json")
}
"assets/horizon/lang/ta_in.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ta_in.json")
}
"assets/horizon/lang/mn_mn.json" => {
include_str!("../../horizon-client/assets/horizon/lang/mn_mn.json")
}
"assets/horizon/lang/lo_la.json" => {
include_str!("../../horizon-client/assets/horizon/lang/lo_la.json")
}
"assets/horizon/lang/so_so.json" => {
include_str!("../../horizon-client/assets/horizon/lang/so_so.json")
}
"assets/horizon/lang/fy_nl.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fy_nl.json")
}
"assets/horizon/lang/gd_gb.json" => {
include_str!("../../horizon-client/assets/horizon/lang/gd_gb.json")
}
"assets/horizon/lang/lb_lu.json" => {
include_str!("../../horizon-client/assets/horizon/lang/lb_lu.json")
}
"assets/horizon/lang/ky_kg.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ky_kg.json")
}
"assets/horizon/lang/kn_in.json" => {
include_str!("../../horizon-client/assets/horizon/lang/kn_in.json")
}
"assets/horizon/lang/mt_mt.json" => {
include_str!("../../horizon-client/assets/horizon/lang/mt_mt.json")
}
"assets/horizon/lang/eo_uy.json" => {
include_str!("../../horizon-client/assets/horizon/lang/eo_uy.json")
}
"assets/horizon/lang/haw_us.json" => {
include_str!("../../horizon-client/assets/horizon/lang/haw_us.json")
}
"assets/horizon/lang/ig_ng.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ig_ng.json")
}
"assets/horizon/lang/la_la.json" => {
include_str!("../../horizon-client/assets/horizon/lang/la_la.json")
}
"assets/horizon/lang/tt_ru.json" => {
include_str!("../../horizon-client/assets/horizon/lang/tt_ru.json")
}
"assets/horizon/lang/yi_de.json" => {
include_str!("../../horizon-client/assets/horizon/lang/yi_de.json")
}
"assets/horizon/lang/yo_ng.json" => {
include_str!("../../horizon-client/assets/horizon/lang/yo_ng.json")
}
"assets/horizon/lang/ba_ru.json" => {
include_str!("../../horizon-client/assets/horizon/lang/ba_ru.json")
}
"assets/horizon/lang/br_fr.json" => {
include_str!("../../horizon-client/assets/horizon/lang/br_fr.json")
}
"assets/horizon/lang/cv_cu.json" => {
include_str!("../../horizon-client/assets/horizon/lang/cv_cu.json")
}
"assets/horizon/lang/fo_fo.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fo_fo.json")
}
"assets/horizon/lang/fur_it.json" => {
include_str!("../../horizon-client/assets/horizon/lang/fur_it.json")
}
"assets/horizon/lang/li_li.json" => {
include_str!("../../horizon-client/assets/horizon/lang/li_li.json")
}
"assets/horizon/lang/lmo.json" => {
include_str!("../../horizon-client/assets/horizon/lang/lmo.json")
}
"assets/horizon/lang/oc_fr.json" => {
include_str!("../../horizon-client/assets/horizon/lang/oc_fr.json")
}
"assets/horizon/lang/sah_sah.json" => {
include_str!("../../horizon-client/assets/horizon/lang/sah_sah.json")
}
"assets/horizon/lang/se_no.json" => {
include_str!("../../horizon-client/assets/horizon/lang/se_no.json")
}
"assets/horizon/lang/szl.json" => {
include_str!("../../horizon-client/assets/horizon/lang/szl.json")
}
"assets/horizon/lang/vec_it.json" => {
include_str!("../../horizon-client/assets/horizon/lang/vec_it.json")
}
"assets/horizon/lang/de_de.json" | "assets/horizon/lang/de_at.json" => {
include_str!("../../horizon-client/assets/horizon/lang/de_de.json")
}
@@ -172,6 +388,36 @@ pub fn apply_deprecated(map: &mut HashMap<String, String>, json: &[u8]) {
}
}
/// `Language.loadFromJson` for one `lang/<code>.json`: its entries go into `map` in file order.
/// A file that is plain JSON reads as before; any other goes through Gson's lenient reader
/// (`#`, `//` and `/* */` comments, unquoted or single-quoted names and values, raw control
/// characters in strings, `=` or `=>` and `;`), which vanilla reads lang files with (expected
/// from `Language.loadFromJson`, Gson). A file that is not JSON even so adds nothing; a value
/// that is not a string, number or boolean (`GsonHelper.convertToString`) ends the file there.
fn read_lang_file(bytes: &[u8], map: &mut HashMap<String, String>) {
use horizon_world::datafix::json::{Json, parse_lenient};
if let Ok(entries) = serde_json::from_slice::<HashMap<String, String>>(bytes) {
map.extend(entries);
return;
}
let text = String::from_utf8_lossy(bytes);
// Gson's JsonReader skips a leading byte order mark.
let text = text.strip_prefix('\u{feff}').unwrap_or(&text);
let utf16: Vec<u16> = text.encode_utf16().collect();
let Some(Json::Obj(entries)) = parse_lenient(&utf16) else {
return;
};
for (key, value) in entries {
let value = match value {
Json::Str(s) => String::from_utf16_lossy(&s),
Json::Num(n) => n,
Json::Bool(b) => b.to_string(),
Json::Null | Json::Arr(_) | Json::Obj(_) => break,
};
map.insert(String::from_utf16_lossy(&key), value);
}
}
impl Language {
/// ClientLanguage.loadFrom: en_us first, then the selected language, each
/// from every namespace and every source in priority order (later sources
@@ -197,9 +443,7 @@ impl Language {
else {
continue;
};
if let Ok(entries) = serde_json::from_slice::<HashMap<String, String>>(&bytes) {
map.extend(entries);
}
read_lang_file(&bytes, &mut map);
}
}
}
@@ -659,4 +903,165 @@ mod tests {
["en_us", "fr_fr"]
);
}
fn read(body: &str) -> HashMap<String, String> {
let mut map = HashMap::new();
read_lang_file(body.as_bytes(), &mut map);
map
}
fn entries(pairs: &[(&str, &str)]) -> HashMap<String, String> {
pairs
.iter()
.map(|(k, v)| ((*k).to_owned(), (*v).to_owned()))
.collect()
}
#[test]
fn a_plain_json_lang_file_reads_as_before() {
let body = "{\"a\": \"Apple \\\"quoted\\\" \\u00e9\", \"b\": \"\", \"a\": \"Again\"}";
let strict: HashMap<String, String> = serde_json::from_str(body).unwrap();
assert_eq!(read(body), strict);
assert_eq!(read(body), entries(&[("a", "Again"), ("b", "")]));
}
#[test]
fn lang_files_read_with_comments() {
let want = entries(&[("a", "Apple"), ("b", "Banana # not a comment // either")]);
for body in [
"# header\n{\n# a comment\n\"a\": \"Apple\",\n\"b\": \"Banana # not a comment // either\"\n}\n",
"// header\n{\"a\": \"Apple\", // after\n\"b\": \"Banana # not a comment // either\"}",
"/* header\n over lines */{\"a\": /* inline */ \"Apple\", \"b\": \"Banana # not a comment // either\"}",
] {
assert_eq!(read(body), want, "{body}");
}
}
#[test]
fn lang_files_read_unquoted_and_single_quoted_names_and_values() {
assert_eq!(
read("{a: 'Apple', 'b': \"Banana\", c: Cherry}"),
entries(&[("a", "Apple"), ("b", "Banana"), ("c", "Cherry")])
);
// A single-quoted string may hold a double quote, and the reverse.
assert_eq!(
read("{'a': 'say \"hi\"', \"b\": \"it's\"}"),
entries(&[("a", "say \"hi\""), ("b", "it's")])
);
}
#[test]
fn lang_files_read_raw_control_characters_in_strings() {
assert_eq!(
read("{\"a\": \"tab\there\", \"b\": \"two\nlines\"}"),
entries(&[("a", "tab\there"), ("b", "two\nlines")])
);
}
#[test]
fn lang_files_read_gson_separators_and_a_byte_order_mark() {
assert_eq!(
read("\u{feff}{\"a\" = \"Apple\"; \"b\" => \"Banana\"}"),
entries(&[("a", "Apple"), ("b", "Banana")])
);
// A trailing comma before `}` is not JSON even to Gson's lenient reader.
assert_eq!(read("{# c\n\"a\": \"Apple\",}"), HashMap::new());
}
#[test]
fn numbers_and_booleans_read_as_their_text() {
// GsonHelper.convertToString: a primitive reads as its text.
assert_eq!(
read("{\"a\": 1.50, \"b\": true, \"c\": -2e3}"),
entries(&[("a", "1.50"), ("b", "true"), ("c", "-2e3")])
);
}
#[test]
fn a_value_that_is_no_text_ends_the_file_there() {
assert_eq!(
read("# c\n{\"a\": \"Apple\", \"b\": [\"x\"], \"c\": \"Cherry\"}"),
entries(&[("a", "Apple")])
);
assert_eq!(read("{\"a\": null, \"b\": \"Banana\"}"), HashMap::new());
}
#[test]
fn a_lang_file_that_is_not_json_adds_nothing() {
for body in [
"# c\n{\"a\": \"Apple\"",
"[\"a\"]",
"\"a\"",
"",
"{\"a\": \"Apple\"} {",
] {
assert_eq!(read(body), HashMap::new(), "{body:?}");
}
}
#[test]
fn a_pack_lang_file_with_comments_layers_over_english() {
let base = Mem(HashMap::from([(
"assets/minecraft/lang/en_us.json".into(),
br#"{"a":"Apple","b":"Banana"}"#.to_vec(),
)]));
let pack = Mem(HashMap::from([(
"assets/minecraft/lang/fr_fr.json".into(),
b"{\n# Fruits\n\"a\": \"Pomme\"\n}\n".to_vec(),
)]));
let sources: [&dyn ResourceSource; 2] = [&base, &pack];
let fr = Language::load(&sources, "fr_fr");
assert_eq!(fr.get("a"), Some("Pomme"));
assert_eq!(fr.get("b"), Some("Banana"));
}
/// Every lang file of a downloaded pack, e.g. BACAP Language Pack:
/// `HORIZON_LANG_PACK_DIR=<pack>/assets/minecraft/lang cargo test -p horizon-client-core
/// lang::tests::every_lang_file_of_a_pack_reads -- --ignored --nocapture`.
#[test]
#[ignore = "needs a downloaded pack in HORIZON_LANG_PACK_DIR"]
fn every_lang_file_of_a_pack_reads() {
let Ok(dir) = std::env::var("HORIZON_LANG_PACK_DIR") else {
return;
};
let mut failed = Vec::new();
let mut paths: Vec<_> = std::fs::read_dir(dir)
.unwrap()
.map(|e| e.unwrap().path())
.collect();
paths.sort();
for path in paths {
let bytes = std::fs::read(&path).unwrap();
let strict = serde_json::from_slice::<HashMap<String, String>>(&bytes).is_ok();
let mut map = HashMap::new();
read_lang_file(&bytes, &mut map);
// An independent count: the distinct `"name":` that start a line.
let text = String::from_utf8_lossy(&bytes);
let names: std::collections::HashSet<&str> = text
.lines()
.filter_map(|line| {
let rest = line.trim_start().strip_prefix('"')?;
let mut escaped = false;
let end = rest.char_indices().find_map(|(i, c)| {
let close = c == '"' && !escaped;
escaped = c == '\\' && !escaped;
close.then_some(i)
})?;
rest[end + 1..]
.trim_start()
.starts_with(':')
.then(|| &rest[..end])
})
.collect();
println!(
"{}: strict {strict}, {} keys, {} names",
path.display(),
map.len(),
names.len()
);
if map.is_empty() || map.len() != names.len() {
failed.push(path);
}
}
assert!(failed.is_empty(), "{failed:?}");
}
}
+215 -34
View File
@@ -79,28 +79,65 @@ fn elements(tag: &Tag) -> Option<Vec<Tag>> {
_ => return None,
})
}
fn number(t: &Tag) -> Option<i64> {
match t {
Tag::Byte(v) => Some(i64::from(*v)),
Tag::Short(v) => Some(i64::from(*v)),
Tag::Int(v) => Some(i64::from(*v)),
Tag::Long(v) => Some(*v),
_ => None,
/// `DoubleTag.intValue` / `FloatTag.intValue` floor before the i32 conversion;
/// integral tags use their intValue narrowing. Byte arrays then keep the low byte.
fn int_value(t: &Tag) -> Option<i32> {
Some(match t {
Tag::Byte(v) => i32::from(*v),
Tag::Short(v) => i32::from(*v),
Tag::Int(v) => *v,
Tag::Long(v) => *v as i32,
Tag::Float(v) => f32::from_bits(*v).floor() as i32,
Tag::Double(v) => f64::from_bits(*v).floor() as i32,
_ => return None,
})
}
/// `FloatTag.longValue` truncates; `DoubleTag.longValue` floors before narrowing.
fn long_value(t: &Tag) -> Option<i64> {
Some(match t {
Tag::Byte(v) => i64::from(*v),
Tag::Short(v) => i64::from(*v),
Tag::Int(v) => i64::from(*v),
Tag::Long(v) => *v,
// FloatTag.longValue truncates; DoubleTag.longValue floors first.
Tag::Float(v) => f32::from_bits(*v) as i64,
Tag::Double(v) => f64::from_bits(*v).floor() as i64,
_ => return None,
})
}
#[derive(Clone, Copy)]
enum ElementKind {
List,
NumericArray,
}
impl ElementKind {
// Admission only: arrays require NumericTag; lists accept every tag type.
fn accepts(self, value: &Tag) -> bool {
matches!(self, Self::List)
|| matches!(
value,
Tag::Byte(_)
| Tag::Short(_)
| Tag::Int(_)
| Tag::Long(_)
| Tag::Float(_)
| Tag::Double(_)
)
}
}
/// Run `f` over the elements of a list/array, writing array results back.
/// Rust view adapter: run `f` over the elements, then write arrays using their numeric accessor.
/// None when `tag` is not list-like.
fn with_elements<R>(tag: &mut Tag, f: impl FnOnce(&mut Vec<Tag>) -> R) -> Option<R> {
fn with_elements<R>(tag: &mut Tag, f: impl FnOnce(&mut Vec<Tag>, ElementKind) -> R) -> Option<R> {
match tag {
Tag::List(l) => Some(f(l)),
Tag::List(l) => Some(f(l, ElementKind::List)),
Tag::ByteArray(_) | Tag::IntArray(_) | Tag::LongArray(_) => {
let mut v = elements(tag)?;
let r = f(&mut v);
let nums: Vec<i64> = v.iter().filter_map(number).collect();
let r = f(&mut v, ElementKind::NumericArray);
match tag {
Tag::ByteArray(a) => *a = nums.iter().map(|n| *n as u8).collect(),
Tag::IntArray(a) => *a = nums.iter().map(|n| *n as i32).collect(),
Tag::LongArray(a) => *a = nums,
// Float/double byteValue uses intValue's floor, then narrows.
Tag::ByteArray(a) => *a = v.iter().filter_map(int_value).map(|n| n as u8).collect(),
Tag::IntArray(a) => *a = v.iter().filter_map(int_value).collect(),
Tag::LongArray(a) => *a = v.iter().filter_map(long_value).collect(),
_ => {}
}
Some(r)
@@ -157,6 +194,20 @@ impl NbtPath {
pub fn is_empty(&self) -> bool {
self.nodes.is_empty()
}
/// Whether this selects a compound-field chain, including filtered or quoted fields.
/// Matching a root or child does not change that subtree's writer provenance.
pub fn is_field_path(&self, fields: &[&str]) -> bool {
let mut fields = fields.iter();
for node in &self.nodes {
match node {
Node::MatchRoot(_) => {}
Node::Child(name) | Node::MatchChild(name, _)
if fields.next().copied() == Some(name.as_str()) => {}
_ => return false,
}
}
fields.next().is_none()
}
fn not_found(&self, node: usize) -> PathError {
let end = self.ends[node];
PathError::new(
@@ -349,7 +400,7 @@ impl NbtPath {
});
removed
}
/// `insert` (also append and prepend): into every list the path reaches.
/// `NbtPathArgument.NbtPath.insert`: insert accepted tags into every reached collection.
pub fn insert(
&self,
index: i32,
@@ -372,19 +423,23 @@ impl NbtPath {
return;
}
let shown = crate::snbt::to_snbt(target);
let result = with_elements(target, |list| {
let result = with_elements(target, |list, kind| {
let start = if index < 0 {
list.len() as i64 + i64::from(index) + 1
} else {
i64::from(index)
};
let mut any = false;
for (n, v) in values.iter().enumerate() {
let at = start + n as i64;
let mut at = start;
for v in values {
if !kind.accepts(v) {
continue;
}
if at < 0 || at as usize > list.len() {
return Err(CollectionError::InvalidIndex(at as i32));
}
list.insert(at as usize, v.clone());
at += 1;
any = true;
}
Ok(any)
@@ -428,7 +483,8 @@ fn preferred_parent(node: &Node) -> Tag {
_ => Tag::Compound(Compound::new()),
}
}
/// `getOrCreateTag` (or `getTag` without `create`): the children of `parent`.
/// Children of `parent`; the array creation arm follows
/// `NbtPathArgument.AllElementsNode.getOrCreateTag` admission.
fn step_mut(
node: &Node,
parent: &mut Tag,
@@ -468,11 +524,14 @@ fn step_mut(
}
Node::AllElements => {
let make = create;
let _ = with_elements(parent, |list| {
let _ = with_elements(parent, |list, kind| {
if list.is_empty() {
if let Some(make) = make {
list.push(make());
out(&mut list[0]);
let value = make();
if kind.accepts(&value) {
list.push(value);
out(&mut list[0]);
}
}
} else {
for t in list.iter_mut() {
@@ -482,7 +541,7 @@ fn step_mut(
});
}
Node::Index(i) => {
let _ = with_elements(parent, |list| {
let _ = with_elements(parent, |list, _kind| {
let n = list.len() as i64;
let idx = if *i < 0 {
n + i64::from(*i)
@@ -518,7 +577,8 @@ fn step_mut(
}
}
}
/// `Node.setTag`: replace the child(ren) of `parent` with `value`.
/// Element setters follow `NbtPathArgument.AllElementsNode.setTag` and
/// `NbtPathArgument.IndexedElementNode.setTag`; object nodes replace their children.
fn set_tag(node: &Node, parent: &mut Tag, value: &Tag) -> usize {
match node {
Node::Child(name) => {
@@ -538,29 +598,36 @@ fn set_tag(node: &Node, parent: &mut Tag, value: &Tag) -> usize {
}
0
}
Node::AllElements => with_elements(parent, |list| {
if list.is_empty() {
list.push(value.clone());
Node::AllElements => with_elements(parent, |list, kind| {
let len = list.len();
if len == 0 {
if kind.accepts(value) {
list.push(value.clone());
}
// AllElementsNode returns 1 here even when addTag rejects.
return 1;
}
// Compare the original tags, before numeric conversion.
let changed = list.iter().filter(|t| *t != value).count();
if changed == 0 {
return 0;
}
for t in list.iter_mut() {
*t = value.clone();
list.clear();
if !kind.accepts(value) {
return 0;
}
list.resize(len, value.clone());
changed
})
.unwrap_or(0),
Node::Index(i) => with_elements(parent, |list| {
Node::Index(i) => with_elements(parent, |list, kind| {
let n = list.len() as i64;
let idx = if *i < 0 {
n + i64::from(*i)
} else {
i64::from(*i)
};
if (0..n).contains(&idx) && list[idx as usize] != *value {
if (0..n).contains(&idx) && list[idx as usize] != *value && kind.accepts(value) {
list[idx as usize] = value.clone();
1
} else {
@@ -586,6 +653,7 @@ fn set_tag(node: &Node, parent: &mut Tag, value: &Tag) -> usize {
Node::MatchRoot(_) => 0,
}
}
/// Removal arms, including `NbtPathArgument.AllElementsNode.removeTag`.
fn remove_tag(node: &Node, parent: &mut Tag) -> usize {
match node {
Node::Child(name) => match parent {
@@ -603,13 +671,13 @@ fn remove_tag(node: &Node, parent: &mut Tag) -> usize {
}
_ => 0,
},
Node::AllElements => with_elements(parent, |l| {
Node::AllElements => with_elements(parent, |l, _kind| {
let n = l.len();
l.clear();
n
})
.unwrap_or(0),
Node::Index(i) => with_elements(parent, |l| {
Node::Index(i) => with_elements(parent, |l, _kind| {
let n = l.len() as i64;
let idx = if *i < 0 {
n + i64::from(*i)
@@ -772,6 +840,25 @@ fn parse_compound(text: &str, i: usize) -> Result<(Tag, usize), PathError> {
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn field_provenance_handles_quotes_and_filters_without_matching_lists() {
for text in [
"blockState.properties",
"\"blockState\".\"properties\"",
"{source:1b}.blockState.properties",
"blockState{id:\"minecraft:piston_head\"}.properties",
] {
let path = NbtPath::parse(text).unwrap();
assert!(path.is_field_path(&["blockState", "properties"]));
assert!(!path.is_field_path(&["blockState"]));
}
assert!(NbtPath::parse("{source:1b}").unwrap().is_field_path(&[]));
assert!(
!NbtPath::parse("blockState[].properties")
.unwrap()
.is_field_path(&["blockState", "properties"])
);
}
fn tag(s: &str) -> Tag {
parse_snbt(s).unwrap().0
@@ -887,6 +974,100 @@ mod tests {
));
}
#[test]
fn numeric_array_edits_use_the_destination_numeric_accessor() {
for (initial, value, inserted, indexed, all) in [
(
"{v:[B;1b,2b]}",
"-3.5f",
"{v:[B;1b,-4b,2b]}",
"{v:[B;-4b,2b]}",
"{v:[B;-4b,-4b]}",
),
(
"{v:[B;1b,2b]}",
"-3.5d",
"{v:[B;1b,-4b,2b]}",
"{v:[B;-4b,2b]}",
"{v:[B;-4b,-4b]}",
),
(
"{v:[I;1,2]}",
"-3.5f",
"{v:[I;1,-4,2]}",
"{v:[I;-4,2]}",
"{v:[I;-4,-4]}",
),
(
"{v:[I;1,2]}",
"-3.5d",
"{v:[I;1,-4,2]}",
"{v:[I;-4,2]}",
"{v:[I;-4,-4]}",
),
(
"{v:[L;1L,2L]}",
"-3.5f",
"{v:[L;1L,-3L,2L]}",
"{v:[L;-3L,2L]}",
"{v:[L;-3L,-3L]}",
),
(
"{v:[L;1L,2L]}",
"-3.5d",
"{v:[L;1L,-4L,2L]}",
"{v:[L;-4L,2L]}",
"{v:[L;-4L,-4L]}",
),
] {
let value = tag(value);
let mut root = tag(initial);
assert_eq!(
path("v")
.insert(1, &mut root, std::slice::from_ref(&value))
.unwrap(),
1
);
assert_eq!(root, tag(inserted));
let mut root = tag(initial);
assert_eq!(path("v[0]").set(&mut root, &value).unwrap(), 1);
assert_eq!(root, tag(indexed));
let mut root = tag(initial);
assert_eq!(path("v[]").set(&mut root, &value).unwrap(), 2);
assert_eq!(root, tag(all));
}
}
#[test]
fn numeric_arrays_reject_nonnumeric_insert_and_indexed_set() {
for initial in ["{v:[B;1b,2b]}", "{v:[I;1,2]}", "{v:[L;1L,2L]}"] {
let original = tag(initial);
let value = tag("\"bad\"");
for index in [0, 99, -99] {
let mut root = original.clone();
assert_eq!(
path("v")
.insert(index, &mut root, std::slice::from_ref(&value))
.unwrap(),
0
);
assert_eq!(root, original);
}
let mut root = original.clone();
assert_eq!(path("v[0]").set(&mut root, &value).unwrap(), 0);
assert_eq!(root, original);
}
}
#[test]
fn empty_array_wildcard_set_preserves_vanillas_count_on_rejection() {
for initial in ["{v:[B;]}", "{v:[I;]}", "{v:[L;]}"] {
let mut root = tag(initial);
assert_eq!(path("v[]").set(&mut root, &tag("\"bad\"")).unwrap(), 1);
assert_eq!(root, tag(initial));
}
}
#[test]
fn partial_comparison() {
let actual = tag("{a:1,b:{c:[1,2,3],d:\"x\"},e:2}");
@@ -173,6 +173,16 @@ impl Registries {
fill(&mut self.templates, "templates");
fill(&mut self.persistent_components, "persistent_components");
fill(&mut self.learnable_recipes, "learnable_recipes");
if self.summonable.is_empty() {
self.summonable = strings(&r["summonable"]);
self.summonable.sort();
self.summonable.dedup();
}
if self.entity_types.is_empty() {
self.entity_types = strings(&r["entity_types"]);
self.entity_types.sort();
self.entity_types.dedup();
}
const RELOADED: [&str; 5] = [
"minecraft:advancement",
"minecraft:recipe",
@@ -236,6 +246,16 @@ impl Registries {
fill(&mut self.templates, &e.templates);
fill(&mut self.persistent_components, &e.persistent_components);
fill(&mut self.learnable_recipes, &e.learnable_recipes);
if self.summonable.is_empty() {
self.summonable.clone_from(&e.summonable);
self.summonable.sort();
self.summonable.dedup();
}
if self.entity_types.is_empty() {
self.entity_types.clone_from(&e.entity_types);
self.entity_types.sort();
self.entity_types.dedup();
}
for (name, ids) in &e.by_registry {
if !self.by_registry.contains_key(name) {
self.by_registry.insert(name.clone(), ids.clone());
@@ -964,6 +964,10 @@ impl Scoreboard {
pub fn tracked(&self) -> Vec<String> {
self.holder_order.stream().map(str::to_owned).collect()
}
/// Every holder on a team (`teamsByPlayer.keySet()`).
pub fn team_members(&self) -> impl Iterator<Item = &str> {
self.team_of.keys().map(String::as_str)
}
// teams
pub fn team(&self, name: &str) -> Option<&Team> {
+115 -13
View File
@@ -8,11 +8,20 @@ pub use horizon_world::snbt_text::{java_double, java_float, quote_and_escape, to
// ---- the coloured form -----------------------------------------------------
/// Writer provenance for a live moving-piston command read, or its selected subtree.
#[derive(Clone, Copy)]
pub enum PistonPart {
Entity,
State,
Properties,
}
struct Pretty {
indentation: String,
result: Text,
indent_depth: usize,
depth: usize,
piston: Option<PistonPart>,
}
fn is_numeric(t: &Tag) -> bool {
matches!(
@@ -58,6 +67,10 @@ impl Pretty {
self.lit("]", None);
}
fn sub(&mut self, tag: &Tag, indent: bool) {
self.sub_with(tag, indent, None);
}
fn sub_with(&mut self, tag: &Tag, indent: bool, piston: Option<PistonPart>) {
let previous = std::mem::replace(&mut self.piston, piston);
if indent {
self.indent_depth += 1;
}
@@ -67,6 +80,7 @@ impl Pretty {
self.indent_depth -= 1;
}
self.depth -= 1;
self.piston = previous;
}
fn visit(&mut self, tag: &Tag) {
match tag {
@@ -157,7 +171,11 @@ impl Pretty {
"\n"
};
let n = c.len();
for (i, (k, v)) in java_hash_order(c).into_iter().enumerate() {
let entries = match self.piston {
Some(part) => piston_hash_order(c, part),
None => java_hash_order(c),
};
for (i, (k, v)) in entries.into_iter().enumerate() {
self.lit(&entry, None);
let key = string_of(k);
if !key.is_empty()
@@ -171,7 +189,12 @@ impl Pretty {
}
self.lit(":", None);
self.lit(" ", None);
self.sub(v, true);
let child = match (self.piston, key.as_str()) {
(Some(PistonPart::Entity), "blockState") => Some(PistonPart::State),
(Some(PistonPart::State), "properties") => Some(PistonPart::Properties),
_ => None,
};
self.sub_with(v, true, child);
if i + 1 < n {
self.lit(",", None);
self.lit(spacing, None);
@@ -186,22 +209,61 @@ impl Pretty {
}
}
}
fn hash_bucket(len: usize, key: &horizon_world::nbt::JavaString) -> usize {
let mut capacity = 16usize;
while len > capacity * 3 / 4 {
capacity *= 2;
}
let h = string_of(key)
.encode_utf16()
.fold(0u32, |h, ch| h.wrapping_mul(31).wrapping_add(u32::from(ch)));
((h ^ (h >> 16)) as usize) & (capacity - 1)
}
fn piston_hash_order(
c: &horizon_world::nbt::Compound,
part: PistonPart,
) -> Vec<(&horizon_world::nbt::JavaString, &Tag)> {
let mut entries: Vec<_> = c.iter().collect();
match part {
PistonPart::Entity => {
// saveAdditional, then the base's components and saveMetadata.
let fields = [
"blockState",
"facing",
"progress",
"extending",
"source",
"components",
"id",
"x",
"y",
"z",
];
entries.sort_by_key(|(k, _)| {
(
hash_bucket(c.len(), k),
fields
.iter()
.position(|s| *s == string_of(k))
.unwrap_or(fields.len()),
)
});
}
PistonPart::Properties => {
// StateDefinition builds property codecs in sorted-name order.
// DFU's nested map-pair encoder writes the second codec first.
entries.sort_by_key(|(k, _)| (hash_bucket(c.len(), k), std::cmp::Reverse(*k)));
}
PistonPart::State => return java_hash_order(c),
}
entries
}
/// The iteration order of the `HashMap<String, Tag>` a `CompoundTag` holds,
/// for a map that grew to its size by insertion: buckets by
/// `HashMap.hash(String.hashCode())`, keys sharing a bucket in key order.
pub fn java_hash_order(
c: &horizon_world::nbt::Compound,
) -> Vec<(&horizon_world::nbt::JavaString, &Tag)> {
let mut capacity = 16usize;
while c.len() > capacity * 3 / 4 {
capacity *= 2;
}
let bucket = |k: &horizon_world::nbt::JavaString| {
let h = string_of(k)
.encode_utf16()
.fold(0u32, |h, ch| h.wrapping_mul(31).wrapping_add(u32::from(ch)));
((h ^ (h >> 16)) as usize) & (capacity - 1)
};
// Keys sharing a bucket iterate in insertion order: the order vanilla's
// savers write them, as far as it is known here.
const WRITE_ORDER: &[&str] = &[
@@ -268,7 +330,7 @@ pub fn java_hash_order(
.unwrap_or(WRITE_ORDER.len())
};
let mut entries: Vec<_> = c.iter().collect();
entries.sort_by_key(|(k, _)| (bucket(k), rank(k)));
entries.sort_by_key(|(k, _)| (hash_bucket(c.len(), k), rank(k)));
entries
}
/// `NbtUtils.toPrettyComponent`: the coloured, unindented form.
@@ -281,6 +343,19 @@ pub fn pretty_indented(tag: &Tag, indentation: &str) -> Text {
result: Text::empty(),
indent_depth: 0,
depth: 0,
piston: None,
};
p.visit(tag);
p.result
}
/// Command-only writer order; ordinary pretty printing keeps its existing policy.
pub fn pretty_piston(tag: &Tag, part: PistonPart) -> Text {
let mut p = Pretty {
indentation: String::new(),
result: Text::empty(),
indent_depth: 0,
depth: 0,
piston: Some(part),
};
p.visit(tag);
p.result
@@ -295,6 +370,33 @@ mod tests {
to_snbt(&parse_snbt(s).unwrap().0)
}
#[test]
fn live_piston_writer_order_does_not_change_default_pretty() {
let tag = parse_snbt(
r#"{id:"minecraft:piston",blockState:{id:"minecraft:piston_head",properties:{facing:"east",short:"false",type:"normal"}},components:{},x:1,y:100,z:0,facing:5b,progress:0.0f,source:1b,extending:1b}"#,
).unwrap().0;
let ordinary = r#"{blockState: {id: "minecraft:piston_head", properties: {facing: "east", short: "false", type: "normal"}}, components: {}, x: 1, facing: 5b, progress: 0.0f, y: 100, z: 0, id: "minecraft:piston", source: 1b, extending: 1b}"#;
assert_eq!(pretty(&tag).plain(), ordinary);
assert_eq!(
pretty_piston(&tag, PistonPart::Entity).plain(),
r#"{blockState: {id: "minecraft:piston_head", properties: {short: "false", facing: "east", type: "normal"}}, components: {}, x: 1, facing: 5b, progress: 0.0f, y: 100, z: 0, source: 1b, id: "minecraft:piston", extending: 1b}"#,
);
let state = tag.get("blockState").unwrap();
assert_eq!(
pretty_piston(state, PistonPart::State).plain(),
r#"{id: "minecraft:piston_head", properties: {short: "false", facing: "east", type: "normal"}}"#,
);
let props = state.get("properties").unwrap();
assert_eq!(
pretty_piston(props, PistonPart::Properties).plain(),
r#"{short: "false", facing: "east", type: "normal"}"#,
);
assert_eq!(
pretty(props).plain(),
r#"{facing: "east", short: "false", type: "normal"}"#
);
assert_eq!(pretty(&tag).plain(), ordinary);
}
#[test]
fn compact_form_matches_vanilla() {
assert_eq!(
rt("{b:1b,a:\"x\",c:[1,2],d:1.5f,e:2d,f:3L,g:4s}"),
+665 -46
View File
@@ -119,6 +119,19 @@ impl Button {
][face],
}
}
/// The face button that plays this one's part on a Nintendo pad going by its letters
/// (`PadSettings::nintendo_letters`): the A it prints on the right is South, which confirms
/// and jumps as A does on a Switch; B (bottom) is East, X (top) West, Y (left) North. It is
/// its own inverse, so it turns a part into the button playing it and back.
pub fn by_letter(self) -> Button {
match self {
Button::South => Button::East,
Button::East => Button::South,
Button::West => Button::North,
Button::North => Button::West,
other => other,
}
}
}
/// A pad's inputs at one moment. Sticks are `[x, y]` with right and up
@@ -142,6 +155,14 @@ impl PadState {
pub fn held(&self, button: Button) -> bool {
self.buttons & button.bit() != 0
}
/// A Nintendo pad's buttons read by their letters (`Button::by_letter`).
pub fn by_letter(&self) -> PadState {
let mut state = *self;
for part in [Button::South, Button::East, Button::West, Button::North] {
state.set(part, self.held(part.by_letter()));
}
state
}
/// Two sources at once (a real pad and `horizon-ctl pad`): buttons held on
/// either, sticks and triggers added.
pub fn merge(&self, other: &PadState) -> PadState {
@@ -179,12 +200,13 @@ impl PadState {
#[derive(Clone, Debug, Default)]
pub struct Edges {
held: u32,
suppressed: u32,
}
impl Edges {
pub fn update(&mut self, state: &PadState, threshold: f32) -> Vec<(Button, bool)> {
let mut now = state.buttons;
for (trigger, button) in [(0, Button::LeftTrigger), (1, Button::RightTrigger)] {
let was = self.held & button.bit() != 0;
let was = (self.held | self.suppressed) & button.bit() != 0;
let value = state.triggers[trigger];
let on = if was {
value >= (threshold - 0.1).max(0.05)
@@ -197,6 +219,8 @@ impl Edges {
now &= !button.bit();
}
}
self.suppressed &= now;
now &= !self.suppressed;
let changed = now ^ self.held;
self.held = now;
Button::ALL
@@ -217,6 +241,50 @@ impl Edges {
pub fn is_held(&self, button: Button) -> bool {
self.held & button.bit() != 0
}
/// Cancel a context without turning its still-held buttons into new presses.
pub fn cancel(&mut self) -> Vec<(Button, bool)> {
self.suppressed |= self.held;
self.release_all()
}
}
/// Intentional activity may take input ownership; an unchanged hold may not.
#[derive(Default)]
pub struct Activity {
buttons: u32,
sticks: [[f32; 2]; 2],
}
impl Activity {
pub fn observe(&mut self, state: &PadState, settings: &PadSettings) -> bool {
let mut buttons = state.buttons;
for (i, button) in [(0, Button::LeftTrigger), (1, Button::RightTrigger)] {
let threshold = if self.buttons & button.bit() != 0 {
(settings.trigger_threshold - 0.1).max(0.05)
} else {
settings.trigger_threshold
};
if state.triggers[i] >= threshold {
buttons |= button.bit();
}
}
let mut activity = buttons & !self.buttons != 0;
self.buttons = buttons;
for (i, (stick, deadzone)) in [
(state.left, settings.move_deadzone),
(state.right, settings.look_deadzone),
]
.into_iter()
.enumerate()
{
if length(stick) <= deadzone {
self.sticks[i] = [0.0; 2];
} else if length([stick[0] - self.sticks[i][0], stick[1] - self.sticks[i][1]]) > 0.08 {
activity = true;
self.sticks[i] = stick;
}
}
activity
}
}
/// Horizon's pad-only actions (no vanilla key mapping).
@@ -246,8 +314,43 @@ pub const ACTIONS: &[(&str, Option<Button>)] = &[
("key.screenshot", None),
("key.toggleGui", None),
("key.smoothCamera", None),
// Horizon's emote wheel: no button is free by default; the stick's cursor picks.
("key.emote", None),
];
/// How a bindable action reaches the game: one of its own handlers, shared
/// with the keyboard where the keyboard has one, or else the vanilla default
/// key or button of its mapping, as a rebound keyboard key would.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Route {
HotbarStep {
next: bool,
},
/// Held, or flipped when the pad's toggle sneak is on.
Sneak,
Screenshot,
SmoothCamera,
Key(winit::keyboard::KeyCode),
Mouse(winit::event::MouseButton),
}
/// The route of a bindable action; `None` for one the pad can't reach.
pub fn route(action: &str) -> Option<Route> {
match action {
HOTBAR_PREVIOUS => Some(Route::HotbarStep { next: false }),
HOTBAR_NEXT => Some(Route::HotbarStep { next: true }),
"key.sneak" => Some(Route::Sneak),
"key.screenshot" => Some(Route::Screenshot),
"key.smoothCamera" => Some(Route::SmoothCamera),
_ => {
let default = crate::keybinds::KeyBinds::default_of(action);
crate::keybinds::mouse_button(default)
.map(Route::Mouse)
.or_else(|| crate::keybinds::key_code(default).map(Route::Key))
}
}
}
/// An action's name in the binds list: vanilla's translation key, or
/// Horizon's own English for the pad-only actions.
pub fn action_caption(action: &str) -> &str {
@@ -313,31 +416,6 @@ impl GlyphStyle {
}
}
/// How a controller drives menus (docs/controllers.md, "Menus and
/// inventories").
#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
pub enum MenuNav {
/// A console-style highlight moved between widgets and slots.
#[default]
Focus,
/// A virtual mouse pointer.
Pointer,
}
impl MenuNav {
pub fn name(self) -> &'static str {
match self {
MenuNav::Focus => "focus",
MenuNav::Pointer => "pointer",
}
}
pub fn parse(name: &str) -> Self {
match name {
"pointer" => MenuNav::Pointer,
_ => MenuNav::Focus,
}
}
}
/// The on-screen keyboard A opens on a text field in focus mode.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
pub enum TextKeyboard {
@@ -399,9 +477,16 @@ pub struct PadSettings {
/// holding it, unless vanilla's toggle crouch is on already.
pub toggle_sneak: bool,
pub glyphs: GlyphStyle,
/// How the pad drives menus: a focus highlight or a virtual pointer.
pub menu_nav: MenuNav,
/// A Nintendo pad's face buttons go by their letters (A confirms and jumps, as on the
/// Switch's own menus and keyboard) instead of their places (B, at the bottom, does): on
/// by default on the Switch only.
pub nintendo_letters: bool,
pub keyboard: TextKeyboard,
/// Menu pointer multiplier, scroll lines/second, and repeat times in seconds.
pub pointer_speed: f32,
pub scroll_speed: f32,
pub repeat_delay: f32,
pub repeat_interval: f32,
/// Action name -> button, `None` for unbound; missing means the default.
bindings: BTreeMap<&'static str, Option<Button>>,
}
@@ -420,8 +505,12 @@ impl Default for PadSettings {
trigger_threshold: 0.4,
toggle_sneak: true,
glyphs: GlyphStyle::Auto,
menu_nav: MenuNav::Focus,
nintendo_letters: cfg!(target_os = "horizon"),
keyboard: TextKeyboard::Auto,
pointer_speed: 1.0,
scroll_speed: 12.0,
repeat_delay: 0.35,
repeat_interval: 0.09,
bindings: BTreeMap::new(),
}
}
@@ -462,6 +551,13 @@ impl PadSettings {
.filter(|v| v.is_finite())
.map_or(d, |v| v.clamp(0.0, 1.0))
};
let bounded = |default: f32, min: f32, max: f32| {
value
.parse::<f32>()
.ok()
.filter(|v| v.is_finite())
.map_or(default, |v| v.clamp(min, max))
};
match key.trim() {
"enabled" => s.enabled = flag(s.enabled),
"vibration" => s.vibration = flag(s.vibration),
@@ -477,8 +573,12 @@ impl PadSettings {
}
"toggleSneak" => s.toggle_sneak = flag(s.toggle_sneak),
"glyphs" => s.glyphs = GlyphStyle::parse(value),
"menuNavigation" => s.menu_nav = MenuNav::parse(value),
"nintendoLetters" => s.nintendo_letters = flag(s.nintendo_letters),
"keyboard" => s.keyboard = TextKeyboard::parse(value),
"pointerSpeed" => s.pointer_speed = bounded(s.pointer_speed, 0.25, 3.0),
"scrollSpeed" => s.scroll_speed = bounded(s.scroll_speed, 1.0, 36.0),
"repeatDelay" => s.repeat_delay = bounded(s.repeat_delay, 0.1, 1.0),
"repeatInterval" => s.repeat_interval = bounded(s.repeat_interval, 0.03, 0.3),
other => {
if let Some(action) = other.strip_prefix("bind_") {
let button = if value == "none" {
@@ -497,7 +597,7 @@ impl PadSettings {
}
pub fn serialize(&self) -> String {
let mut text = format!(
"enabled:{}\nvibration:{}\nadaptiveTriggers:{}\nlightbar:{}\nlookSensitivity:{}\ninvertX:{}\ninvertY:{}\nmoveDeadzone:{}\nlookDeadzone:{}\ntriggerThreshold:{}\ntoggleSneak:{}\nglyphs:{}\nmenuNavigation:{}\nkeyboard:{}\n",
"enabled:{}\nvibration:{}\nadaptiveTriggers:{}\nlightbar:{}\nlookSensitivity:{}\ninvertX:{}\ninvertY:{}\nmoveDeadzone:{}\nlookDeadzone:{}\ntriggerThreshold:{}\ntoggleSneak:{}\nglyphs:{}\nnintendoLetters:{}\nkeyboard:{}\n",
bool_text(self.enabled),
bool_text(self.vibration),
bool_text(self.adaptive_triggers),
@@ -510,9 +610,13 @@ impl PadSettings {
self.trigger_threshold,
bool_text(self.toggle_sneak),
self.glyphs.name(),
self.menu_nav.name(),
bool_text(self.nintendo_letters),
self.keyboard.name(),
);
text.push_str(&format!(
"pointerSpeed:{}\nscrollSpeed:{}\nrepeatDelay:{}\nrepeatInterval:{}\n",
self.pointer_speed, self.scroll_speed, self.repeat_delay, self.repeat_interval,
));
for (action, button) in &self.bindings {
text.push_str(&format!(
"bind_{action}:{}\n",
@@ -713,6 +817,98 @@ pub fn stick_direction(stick: [f32; 2], threshold: f32) -> Option<Button> {
})
}
/// How far a stick already stepping must fall back to let go: between this and
/// the step threshold it holds its direction, so a stick resting on the
/// threshold doesn't step again.
pub const STICK_RELEASE: f32 = 0.35;
/// How much more a stick must lean along another axis to change direction, so
/// a stick resting on a diagonal doesn't flip between the two.
const STICK_TURN: f32 = 1.5;
/// [`stick_direction`] for a stick that may already be stepping `held`: it stays
/// that way until the stick falls back past [`STICK_RELEASE`] or clearly turns.
pub fn stick_direction_held(
stick: [f32; 2],
threshold: f32,
held: Option<Button>,
) -> Option<Button> {
let fresh = stick_direction(stick, threshold);
let Some((axis, positive)) = held.and_then(direction) else {
return fresh;
};
if length(stick) < STICK_RELEASE {
return None;
}
// `direction`'s y runs down the screen, a stick's up.
let toward = stick[axis] * if positive == (axis == 0) { 1.0 } else { -1.0 };
if toward > 0.0 && stick[1 - axis].abs() <= toward * STICK_TURN {
held
} else {
fresh
}
}
/// A list drawn with a scrollbar (`ui::scrollbar`), how far it is scrolled (a list
/// moving a whole row a notch draws the same rectangles, so they can't tell) and
/// the ways it can still scroll.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ScrollArea {
pub rect: Rect,
pub amount: f32,
pub up: bool,
pub down: bool,
}
impl ScrollArea {
/// A row counts while any of it is in view: the stick can leave the focus on one nearly gone.
pub fn holds(&self, r: &Rect) -> bool {
let x = r[0] + r[2] / 2.0;
let [ax, ay, aw, ah] = self.rect;
(ax..ax + aw).contains(&x) && r[1] < ay + ah && r[1] + r[3] > ay
}
/// All of a row is in view.
fn shows(&self, r: &Rect) -> bool {
let [_, ay, _, ah] = self.rect;
self.holds(r) && r[1] + 0.5 >= ay && r[1] + r[3] <= ay + ah + 0.5
}
}
/// A vertical focus step, with lists: the strict step, unless it would land
/// outside the view of the list `from` is in, or only partly in it, while that
/// list can still scroll that way, when there is none (`None`) and the list
/// scrolls instead: its hidden rows come first and whole, as vanilla's arrow
/// keys walk a selection list's entries (`ensureVisible`).
pub fn list_step(
from: Rect,
button: Button,
targets: &[Rect],
areas: &[ScrollArea],
) -> Option<usize> {
let step = focus_step_strict(from, button, targets)?;
let can_scroll = |a: &ScrollArea| {
if button == Button::DPadUp {
a.up
} else {
a.down
}
};
let leaves = areas
.iter()
.find(|a| a.holds(&from))
.is_some_and(|a| can_scroll(a) && !a.shows(&targets[step]));
(!leaves).then_some(step)
}
/// The farthest centres of two neighbouring slots: 18 apart, 22 over the hotbar's gap.
const SLOT_NEIGHBOUR: f32 = 24.0;
/// A held direction's repeat stops at the edge of the slots it is walking: it
/// goes on only from a slot to a slot next to it (the hotbar's small gap
/// included). A fresh press may go anywhere.
pub fn repeat_crosses_slots(from: (f32, f32), to: (f32, f32), to_slot: bool) -> bool {
!to_slot || (to.0 - from.0).abs().max((to.1 - from.1).abs()) > SLOT_NEIGHBOUR
}
/// Arrow-key focus navigation as vanilla does it
/// (`ContainerEventHandler.nextFocusPathInDirection`), over every target of
/// the screen at once: from a strip one pixel past the focused edge, the
@@ -808,12 +1004,25 @@ pub fn focus_step_vague(from: Rect, button: Button, targets: &[Rect]) -> Option<
/// How far a list scrolled between two frames' targets: the vertical shift
/// most targets of the same position and size agree on (targets that didn't
/// move, outside the list, don't count). `None` when nothing moved.
pub fn scroll_shift(before: &[Rect], after: &[Rect]) -> Option<f32> {
/// move, outside the list, don't count), for a list scrolled towards its end
/// (`down`: the rows moved up) or its start. `None` when nothing moved that way.
/// It takes the direction because half a row's scroll votes the same both ways.
pub fn scroll_shift(before: &[Rect], after: &[Rect], down: bool) -> Option<f32> {
let same = |a: &Rect, b: &Rect| a.iter().zip(b).all(|(x, y)| (x - y).abs() < 0.5);
if before.len() == after.len() && before.iter().zip(after).all(|(a, b)| same(a, b)) {
return None;
}
// Most votes; among equals the smallest move (the next row, not a far one).
shift_votes(before, after)
.into_iter()
.filter(|v| (v.0 < 0.0) == down)
.max_by(|a, b| a.1.cmp(&b.1).then(b.0.abs().total_cmp(&a.0.abs())))
.map(|v| v.0)
}
/// Every vertical shift that would carry a `before` target onto an `after`
/// target of the same position and size, with how many it would.
fn shift_votes(before: &[Rect], after: &[Rect]) -> Vec<(f32, usize)> {
let mut votes: Vec<(f32, usize)> = Vec::new();
for b in before {
for a in after {
@@ -830,11 +1039,94 @@ pub fn scroll_shift(before: &[Rect], after: &[Rect]) -> Option<f32> {
}
}
}
// Most votes; among equals the smallest move (the next row, not a far one).
votes
}
/// Where the focus goes when the right stick scrolled a list (`down`: towards
/// its end, so the rows moved up): the rectangle moved by the list's shift;
/// the same rectangle, for a widget outside the list; or, its row out of view,
/// the nearest target of its kind (`after`'s flag), the list's rows before
/// anything fixed. `None` when nothing moved that way, or none of its kind is
/// left. It takes the direction because half a row's scroll votes the same
/// both ways once a new row comes into view.
pub fn follow_scroll(
focus: Rect,
down: bool,
before: &[Rect],
after: &[(Rect, bool)],
) -> Option<usize> {
let rects: Vec<Rect> = after.iter().map(|t| t.0).collect();
// A column that stayed put isn't the list, even spaced like its shift.
let column = |of: &[Rect], r: &Rect| -> Vec<f32> {
let same = |o: &&Rect| o[0] == r[0] && o[2] == r[2] && o[3] == r[3];
of.iter().filter(same).map(|o| o[1]).collect()
};
let moving = |r: &&Rect| column(before, r) != column(&rects, r);
let was: Vec<Rect> = before.iter().filter(moving).copied().collect();
let now: Vec<Rect> = rects.iter().filter(moving).copied().collect();
let dy = shift_votes(&was, &now)
.into_iter()
.max_by(|a, b| a.1.cmp(&b.1).then(b.0.abs().total_cmp(&a.0.abs())))
.map(|v| v.0)
.filter(|v| (v.0 < 0.0) == down)
.max_by(|a, b| a.1.cmp(&b.1).then(b.0.abs().total_cmp(&a.0.abs())))?
.0;
let same = |a: &Rect, b: &Rect| a.iter().zip(b).all(|(x, y)| (x - y).abs() < 0.5);
let moved = [focus[0], focus[1] + dy, focus[2], focus[3]];
let found = |at: &Rect| rects.iter().position(|r| same(r, at));
if !moving(&&focus) {
return found(&focus);
}
if let Some(i) = found(&moved).or_else(|| found(&focus)) {
return Some(i);
}
let in_list = |r: &Rect| {
let was = [r[0], r[1] - dy, r[2], r[3]];
before.iter().any(|b| same(b, &was))
};
let centre = (moved[0] + moved[2] / 2.0, moved[1] + moved[3] / 2.0);
let distance = |r: &Rect| (r[0] + r[2] / 2.0 - centre.0).hypot(r[1] + r[3] / 2.0 - centre.1);
after
.iter()
.enumerate()
.filter(|(_, t)| t.1)
.min_by(|(_, a), (_, b)| {
in_list(&b.0)
.cmp(&in_list(&a.0))
.then(distance(&a.0).total_cmp(&distance(&b.0)))
})
.map(|(i, _)| i)
}
/// The target a focus rectangle stands for once the screen's size changed:
/// the same widget, by its place in the draw order when the screen drew as
/// many; else the target nearest where its centre falls at the new size.
pub fn refind_resized(
focus: Rect,
before: &[Rect],
after: &[Rect],
old: (f32, f32),
new: (f32, f32),
) -> Option<usize> {
let same = |r: &Rect| r.iter().zip(&focus).all(|(a, b)| (a - b).abs() < 0.5);
if before.len() == after.len()
&& let Some(i) = before.iter().position(same)
{
return Some(i);
}
let at = rescaled(
(focus[0] + focus[2] / 2.0, focus[1] + focus[3] / 2.0),
old,
new,
);
let centres: Vec<(f32, f32)> = after
.iter()
.map(|r| (r[0] + r[2] / 2.0, r[1] + r[3] / 2.0))
.collect();
nearest(at, &centres, f32::INFINITY)
}
/// A point at the same place, proportionally, on a screen of another size.
pub fn rescaled(at: (f32, f32), old: (f32, f32), new: (f32, f32)) -> (f32, f32) {
(at.0 * new.0 / old.0.max(1.0), at.1 * new.1 / old.1.max(1.0))
}
/// The target a remembered focus rectangle stands for in a new frame: the
@@ -1163,6 +1455,131 @@ pub fn bow_power(ticks: u32) -> f32 {
mod tests {
use super::*;
#[test]
fn every_bindable_action_reaches_the_game() {
for (action, _) in ACTIONS {
assert!(route(action).is_some(), "{action} has nowhere to go");
}
}
#[test]
fn navigation_preferences_migrate_and_stay_with_each_player() {
let dir = std::env::temp_dir().join(format!(
"horizon-pad-{}-{}",
std::process::id(),
std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.unwrap()
.as_nanos()
));
let p2 = dir.join("P2");
fs::create_dir_all(&p2).unwrap();
let fresh = PadSettings::load(&dir);
assert_eq!(fresh, PadSettings::default());
// An older file, with the removed menuNavigation key: bindings kept.
let legacy =
PadSettings::parse("menuNavigation:pointer\nbind_key.jump:east\nlookSensitivity:0.7\n");
assert_eq!(legacy.binding("key.jump"), Some(Button::East));
assert_eq!(legacy.look_sensitivity, 0.7);
fresh.save(&dir);
assert!(!dir.join(FILE).exists(), "defaults write no file");
let mut other = legacy;
other.pointer_speed = 2.5;
other.scroll_speed = 24.0;
other.repeat_delay = 0.6;
other.repeat_interval = 0.12;
other.save(&p2);
assert_eq!(PadSettings::load(&p2), other);
assert_eq!(PadSettings::load(&dir), fresh, "P2 did not write P1");
let invalid = PadSettings::parse(
"pointerSpeed:NaN\nscrollSpeed:inf\nrepeatDelay:-10\nrepeatInterval:20\n",
);
assert_eq!((invalid.pointer_speed, invalid.scroll_speed), (1.0, 12.0));
assert_eq!((invalid.repeat_delay, invalid.repeat_interval), (0.1, 0.3));
let bounded = PadSettings::parse(
"pointerSpeed:10\nscrollSpeed:-1\nrepeatDelay:NaN\nrepeatInterval:inf\n",
);
assert_eq!((bounded.pointer_speed, bounded.scroll_speed), (3.0, 1.0));
assert_eq!(
(bounded.repeat_delay, bounded.repeat_interval),
(0.35, 0.09)
);
fs::remove_dir_all(dir).unwrap();
}
#[test]
fn ownership_requires_new_activity_and_ignores_drift() {
let settings = PadSettings::default();
let mut p1 = Activity::default();
let mut p2 = Activity::default();
let mut state = PadState {
left: [0.04, 0.03],
..PadState::default()
};
assert!(!p1.observe(&state, &settings));
state.set(Button::South, true);
assert!(p1.observe(&state, &settings));
assert!(
!p1.observe(&state, &settings),
"held pad cannot reclaim mouse ownership"
);
assert!(
p2.observe(&state, &settings),
"another player's tracker is independent"
);
state.set(Button::South, false);
assert!(!p1.observe(&state, &settings));
state.left = [0.5, 0.0];
assert!(p1.observe(&state, &settings));
state.left = [0.52, 0.0];
assert!(!p1.observe(&state, &settings));
for x in [0.54, 0.56] {
state.left = [x, 0.0];
assert!(!p1.observe(&state, &settings));
}
state.left = [0.6, 0.0];
assert!(
p1.observe(&state, &settings),
"slow intentional movement accumulates"
);
state.left = [0.0; 2];
state.triggers[0] = 0.5;
assert!(p1.observe(&state, &settings));
state.triggers[0] = 0.35;
assert!(!p1.observe(&state, &settings));
state.triggers[0] = 0.45;
assert!(
!p1.observe(&state, &settings),
"trigger threshold noise is not new activity"
);
}
#[test]
fn cancelled_holds_stay_released_until_neutral_then_press_again() {
let mut edges = Edges::default();
let mut state = PadState::default();
state.set(Button::South, true);
state.triggers[1] = 0.8;
assert_eq!(
edges.update(&state, 0.4),
vec![(Button::South, true), (Button::RightTrigger, true)]
);
assert_eq!(
edges.cancel(),
vec![(Button::South, false), (Button::RightTrigger, false)]
);
assert!(edges.update(&state, 0.4).is_empty());
state.triggers[1] = 0.35;
assert!(edges.update(&state, 0.4).is_empty());
assert!(edges.update(&PadState::default(), 0.4).is_empty());
assert_eq!(edges.update(&state, 0.4), vec![(Button::South, true)]);
state.triggers[1] = 0.7;
assert_eq!(
edges.update(&state, 0.4),
vec![(Button::RightTrigger, true)]
);
}
#[test]
fn defaults_follow_bedrock() {
let s = PadSettings::default();
@@ -1192,7 +1609,9 @@ mod tests {
s.invert_y = true;
s.look_sensitivity = 0.75;
s.glyphs = GlyphStyle::PlayStation;
s.nintendo_letters = !s.nintendo_letters;
let text = s.serialize();
assert!(text.contains(&format!("nintendoLetters:{}\n", s.nintendo_letters)));
assert!(text.contains("bind_key.jump:east\n"));
assert!(text.contains("bind_key.drop:none\n"));
assert!(!text.contains("key.sneak"));
@@ -1238,6 +1657,27 @@ mod tests {
assert_eq!(other, ([0.0, 0.0], [1.0, 0.0]));
}
#[test]
fn a_nintendo_pad_by_its_letters_confirms_with_a() {
// The pad's A sits on the right (East): going by letters it plays South, confirm and jump.
let mut pad = PadState::default();
pad.set(Button::East, true);
pad.set(Button::LeftBumper, true);
pad.left = [0.5, -0.25];
let parts = pad.by_letter();
assert!(parts.held(Button::South));
assert!(!parts.held(Button::East));
// Other buttons and the sticks stay; reading by letters again gives the pad back.
assert!(parts.held(Button::LeftBumper));
assert_eq!(parts.left, [0.5, -0.25]);
assert_eq!(parts.by_letter(), pad);
// A part's glyph is the letter of the button playing it.
assert_eq!(Button::South.by_letter().label(GlyphStyle::Nintendo), "A");
assert_eq!(Button::East.by_letter().label(GlyphStyle::Nintendo), "B");
assert_eq!(Button::West.by_letter().label(GlyphStyle::Nintendo), "X");
assert_eq!(Button::North.by_letter().label(GlyphStyle::Nintendo), "Y");
}
#[test]
fn radial_deadzone_rescales() {
assert_eq!(radial([0.1, 0.05], 0.15), [0.0, 0.0]);
@@ -1382,6 +1822,63 @@ mod tests {
assert_eq!(focus_step_rect(grid[0], Button::South, &grid), None);
}
#[test]
fn follow_scroll_keeps_rows_and_fixed_widgets() {
// Rows 36 tall scrolled down 18: a fifth row comes into view, so +18
// carries as many rows as the real -18. Back, below, stays.
let back = [296.0, 212.0, 71.0, 20.0];
let rows = |ys: &[f32]| -> Vec<(Rect, bool)> {
let rows = ys.iter().map(|y| ([78.0, *y, 270.0, 36.0], true));
rows.chain([(back, false)]).collect()
};
let rects = |t: &[(Rect, bool)]| -> Vec<Rect> { t.iter().map(|t| t.0).collect() };
let before = rects(&rows(&[33.0, 69.0, 105.0, 141.0]));
let after = rows(&[15.0, 51.0, 87.0, 123.0, 159.0]);
assert_eq!(follow_scroll(before[1], true, &before, &after), Some(1));
assert_eq!(follow_scroll(back, true, &before, &after), Some(5));
// And back up.
let up = rows(&[33.0, 69.0, 105.0, 141.0]);
let was = rects(&after);
assert_eq!(follow_scroll(was[2], false, &was, &up), Some(2));
// Nothing moved, as on a screen with no list.
let still = rows(&[33.0, 69.0, 105.0, 141.0]);
assert_eq!(follow_scroll(before[1], true, &before, &still), None);
// A sidebar's tabs spaced exactly like the list's shift stay put.
let tab = |y: f32| [8.0, y, 112.0, 16.0];
let with_tabs = |t: &[(Rect, bool)]| -> Vec<(Rect, bool)> {
t.iter()
.copied()
.chain([(tab(100.0), true), (tab(118.0), true)])
.collect()
};
let was = rects(&with_tabs(&rows(&[33.0, 69.0, 105.0, 141.0])));
let now = with_tabs(&after);
assert_eq!(follow_scroll(tab(118.0), true, &was, &now), Some(7));
}
#[test]
fn follow_scroll_lands_on_the_nearest_row_when_its_row_leaves() {
// The row at 33 left the top; the next one is at 51. Nothing fixed.
let row = |y: f32| [78.0, y, 270.0, 36.0];
let before = [row(33.0), row(69.0), row(105.0)];
let after = [(row(51.0), true), (row(87.0), true)];
assert_eq!(follow_scroll(row(33.0), true, &before, &after), Some(0));
// The last row left the bottom: the list's new last row, not a fixed
// widget of its kind (at 200) nearer where the row went.
let fixed = [78.0, 200.0, 270.0, 36.0];
let before = [row(15.0), row(51.0), row(87.0), row(159.0), fixed];
let after = [
(row(33.0), true),
(row(69.0), true),
(row(105.0), true),
(fixed, true),
];
assert_eq!(follow_scroll(row(159.0), false, &before, &after), Some(2));
// Nothing of its kind left.
let other = after.map(|t| (t.0, false));
assert_eq!(follow_scroll(row(159.0), false, &before, &other), None);
}
#[test]
fn refind_tabs_sliders_and_stick_steps() {
let rects: Vec<Rect> = vec![[0.0, 0.0, 10.0, 10.0], [0.0, 20.0, 10.0, 10.0]];
@@ -1398,8 +1895,10 @@ mod tests {
.map(|i| [10.0, 16.0 + 24.0 * i as f32, 100.0, 20.0])
.chain([[10.0, 200.0, 50.0, 20.0]])
.collect();
assert_eq!(scroll_shift(&before, &after), Some(-24.0));
assert_eq!(scroll_shift(&before, &before), None);
assert_eq!(scroll_shift(&before, &after, true), Some(-24.0));
// Rows this far apart line up the other way too; the direction is what tells them apart.
assert_eq!(scroll_shift(&before, &after, false), Some(24.0));
assert_eq!(scroll_shift(&before, &before, true), None);
let tabs = [
([60.0, 0.0, 26.0, 32.0], false),
([0.0, 0.0, 26.0, 32.0], true),
@@ -1414,18 +1913,138 @@ mod tests {
assert_eq!(stick_direction([0.9, 0.2], 0.5), Some(Button::DPadRight));
assert_eq!(stick_direction([-0.2, -0.8], 0.5), Some(Button::DPadDown));
assert_eq!(stick_direction([0.3, 0.3], 0.5), None);
let mut s = PadSettings::default();
assert_eq!(s.menu_nav, MenuNav::Focus);
s.menu_nav = MenuNav::Pointer;
s.keyboard = TextKeyboard::Horizon;
let back = PadSettings::parse(&s.serialize());
let s = PadSettings {
keyboard: TextKeyboard::Horizon,
..PadSettings::default()
};
assert_eq!(
(back.menu_nav, back.keyboard),
(MenuNav::Pointer, TextKeyboard::Horizon)
PadSettings::parse(&s.serialize()).keyboard,
TextKeyboard::Horizon
);
assert!(steam_keyboard(TextKeyboard::Steam) && !steam_keyboard(TextKeyboard::Horizon));
}
#[test]
fn a_list_step_scrolls_rather_than_leave_a_list_that_can() {
let rows = |n: usize| -> Vec<Rect> {
(0..n)
.map(|i| [100.0, 40.0 + i as f32 * 36.0, 270.0, 36.0])
.collect()
};
let back: Rect = [150.0, 220.0, 150.0, 20.0];
let search: Rect = [150.0, 10.0, 150.0, 20.0];
let mut targets = rows(4);
targets.extend([back, search]);
let area = |up, down| ScrollArea {
rect: [0.0, 40.0, 380.0, 144.0],
amount: 0.0,
up,
down,
};
let (down, up) = (Button::DPadDown, Button::DPadUp);
let step = |from, button, area: &[ScrollArea]| list_step(from, button, &targets, area);
// A row below in view comes first.
assert_eq!(step(targets[1], down, &[area(true, true)]), Some(2));
// The last row in view: more below scrolls; none leaves.
assert_eq!(step(targets[3], down, &[area(true, true)]), None);
assert_eq!(step(targets[3], down, &[area(true, false)]), Some(4));
// The first row in view, the same upwards.
assert_eq!(step(targets[0], up, &[area(true, false)]), None);
assert_eq!(step(targets[0], up, &[area(false, true)]), Some(5));
// From outside the list it enters it, and no list means a plain step.
assert_eq!(step(back, up, &[area(true, true)]), Some(3));
assert_eq!(step(targets[3], down, &[]), Some(4));
}
#[test]
fn a_list_step_shows_its_row_whole_and_starts_from_one_nearly_gone() {
let area = |up, down| ScrollArea {
rect: [0.0, 40.0, 380.0, 100.0],
amount: 50.0,
up,
down,
};
let (down, up) = (Button::DPadDown, Button::DPadUp);
// The next row is cut by the view's bottom: it scrolls first, unless that's the end.
let targets: Vec<Rect> = vec![[100.0, 100.0, 270.0, 25.0], [100.0, 125.0, 270.0, 25.0]];
assert_eq!(
list_step(targets[0], down, &targets, &[area(true, true)]),
None
);
assert_eq!(
list_step(targets[0], down, &targets, &[area(true, false)]),
Some(1)
);
// The same at its top.
let targets: Vec<Rect> = vec![[100.0, 30.0, 270.0, 25.0], [100.0, 55.0, 270.0, 25.0]];
assert_eq!(
list_step(targets[1], up, &targets, &[area(true, true)]),
None
);
// A focused row with its last pixels in view is still in the list: going up scrolls,
// even with something above the list to go to.
let row: Rect = [100.0, 18.0, 270.0, 25.0];
let field: Rect = [150.0, 0.0, 150.0, 15.0];
assert!(area(true, true).holds(&row));
assert_eq!(list_step(row, up, &[row, field], &[area(true, true)]), None);
// Above the view altogether, it isn't.
assert!(!area(true, true).holds(&[100.0, 10.0, 270.0, 25.0]));
}
#[test]
fn a_stick_holds_its_direction_until_it_lets_go_or_turns() {
let step = 0.55;
let (up, right) = (Some(Button::DPadUp), Some(Button::DPadRight));
// Only a push past the threshold starts a step.
assert_eq!(stick_direction_held([0.0, 0.5], step, None), None);
assert_eq!(stick_direction_held([0.0, 0.6], step, None), up);
// Wobbling on the threshold keeps it; falling back past the release lets go.
assert_eq!(stick_direction_held([0.0, 0.5], step, up), up);
assert_eq!(stick_direction_held([0.0, 0.3], step, up), None);
// A diagonal doesn't flip it, but a clear turn does.
assert_eq!(stick_direction_held([0.6, 0.55], step, up), up);
assert_eq!(stick_direction_held([0.55, 0.6], step, right), right);
assert_eq!(stick_direction_held([0.9, 0.3], step, up), right);
// Straight across to the other side.
assert_eq!(
stick_direction_held([0.0, -0.9], step, up),
Some(Button::DPadDown)
);
// Past the release on the far side, but not far enough for a step.
assert_eq!(stick_direction_held([0.0, -0.45], step, up), None);
}
#[test]
fn a_repeat_stops_where_the_slots_end() {
let at = (100.0, 100.0);
assert!(!repeat_crosses_slots(at, (118.0, 100.0), true));
// The hotbar, over its small gap, is the same run of slots.
assert!(!repeat_crosses_slots(at, (100.0, 122.0), true));
// Another block of slots, or a button.
assert!(repeat_crosses_slots(at, (100.0, 132.0), true));
assert!(repeat_crosses_slots(at, (118.0, 100.0), false));
}
#[test]
fn a_resize_keeps_the_same_widget() {
let before: Vec<Rect> = vec![[10.0, 10.0, 20.0, 20.0], [100.0, 10.0, 20.0, 20.0]];
let after: Vec<Rect> = vec![[300.0, 90.0, 20.0, 20.0], [400.0, 90.0, 20.0, 20.0]];
let (old, new) = ((200.0, 100.0), (800.0, 400.0));
// The same count: the same place in the draw order, however far it moved.
assert_eq!(
refind_resized(before[0], &before, &after, old, new),
Some(0)
);
// A list showing more rows: the nearest to where it would be.
let more: Vec<Rect> = vec![
[30.0, 30.0, 20.0, 20.0],
[395.0, 35.0, 20.0, 20.0],
[700.0, 300.0, 20.0, 20.0],
];
assert_eq!(refind_resized(before[1], &before, &more, old, new), Some(1));
assert_eq!(refind_resized(before[0], &before, &[], old, new), None);
}
#[test]
fn labels_and_conflicts() {
assert_eq!(Button::South.label(GlyphStyle::Xbox), "A");
+155
View File
@@ -0,0 +1,155 @@
//! The keys a player's mappings hold, as their vanilla default keys, and which
//! devices hold each one. A key stays held while any device holds it, so one
//! device letting go (splitscreen moving the keyboard to another player, say)
//! can't release what another still presses.
use std::collections::HashMap;
use winit::keyboard::KeyCode;
/// Where a press came from.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Source {
/// The keyboard and mouse, and the scripting socket acting as them.
Keyboard,
Pad,
}
impl Source {
fn bit(self) -> u8 {
match self {
Source::Keyboard => 1,
Source::Pad => 2,
}
}
}
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct HeldKeys {
held: HashMap<KeyCode, u8>,
}
impl HeldKeys {
pub fn contains(&self, key: &KeyCode) -> bool {
self.held.contains_key(key)
}
/// `source` holds `key`. True when nothing held it before.
pub fn press(&mut self, key: KeyCode, source: Source) -> bool {
let sources = self.held.entry(key).or_insert(0);
let new = *sources == 0;
*sources |= source.bit();
new
}
/// `source` lets go of `key`. True when nothing holds it any more.
pub fn release(&mut self, key: &KeyCode, source: Source) -> bool {
let Some(sources) = self.held.get_mut(key) else {
return true;
};
*sources &= !source.bit();
if *sources == 0 {
self.held.remove(key);
true
} else {
false
}
}
pub fn held_by(&self, key: &KeyCode, source: Source) -> bool {
self.held
.get(key)
.is_some_and(|sources| sources & source.bit() != 0)
}
/// `source` lets go of everything: the keys nothing holds any more.
pub fn release_source(&mut self, source: Source) -> Vec<KeyCode> {
let keys: Vec<KeyCode> = self
.held
.iter()
.filter(|(_, sources)| *sources & source.bit() != 0)
.map(|(key, _)| *key)
.collect();
keys.into_iter()
.filter(|key| self.release(key, source))
.collect()
}
/// Held, by the keyboard unless a device already holds it: for callers
/// that don't say where the press came from.
pub fn insert(&mut self, key: KeyCode) -> bool {
if self.contains(&key) {
return false;
}
self.press(key, Source::Keyboard)
}
/// Let go of `key` whoever holds it.
pub fn remove(&mut self, key: &KeyCode) -> bool {
self.held.remove(key).is_some()
}
pub fn clear(&mut self) {
self.held.clear();
}
pub fn is_empty(&self) -> bool {
self.held.is_empty()
}
pub fn len(&self) -> usize {
self.held.len()
}
pub fn iter(&self) -> impl Iterator<Item = &KeyCode> {
self.held.keys()
}
}
impl IntoIterator for HeldKeys {
type Item = KeyCode;
type IntoIter = std::collections::hash_map::IntoKeys<KeyCode, u8>;
fn into_iter(self) -> Self::IntoIter {
self.held.into_keys()
}
}
impl<'a> IntoIterator for &'a HeldKeys {
type Item = &'a KeyCode;
type IntoIter = std::collections::hash_map::Keys<'a, KeyCode, u8>;
fn into_iter(self) -> Self::IntoIter {
self.held.keys()
}
}
impl FromIterator<KeyCode> for HeldKeys {
fn from_iter<I: IntoIterator<Item = KeyCode>>(keys: I) -> Self {
let mut held = HeldKeys::default();
for key in keys {
held.insert(key);
}
held
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn a_key_stays_held_while_any_device_holds_it() {
let mut keys = HeldKeys::default();
assert!(keys.press(KeyCode::Space, Source::Pad));
assert!(!keys.press(KeyCode::Space, Source::Keyboard));
assert!(keys.press(KeyCode::KeyW, Source::Keyboard));
assert_eq!(keys.release_source(Source::Keyboard), vec![KeyCode::KeyW]);
assert!(keys.contains(&KeyCode::Space) && !keys.contains(&KeyCode::KeyW));
assert!(keys.held_by(&KeyCode::Space, Source::Pad));
assert!(!keys.held_by(&KeyCode::Space, Source::Keyboard));
assert!(keys.release(&KeyCode::Space, Source::Pad));
assert!(keys.is_empty());
}
#[test]
fn untagged_inserts_and_removes_act_as_before() {
let mut keys = HeldKeys::default();
keys.press(KeyCode::ShiftLeft, Source::Pad);
assert!(!keys.insert(KeyCode::ShiftLeft), "already held");
assert!(!keys.held_by(&KeyCode::ShiftLeft, Source::Keyboard));
assert!(
keys.remove(&KeyCode::ShiftLeft),
"remove lets go for everyone"
);
assert!(!keys.contains(&KeyCode::ShiftLeft));
assert!(keys.release(&KeyCode::KeyA, Source::Keyboard), "never held");
}
}
@@ -23,6 +23,8 @@ pub const MAPPINGS: &[(&str, &str, &str)] = &[
("key.pickItem", "key.mouse.middle", "gameplay"),
("key.command", "key.keyboard.slash", "multiplayer"),
("key.friends", "key.keyboard.o", "multiplayer"),
// Horizon's emote wheel (docs/cosmetics.md), on a key vanilla leaves free.
("key.emote", "key.keyboard.b", "multiplayer"),
("key.socialInteractions", "key.keyboard.p", "multiplayer"),
("key.toggleGui", "key.keyboard.f1", "misc"),
(
+2
View File
@@ -5,6 +5,7 @@
#![forbid(unsafe_code)]
pub mod clipboard;
pub mod gamepad;
pub mod held;
pub mod input;
pub mod interaction_input;
pub mod key_names;
@@ -12,4 +13,5 @@ pub mod keybinds;
pub mod keymapping;
pub mod modifiers;
pub mod mouse;
pub mod snap;
pub mod window;
+202
View File
@@ -0,0 +1,202 @@
//! Where the controller's menu cursor settles once the stick is let go, and
//! how it gets there. Every rule's number lives in [`Tuning`], so the feel can
//! be adjusted in one place.
/// The snapping engine's knobs, in GUI pixels and seconds.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Tuning {
/// A let-go cursor settles on a target this close to it.
pub radius: f32,
/// How long the glide onto a target takes.
pub glide_seconds: f32,
/// Movement shorter than this is a wobble: the cursor stays where it was.
pub min_travel: f32,
/// A flick that ends still nearest its starting target commits to the
/// neighbour it was heading for once it covered this fraction of the way.
pub commit: f32,
/// How far off the flick's direction a neighbour may lie (cosine of the
/// angle: 0.7 is about 45 degrees).
pub cone: f32,
/// The pointer's speed over a slot or control, as a fraction of its
/// speed elsewhere (1 leaves it unchanged).
pub over_target_speed: f32,
}
pub const TUNING: Tuning = Tuning {
radius: 16.0,
glide_seconds: 0.025,
min_travel: 1.5,
commit: 0.15,
cone: 0.7,
over_target_speed: 1.0,
};
type Point = (f32, f32);
fn distance(a: Point, b: Point) -> f32 {
((a.0 - b.0).powi(2) + (a.1 - b.1).powi(2)).sqrt()
}
/// The target nearest `at`, if one lies within `radius`.
pub fn nearest(at: Point, targets: &[Point], radius: f32) -> Option<usize> {
targets
.iter()
.enumerate()
.map(|(i, t)| (i, distance(at, *t)))
.filter(|(_, d)| *d <= radius)
.min_by(|a, b| a.1.total_cmp(&b.1))
.map(|(i, _)| i)
}
/// Where a stick movement from `start` to `end` settles among `targets`
/// (their centres), or `None` to leave the cursor where it is.
pub fn settle(start: Point, end: Point, targets: &[Point], tuning: &Tuning) -> Option<usize> {
let near = nearest(end, targets, tuning.radius);
let travel = (end.0 - start.0, end.1 - start.1);
let length = distance(start, end);
if length < tuning.min_travel {
return near;
}
let origin = nearest(start, targets, tuning.radius);
if near != origin {
return near;
}
// Still nearest where it started: a quick flick toward a neighbour.
let Some(o) = origin else {
return near;
};
let from = targets[o];
let heading = (travel.0 / length, travel.1 / length);
let next = targets
.iter()
.enumerate()
.filter(|(i, _)| *i != o)
.filter_map(|(i, t)| {
let to = (t.0 - from.0, t.1 - from.1);
let gap = distance(from, *t);
let aligned = (to.0 * heading.0 + to.1 * heading.1) / gap;
(gap > 0.0 && aligned >= tuning.cone).then_some((i, gap, to))
})
.min_by(|a, b| a.1.total_cmp(&b.1));
match next {
Some((i, gap, to)) => {
let progress = ((end.0 - from.0) * to.0 + (end.1 - from.1) * to.1) / (gap * gap);
if progress >= tuning.commit {
Some(i)
} else {
near
}
}
None => near,
}
}
/// Where a cursor left on a target goes once the targets moved: with most of
/// them if they moved together (a recipe book opened), else to the nearest
/// one (a creative tab with other slots), so it never rests between targets.
/// `None` when it wasn't on a target, or one is still there.
pub fn follow(at: Point, before: &[Point], after: &[Point]) -> Option<usize> {
const SAME: f32 = 0.5;
let on = before.iter().find(|t| distance(at, **t) <= SAME)?;
if after.iter().any(|t| distance(at, *t) <= SAME) {
return None;
}
let carried = |by: Point| {
before
.iter()
.filter(|b| {
let moved = (b.0 + by.0, b.1 + by.1);
after.iter().any(|a| distance(moved, *a) <= SAME)
})
.count()
};
let together = after
.iter()
.enumerate()
.map(|(i, a)| (i, carried((a.0 - on.0, a.1 - on.1))))
.max_by_key(|&(_, count)| count)
.filter(|&(_, count)| count * 2 > before.len());
together
.map(|(i, _)| i)
.or_else(|| nearest(at, after, f32::INFINITY))
}
/// The cursor `seconds` into a glide from `from` to `to`: eased out, so it
/// slows as it lands, and exactly `to` once the glide is over.
pub fn glide(from: Point, to: Point, seconds: f32, tuning: &Tuning) -> Point {
let t = (seconds / tuning.glide_seconds).clamp(0.0, 1.0);
let eased = 1.0 - (1.0 - t).powi(3);
(
from.0 + (to.0 - from.0) * eased,
from.1 + (to.1 - from.1) * eased,
)
}
#[cfg(test)]
mod tests {
use super::*;
/// A row of inventory slots, 18 pixels apart, and the slot below the first.
const SLOTS: [Point; 4] = [(8.0, 8.0), (26.0, 8.0), (44.0, 8.0), (8.0, 26.0)];
#[test]
fn follow_goes_with_targets_that_moved_together() {
let moved = SLOTS.map(|s| (s.0 + 77.0, s.1));
assert_eq!(follow(SLOTS[1], &SLOTS, &moved), Some(1));
}
#[test]
fn follow_takes_the_nearest_of_other_targets() {
let other = [(30.0, 50.0), (200.0, 200.0)];
assert_eq!(follow(SLOTS[1], &SLOTS, &other), Some(0));
}
#[test]
fn follow_leaves_a_free_cursor_and_a_target_still_there() {
let other = [(30.0, 50.0)];
assert_eq!(follow((100.0, 100.0), &SLOTS, &other), None);
assert_eq!(follow(SLOTS[0], &SLOTS, &SLOTS), None);
assert_eq!(follow(SLOTS[0], &SLOTS, &[]), None);
}
#[test]
fn a_short_flick_moves_to_the_neighbour_it_heads_for() {
// 4 pixels right of slot 0: still nearest slot 0, but heading for slot 1.
assert_eq!(settle((8.0, 8.0), (12.0, 8.0), &SLOTS, &TUNING), Some(1));
assert_eq!(settle((8.0, 8.0), (8.0, 12.0), &SLOTS, &TUNING), Some(3));
assert_eq!(settle((26.0, 8.0), (22.0, 8.0), &SLOTS, &TUNING), Some(0));
}
#[test]
fn a_wobble_stays_put() {
assert_eq!(settle((8.0, 8.0), (8.5, 8.4), &SLOTS, &TUNING), Some(0));
// Barely started toward the neighbour: not committed.
assert_eq!(settle((8.0, 8.0), (9.6, 8.0), &SLOTS, &TUNING), Some(0));
}
#[test]
fn a_long_move_settles_on_the_nearest_target() {
assert_eq!(settle((8.0, 8.0), (42.0, 9.0), &SLOTS, &TUNING), Some(2));
// Far from everything: left where it is.
assert_eq!(settle((8.0, 8.0), (200.0, 200.0), &SLOTS, &TUNING), None);
}
#[test]
fn a_flick_off_any_row_does_not_jump_sideways() {
// Up from slot 0: nothing lies that way, so it stays on slot 0.
assert_eq!(settle((8.0, 8.0), (8.0, 4.0), &SLOTS, &TUNING), Some(0));
}
#[test]
fn the_glide_eases_onto_its_target_and_stops_there() {
let (from, to) = ((0.0, 0.0), (20.0, -10.0));
assert_eq!(glide(from, to, 0.0, &TUNING), from);
let half = glide(from, to, TUNING.glide_seconds / 2.0, &TUNING);
assert!(
half.0 > 10.0 && half.0 < 20.0,
"eased out: past halfway at half time"
);
assert_eq!(glide(from, to, TUNING.glide_seconds, &TUNING), to);
assert_eq!(glide(from, to, 1.0, &TUNING), to);
}
}
+8
View File
@@ -18,6 +18,8 @@ horizon-client-core = { path = "../horizon-client-core" }
horizon-client-input = { path = "../horizon-client-input" }
horizon-client-render = { path = "../horizon-client-render" }
horizon-command = { path = "../horizon-command" }
# Emotes pose the player model (`Mob::emote`, `mobs::anim::setup`).
horizon-cosmetics = { path = "../horizon-cosmetics" }
horizon-items = { path = "../horizon-items" }
horizon-core = { path = "../horizon-core" }
# `horizon-ctl mcp`: the Model Context Protocol, shared with the launcher and the server.
@@ -30,6 +32,8 @@ horizon-world = { path = "../horizon-world" }
horizon-protocol = { path = "../horizon-protocol" }
# server.properties, eula.txt and the user lists, shared with horizon-server.
horizon-server-files = { path = "../horizon-server-files" }
# The control endpoint's token (control.rs), as horizon-server's and the relay's.
getrandom = "0.3"
# The dedicated server's anticheat, off unless server.toml's [anticheat] turns it on (docs/anticheat.md).
horizon-anticheat = { path = "../horizon-anticheat" }
# The dedicated server's chat filter: [chat_filter], the slur list, mutes (docs/chat-filter.md).
@@ -63,6 +67,10 @@ ab_glyph = "0.2.32"
log = "0.4"
chrono = { version = "0.4.42", default-features = false, features = ["clock", "std"] }
flate2 = { version = "1.1.10", default-features = false, features = ["zlib-rs", "runtime_detection"] }
# The network threads of a server's players: epoll, kqueue or Windows' AFD (lan/io_pool.rs).
mio = { version = "1.2.4", features = ["os-poll", "net"] }
# Shared chunk frames are found by one keyed 128-bit hash of their body (lan/conn.rs SharedFrames).
xxhash-rust = { version = "0.8.19", features = ["xxh3"] }
horizon-theme = { path = "../horizon-theme" }
# Opt-in data collection: the game keeps, the launcher sends (docs/telemetry.md); `live` is
# the anonymous "I'm playing" ping the game sends itself (`heartbeat.rs`).
@@ -64,10 +64,11 @@ fn fixture(window: Arc<Window>) -> Result<(), Box<dyn std::error::Error>> {
None,
GraphicsApi::Vulkan,
false,
false,
true,
))?;
assert!(!renderer.pack_entity_shadows(), "no selected pack");
renderer.set_shader_pack(0, None, &[]);
renderer.set_shader_pack(0, None, &[]).unwrap();
assert!(
!renderer.pack_entity_shadows(),
"selected pack without a compiled post"
@@ -164,6 +165,7 @@ fn fixture(window: Arc<Window>) -> Result<(), Box<dyn std::error::Error>> {
}
let (_, notes) = renderer
.set_shader_pack(dimension, Some(post), &[])
.unwrap()
.unwrap();
if break_pipeline {
assert!(
@@ -0,0 +1,831 @@
//! Draws a scene `horizon-ctl render-capture DIR` wrote, offscreen, from its camera, with the
//! real `Renderer`, and prints GPU and CPU milliseconds per frame and Horizon's own passes'
//! GPU times as JSON (docs/graphics.md, "Render capture and replay").
//! `cargo run --release -p horizon-client-render --example scene_replay -- DIR [--frames 300]
//! [--warmup 60] [--yaw-offsets 0,90,180,270] [--texture-filtering 0|1|2] [--anisotropy-bit N]
//! [--mipmaps N] [--lod-distance CHUNKS] [--render-distance CHUNKS] [--size WxH]
//! [--section-draws flat|indirect] [--section-cull on|off] [--section-sides on|off]
//! [--gpu-culling on|off] [--root RESOURCES] [--screenshot PNG]
//! [--world SAVE --leaf-culling MODE] [--memory on]`
//! `--screenshot` saves the first view's last frame, after the timed frames.
//! `--world` meshes the captured sections again from that save's region files
//! (blocks, biomes and saved light; `ao`, `biomeBlendRadius` and `cutoutLeaves`
//! from `./options.txt`) with `--leaf-culling` (default `off`), so a mesher
//! change can be measured on the captured view. A section whose 3x3 columns are
//! not all saved keeps its captured mesh.
//! `--memory on` adds the renderer's largest GPU resources and, on macOS, the process's
//! physical footprint by category (`footprint`), taken after the timed frames.
use horizon_client_render::{
assets::{Assets, RenderAssets},
biome::Biomes,
blocks::BlockFacts,
chunk::{BIOME_STRATEGY, Chunk, ColumnLayout, Light, block_strategy},
fast_hash::{FxHashMap, FxHashSet},
gfx::{
PreparedTextures, Renderer, ScreenshotRequest,
capture::{self, AtlasCheck, Scene},
panorama::Faces,
},
graphics::LeafCullingMode,
hud::HudBatch,
lod::TileKey,
mesher::{MeshScratch, MeshTables, Mesher, SectionMesh, packed},
models,
};
use horizon_core::{
biome::{BiomeZoom, obfuscate_seed},
paletted::PalettedContainer,
};
use horizon_world::{
chunk::BlockState,
nbt::{Limits, NamedTag, Tag},
region::RegionFile,
registry::BlockRegistry,
};
use serde_json::{Value, json};
use std::{
path::{Path, PathBuf},
sync::{
Arc,
atomic::{AtomicUsize, Ordering},
},
time::{Duration, Instant},
};
use winit::{
application::ApplicationHandler,
event::WindowEvent,
event_loop::{ActiveEventLoop, EventLoop},
window::{Window, WindowId},
};
// The game's allocator, so that `--memory`'s footprint is the game's: the system heap kept
// gigabytes of the meshes `--world` frees dirty.
#[global_allocator]
static ALLOCATOR: horizon_threads::Allocator = horizon_threads::ALLOCATOR;
#[derive(Default)]
struct Options {
dir: PathBuf,
frames: usize,
warmup: usize,
yaw_offsets: Vec<f32>,
root: Option<PathBuf>,
texture_filtering: Option<i32>,
anisotropy_bit: Option<i32>,
mipmaps: Option<u32>,
lod_distance: Option<u32>,
render_distance: Option<i32>,
size: Option<[u32; 2]>,
flat: Option<bool>,
cull: Option<bool>,
sides: Option<bool>,
gpu_culling: Option<bool>,
screenshot: Option<PathBuf>,
world: Option<PathBuf>,
leaf_culling: LeafCullingMode,
memory: bool,
}
fn on_off(value: &str) -> Result<bool, String> {
match value {
"on" | "flat" => Ok(true),
"off" | "indirect" => Ok(false),
other => Err(format!("expected on or off, got {other}")),
}
}
fn options() -> Result<Options, String> {
let mut o = Options {
frames: 300,
warmup: 60,
yaw_offsets: vec![0.0],
..Default::default()
};
let mut args = std::env::args().skip(1);
let mut dir = None;
while let Some(arg) = args.next() {
if !arg.starts_with("--") {
dir = Some(PathBuf::from(arg));
continue;
}
let value = args.next().ok_or(format!("{arg} needs a value"))?;
let number = |v: &str| v.parse::<i64>().map_err(|e| format!("{arg}: {e}"));
match arg.as_str() {
"--frames" => o.frames = number(&value)?.max(1) as usize,
"--warmup" => o.warmup = number(&value)?.max(0) as usize,
"--yaw-offsets" => {
o.yaw_offsets = value
.split(',')
.map(|v| v.trim().parse::<f32>().map_err(|e| format!("{arg}: {e}")))
.collect::<Result<_, _>>()?
}
"--root" => o.root = Some(value.into()),
"--texture-filtering" => o.texture_filtering = Some(number(&value)? as i32),
"--anisotropy-bit" => o.anisotropy_bit = Some(number(&value)? as i32),
"--mipmaps" => o.mipmaps = Some(number(&value)?.max(0) as u32),
"--lod-distance" => o.lod_distance = Some(number(&value)?.max(0) as u32),
"--render-distance" => o.render_distance = Some(number(&value)?.max(0) as i32),
"--size" => {
let (w, h) = value.split_once('x').ok_or("--size takes WxH")?;
o.size = Some([number(w)? as u32, number(h)? as u32]);
}
"--section-draws" => o.flat = Some(on_off(&value)?),
"--section-cull" => o.cull = Some(on_off(&value)?),
"--section-sides" => o.sides = Some(on_off(&value)?),
"--gpu-culling" => o.gpu_culling = Some(on_off(&value)?),
"--screenshot" => o.screenshot = Some(value.into()),
"--world" => o.world = Some(value.into()),
"--memory" => o.memory = on_off(&value)?,
"--leaf-culling" => {
o.leaf_culling = LeafCullingMode::ALL
.into_iter()
.find(|mode| mode.name() == value)
.ok_or(format!("no leaf culling mode {value}"))?;
}
other => return Err(format!("unknown option {other}")),
}
}
o.dir = dir.ok_or("the capture directory is required")?;
Ok(o)
}
/// Milliseconds: average, median, 95th percentile and slowest, over `samples`.
fn summary(samples: &[f32]) -> Value {
if samples.is_empty() {
return Value::Null;
}
let mut sorted = samples.to_vec();
sorted.sort_by(f32::total_cmp);
let at = |q: f32| sorted[((sorted.len() - 1) as f32 * q).round() as usize];
json!({
"avg": samples.iter().sum::<f32>() / samples.len() as f32,
"min": sorted[0],
"p10": at(0.1),
"p50": at(0.5),
"p95": at(0.95),
"max": sorted[sorted.len() - 1],
"samples": samples.len(),
})
}
fn ms(d: Duration) -> f32 {
d.as_secs_f32() * 1000.0
}
fn replay(window: Arc<Window>) -> Result<(), Box<dyn std::error::Error>> {
let o = options()?;
let scene = Scene::read(&o.dir)?;
let settings = &scene.settings;
let root = o.root.clone().unwrap_or_else(|| settings.resources.clone());
let loading = Instant::now();
let assets = Assets::load(&root)?;
let render = assets.reload(&root)?;
if AtlasCheck::of(&render) != settings.atlas {
return Err(format!(
"the block sprites at {} are not the ones the capture was made with (resource packs \
or mods?): pass --root with the game's resource root",
root.display()
)
.into());
}
let one = [255u8; 4];
let zero = [0u8; 4];
let pixels = render.pixels.get();
let prepared = PreparedTextures::new(
&pixels,
render.sprite_size,
render.texture_layers,
&render.sprite_mips,
(&zero[..], 1),
)
.with_pbr(
&render.pbr_normals,
&render.pbr_specular,
render.pbr_size,
render.texture_layers,
);
let mut renderer = pollster::block_on(Renderer::new(
window,
true,
&pixels,
render.sprite_size,
render.sprite_minimum_size,
render.texture_layers,
&render.sprite_mips,
&render.animations,
(&one[..], 1, 1),
(&zero[..], 1, 1),
(&zero[..], 1, 1),
(&zero[..], 1),
Arc::new(Faces::colour([0, 0, 0, 255])),
Some(prepared),
None,
settings.graphics_api(),
settings.translucent_batching,
false,
false,
))?;
drop(pixels);
render.pixels.pack();
let state = &scene.renderer;
let [width, height] = o.size.unwrap_or(state.size);
renderer.resize(width, height);
renderer.gamma = state.gamma;
renderer.fullbright = state.fullbright;
renderer.improved_transparency = state.improved_transparency;
renderer.animated_textures = state.animated_textures;
let filtering = o.texture_filtering.unwrap_or(settings.texture_filtering);
let anisotropy = o.anisotropy_bit.unwrap_or(settings.anisotropy_bit);
renderer.set_texture_filtering(filtering, anisotropy);
renderer.set_mipmap_levels(o.mipmaps.unwrap_or(settings.mipmap_levels));
renderer.set_world_post(
settings.resolution_scale,
settings.fxaa,
settings.taa,
settings.upscale,
);
let mut notes = Vec::new();
let mut note = |what: &str, result: horizon_client_render::Result<()>| {
if let Err(e) = result {
notes.push(format!("{what}: {e}"));
}
};
note(
"section-draws",
renderer.set_flat_draws(o.flat.unwrap_or(state.flat_draws)),
);
note(
"section-cull",
renderer.set_section_cull(o.cull.unwrap_or(state.section_cull)),
);
note(
"gpu-culling",
renderer.set_gpu_culling(o.gpu_culling.unwrap_or(state.gpu_culling)),
);
renderer.set_section_sides(o.sides.unwrap_or(state.section_sides));
renderer.set_pass_timing(true);
let layout = ColumnLayout::of_level(state.min_y, state.sections as i32 * 16);
if layout != ColumnLayout::VANILLA {
renderer.clear_sections(layout);
}
// Near sections first: with no far tile resident yet, none fades in.
let camera = scene.frame.camera;
let column = |x: f64| (x.floor() as i32) >> 4;
let (cx, cz) = (column(camera[0]), column(camera[2]));
let near = |x: i32, z: i32| {
o.render_distance
.is_none_or(|r| (x - cx).pow(2) + (z - cz).pow(2) <= r * r)
};
let (mut remeshed, mut world_report) = (FxHashMap::default(), Value::Null);
if let Some(world) = &o.world {
let keys: Vec<[i32; 3]> = section_keys(&o.dir)?
.into_iter()
.filter(|&[x, _, z]| near(x, z))
.collect();
let started = Instant::now();
remeshed = remesh(world, &root, &assets, &render, o.leaf_culling, &keys)?;
world_report = json!({
"save": world.display().to_string(),
"leaf_culling": o.leaf_culling.name(),
"remeshed": remeshed.len(),
"kept": keys.len() - remeshed.len(),
"remesh_ms": ms(started.elapsed()),
});
}
let leaf_layers = leaf_layers(&render);
let (mut sections, mut quads, mut leaf_quads) = (0, 0usize, 0usize);
let mut packed_quads = 0usize;
capture::read_meshes(&o.dir, "sections", |[x, y, z], captured| {
if near(x, z) {
let mesh = remeshed.remove(&[x, y, z]).unwrap_or(captured);
quads += mesh.solid.len() / 4;
packed_quads += packed::packed_quads(&mesh.packed, mesh.solid.len() / 4);
leaf_quads += mesh
.solid
.iter()
.filter(|v| leaf_layers.contains(&v.layer))
.count()
/ 4;
renderer.upload((x, y, z), &mesh);
sections += 1;
}
})?;
let mut tiles: Vec<(TileKey, SectionMesh)> = Vec::new();
capture::read_meshes(&o.dir, "tiles", |[x, z, level], mesh| {
let key = TileKey {
x,
z,
level: level as u8,
};
let [ox, _, oz] = key.origin();
let half = f64::from(key.size()) / 2.0;
let (dx, dz) = (
f64::from(ox) + half - camera[0],
f64::from(oz) + half - camera[2],
);
let near = o
.lod_distance
.is_none_or(|d| (dx * dx + dz * dz).sqrt() <= f64::from(d) * 16.0);
if near {
tiles.push((key, mesh));
}
})?;
let tile_count = tiles.len();
if !tiles.is_empty() {
let cutout: FxHashSet<(i32, i32)> = scene.lod_cutout.iter().copied().collect();
renderer.queue_lods(tiles, Vec::new(), Some(cutout));
renderer.upload_lods(Duration::from_secs(3600));
}
let loaded_ms = ms(loading.elapsed());
let hud = HudBatch::new([width, height]);
let mut views = Vec::new();
for &offset in &o.yaw_offsets {
let mut frame = scene.frame(&hud);
frame.yaw += offset;
frame.eye_rotation[0] += offset;
if let Some(r) = o.render_distance {
frame.distance = (r * 16) as f32;
frame.detail_distance = frame.distance;
}
let draw = |renderer: &mut Renderer| -> horizon_client_render::Result<Duration> {
if frame.cave_culling {
renderer.start_occlusion(frame.camera, frame.distance);
}
let started = Instant::now();
renderer.render(&frame)?;
Ok(started.elapsed())
};
for _ in 0..o.warmup {
draw(&mut renderer)?;
}
renderer.gpu_times.clear();
let (mut call, mut encode, mut gpu) = (Vec::new(), Vec::new(), Vec::new());
for _ in 0..o.frames {
call.push(ms(draw(&mut renderer)?));
encode.push(ms(renderer.last_encode));
gpu.append(&mut renderer.gpu_times);
}
// Timestamps arrive a few frames late: a few more of the same frame bring them in.
for _ in 0..16 {
if gpu.len() >= o.frames {
break;
}
draw(&mut renderer)?;
gpu.append(&mut renderer.gpu_times);
}
gpu.truncate(o.frames);
if let Some(path) = o.screenshot.as_ref().filter(|_| views.is_empty()) {
renderer.screenshot_result = None;
renderer.screenshot = Some(ScreenshotRequest {
path: path.clone(),
size: None,
scaled: false,
});
for _ in 0..32 {
draw(&mut renderer)?;
if renderer.screenshot_result.is_some() {
break;
}
}
match renderer.screenshot_result.take() {
Some(Ok(_)) => {}
Some(Err(e)) => notes.push(format!("screenshot: {e}")),
None => notes.push("screenshot: not saved".into()),
}
}
views.push(json!({
"yaw_offset": offset,
"gpu_ms": summary(&gpu),
"render_call_ms": summary(&call),
"cpu_encode_ms": summary(&encode),
"gpu_passes_median_ms": renderer
.own_pass_times()
.into_iter()
.map(|(name, ms)| (name, json!(ms)))
.collect::<serde_json::Map<_, _>>(),
"drawn_sections": renderer.drawn_sections,
"section_draws": renderer.section_draws,
"section_draw_calls": renderer.section_draw_calls,
// Occlusion culling's last result: boxes hidden, boxes tested, share of solid
// indices hidden.
"culled": renderer.culled_sections(),
}));
}
let section_draws = if renderer.flat_draws() {
"flat"
} else {
"indirect"
};
let memory = o.memory.then(|| memory_report(&renderer));
let report = json!({
"capture": o.dir.display().to_string(),
"adapter": renderer.info.name,
"captured_on": state.adapter,
"size": [width, height],
"sections": sections,
"solid_quads": quads,
"leaf_quads": leaf_quads,
// Solid quads uploaded as one record each (`mesher::packed`).
"packed_quads": packed_quads,
"world": world_report,
"tiles": tile_count,
"load_ms": loaded_ms,
"frames": o.frames,
"warmup": o.warmup,
"settings": {
"texture_filtering": filtering,
"anisotropy_bit": anisotropy,
"mipmaps": o.mipmaps.unwrap_or(settings.mipmap_levels),
"lod_distance": o.lod_distance,
"render_distance": o.render_distance,
"section_draws": section_draws,
"section_cull": renderer.section_cull(),
"section_sides": renderer.section_sides(),
"gpu_culling": renderer.gpu_culling(),
"shader_pack_left_out": state.shader_pack,
},
"notes": notes,
"views": views,
"memory": memory,
});
println!("{}", serde_json::to_string_pretty(&report)?);
Ok(())
}
fn mb(bytes: u64) -> f64 {
(bytes as f64 / 1048576.0 * 10.0).round() / 10.0
}
/// `--memory`: the renderer's census in MiB and, on macOS, `footprint`'s summary of this
/// process (GPU buffers and textures count as IOAccelerator memory there).
fn memory_report(renderer: &Renderer) -> Value {
let gpu: serde_json::Map<String, Value> = renderer
.gpu_census()
.into_iter()
.map(|(name, bytes)| (format!("{name}_mb"), json!(mb(bytes))))
.collect();
let footprint = std::process::Command::new("/usr/bin/footprint")
.args(["-f", "bytes", "-p", &std::process::id().to_string()])
.output()
.ok()
.map(|out| String::from_utf8_lossy(&out.stdout).into_owned());
let footprint = footprint.map(|text| {
let mut total = None;
let mut categories = Vec::new();
for line in text.lines() {
if let Some(at) = line.find("Footprint: ") {
total = line[at + 11..]
.split_whitespace()
.next()
.and_then(|v| v.parse::<u64>().ok());
}
// " <dirty> B <clean> B <reclaimable> B <regions> <category>"
let words: Vec<&str> = line.split_whitespace().collect();
if words.len() >= 8
&& words[1] == "B"
&& let Ok(dirty) = words[0].parse::<u64>()
&& dirty >= 1 << 20
{
categories.push(json!([words[7..].join(" "), mb(dirty)]));
}
}
json!({ "total_mb": total.map(mb), "dirty_by_category_mb": categories })
});
json!({ "gpu": gpu, "footprint": footprint })
}
struct App;
impl ApplicationHandler for App {
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
let window = Arc::new(
event_loop
.create_window(Window::default_attributes().with_visible(false))
.unwrap(),
);
if let Err(error) = replay(window) {
eprintln!("scene_replay: {error}");
std::process::exit(1);
}
event_loop.exit();
}
fn window_event(&mut self, _: &ActiveEventLoop, _: WindowId, _: WindowEvent) {}
}
fn main() {
EventLoop::new().unwrap().run_app(&mut App).unwrap();
}
/// The captured sections' keys, from the index alone.
fn section_keys(dir: &Path) -> Result<Vec<[i32; 3]>, Box<dyn std::error::Error>> {
#[derive(serde::Deserialize)]
struct Key {
key: [i32; 3],
}
let records: Vec<Key> = serde_json::from_reader(std::io::BufReader::new(std::fs::File::open(
dir.join("sections.json"),
)?))?;
Ok(records.into_iter().map(|r| r.key).collect())
}
/// Sprite layers of every leaves block, as terrain vertices carry them (with or
/// without `OPAQUE_LAYER`).
fn leaf_layers(render: &RenderAssets) -> FxHashSet<u16> {
render
.sprite_layers
.iter()
.filter(|(name, _)| name.ends_with("_leaves"))
.flat_map(|(_, &layer)| {
[
layer as u16,
layer as u16 | horizon_client_render::mesher::OPAQUE_LAYER,
]
})
.collect()
}
/// `--world`: the sections `keys` meshed again from `save`'s overworld region
/// files, on every core, as the game's workers mesh them.
fn remesh(
save: &Path,
root: &Path,
assets: &Assets,
render: &RenderAssets,
leaf_culling: LeafCullingMode,
keys: &[[i32; 3]],
) -> Result<FxHashMap<[i32; 3], SectionMesh>, Box<dyn std::error::Error>> {
let facts = BlockFacts::load(root, assets.registry)?;
let visibility = models::load_visibility(root, assets.registry)?;
let tables = MeshTables::new(assets, render, &facts, visibility)?;
let biomes = Biomes::load(root)?;
let seed = world_seed(save).unwrap_or_else(|| {
eprintln!(
"scene_replay: no seed in {}, biome blending uses 0",
save.display()
);
0
});
let options = std::fs::read_to_string("options.txt").unwrap_or_default();
let option = |key: &str| {
options
.lines()
.find_map(|l| l.strip_prefix(key)?.strip_prefix(':').map(str::to_owned))
};
let smooth_lighting = option("ao").is_none_or(|v| v == "true");
let cutout_leaves = option("cutoutLeaves").is_none_or(|v| v == "true");
let blend_radius = option("biomeBlendRadius")
.and_then(|v| v.parse().ok())
.unwrap_or(2);
let mut columns: Vec<(i32, i32)> = keys
.iter()
.flat_map(|&[x, _, z]| {
(-1..=1).flat_map(move |dz| (-1..=1).map(move |dx| (x + dx, z + dz)))
})
.collect();
columns.sort_unstable();
columns.dedup();
let threads = std::thread::available_parallelism().map_or(4, |n| n.get());
let region_dir = save.join("dimensions/minecraft/overworld/region");
let next = AtomicUsize::new(0);
let chunks: FxHashMap<(i32, i32), Chunk> = std::thread::scope(|scope| {
let workers: Vec<_> = (0..threads)
.map(|_| {
scope.spawn(|| {
let mut files: FxHashMap<(i32, i32), Option<RegionFile>> = FxHashMap::default();
let mut out = Vec::new();
loop {
let i = next.fetch_add(1, Ordering::Relaxed);
let Some(&(x, z)) = columns.get(i) else {
break;
};
let file = files.entry((x >> 5, z >> 5)).or_insert_with(|| {
RegionFile::open(region_dir.join(format!(
"r.{}.{}.mca",
x >> 5,
z >> 5
)))
.ok()
});
let root = file
.as_mut()
.and_then(|f| {
f.read(horizon_core::position::ChunkPos::new(x, z))
.ok()
.flatten()
})
.and_then(|record| record.nbt(Limits::default()).ok());
if let Some(chunk) =
root.and_then(|root| decode(&root, assets.registry, &biomes))
{
out.push(((x, z), chunk));
}
}
out
})
})
.collect();
workers
.into_iter()
.flat_map(|w| w.join().unwrap())
.collect()
});
let meshable: Vec<[i32; 3]> = keys
.iter()
.copied()
.filter(|&[x, _, z]| {
(-1..=1).all(|dz| (-1..=1).all(|dx| chunks.contains_key(&(x + dx, z + dz))))
})
.collect();
let next = AtomicUsize::new(0);
let meshes = std::thread::scope(|scope| {
let workers: Vec<_> = (0..threads)
.map(|_| {
scope.spawn(|| {
let mut mesher = Mesher {
nether_shading: false,
shader_pack_lighting: false,
separate_ao: false,
shader_pack: false,
assets,
render,
tables: &tables,
biomes: &biomes,
visibility: tables.visibility.clone(),
zoom: BiomeZoom::new(obfuscate_seed(seed)),
blend_radius,
smooth_lighting,
cutout_leaves,
translucent_layers: &[],
leaf_culling,
};
let mut scratch = MeshScratch::default();
let mut out = Vec::new();
loop {
let i = next.fetch_add(1, Ordering::Relaxed);
let Some(&[x, y, z]) = meshable.get(i) else {
break;
};
let region: [[Option<&Chunk>; 3]; 3] = std::array::from_fn(|dz| {
std::array::from_fn(|dx| {
chunks.get(&(x + dx as i32 - 1, z + dz as i32 - 1))
})
});
let mut mesh =
mesher.mesh_reusing(&region, y, SectionMesh::default(), &mut scratch);
mesh.sort_solid();
out.push(([x, y, z], mesh));
}
out
})
})
.collect();
workers
.into_iter()
.flat_map(|w| w.join().unwrap())
.collect::<FxHashMap<_, _>>()
});
Ok(meshes)
}
/// The world seed: `data/minecraft/world_gen_settings.dat`, or level.dat's
/// `Data.WorldGenSettings` in older saves.
fn world_seed(save: &Path) -> Option<i64> {
let read = |path: PathBuf| {
horizon_world::datafix::files::read_dat(&path)
.ok()
.flatten()
};
let seed = |tag: Option<&Tag>| match tag?.get("seed")? {
Tag::Long(seed) => Some(*seed),
_ => None,
};
seed(
read(save.join("data/minecraft/world_gen_settings.dat"))
.as_ref()
.and_then(|t| t.get("data")),
)
.or_else(|| {
seed(
read(save.join("level.dat"))?
.get("Data")?
.get("WorldGenSettings"),
)
})
}
/// A saved full chunk's blocks, biomes and light, as the client's own save
/// loader reads them (`save::decode_lit`, in horizon-client).
fn decode(root: &NamedTag, registry: &BlockRegistry, biomes: &Biomes) -> Option<Chunk> {
let tag = &root.tag;
let text = |t: Option<&Tag>| match t {
Some(Tag::String(s)) => Some(s.to_string_lossy().to_string()),
_ => None,
};
if text(tag.get("Status")).is_some_and(|s| s != "minecraft:full" && s != "full") {
return None;
}
if tag.get("isLightOn") != Some(&Tag::Byte(1)) {
return None;
}
let (Some(Tag::Int(x)), Some(Tag::Int(z))) = (tag.get("xPos"), tag.get("zPos")) else {
return None;
};
let mut chunk = Chunk::with_layout(*x, *z, ColumnLayout::VANILLA);
let air = registry.default_state("minecraft:air")?.0;
let Some(Tag::List(sections)) = tag.get("sections") else {
return Some(chunk);
};
let longs = |t: Option<&Tag>| match t {
Some(Tag::LongArray(data)) => Some(data.iter().map(|&w| w as u64).collect::<Vec<_>>()),
_ => None,
};
let mut layers = vec![(None, None); chunk.sections.len()];
for section in sections {
let Some(Tag::Byte(y)) = section.get("Y") else {
continue;
};
let Some(si) = chunk.section_index(i32::from(*y) * 16) else {
continue;
};
let target = Arc::make_mut(&mut chunk.sections[si]);
if let Some(states) = section.get("block_states")
&& let Some(Tag::List(palette)) = states.get("palette")
{
let palette: Vec<u32> = palette
.iter()
.map(|p| {
BlockState::from_nbt(p)
.ok()
.and_then(|s| {
registry.id(&s).or_else(|| {
let default = registry.default_state(&s.name)?;
let mut full = registry.state(default)?.clone();
for (k, v) in &s.properties {
if full.properties.contains_key(k) {
full.properties.insert(k.clone(), v.clone());
}
}
registry.id(&full).or(Some(default))
})
})
.map_or(air, |id| id.0)
})
.collect();
let data = longs(states.get("data"));
if let Ok(blocks) =
PalettedContainer::from_packed(block_strategy(), palette, data.as_deref())
{
target.blocks = blocks;
}
}
if let Some(b) = section.get("biomes")
&& let Some(Tag::List(palette)) = b.get("palette")
{
let palette: Vec<u32> = palette
.iter()
.map(|p| match p {
Tag::String(s) => u32::from(biomes.id(&s.to_string_lossy())),
_ => 0,
})
.collect();
let data = longs(b.get("data"));
if let Ok(container) =
PalettedContainer::from_packed(BIOME_STRATEGY, palette, data.as_deref())
{
target.biomes = container;
}
}
let layer = |name: &str| match section.get(name) {
Some(Tag::ByteArray(a)) if a.len() == 2048 => Some(a.clone()),
_ => None,
};
layers[si] = (layer("SkyLight"), layer("BlockLight"));
}
// `save::load_light`: a section without saved sky light takes the light
// of the blocks above it, from the top of the column down.
let mut above = [15u8; 256];
for (si, (sky, block)) in layers.into_iter().enumerate().rev() {
let mut data = Box::new([0u8; 4096]);
for (i, v) in data.iter_mut().enumerate() {
let nibble =
|layer: &Option<Vec<u8>>| layer.as_ref().map(|l| l[i >> 1] >> ((i & 1) << 2) & 15);
let s = nibble(&sky).unwrap_or(above[i & 255]);
let b = nibble(&block).unwrap_or(0);
*v = s << 4 | b;
}
if sky.is_some() {
for (i, a) in above.iter_mut().enumerate() {
*a = data[i] >> 4;
}
}
let section = Arc::make_mut(&mut chunk.sections[si]);
section.light = Light::Full(data);
section.compact();
}
chunk.lit = true;
chunk.light_loaded = true;
Some(chunk)
}
@@ -79,7 +79,10 @@ fn pack(renderer: &mut Renderer, folder: &Path, valid: bool) {
let (properties, _) = horizon_shaders::read_properties(&pack, &mut macros);
let post = horizon_shaders::load_post(&pack, "", &properties, &macros, &renderer.pack_inputs());
assert_eq!(post.notes.is_empty(), valid, "{:?}", post.notes);
let (_, notes) = renderer.set_shader_pack(0, Some(post), &[]).unwrap();
let (_, notes) = renderer
.set_shader_pack(0, Some(post), &[])
.unwrap()
.unwrap();
assert!(
!valid || notes.iter().all(|n| !n.contains("skipped")),
"{notes:?}"
@@ -121,6 +124,7 @@ fn fixture(window: Arc<Window>) -> Result<(), Box<dyn std::error::Error>> {
None,
GraphicsApi::Vulkan,
false,
false,
true,
))?;
renderer.resize(320, 180);
@@ -351,6 +355,7 @@ fn fixture_frame(hud: &HudBatch) -> Frame<'_> {
outline: Vec::new(),
outline_after_terrain: false,
outline_high_contrast: false,
pvp: Default::default(),
debug_lines: &[],
debug_lines_on_top: &[],
debug_crosshair: &[],
@@ -373,10 +378,12 @@ fn fixture_frame(hud: &HudBatch) -> Frame<'_> {
lightning: Default::default(),
additive: &[],
see_through: &[],
world_primitives: Default::default(),
shadow_only: &[],
celestial: &[],
stars: None,
hand: &[],
hand_items: &[],
hand_fov_degrees: 70.0,
screen: &[],
pack: Default::default(),
+137 -7
View File
@@ -84,7 +84,9 @@ pub struct Assets {
pub struct RenderAssets {
pub sprite_size: u32,
pub sprite_minimum_size: u32,
pub pixels: Vec<u8>,
/// The block sprites' RGBA, layer by layer: as built until a renderer has
/// them, then kept compressed ([`SpritePixels`]).
pub pixels: SpritePixels,
pub texture_layers: u32,
pub model_catalog: crate::models::StateModels,
/// Shared parsed resources; item-only validation errors surface at item preparation.
@@ -111,6 +113,76 @@ pub struct RenderAssets {
/// sprites are when it changes (`native_block_sprites_version`).
pub generation: u64,
}
/// The block sprites' pixels for a renderer to upload. Once a renderer has
/// them ([`Self::pack`]) they are kept lz4-compressed: the GPU holds the
/// texture array, and the copy only serves a renderer made again (another
/// window, a lost device, another graphics API), which waits for
/// [`Self::get`] to uncompress them. Shared by the window and the workers'
/// `RenderAssets`, so the compressed form replaces the raw one in place.
pub struct SpritePixels(Arc<PixelStore>);
struct PixelStore {
len: usize,
/// Set by the first `pack`: later calls cost one atomic read.
packing: std::sync::atomic::AtomicBool,
/// As built; dropped once `packed` holds them.
raw: std::sync::Mutex<Option<Arc<Vec<u8>>>>,
packed: std::sync::OnceLock<Vec<u8>>,
}
impl SpritePixels {
pub fn new(pixels: Vec<u8>) -> Self {
Self(Arc::new(PixelStore {
len: pixels.len(),
packing: std::sync::atomic::AtomicBool::new(false),
raw: std::sync::Mutex::new(Some(Arc::new(pixels))),
packed: std::sync::OnceLock::new(),
}))
}
/// Their size in bytes, uncompressed.
pub fn len(&self) -> usize {
self.0.len
}
pub fn is_empty(&self) -> bool {
self.0.len == 0
}
/// The pixels as built, uncompressed again once packed.
pub fn get(&self) -> Arc<Vec<u8>> {
let raw = self.0.raw.lock().unwrap_or_else(|e| e.into_inner()).clone();
raw.unwrap_or_else(|| {
let packed = self.0.packed.get().map(Vec::as_slice).unwrap_or_default();
Arc::new(
lz4_flex::decompress_size_prepended(packed)
.ok()
.filter(|p| p.len() == self.0.len)
.unwrap_or_else(|| vec![0; self.0.len]),
)
})
}
/// Keep them compressed from now on, once a renderer has uploaded them:
/// compressed on a thread of their own, the raw copy dropped after.
pub fn pack(&self) {
use std::sync::atomic::Ordering;
if self.0.len == 0 || self.0.packing.swap(true, Ordering::Relaxed) {
return;
}
let store = self.0.clone();
let job = move || {
let raw = store.raw.lock().unwrap_or_else(|e| e.into_inner()).clone();
if let Some(raw) = raw {
let _ = store.packed.set(lz4_flex::compress_prepend_size(&raw));
// `get` reads the compressed copy from here on.
*store.raw.lock().unwrap_or_else(|e| e.into_inner()) = None;
}
};
let fallback = job.clone();
if std::thread::Builder::new()
.name("Sprite packing".into())
.spawn(job)
.is_err()
{
fallback();
}
}
}
/// The last `RenderAssets::generation` handed out.
static GENERATION: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0);
fn invalid(message: &str) -> io::Error {
@@ -207,6 +279,20 @@ impl Assets {
pub fn reload(&self, root: &Path) -> Result<RenderAssets> {
RenderAssets::load(root, self)
}
/// [`Assets::reload`] with the model library already parsed.
///
/// Parsing it reads every model file under `assets/`, which needs no
/// block registry, so a caller that has the files to spare can start
/// it before `Assets::load` finishes and hand the result in here. On
/// a cold cache that is most of a second of reading moved off the
/// critical path.
pub fn reload_with_models(
&self,
root: &Path,
parsed: crate::model_library::ParsedModels,
) -> Result<RenderAssets> {
RenderAssets::load_with_parsed(root, self, true, Some(parsed))
}
/// [`Assets::reload`] for a server, which draws nothing: the sprites'
/// layers, without the block or item models or the textures' pixels.
pub fn reload_for_server(&self, root: &Path) -> Result<RenderAssets> {
@@ -218,6 +304,16 @@ impl RenderAssets {
Self::load_with(root, assets, true)
}
fn load_with(root: &Path, assets: &Assets, draws: bool) -> Result<Self> {
Self::load_with_parsed(root, assets, draws, None)
}
/// `parsed`: the model library when a caller parsed it ahead of this
/// (see [`Assets::reload_with_models`]); otherwise it is parsed here.
fn load_with_parsed(
root: &Path,
assets: &Assets,
draws: bool,
parsed: Option<crate::model_library::ParsedModels>,
) -> Result<Self> {
let registry = assets.registry;
let mut sprites = crate::sprites::Sprites::with_disk_cache(root);
for name in MATERIALS {
@@ -225,17 +321,24 @@ impl RenderAssets {
}
// A server draws no block and no item: its block models (about 24 MB
// baked) and item model library (7 MB) stay empty.
let parsed = if draws {
crate::model_library::ParsedModels::load(root)
} else {
crate::model_library::ParsedModels::default()
let parsed = match parsed {
Some(parsed) => parsed,
None if draws => {
let _step = crate::spans::startup::step("core.models_parse");
crate::model_library::ParsedModels::load(root)
}
None => crate::model_library::ParsedModels::default(),
};
let mut models = if draws {
let _step = crate::spans::startup::step("core.models_bake");
crate::models::prepare_with_models(root, registry, &mut sprites, &parsed)?
} else {
crate::models::PreparedModels::default()
};
let model_library = parsed.into_item_library();
let model_library = {
let _step = crate::spans::startup::step("core.item_library");
parsed.into_item_library()
};
// Fluids are drawn by the fluid renderer, not block models; breaking
// progress uses the destroy-stage overlays.
for name in [
@@ -249,8 +352,10 @@ impl RenderAssets {
}
for stage in 0..10 {
sprites.insert(root, &format!("minecraft:block/destroy_stage_{stage}"))?;
sprites.insert(root, &format!("minecraft:block/destroy_oit_stage_{stage}"))?;
}
let fusion = if draws {
let _step = crate::spans::startup::step("core.fusion");
crate::fusion::FusionTextures::load(root, registry, &mut sprites, &mut models.catalog)
} else {
Default::default()
@@ -301,7 +406,7 @@ impl RenderAssets {
sprite_size: sprites.size,
sprite_minimum_size: sprites.minimum_size,
texture_layers: u32::try_from(sprites.count())?,
pixels: sprites.pixels,
pixels: SpritePixels::new(sprites.pixels),
model_catalog: models.catalog,
model_library,
model_placements: models.placements,
@@ -399,4 +504,29 @@ mod tests {
[ConsumeEffect::ApplyEffects { probability, .. }] if probability == 0.3
));
}
#[test]
fn sprite_pixels_come_back_the_same_once_packed() {
// Two layers of 16x16 RGBA with some structure, as sprites have.
let pixels: Vec<u8> = (0..2 * 16 * 16 * 4).map(|i| (i * 7 % 251) as u8).collect();
let stored = super::SpritePixels::new(pixels.clone());
assert_eq!(*stored.get(), pixels);
stored.pack();
stored.pack();
// The packing thread drops the raw copy once the compressed one is set.
let started = std::time::Instant::now();
while stored.0.raw.lock().unwrap().is_some() {
assert!(started.elapsed().as_secs() < 10, "packing never finished");
std::thread::yield_now();
}
assert!(
stored
.0
.packed
.get()
.is_some_and(|p| p.len() < pixels.len())
);
assert_eq!(*stored.get(), pixels);
assert_eq!(stored.len(), pixels.len());
}
}
@@ -379,14 +379,17 @@ pub fn generate(
let (_, _, key) = load(palette_key, "textures/palettes")?;
let (_, _, target) = load(palette, "textures/palettes")?;
let mut mapped = argb(&pixels);
apply_palette(&mut mapped, &argb(&key), &argb(&target))?;
let out = mapped
let key = argb(&key);
let target = argb(&target);
apply_palette(&mut mapped, &key, &target)?;
let out: Vec<u8> = mapped
.iter()
.flat_map(|p| {
let [a, r, g, b] = p.to_be_bytes();
[r, g, b, a]
})
.collect();
drop(mapped);
Some((w, h, out))
}
}
+227 -22
View File
@@ -61,6 +61,8 @@ struct Mixer {
world_names: Vec<String>,
/// The callback's cameras (position, basis, world), kept to be refilled without allocating.
cameras: Vec<([f64; 3], Basis, u32)>,
/// Per-source gain/pan/step cache for one buffer, reused across callbacks.
voices: Vec<(ChannelId, [f32; 3], f64)>,
limiter_peak: f32,
/// The output device the stream was opened on (`Library.currentDeviceName`).
#[cfg(feature = "audio")]
@@ -206,6 +208,18 @@ fn attach(mixer: &Mutex<Mixer>, channel: ChannelId, samples: Samples, looping: b
type Stream = cpal::Stream;
#[cfg(not(feature = "audio"))]
type Stream = std::convert::Infallible;
/// A level sound retained for the network broadcaster, in playback order.
#[derive(Clone, Debug)]
pub struct CapturedSound {
pub event: String,
pub position: [f64; 3],
pub volume: f32,
pub pitch: f32,
pub source: usize,
pub entity: Option<u32>,
pub except_entity: Option<u32>,
}
pub struct Audio {
_stream: Option<Stream>,
device_name: String,
@@ -222,7 +236,7 @@ pub struct Audio {
source_override: Option<usize>,
/// Positional sounds played since the last drain, kept while the world
/// is open to the network so guests hear them too.
pub capture: Option<Vec<(String, [f64; 3], f32, f32)>>,
pub capture: Option<Vec<CapturedSound>>,
/// How many times each positional sound played (the control socket's `status`),
/// with or without an audio device.
pub heard: std::collections::BTreeMap<String, u32>,
@@ -544,9 +558,8 @@ fn mix(mixer: &mut Mixer, data: &mut [f32], channels: usize, rate: u32) {
(forward, up, right)
};
// Every camera hearing (splitscreen: the other players' too), in the mixer's own buffer.
let mut cameras = std::mem::take(&mut mixer.cameras);
cameras.clear();
cameras.extend(
mixer.cameras.clear();
mixer.cameras.extend(
std::iter::once((
0,
(mixer.listener, mixer.listener_yaw, mixer.listener_pitch),
@@ -565,10 +578,11 @@ fn mix(mixer: &mut Mixer, data: &mut [f32], channels: usize, rate: u32) {
)
}),
);
let shared = cameras.len() > 1;
let shared = mixer.cameras.len() > 1;
let dot = |a: [f64; 3], b: [f64; 3]| (a[0] * b[0] + a[1] * b[1] + a[2] * b[2]) as f32;
// Gains and pans per source for this buffer.
let mut voices: Vec<(ChannelId, [f32; 3], f64)> = Vec::new();
let mut voices = std::mem::take(&mut mixer.voices);
voices.clear();
for (id, c) in &mixer.channels {
let Some((_, source_rate)) = &c.samples else {
continue;
@@ -586,7 +600,8 @@ fn mix(mixer: &mut Mixer, data: &mut [f32], channels: usize, rate: u32) {
};
let length = |d: [f64; 3]| d[0] * d[0] + d[1] * d[1] + d[2] * d[2];
// The nearest camera hears it (one camera but in splitscreen).
let camera = cameras
let camera = mixer
.cameras
.iter()
.filter(|camera| c.relative || camera.2 == c.world)
.min_by(|a, b| length(away(a.0)).total_cmp(&length(away(b.0))))
@@ -617,8 +632,7 @@ fn mix(mixer: &mut Mixer, data: &mut [f32], channels: usize, rate: u32) {
let step = f64::from(*source_rate) / f64::from(rate) * f64::from(c.pitch.max(0.0));
voices.push((*id, [left, right, gain], step));
}
mixer.cameras = cameras;
for (id, [left, right, gain], step) in voices {
for (id, [left, right, gain], step) in voices.iter().copied() {
let Some(c) = mixer.channels.get_mut(&id) else {
continue;
};
@@ -648,6 +662,7 @@ fn mix(mixer: &mut Mixer, data: &mut [f32], channels: usize, rate: u32) {
c.position += step;
}
}
mixer.voices = voices;
// Limit the whole buffer together, preserving waveform and stereo balance
// instead of flattening each overloaded sample; release over 200 ms
// (OpenAL Soft's output limiter, `ALC_OUTPUT_LIMITER_SOFT`, releases
@@ -690,17 +705,27 @@ fn open_device(
) -> Result<(cpal::Stream, cpal::SupportedStreamConfig)> {
use cpal::SampleFormat as F;
let config = device.default_output_config()?;
let stream = match config.sample_format() {
F::F32 => build_stream::<f32>(device, &config, mixer.clone()),
F::F64 => build_stream::<f64>(device, &config, mixer.clone()),
F::I16 => build_stream::<i16>(device, &config, mixer.clone()),
F::I32 => build_stream::<i32>(device, &config, mixer.clone()),
F::I8 => build_stream::<i8>(device, &config, mixer.clone()),
F::U16 => build_stream::<u16>(device, &config, mixer.clone()),
F::U32 => build_stream::<u32>(device, &config, mixer.clone()),
F::U8 => build_stream::<u8>(device, &config, mixer.clone()),
let build = |stream_config: &cpal::StreamConfig| match config.sample_format() {
F::F32 => build_stream::<f32>(device, &config, stream_config, mixer.clone()),
F::F64 => build_stream::<f64>(device, &config, stream_config, mixer.clone()),
F::I16 => build_stream::<i16>(device, &config, stream_config, mixer.clone()),
F::I32 => build_stream::<i32>(device, &config, stream_config, mixer.clone()),
F::I8 => build_stream::<i8>(device, &config, stream_config, mixer.clone()),
F::U16 => build_stream::<u16>(device, &config, stream_config, mixer.clone()),
F::U32 => build_stream::<u32>(device, &config, stream_config, mixer.clone()),
F::U8 => build_stream::<u8>(device, &config, stream_config, mixer.clone()),
other => Err(format!("unsupported sample format {other}").into()),
}?;
};
let short = audio_stream_config(&config);
let stream = match build(&short) {
Ok(stream) => stream,
// A device that refuses the short fixed buffer still plays with cpal's default one.
Err(e) if short != config.config() => {
log::info!("Horizon: audio output refused a short buffer ({e}); using the default");
build(&config.config())?
}
Err(e) => return Err(e),
};
stream.play()?;
if let Ok(mut m) = mixer.lock() {
m.device_name = device.name().unwrap_or_default();
@@ -781,10 +806,35 @@ fn cards_changed(seen: Option<&str>, cards: Option<&str>) -> bool {
_ => true,
}
}
/// The cpal `StreamConfig` to open an output stream with. On Linux the ALSA
/// backend's `BufferSize::Default` means a ~100 ms buffer, so sound effects
/// come out about 100 ms late: request a short fixed buffer there. Other
/// platforms keep cpal's default behaviour.
#[cfg(feature = "audio")]
fn audio_stream_config(config: &cpal::SupportedStreamConfig) -> cpal::StreamConfig {
#[cfg(target_os = "linux")]
{
let range = match config.buffer_size() {
cpal::SupportedBufferSize::Range { min, max } => (*min, *max),
cpal::SupportedBufferSize::Unknown => (256, 4096),
};
let target = 1024u32.clamp(range.0, range.1);
let mut sc = config.config();
sc.buffer_size = cpal::BufferSize::Fixed(target);
sc
}
#[cfg(not(target_os = "linux"))]
{
config.config()
}
}
#[cfg(feature = "audio")]
fn build_stream<T: cpal::SizedSample + cpal::FromSample<f32>>(
device: &cpal::Device,
config: &cpal::SupportedStreamConfig,
stream_config: &cpal::StreamConfig,
mixer: Arc<Mutex<Mixer>>,
) -> Result<cpal::Stream> {
let rate = config.sample_rate().0;
@@ -792,7 +842,7 @@ fn build_stream<T: cpal::SizedSample + cpal::FromSample<f32>>(
let mut scratch = Vec::new();
let on_error = mixer.clone();
let stream = device.build_output_stream(
&config.config(),
stream_config,
move |data: &mut [T], _| {
scratch.resize(data.len(), 0.0f32);
if let Ok(mut m) = mixer.lock() {
@@ -1259,7 +1309,17 @@ impl Audio {
pub fn play_after(&mut self, event: &str, at: [f64; 3], volume: f32, pitch: f32, ticks: i32) {
let seed = self.random.next_long();
if let Some(capture) = self.capture.as_mut() {
capture.push((event.to_owned(), at, volume, pitch));
capture.push(CapturedSound {
event: event.to_owned(),
position: at,
volume,
pitch,
source: self.source_override.unwrap_or_else(|| {
crate::settings::sound_source(&crate::sound_events::normalize(event))
}),
entity: None,
except_entity: None,
});
}
*self.heard.entry(event.to_owned()).or_default() += 1;
self.sync_volumes();
@@ -1298,6 +1358,66 @@ impl Audio {
preview.preview(self, source, volume);
self.preview = preview;
}
/// An incoming entity-sound packet: retain its seed and category without rebroadcasting it.
pub fn play_entity_seeded(
&mut self,
event: &str,
source: usize,
volume: f32,
pitch: f32,
seed: i64,
entity: crate::sound_engine::SoundEntity,
) {
*self.heard.entry(event.to_owned()).or_default() += 1;
let event = crate::sound_events::normalize(event);
let instance = SoundInstance::entity_bound(
&event,
source,
volume,
pitch,
LegacyRandom::new(seed),
entity,
);
self.play_instance(instance, false);
}
/// A level's entity overload: preserve the emitter and excluded player for
/// the server broadcaster while the local sound follows the same object.
pub fn play_bound(
&mut self,
event: &str,
source: usize,
volume: f32,
pitch: f32,
entity: crate::sound_engine::SoundEntity,
except_entity: Option<u32>,
) {
if let Some(capture) = self.capture.as_mut() {
capture.push(CapturedSound {
event: event.to_owned(),
position: entity.state().position,
volume,
pitch,
source,
entity: Some(entity.id),
except_entity,
});
}
let seed = self.random.next_long();
self.play_entity_seeded(event, source, volume, pitch, seed, entity);
}
/// Removal belongs to the old object even if its numeric id is immediately reused.
pub fn remove_sound_entity(&mut self, id: u32) {
for entity in self
.engine
.bound_entities()
.into_iter()
.filter(|e| e.id == id)
{
let mut state = entity.state();
state.removed = true;
entity.update(state);
}
}
/// `play` with the seed a sound packet carries.
pub fn play_seeded(
&mut self,
@@ -1308,7 +1428,17 @@ impl Audio {
seed: i64,
) {
if let (Some(capture), Some(at)) = (self.capture.as_mut(), at) {
capture.push((event.to_owned(), at, volume, pitch));
capture.push(CapturedSound {
event: event.to_owned(),
position: at,
volume,
pitch,
source: self.source_override.unwrap_or_else(|| {
crate::settings::sound_source(&crate::sound_events::normalize(event))
}),
entity: None,
except_entity: None,
});
}
if at.is_some() {
*self.heard.entry(event.to_owned()).or_default() += 1;
@@ -1448,6 +1578,81 @@ impl Sounds for Audio {
mod tests {
use super::*;
#[test]
fn level_capture_keeps_order_category_entity_and_actor_exclusion() {
let mut audio = Audio::silent(Path::new("/nonexistent/horizon-entity-sound-test"));
audio.capture = Some(Vec::new());
let mut expected = audio.random.clone();
audio.play_on(
7,
"minecraft:block.amethyst_block.chime",
Some([1.0; 3]),
0.5,
1.0,
);
let entity = crate::sound_engine::SoundEntity::new(37, [2.123456789, 64.0, -3.0], false);
audio.play_bound(
"minecraft:block.amethyst_block.chime",
6,
2.0,
1.2,
entity,
Some(17),
);
let sounds = audio.capture.as_ref().unwrap();
assert_eq!(sounds.len(), 2);
assert_eq!(
(sounds[0].source, sounds[0].entity, sounds[0].except_entity),
(7, None, None)
);
let bound = &sounds[1];
assert_eq!(
(bound.source, bound.entity, bound.except_entity),
(6, Some(37), Some(17))
);
assert_eq!(bound.position, [2.123456789, 64.0, -3.0]);
assert_eq!((bound.volume, bound.pitch), (2.0, 1.2));
expected.next_long();
expected.next_long();
assert_eq!(audio.random.next_long(), expected.next_long());
}
#[test]
fn entity_sound_packets_neither_rebroadcast_nor_advance_the_local_seed_generator() {
let mut audio = Audio::silent(Path::new("/nonexistent/horizon-entity-sound-test"));
audio.capture = Some(Vec::new());
let mut expected = audio.random.clone();
let entity = crate::sound_engine::SoundEntity::new(7, [1.0, 2.0, 3.0], false);
audio.play_entity_seeded("minecraft:fixture.bound", 6, 0.7, 1.2, 42, entity);
assert!(audio.capture.as_ref().unwrap().is_empty());
assert_eq!(audio.random.next_long(), expected.next_long());
}
#[test]
fn removal_marks_only_existing_references_to_that_entity() {
use crate::sound_engine::SoundEntity;
let mut audio = Audio::silent(Path::new("/nonexistent/horizon-entity-sound-test"));
let old = SoundEntity::new(7, [0.0; 3], false);
let other = SoundEntity::new(8, [0.0; 3], false);
for entity in [old.clone(), other.clone()] {
audio.engine.add(
SoundInstance::entity_bound(
"minecraft:fixture.bound",
6,
1.0,
1.0,
LegacyRandom::new(42),
entity,
),
true,
);
}
audio.remove_sound_entity(7);
let replacement = SoundEntity::new(7, [10.0; 3], false);
assert!(old.state().removed);
assert!(!other.state().removed);
assert!(!replacement.state().removed);
}
#[test]
fn button_click_uses_vanilla_ui_parameters_without_advancing_world_random() {
let mut audio = Audio::silent(Path::new("/nonexistent/horizon-test-assets"));
+108 -11
View File
@@ -49,6 +49,10 @@ impl AuthSession {
access_token: access_token.to_owned(),
}
}
pub fn access_token(&self) -> &str {
&self.access_token
}
/// The session file's JSON: {"name", "uuid", "access_token", "user_type": "msa", "xuid"}.
pub fn parse(text: &str) -> Result<Self, String> {
let v: serde_json::Value =
@@ -101,6 +105,22 @@ impl AuthSession {
let _ = std::fs::remove_file(path);
Self::parse(&text.map_err(|e| format!("{}: {e}", path.display()))?)
}
/// The access token's expiry (its JWT `exp`) has passed, or is a minute away: the session
/// service would refuse it. A token that doesn't read as a JWT counts as good: the server
/// says.
pub fn expired(&self) -> bool {
let exp = self
.access_token
.split('.')
.nth(1)
.and_then(|p| crate::skins::base64_decode(&p.replace('-', "+").replace('_', "/")))
.and_then(|json| serde_json::from_slice::<serde_json::Value>(&json).ok())
.and_then(|v| v.get("exp")?.as_u64());
let now = SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.map_or(0, |d| d.as_secs());
exp.is_some_and(|exp| exp <= now + 60)
}
}
static CURRENT: OnceLock<Arc<AuthSession>> = OnceLock::new();
@@ -436,11 +456,8 @@ struct ChatKeys {
fetching: bool,
next_try: Option<std::time::Instant>,
}
static CHAT_KEYS: Mutex<ChatKeys> = Mutex::new(ChatKeys {
current: None,
fetching: false,
next_try: None,
});
static CHAT_KEYS: std::sync::LazyLock<Mutex<std::collections::HashMap<u128, ChatKeys>>> =
std::sync::LazyLock::new(|| Mutex::new(std::collections::HashMap::new()));
/// prepareKeyPair (`now`: on a join) or, from a tick, shouldRefreshKeyPair
/// then prepareKeyPair: start fetching when there is no key pair or it is
@@ -449,7 +466,14 @@ pub fn prepare_chat_keys(now: bool) {
let Some(session) = current() else {
return;
};
let mut keys = CHAT_KEYS.lock().unwrap();
prepare_chat_keys_for(session, now);
}
/// Prepare keys for this player, independently of the other local accounts.
pub fn prepare_chat_keys_for(session: Arc<AuthSession>, now: bool) {
let uuid = session.uuid;
let mut accounts = CHAT_KEYS.lock().unwrap();
let keys = accounts.entry(uuid).or_default();
let instant = std::time::Instant::now();
if keys.fetching || !now && keys.next_try.is_some_and(|t| instant < t) {
return;
@@ -463,12 +487,13 @@ pub fn prepare_chat_keys(now: bool) {
return;
}
keys.fetching = true;
drop(keys);
drop(accounts);
let spawned = std::thread::Builder::new()
.name("Profile key fetch".into())
.spawn(move || {
let result = fetch_chat_keys(&session);
let mut keys = CHAT_KEYS.lock().unwrap();
let mut accounts = CHAT_KEYS.lock().unwrap();
let keys = accounts.entry(uuid).or_default();
keys.fetching = false;
match result {
Ok(pair) => keys.current = Some(Arc::new(pair)),
@@ -476,19 +501,24 @@ pub fn prepare_chat_keys(now: bool) {
}
});
if spawned.is_err() {
CHAT_KEYS.lock().unwrap().fetching = false;
CHAT_KEYS.lock().unwrap().entry(uuid).or_default().fetching = false;
}
}
/// The chat key pair fetched so far, unless it has expired.
pub fn chat_keys() -> Option<Arc<ChatKeyPair>> {
let now = now_millis();
chat_keys_for(current()?.uuid)
}
/// This account's key pair; another local player's keys can never be returned.
pub fn chat_keys_for(uuid: u128) -> Option<Arc<ChatKeyPair>> {
CHAT_KEYS
.lock()
.unwrap()
.get(&uuid)?
.current
.clone()
.filter(|k| !k.public.has_expired(now))
.filter(|k| !k.public.has_expired(now_millis()))
}
const MINECRAFT_PROFILE: &str = "https://api.minecraftservices.com/minecraft/profile";
@@ -632,6 +662,42 @@ mod tests {
}
}
/// base64url without padding, as a JWT's parts are.
fn base64url(bytes: &[u8]) -> String {
const ALPHABET: &[u8; 64] =
b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
let mut out = String::new();
for chunk in bytes.chunks(3) {
let n =
chunk.iter().fold(0u32, |n, &b| n << 8 | u32::from(b)) << (8 * (3 - chunk.len()));
for k in 0..=chunk.len() {
out.push(char::from(ALPHABET[(n >> (18 - 6 * k) & 63) as usize]));
}
}
out
}
#[test]
fn a_token_past_its_exp_is_expired() {
// header.payload.signature, the payload base64url without padding.
let token = |exp: u64| {
let json = format!(r#"{{"exp":{exp}}}"#);
let payload = base64url(json.as_bytes());
AuthSession::new("Ann", UUID, &format!("e30.{payload}.sig"))
};
let now = SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.unwrap()
.as_secs();
assert!(token(now - 10).expired());
assert!(
token(now + 30).expired(),
"a minute from its end: as good as gone"
);
assert!(!token(now + 3600).expired());
assert!(!AuthSession::new("Ann", UUID, "not-a-jwt").expired());
}
fn write(dir: &Path, text: &str, mode: u32) -> std::path::PathBuf {
let path = dir.join("session.json");
std::fs::write(&path, text).unwrap();
@@ -795,6 +861,37 @@ mod tests {
.to_string()
}
#[test]
fn local_accounts_use_their_own_chat_keys() {
let pair = |signature: &[u8]| {
let mut keys = parse_certificates(&certificates(PRIVATE_B64, PUBLIC_B64)).unwrap();
keys.public.expires_at = i64::MAX;
keys.refreshed_after = i64::MAX;
keys.public.signature = signature.to_vec();
Arc::new(keys)
};
let ann = pair(b"ann");
let bea = pair(b"bea");
{
let mut accounts = CHAT_KEYS.lock().unwrap();
for (uuid, keys) in [(101, ann.clone()), (102, bea.clone())] {
accounts.insert(
uuid,
ChatKeys {
current: Some(keys),
..Default::default()
},
);
}
}
prepare_chat_keys_for(Arc::new(AuthSession::new("Ann", 101, "unused")), true);
assert!(Arc::ptr_eq(&chat_keys_for(101).unwrap(), &ann));
assert!(Arc::ptr_eq(&chat_keys_for(102).unwrap(), &bea));
assert!(chat_keys_for(103).is_none());
CHAT_KEYS.lock().unwrap().remove(&101);
CHAT_KEYS.lock().unwrap().remove(&102);
}
#[test]
fn certificates_response() {
let pair = parse_certificates(&certificates(PRIVATE_B64, PUBLIC_B64)).unwrap();
@@ -89,6 +89,7 @@ pub struct BlockEntities {
/// instance blocks, `shows_box`), so a frame looks at them without scanning the map.
/// Like `mods`, one taken out stays listed until `put` or `remove`.
boxes: FxHashSet<Pos>,
asleep: FxHashSet<Pos>,
}
/// A structure or test instance block: the block entities whose box the frame may draw.
@@ -229,6 +230,7 @@ impl BlockEntities {
}
/// `removeBlockEntityTicker`: no slot, made or pending.
fn cancel(&mut self, pos: &Pos) {
self.asleep.remove(pos);
self.freed |= self.live.remove(pos).is_some();
self.pending.remove(pos);
}
@@ -297,14 +299,25 @@ impl BlockEntities {
self.map.get(pos)
}
pub fn get_mut(&mut self, pos: &Pos) -> Option<&mut BlockEntity> {
self.asleep.remove(pos);
self.map.get_mut(pos)
}
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Pos, &mut BlockEntity)> {
self.asleep.clear();
self.map.iter_mut()
}
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut BlockEntity> {
self.asleep.clear();
self.map.values_mut()
}
pub fn sleep(&mut self, pos: Pos) {
if self.map.contains_key(&pos) {
self.asleep.insert(pos);
}
}
pub fn is_asleep(&self, pos: &Pos) -> bool {
self.asleep.contains(pos)
}
/// `LevelChunk.setBlockEntity` (+ `addAndRegisterBlockEntity`): a new
/// block entity may get a slot; one replacing another keeps its slot.
/// One of the same type rewrites it in place (a jukebox taking a disc,
@@ -320,6 +333,7 @@ impl BlockEntities {
self.attachments.remove(&pos);
}
let new_box = shows_box(&entity);
self.asleep.remove(&pos);
let old = self.map.insert(pos, entity);
if old.is_none() {
self.add(pos);
@@ -346,6 +360,7 @@ impl BlockEntities {
if absent {
self.add(pos);
}
self.asleep.remove(&pos);
let entity = self.map.entry(pos).or_insert_with(make);
if absent && matches!(entity, BlockEntity::Mod(_)) {
self.mods.entry(chunk_of(pos)).or_default().insert(pos);
@@ -358,6 +373,7 @@ impl BlockEntities {
/// `LevelChunk.removeBlockEntity`: the block entity and its slot.
pub fn remove(&mut self, pos: &Pos) -> Option<BlockEntity> {
self.attachments.remove(pos);
self.asleep.remove(pos);
self.cancel(pos);
let removed = self.map.remove(pos);
if matches!(removed, Some(BlockEntity::Mod(_))) {
@@ -369,6 +385,7 @@ impl BlockEntities {
/// The block entity at `pos`, out of the map for a while: its slot stays
/// for `put` to bring it back (a tick working on it).
pub fn take(&mut self, pos: &Pos) -> Option<BlockEntity> {
self.asleep.remove(pos);
let taken = self.map.remove(pos);
if taken.is_some() {
self.out.insert(*pos);
@@ -378,6 +395,7 @@ impl BlockEntities {
/// Brings back what `take` took, in its slot.
pub fn put(&mut self, pos: Pos, entity: BlockEntity) {
self.out.remove(&pos);
self.asleep.remove(&pos);
if matches!(entity, BlockEntity::Mod(_)) {
self.mods.entry(chunk_of(pos)).or_default().insert(pos);
}
@@ -389,6 +407,16 @@ impl BlockEntities {
self.add(pos);
}
}
/// [`Self::retain`] for unloading chunks: removes the block entities at
/// the positions `gone` names and changes none it keeps, so those that
/// sleep stay asleep (a moving player unloads chunks most ticks).
pub fn unload(&mut self, mut gone: impl FnMut(&Pos) -> bool) {
let asleep = std::mem::take(&mut self.asleep);
self.retain(|p, _| !gone(p));
self.asleep = asleep;
let map = &self.map;
self.asleep.retain(|p| map.contains_key(p));
}
/// Removes the block entities `keep` refuses, and their slots
/// (`clearAllBlockEntities` of unloaded chunks).
pub fn retain(&mut self, mut keep: impl FnMut(&Pos, &mut BlockEntity) -> bool) {
@@ -399,6 +427,7 @@ impl BlockEntities {
&mut self.attachments,
);
let (mods, boxes) = (&mut self.mods, &mut self.boxes);
self.asleep.clear();
self.map.retain(|p, e| {
let kept = keep(p, e);
if !kept {
@@ -416,6 +445,7 @@ impl BlockEntities {
self.map.clear();
self.mods.clear();
self.boxes.clear();
self.asleep.clear();
self.tickers = Arc::default();
self.live.clear();
self.added.clear();
@@ -433,6 +463,7 @@ impl BlockEntities {
let order = chunk_map_order(entities.iter().map(|(p, _)| *p));
for (p, e) in entities {
self.attachments.remove(&p);
self.asleep.remove(&p);
let new_is_mod = matches!(e, BlockEntity::Mod(_));
self.note_box(p, Some(&e));
let old = self.map.insert(p, e);
@@ -452,6 +483,7 @@ impl BlockEntities {
/// `LevelChunk.setBlockState` on a block entity's position, from state
/// `old` to `new`: a ticker made, kept or dropped.
pub fn state_changed(&mut self, pos: Pos, old: u32, new: u32) {
self.asleep.remove(&pos);
if self.states.is_empty() || !self.map.contains_key(&pos) {
return;
}
@@ -536,12 +568,75 @@ mod tests {
.collect()
}
/// Unloading a chunk removes its block entities and leaves the others'
/// sleep alone; `retain`, which may change what it keeps, wakes them all.
#[test]
fn unloading_a_chunk_keeps_the_others_asleep() {
let mut b = level();
let (kept, gone) = ((1, 64, 1), (17, 64, 1));
b.insert(kept, hopper());
b.insert(gone, hopper());
b.sleep(kept);
b.sleep(gone);
b.unload(|p| p.0 >> 4 == 1);
assert!(b.get(&gone).is_none());
assert!(!b.is_asleep(&gone));
assert!(b.is_asleep(&kept));
b.retain(|_, _| true);
assert!(!b.is_asleep(&kept));
}
fn near(b: &BlockEntities, x: f64, z: f64, radius: f64) -> Vec<Pos> {
let mut found: Vec<Pos> = b.mods_near(x, z, radius).copied().collect();
found.sort();
found
}
#[test]
fn a_sleeping_block_entity_wakes_on_any_change() {
let p = (1, 64, 1);
let mut b = level();
b.sleep(p);
assert!(!b.is_asleep(&p));
b.insert(p, hopper());
let asleep = |b: &mut BlockEntities, wake: &dyn Fn(&mut BlockEntities)| {
b.sleep(p);
assert!(b.is_asleep(&p));
wake(b);
b.is_asleep(&p)
};
assert!(asleep(&mut b, &|_| {}));
assert!(!asleep(&mut b, &|b| {
b.get_mut(&p);
}));
assert!(!asleep(&mut b, &|b| {
b.insert(p, hopper());
}));
assert!(!asleep(&mut b, &|b| {
b.get_or_insert_with(p, hopper);
}));
assert!(!asleep(&mut b, &|b| {
let held = b.take(&p).unwrap();
b.put(p, held);
}));
assert!(!asleep(&mut b, &|b| b.state_changed(p, 1, 1)));
assert!(!asleep(&mut b, &|b| b.forget(&p)));
assert!(!asleep(&mut b, &|b| {
b.iter_mut().count();
}));
assert!(!asleep(&mut b, &|b| {
b.values_mut().count();
}));
assert!(!asleep(&mut b, &|b| b.retain(|_, _| true)));
assert!(!asleep(&mut b, &|b| b.load_chunk(vec![(p, hopper())])));
assert!(!asleep(&mut b, &|b| {
b.remove(&p);
b.insert(p, hopper());
}));
b.sleep(p);
b.clear();
assert!(!b.is_asleep(&p));
}
#[test]
fn mod_block_entities_are_listed_by_chunk_until_they_go() {
let mut b = level();
let modded = || BlockEntity::Mod(Box::default());
@@ -939,6 +939,14 @@ impl BlockEntityAnims {
/// Drops the state of block entities that are gone or changed kind:
/// `present` holds the loaded block entities' tickers, sorted by position.
pub fn retain_present(&mut self, present: &[([i32; 3], Ticker)]) {
self.retain_animations(present, false);
}
/// An integrated server owns bell state independently of renderer visibility.
/// Its world ticker removes bells when their actual block changes.
pub fn retain_present_preserving_bells(&mut self, present: &[([i32; 3], Ticker)]) {
self.retain_animations(present, true);
}
fn retain_animations(&mut self, present: &[([i32; 3], Ticker)], keep_bells: bool) {
let is = |p: &[i32; 3], f: fn(&Ticker) -> bool| {
present
.binary_search_by_key(p, |(q, _)| *q)
@@ -948,7 +956,9 @@ impl BlockEntityAnims {
self.books.retain(|p, _| is(p, |t| *t == Ticker::Book));
self.shulkers
.retain(|p, _| is(p, |t| matches!(t, Ticker::Shulker { .. })));
self.bells.retain(|p, _| is(p, |t| *t == Ticker::Bell));
if !keep_bells {
self.bells.retain(|p, _| is(p, |t| *t == Ticker::Bell));
}
self.conduits
.retain(|p, _| is(p, |t| *t == Ticker::Conduit));
self.skulls
@@ -7,10 +7,11 @@
//! the block plus `minecraft_mix_light` with the level's two diffuse lights.
use crate::{
Result,
bidi::visual_str,
bidi::visual,
block_entity_anim::{self, EnchantingBook},
breaking::entity_geometry,
fast_hash::FxHashMap,
font::Glyph,
gfx::mark_oit,
hud::Rect,
mesher::{CULL_BACK, Vertex},
@@ -270,10 +271,10 @@ pub const DYES: [(&str, u32); 16] = [
("black", 0x1D1D21),
];
fn dye_prefix(name: &str) -> Option<(usize, &str)> {
// Longest names first so "light_gray" wins over "gray".
let mut order: Vec<usize> = (0..16).collect();
order.sort_by_key(|&i| std::cmp::Reverse(DYES[i].0.len()));
order.into_iter().find_map(|i| {
// Longest names first; this is the same stable order as sorting DYES by
// descending prefix length, without a Vec allocation or comparison sort.
const ORDER: [usize; 16] = [3, 8, 2, 1, 4, 10, 0, 12, 13, 15, 5, 6, 7, 9, 11, 14];
ORDER.into_iter().find_map(|i| {
name.strip_prefix(DYES[i].0)
.and_then(|rest| rest.strip_prefix('_'))
.map(|rest| (i, rest))
@@ -638,7 +639,9 @@ fn sign_text_near(pos: [i32; 3], camera: DVec3) -> bool {
}
/// `AbstractSignRenderer.submitSignText`: four centred lines, glowing text
/// full-bright with an 8x outline in the dark colour.
/// full-bright with an 8x outline in the dark colour. The font colours each
/// glyph by its style (`Font.StringRenderOutput`): a line's own colour wins,
/// else the sign's. A line is one call per run of one colour.
fn sign_text_calls(
scene: &Scene,
data: &SignData,
@@ -660,26 +663,54 @@ fn sign_text_calls(
} else {
(dark, 0, vertex_light(packed))
};
let advance = |c: char| (scene.glyph)(c).1;
let width = |s: &str| s.chars().map(advance).sum::<f32>().ceil();
text.lines
.iter()
.enumerate()
.map(|(i, line)| {
// The line that fits, in the order it is drawn (getVisualOrder).
let shown = first_line(line, data.max_line_width(), &advance);
let shown = visual_str(&shown).into_owned();
TextCall {
let advance = |c: char| (scene.glyph)(c).advance;
let mut calls: Vec<TextCall> = Vec::with_capacity(text.lines.len());
for i in 0..text.lines.len() {
// The line that fits, in the order it is drawn (getVisualOrder).
let line = text.line_text(i);
let line = line.resolved();
let flat: String = line.chars().map(|(c, _)| c).collect();
let fits = first_line(&flat, data.max_line_width(), &advance);
let shown = line.slice(0, fits.chars().count());
let shown = visual(&shown);
let width = shown.chars().map(|(c, _)| advance(c)).sum::<f32>().ceil();
let x = -((width as i32) / 2) as f32;
let y = i as f32 * line_height - midpoint;
let first = calls.len();
let mut pen = 0.0;
for span in shown.spans.iter().filter(|s| !s.text.is_empty()) {
let run = span
.style
.color
.map_or(color, |rgb| 0xFF00_0000 | (rgb & 0xFF_FFFF));
match calls[first..].last_mut() {
Some(last) if last.color == run => last.text.push_str(&span.text),
_ => calls.push(TextCall {
matrix: m,
x: x + pen,
y,
text: span.text.clone(),
color: run,
outline,
light,
}),
}
pen += span.text.chars().map(advance).sum::<f32>();
}
if calls.len() == first {
// A line with no text is still a call, of no glyphs.
calls.push(TextCall {
matrix: m,
x: -((width(&shown) as i32) / 2) as f32,
y: i as f32 * line_height - midpoint,
text: shown,
x,
y,
text: String::new(),
color,
outline,
light,
}
})
.collect()
});
}
}
calls
}
/// How far the text of an outlined call sits in front of its outline, in
@@ -695,14 +726,31 @@ const TEXT_OVER_OUTLINE: f32 = 0.05;
/// reader instead (a twentieth of a font pixel, invisible) rather than
/// z-fighting with the outline under it.
fn draw_text(scene: &Scene, call: &TextCall, out: &mut Vec<Vertex>) {
text_vertices(scene.glyph, call, out);
}
/// `draw_text` with the font's glyph cells and advances from `glyph`: the
/// text of `call` as glyph quads in its matrix's plane, 1 unit a font pixel,
/// y down as the font's, with its outline when it has one. A native mod's
/// block entity draws its text this way (`native_draw_text`).
pub fn text_vertices(glyph: &dyn Fn(char) -> Glyph, call: &TextCall, out: &mut Vec<Vertex>) {
let mut emit = |dx: f32, dy: f32, z: f32, argb: u32| {
let mut x = call.x + dx;
let y0 = call.y + dy;
for ch in call.text.chars() {
let (cell, advance) = (scene.glyph)(ch);
if let Some(r) = cell {
let corners = [(x, y0 + 8.0), (x + 8.0, y0 + 8.0), (x + 8.0, y0), (x, y0)];
let uvs = [[r.u0, r.v1], [r.u1, r.v1], [r.u1, r.v0], [r.u0, r.v0]];
let g = glyph(ch);
if let Some(cell) = g.rect {
// BakedSheetGlyph: the glyph's own box from the pen, not a
// fixed 8x8 cell (a Unifont glyph is 0.5 units per texel).
let (x0, x1) = (x + g.left, x + g.right);
let (top, bottom) = (y0 + g.top, y0 + g.bottom);
let corners = [(x0, bottom), (x1, bottom), (x1, top), (x0, top)];
let uvs = [
[cell.u0, cell.v1],
[cell.u1, cell.v1],
[cell.u1, cell.v0],
[cell.u0, cell.v0],
];
let c =
0xFF00_0000 | (argb & 255) << 16 | (argb >> 8 & 255) << 8 | (argb >> 16 & 255);
for ((cx, cy), uv) in corners.into_iter().zip(uvs) {
@@ -721,7 +769,7 @@ fn draw_text(scene: &Scene, call: &TextCall, out: &mut Vec<Vertex>) {
});
}
}
x += advance;
x += g.advance;
}
};
if call.outline != 0 {
@@ -818,11 +866,14 @@ pub struct Scene<'a> {
/// profile → skin): a downloaded `skins/<sha1>` slot or the profile's
/// `DefaultPlayerSkin` fallback; None keeps `SKIN_BY_TYPE` (`DefaultPlayerSkin.getDefaultTexture`, slim steve).
pub skull: &'a dyn Fn([i32; 3]) -> Option<String>,
/// Font glyph cell (none for blank glyphs such as the space) and advance.
pub glyph: &'a dyn Fn(char) -> (Option<Rect>, f32),
/// Font glyph: atlas cell (none for blank glyphs such as the space), box and advance.
pub glyph: &'a dyn Fn(char) -> Glyph,
/// Changes whenever `glyph` may answer differently (`Font::epoch`): sign
/// text laid out under another value is laid out again.
pub glyphs: u64,
/// Per-block visibility for dynamic, animated, or uncached models. Bounds
/// are world-space and conservatively include model animation extents.
pub dynamic_visible: Option<&'a dyn Fn([i32; 3], u32, DVec3, DVec3) -> bool>,
}
/// Empty by default (a dedicated server): no state has a block entity model.
@@ -1392,6 +1443,167 @@ impl BlockEntityRenderer {
fn kind(&self, state: u32) -> &Kind {
self.kinds.get(state as usize).unwrap_or(&Kind::None)
}
fn dynamic_bounds(
&self,
scene: &Scene,
pos: [i32; 3],
kind: &Kind,
chest_openness: Option<(f32, Option<[i32; 3]>)>,
) -> (DVec3, DVec3) {
let [x, y, z] = pos.map(f64::from);
let mut lo = DVec3::new(x, y, z);
let mut hi = DVec3::new(x + 1.0, y + 1.0, z + 1.0);
match kind {
Kind::Chest { double_with, .. } => {
if let Some(offset) = double_with {
lo.x += f64::from(offset[0].min(0));
lo.z += f64::from(offset[2].min(0));
hi.x += f64::from(offset[0].max(0));
hi.z += f64::from(offset[2].max(0));
}
let is_open = chest_openness.map_or_else(
|| {
(scene.lid)(pos) != 0.0
|| double_with.is_some_and(|offset| {
let other = [
pos[0].saturating_add(offset[0]),
pos[1].saturating_add(offset[1]),
pos[2].saturating_add(offset[2]),
];
(scene.lid)(other) != 0.0
})
},
|(open, _)| open != 0.0,
);
if is_open {
// The lid pivots up from the rear edge. Its longest corner
// rises by less than one block in the fully open pose.
hi.y += 0.8;
}
}
Kind::Shulker { facing, .. } => {
let offset = step(facing);
lo.x += f64::from(offset[0].min(0)) * 0.52;
lo.y += f64::from(offset[1].min(0)) * 0.52;
lo.z += f64::from(offset[2].min(0)) * 0.52;
hi.x += f64::from(offset[0].max(0)) * 0.52;
hi.y += f64::from(offset[1].max(0)) * 0.52;
hi.z += f64::from(offset[2].max(0)) * 0.52;
}
Kind::Banner { wall: false, .. } => {
hi.y += 1.0;
lo.x -= 0.05;
lo.z -= 0.05;
hi.x += 0.05;
hi.z += 0.05;
}
Kind::Banner { wall: true, .. } => {
lo.y -= 1.0;
lo.x -= 0.05;
lo.z -= 0.05;
hi.x += 0.05;
hi.z += 0.05;
}
Kind::Sign { hanging: true, .. } => {
lo.y -= 1.0;
lo.x -= 0.15;
lo.z -= 0.15;
hi.x += 0.15;
hi.z += 0.15;
}
Kind::Sign { hanging: false, .. } => {
hi.y += 0.3;
lo.x -= 0.02;
lo.z -= 0.02;
hi.x += 0.02;
hi.z += 0.02;
}
Kind::EnchantingTable | Kind::Lectern { .. } => {
// The book and statue models rise above the block's collision
// cube; include their full rendered height and rotated corners.
hi.y += 1.0;
lo.x -= 0.25;
lo.z -= 0.25;
hi.x += 0.25;
hi.z += 0.25;
}
Kind::CopperGolem { .. } => {
// The statue pose rotates around the root, so some variants
// extend below the block as well as above it.
lo.y -= 1.0;
hi.y += 1.0;
lo.x -= 0.25;
lo.z -= 0.25;
hi.x += 0.25;
hi.z += 0.25;
}
Kind::Conduit => {
// Its animated cage is centered above the conduit block and
// the wind model spans multiple cells. The caller bypasses
// voxel occlusion for envelopes this tall, but retains frustum
// culling with this conservative volume.
lo.x -= 1.0;
lo.y -= 1.0;
lo.z -= 1.0;
hi.x += 1.0;
hi.y += 1.0;
hi.z += 1.0;
}
Kind::Bell => {
// The bell's pivoted swing moves its corners slightly outside
// the block even though the model starts centered in it.
lo.x -= 0.1;
lo.y -= 0.1;
lo.z -= 0.1;
hi.x += 0.1;
hi.y += 0.1;
hi.z += 0.1;
}
Kind::Skull { .. } => {
// Wall-mounted and dragon heads can protrude from their block.
lo.x -= 0.25;
lo.y -= 0.25;
lo.z -= 0.25;
hi.x += 0.25;
hi.y += 0.25;
hi.z += 0.25;
}
Kind::EndGateway { .. } => {
let anim = (scene.anim)(pos);
let beam = gateway_beam(anim.gateway, scene.partial, scene.max_y, scene.game_time);
let height = f64::from(beam.height.max(0));
lo.y -= height;
hi.y += height;
}
_ => {}
}
(lo, hi)
}
fn is_dynamic_visible(
&self,
scene: &Scene,
shapes: &Arc<BlockEntityShapes>,
pos: [i32; 3],
state: u32,
kind: &Kind,
chest_openness: Option<(f32, Option<[i32; 3]>)>,
) -> bool {
let Some(visible) = scene.dynamic_visible else {
return true;
};
if matches!(kind, Kind::EndGateway { .. }) {
return true;
}
// A pack model may extend outside the vanilla envelope. Keep that
// geometry on the uncullable path unless its model bounds are known.
if !Arc::ptr_eq(shapes, &self.vanilla) {
return true;
}
let (lo, hi) = self.dynamic_bounds(scene, pos, kind, chest_openness);
visible(pos, state, lo, hi)
}
fn cached_entry_is_current(
&self,
scene: &Scene,
@@ -1401,6 +1613,7 @@ impl BlockEntityRenderer {
options: CacheOptions,
entry: &StaticEntry,
section_revision: StaticSectionRevision,
chest_openness: Option<(f32, Option<[i32; 3]>)>,
) -> bool {
if entry.key.state != state
|| entry.key.nether != scene.nether
@@ -1412,15 +1625,24 @@ impl BlockEntityRenderer {
}
match kind {
Kind::Chest { .. } => {
let (open, other) = self.chest_openness(
pos,
kind,
&|p| scene.world.block(p[0], p[1], p[2]).0,
scene.lid,
);
// Double chests depend on the neighboring half's light too;
// let those uncommon models take the full key path.
open == 0.0 && other.is_none()
let (open, other) = chest_openness.unwrap_or_else(|| {
self.chest_openness(
pos,
kind,
&|p| scene.world.block(p[0], p[1], p[2]).0,
scene.lid,
)
});
if open != 0.0 {
return false;
}
let mut light = scene.world.light(pos[0], pos[1], pos[2]);
if let Some(other) = other {
let other_light = scene.world.light(other[0], other[1], other[2]);
light = (light >> 4).max(other_light >> 4) << 4
| (light & 15).max(other_light & 15);
}
entry.key.light == light
}
Kind::Shulker { .. } => {
let (progress, old) = (scene.anim)(pos).shulker;
@@ -1683,6 +1905,17 @@ impl BlockEntityRenderer {
}
let local = static_local_index(pos, section_min_y);
let current_section_revision = active_section_revision.unwrap_or_default();
let chest_openness = (cache.is_some()
&& options.chests
&& matches!(kind, Kind::Chest { .. }))
.then(|| {
self.chest_openness(
pos,
kind,
&|p| scene.world.block(p[0], p[1], p[2]).0,
scene.lid,
)
});
if cache_only && section_revision.is_some() && active_section_revision.is_none() {
break 'draw;
}
@@ -1698,6 +1931,7 @@ impl BlockEntityRenderer {
options,
&active_entries[index].1,
current_section_revision,
chest_openness,
)
{
let entry = &mut active_entries[index].1;
@@ -1717,7 +1951,9 @@ impl BlockEntityRenderer {
..*vertex
}));
}
if matches!(kind, Kind::Banner { .. }) {
if matches!(kind, Kind::Banner { .. })
&& self.is_dynamic_visible(scene, &shapes, pos, state, kind, None)
{
let packed = scene.world.light(pos[0], pos[1], pos[2]);
let origin =
(DVec3::new(f64::from(pos[0]), f64::from(pos[1]), f64::from(pos[2]))
@@ -1738,11 +1974,25 @@ impl BlockEntityRenderer {
}
break 'draw;
}
if cache_only && chest_openness.is_some_and(|(open, _)| open != 0.0) {
if let Some(cache) = &mut cache
&& let Ok(index) =
active_entries.binary_search_by_key(&local, |(index, _)| *index)
{
active_entries.remove(index);
cache.len -= 1;
cache.mark_section_dirty(section);
}
break 'draw;
}
let origin = (DVec3::new(f64::from(pos[0]), f64::from(pos[1]), f64::from(pos[2]))
- scene.camera)
.as_vec3();
let mut packed = scene.world.light(pos[0], pos[1], pos[2]);
if matches!(kind, Kind::Sign { .. }) && scene.texts.is_none() {
if !self.is_dynamic_visible(scene, &shapes, pos, state, kind, None) {
break 'draw;
}
if options.signs {
self.sign_text(scene, pos, state, origin, packed, out);
} else {
@@ -1761,8 +2011,15 @@ impl BlockEntityRenderer {
break 'draw;
}
if let Some(cache) = &mut cache
&& let Some(key) =
self.static_key(scene, pos, state, kind, options, &mut packed)
&& let Some(key) = self.static_key(
scene,
pos,
state,
kind,
options,
&mut packed,
chest_openness,
)
{
let slot = active_entries.binary_search_by_key(&local, |(index, _)| *index);
let entry = match slot {
@@ -1847,7 +2104,9 @@ impl BlockEntityRenderer {
..*vertex
}));
}
if matches!(kind, Kind::Banner { .. }) {
if matches!(kind, Kind::Banner { .. })
&& self.is_dynamic_visible(scene, &shapes, pos, state, kind, None)
{
self.render_banner(
&shapes,
scene,
@@ -1874,6 +2133,9 @@ impl BlockEntityRenderer {
if cache_only {
break 'draw;
}
if !self.is_dynamic_visible(scene, &shapes, pos, state, kind, chest_openness) {
break 'draw;
}
let base = Mat4::from_translation(origin);
self.render_one(scene, pos, kind, base, packed, lights, false, true, out);
}
@@ -1940,6 +2202,7 @@ impl BlockEntityRenderer {
kind: &Kind,
options: CacheOptions,
packed: &mut u8,
chest_openness: Option<(f32, Option<[i32; 3]>)>,
) -> Option<StaticKey> {
let mut sprite_rects = [None; 5];
let mut sprite_count = 0;
@@ -1957,12 +2220,14 @@ impl BlockEntityRenderer {
part,
..
} if options.chests => {
let (open, other) = self.chest_openness(
pos,
kind,
&|p| scene.world.block(p[0], p[1], p[2]).0,
scene.lid,
);
let (open, other) = chest_openness.unwrap_or_else(|| {
self.chest_openness(
pos,
kind,
&|p| scene.world.block(p[0], p[1], p[2]).0,
scene.lid,
)
});
if open != 0.0 {
return None;
}
@@ -3232,6 +3497,7 @@ fn portal_cube(m: Mat4, faces: &[Direction], layer: u32, out: &mut Vec<Vertex>)
mod tests {
use super::*;
use crate::assets::Assets;
use horizon_world::nbt::Tag;
#[test]
#[ignore = "requires prepared models/textures in HORIZON_TEST_RESOURCES"]
fn entity_block_particles_and_breaking_use_exported_models() -> Result<()> {
@@ -3342,8 +3608,9 @@ mod tests {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
// Compare the cached world path with the original model renderer,
// including atlas replacement, current light and animated fallback.
@@ -3610,7 +3877,13 @@ mod tests {
w: 8,
h: 8,
};
(Some(rect), 6.0)
Glyph {
rect: Some(rect),
right: 8.0,
bottom: 8.0,
advance: 6.0,
..Glyph::default()
}
};
let scene = Scene {
camera: DVec3::ZERO,
@@ -3632,6 +3905,7 @@ mod tests {
skull: &|_| None,
glyph: &glyph,
glyphs: 0,
dynamic_visible: None,
};
let mut call = TextCall {
matrix: Mat4::IDENTITY,
@@ -3660,6 +3934,202 @@ mod tests {
assert!(out.iter().all(|v| v.pos[2] == 0.0));
}
/// BakedSheetGlyph draws a glyph over its own box from the pen
/// (x + left .. x + right, y + up .. y + down), not a fixed 8x8 cell. With
/// Force Unicode Font a Latin letter is an 8x16 Unifont glyph at half
/// scale: 4 units wide and 8 tall, advancing 5 (#8699).
#[test]
fn sign_text_draws_each_glyph_over_its_own_box() {
let world = World::new(BlockStateId(0), 1);
let sprites = HashMap::new();
let glyph = |_: char| Glyph {
rect: Some(Rect {
u0: 0.0,
v0: 0.0,
u1: 0.0625,
v1: 0.125,
w: 8,
h: 16,
}),
left: 0.0,
top: 0.0,
right: 4.0,
bottom: 8.0,
advance: 5.0,
offset: 0.5,
};
let scene = Scene {
camera: DVec3::ZERO,
orientation: Quat::IDENTITY,
anim: &|_| BlockAnim::default(),
texts: None,
partial: 0.0,
game_time: 0,
max_y: 320,
world: &world,
sprites: &sprites,
emissive: &Default::default(),
translucent_sprites: &HashSet::new(),
atlas_revision: 1,
nether: false,
lid: &|_| 0.0,
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &glyph,
glyphs: 0,
dynamic_visible: None,
};
let call = TextCall {
matrix: Mat4::IDENTITY,
x: 10.0,
y: 2.0,
text: "ab".into(),
color: 0xFF00_0000,
outline: 0,
light: 240 | 240 << 8,
};
let mut out = Vec::new();
draw_text(&scene, &call, &mut out);
let boxes: Vec<_> = out
.chunks(4)
.map(|q| {
let xs = q.iter().map(|v| v.pos[0]);
let ys = q.iter().map(|v| v.pos[1]);
[
xs.clone().fold(f32::MAX, f32::min),
xs.fold(f32::MIN, f32::max),
ys.clone().fold(f32::MAX, f32::min),
ys.fold(f32::MIN, f32::max),
]
})
.collect();
assert_eq!(boxes, [[10.0, 14.0, 2.0, 10.0], [15.0, 19.0, 2.0, 10.0]]);
}
/// The front text calls of a sign whose every glyph advances 6.
fn front_calls(data: &SignData, near: bool) -> Vec<(String, f32, f32, u32, u32)> {
let world = World::new(BlockStateId(0), 1);
let sprites = HashMap::new();
let glyph = |_: char| Glyph {
advance: 6.0,
..Glyph::default()
};
let scene = Scene {
camera: DVec3::ZERO,
orientation: Quat::IDENTITY,
anim: &|_| BlockAnim::default(),
texts: None,
partial: 0.0,
game_time: 0,
max_y: 320,
world: &world,
sprites: &sprites,
emissive: &Default::default(),
translucent_sprites: &HashSet::new(),
atlas_revision: 1,
nether: false,
lid: &|_| 0.0,
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &glyph,
glyphs: 0,
dynamic_visible: None,
};
sign_text_calls(&scene, data, &data.front, Mat4::IDENTITY, 0, near)
.into_iter()
.map(|c| (c.text, c.x, c.y, c.color, c.outline))
.collect()
}
fn sign_with(lines: [Tag; 4]) -> SignData {
let mut data = SignData::default();
data.decode(&Tag::compound([(
"front_text",
Tag::compound([("messages", Tag::List(lines.to_vec()))]),
)]));
data
}
fn colored(text: &str, color: &str) -> Tag {
Tag::compound([
("text", Tag::String(text.into())),
("color", Tag::String(color.into())),
])
}
/// `Font.StringRenderOutput`: a glyph takes its style's colour and the
/// sign's dark text colour only when the style has none (#9783). A line
/// of two colours is two calls, the second where the first ends, the
/// whole line centred.
#[test]
fn sign_text_takes_each_lines_own_colors() {
let mut two = colored("ab", "red");
let Tag::Compound(parts) = &mut two else {
unreachable!()
};
parts.insert("extra".into(), Tag::List(vec![colored("cd", "blue")]));
let data = sign_with([
Tag::String("plain".into()),
colored("Online", "green"),
two,
Tag::String("".into()),
]);
// Black dye: the dark text colour is black. Sign lines are 10 apart
// from 20 above the middle.
assert_eq!(
front_calls(&data, false),
[
("plain".to_owned(), -15.0, -20.0, 0xFF00_0000, 0),
("Online".to_owned(), -18.0, -10.0, 0xFF55_FF55, 0),
("ab".to_owned(), -12.0, 0.0, 0xFFFF_5555, 0),
("cd".to_owned(), 0.0, 0.0, 0xFF55_55FF, 0),
(String::new(), 0.0, 10.0, 0xFF00_0000, 0),
]
);
}
/// A glowing sign's own colour still wins over its dye, and the outline
/// stays the dye's dark colour. `§` codes in a line colour it too, and
/// `§r` goes back to the sign's colour.
#[test]
fn glowing_sign_text_keeps_its_outline_under_a_lines_own_colors() {
let mut data = sign_with([
Tag::String("plain".into()),
colored("Online", "green"),
Tag::String("§cRed§rX".into()),
Tag::String("".into()),
]);
data.front.color = 14;
data.front.glowing = true;
let (red, outline) = (0xFFFF_0000, 0xFF66_0000);
assert_eq!(
front_calls(&data, true),
[
("plain".to_owned(), -15.0, -20.0, red, outline),
("Online".to_owned(), -18.0, -10.0, 0xFF55_FF55, outline),
("Red".to_owned(), -12.0, 0.0, 0xFFFF_5555, outline),
("X".to_owned(), 6.0, 0.0, red, outline),
(String::new(), 0.0, 10.0, red, outline),
]
);
}
/// The text that fits the sign is drawn, in the colour it had.
#[test]
fn a_long_colored_line_is_cut_where_it_stops_fitting() {
// 90 wide: fifteen glyphs of 6.
let data = sign_with([
colored("abcdefghijklmnopqrst", "gold"),
Tag::String("".into()),
Tag::String("".into()),
Tag::String("".into()),
]);
assert_eq!(
front_calls(&data, false)[0],
("abcdefghijklmno".to_owned(), -45.0, -20.0, 0xFFFF_AA00, 0)
);
}
#[test]
fn cached_sign_text_matches_and_follows_changes() {
let renderer = BlockEntityRenderer {
@@ -3714,7 +4184,13 @@ mod tests {
w: 8,
h: 8,
};
((c != ' ').then_some(rect), wide.get())
Glyph {
rect: (c != ' ').then_some(rect),
right: 8.0,
bottom: 8.0,
advance: wide.get(),
..Glyph::default()
}
};
let (first_sign, changed_sign, glowing_sign) = (
|_| Some(&first_text),
@@ -3741,6 +4217,7 @@ mod tests {
skull: &|_| None,
glyph: &glyph,
glyphs: 0,
dynamic_visible: None,
};
let check = |scene: &Scene, pos: [i32; 3], state: u32| {
let mut cached = Vec::new();
@@ -3879,8 +4356,9 @@ mod tests {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let mut verts = Vec::new();
renderer.render_block(&scene, [0; 3], state.0, Mat4::IDENTITY, 0xff, &mut verts);
@@ -3964,8 +4442,9 @@ mod tests {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
// A closed single chest of `block` drawn by `renderer`: positions and UVs.
let draw = |renderer: &BlockEntityRenderer, block: &str, texture: &'static str| {
@@ -4,6 +4,7 @@ use crate::{
ModelPart, SIGN_TEXT_KEEP, Scene, StaticSectionRevision, classify,
},
chunk::Chunk,
font::Glyph,
hud::Rect,
mesher::Vertex,
signs::{SignData, SignText},
@@ -355,8 +356,9 @@ fn batched_callbacks_preserve_entity_ranges_and_allow_immediate_culling() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
// Reverse local-position order to check that cache indexing does not
// change the order of emitted entities.
@@ -443,8 +445,9 @@ fn static_cache_qualifies_local_positions_by_section_and_drops_old_entries() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let options = CacheOptions {
shulker_boxes: true,
@@ -497,8 +500,9 @@ fn gpu_static_cache_uses_section_local_chests_and_keeps_visibility_separate() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([100, 70, -32], 0)];
let other_block = [([116, 70, -32], 0)];
@@ -651,18 +655,19 @@ fn sign_text_cache_can_be_disabled_and_reenabled_without_changing_output() {
};
let sign_data = &data;
let sign = move |_: [i32; 3]| Some(sign_data);
let glyph = |_: char| {
(
Some(Rect {
u0: 0.0,
v0: 0.0,
u1: 0.0625,
v1: 0.0625,
w: 8,
h: 8,
}),
6.0,
)
let glyph = |_: char| Glyph {
rect: Some(Rect {
u0: 0.0,
v0: 0.0,
u1: 0.0625,
v1: 0.0625,
w: 8,
h: 8,
}),
right: 8.0,
bottom: 8.0,
advance: 6.0,
..Glyph::default()
};
let scene = Scene {
camera: DVec3::new(2.25, 64.5, -3.75),
@@ -684,6 +689,7 @@ fn sign_text_cache_can_be_disabled_and_reenabled_without_changing_output() {
skull: &|_| None,
glyph: &glyph,
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let enabled = CacheOptions {
@@ -735,8 +741,9 @@ fn shulker_cache_tracks_settled_poses_and_does_not_freeze_opening_animation() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let options = CacheOptions {
@@ -836,8 +843,9 @@ fn shulker_cache_covers_all_colors_and_facing_directions() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let options = CacheOptions {
shulker_boxes: true,
@@ -890,8 +898,9 @@ fn cached_bells_keep_shaking_until_the_animation_ends() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let options = CacheOptions {
@@ -951,8 +960,9 @@ fn cached_closed_chests_match_the_direct_model_and_rebuild_when_opening() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let options = CacheOptions {
@@ -1046,8 +1056,9 @@ fn closed_chest_cache_covers_all_materials_and_atlas_reloads() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let pos = [0, 64, 0];
let options = CacheOptions {
@@ -1134,8 +1145,9 @@ fn double_chest_cache_bypasses_both_halves_while_either_lid_is_open() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let pair = [([0, 64, 0], 0), ([1, 64, 0], 1)];
let options = CacheOptions {
@@ -1209,8 +1221,9 @@ fn decorated_pot_cache_tracks_sherds_and_bypasses_wobble_animation() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let options = CacheOptions {
@@ -1287,8 +1300,9 @@ fn banner_cache_keeps_the_pole_static_while_the_flag_and_patterns_update() {
sign: &|_| None,
banner: &banner_patterns,
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let blocks = [([0, 64, 0], 0)];
let options = CacheOptions {
@@ -1353,8 +1367,9 @@ fn cached_wall_banner_poles_use_the_wall_model() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let pos = [0, 64, 0];
let options = CacheOptions {
@@ -1400,8 +1415,9 @@ fn copper_statue_cache_rebuilds_when_its_pose_state_changes() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let options = CacheOptions {
copper_golem_statues: true,
@@ -1505,8 +1521,9 @@ fn copper_statue_cache_covers_weathering_waxing_and_all_poses() {
sign: &|_| None,
banner: &|_| Vec::new(),
skull: &|_| None,
glyph: &|_| (None, 0.0),
glyph: &|_| Glyph::default(),
glyphs: 0,
dynamic_visible: None,
};
let options = CacheOptions {
copper_golem_statues: true,
+114 -3
View File
@@ -90,9 +90,20 @@ pub fn effect_lines<'a>(
);
}
let instant = effect(e).is_some_and(|d| d.instant);
let scaled = (duration as f32 * scale) as i32;
if !instant && scaled > 20 {
line = format!("{line} ({})", format_duration(scaled));
if !instant {
if duration == -1 {
// MobEffectInstance.isInfiniteDuration: formatDuration says
// the infinite sign, not a time.
line = format!(
"{line} ({})",
translate("effect.duration.infinite").unwrap_or_else(|| "∞".to_owned())
);
} else {
let scaled = (duration as f32 * scale) as i32;
if scaled > 20 {
line = format!("{line} ({})", format_duration(scaled));
}
}
}
(line, effect(e).map_or(Category::Neutral, |d| d.category))
})
@@ -340,6 +351,17 @@ impl BrewingStand {
}
out
}
pub fn idle(&self) -> bool {
let bottles = [
self.items[0].is_some(),
self.items[1].is_some(),
self.items[2].is_some(),
];
self.brew_time <= 0
&& self.items[3].is_none()
&& (self.fuel > 0 || self.items[4].is_none())
&& self.last_bottles == Some(bottles)
}
fn brew(&mut self, brewing: &Brewing, items: &Items, out: &mut BrewTick) {
let Some(ingredient) = self.items[3].clone() else {
return;
@@ -455,6 +477,84 @@ mod tests {
assert_eq!(stand.brew_time, 0);
}
#[test]
fn a_brewing_stand_is_idle_only_while_its_tick_changes_nothing() {
let mut stand = BrewingStand::new();
assert!(!stand.idle());
stand.last_bottles = Some([false; 3]);
assert!(stand.idle());
stand.items[0] = Some(ItemStack::new("minecraft:potion", 1));
assert!(!stand.idle());
stand.last_bottles = Some([true, false, false]);
assert!(stand.idle());
stand.items[4] = Some(ItemStack::new("minecraft:blaze_powder", 1));
assert!(!stand.idle());
stand.fuel = 3;
assert!(stand.idle());
stand.items[3] = Some(ItemStack::new("minecraft:nether_wart", 1));
assert!(!stand.idle());
stand.items[3] = None;
stand.brew_time = 5;
assert!(!stand.idle());
}
/// The stand sleeps while `idle`, so its tick must change nothing then: run the real
/// tick on idle stands and compare, and check a stand with fuel to take wakes.
#[test]
fn an_idle_brewing_stand_tick_changes_nothing() {
let items = Items::for_tests(std::collections::HashMap::new());
let brewing = Brewing {
reagents: ["minecraft:nether_wart".to_owned()].into_iter().collect(),
inputs: HashSet::new(),
recipes: vec![BrewingRecipe {
id: "awkward".into(),
input: PotionIngredient {
items: ["minecraft:potion".to_owned()].into_iter().collect(),
potions: Some(["minecraft:water".to_owned()].into_iter().collect()),
},
reagent: PotionIngredient {
items: ["minecraft:nether_wart".to_owned()].into_iter().collect(),
potions: None,
},
output: ItemStack::new("minecraft:potion", 1).with_potion("minecraft:awkward"),
}],
};
let providers = Providers::empty();
let water = || Some(ItemStack::new("minecraft:potion", 1).with_potion("minecraft:water"));
let stand = |bottle: bool, fuel: i32, powder: bool| {
let mut s = BrewingStand::new();
s.fuel = fuel;
if bottle {
s.items[1] = water();
}
if powder {
s.items[4] = Some(ItemStack::new("minecraft:blaze_powder", 1));
}
s.last_bottles = Some([false, bottle, false]);
s
};
for before in [
stand(false, 0, false),
stand(true, 0, false),
stand(true, 5, false),
stand(true, 5, true),
] {
assert!(before.idle(), "{before:?}");
let mut after = before.clone();
assert_eq!(
after.tick(&brewing, &items, &providers),
BrewTick::default()
);
assert_eq!(format!("{after:?}"), format!("{before:?}"));
}
// A brewable ingredient starts the brew: not idle, and the tick changes it.
let mut brewing_now = stand(true, 5, false);
brewing_now.items[3] = Some(ItemStack::new("minecraft:nether_wart", 1));
assert!(!brewing_now.idle());
brewing_now.tick(&brewing, &items, &providers);
assert_eq!(brewing_now.brew_time, 400);
}
/// #3312: `PotionContents.getPotionDescription` names the effects with
/// translatable components, so a Russian game reads them from ru_ru.json
/// (the prepared one; skipped without it), as the tooltip's other lines.
@@ -473,4 +573,15 @@ mod tests {
assert!(lines[0].0.starts_with("Замедление IV ("), "{lines:?}");
assert!(lines[1].0.starts_with("Сопротивление III ("), "{lines:?}");
}
#[test]
fn infinite_effects_say_the_infinite_sign() {
// MobEffectInstance.isInfiniteDuration: a -1 duration says the
// infinite sign, not a time; a short one still says nothing.
let translate = |key: &str| (key == "effect.duration.infinite").then(|| "∞".to_owned());
let lines = effect_lines([("minecraft:resistance", -1, 0)], 1.0, &translate);
assert_eq!(lines[0].0, "resistance (∞)");
let lines = effect_lines([("minecraft:resistance", 15, 0)], 1.0, &translate);
assert_eq!(lines[0].0, "resistance");
}
}
+199
View File
@@ -1,3 +1,27 @@
// `joml::Mat4::rotation`, `rotate_affine`, `transform_affine` and `invert_orthonormal`, and
// `joml::Quat::rotation_x`/`_y`/`_z`, in this file are adapted from JOML 1.10.9's `Matrix4f`,
// `Quaternionf` and `Vector4f` (https://github.com/JOML-CI/JOML, MIT; see THIRD_PARTY_NOTICES.md).
//
// Copyright (c) 2015-2026 Richard Greenlees
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//! The camera (`Camera.tick`, `tickFov`, `calculateFov`, `alignWithEntity`,
//! `getMaxZoom`, `setRotation`, `move`), view and hurt bobbing
//! (`GameRenderer.bobView`, `bobHurt`), the walk and bob history they read
@@ -119,6 +143,40 @@ pub mod joml {
w: w * cz + z * sz,
}
}
/// `Quaternionf.rotationX(angle)`.
pub fn rotation_x(angle: f32) -> Self {
let (x, w) = Self::half_turn(angle);
Self {
x,
y: 0.0,
z: 0.0,
w,
}
}
/// `Quaternionf.rotationY(angle)`.
pub fn rotation_y(angle: f32) -> Self {
let (y, w) = Self::half_turn(angle);
Self {
x: 0.0,
y,
z: 0.0,
w,
}
}
/// `Quaternionf.rotationZ(angle)`.
pub fn rotation_z(angle: f32) -> Self {
let (z, w) = Self::half_turn(angle);
Self {
x: 0.0,
y: 0.0,
z,
w,
}
}
fn half_turn(angle: f32) -> (f32, f32) {
let sin = sin(angle * 0.5);
(sin, cos_from_sin(sin, angle * 0.5))
}
/// `Quaternionf.transform(x, y, z, dest)` (`Vector3f.rotate`).
pub fn transform(&self, v: [f32; 3]) -> [f32; 3] {
let [x, y, z] = v;
@@ -142,8 +200,10 @@ pub mod joml {
}
const PERSPECTIVE: u8 = 1;
const AFFINE: u8 = 2;
const IDENTITY: u8 = 4;
const TRANSLATION: u8 = 8;
const ORTHONORMAL: u8 = 16;
/// A JOML `Matrix4f` with its property flags, which select the code
/// paths (and so the rounding) of later operations. `m[column * 4 + row]`.
@@ -284,10 +344,149 @@ pub mod joml {
// already taken that branch.
self.rotate_axis(2, ang);
}
/// `Matrix4f.rotation(Quaternionfc)`.
pub fn rotation(&mut self, q: Quat) {
let (w2, x2, y2, z2) = (q.w * q.w, q.x * q.x, q.y * q.y, q.z * q.z);
let zw = q.z * q.w;
let dzw = zw + zw;
let xy = q.x * q.y;
let dxy = xy + xy;
let xz = q.x * q.z;
let dxz = xz + xz;
let yw = q.y * q.w;
let dyw = yw + yw;
let yz = q.y * q.z;
let dyz = yz + yz;
let xw = q.x * q.w;
let dxw = xw + xw;
self.reset_unless_identity();
self.set(0, 0, w2 + x2 - z2 - y2);
self.set(0, 1, dxy + dzw);
self.set(0, 2, dxz - dyw);
self.set(1, 0, -dzw + dxy);
self.set(1, 1, y2 - z2 + w2 - x2);
self.set(1, 2, dyz + dxw);
self.set(2, 0, dyw + dxz);
self.set(2, 1, dyz - dxw);
self.set(2, 2, z2 - y2 - x2 + w2);
self.properties = AFFINE | ORTHONORMAL;
}
/// An affine matrix of no more specific kind, as JOML's property flags have it.
pub fn affine(m: glam::Mat4) -> Self {
Self {
m: m.to_cols_array(),
properties: AFFINE,
}
}
/// `Matrix4f.rotate(Quaternionfc)` of an affine matrix that is neither the identity nor
/// a pure translation (`rotateAffine`).
pub fn rotate_affine(&mut self, q: Quat) {
debug_assert!(
self.properties & AFFINE != 0 && self.properties & (IDENTITY | TRANSLATION) == 0
);
let (w2, x2, y2, z2) = (q.w * q.w, q.x * q.x, q.y * q.y, q.z * q.z);
let zw = q.z * q.w;
let dzw = zw + zw;
let xy = q.x * q.y;
let dxy = xy + xy;
let xz = q.x * q.z;
let dxz = xz + xz;
let yw = q.y * q.w;
let dyw = yw + yw;
let yz = q.y * q.z;
let dyz = yz + yz;
let xw = q.x * q.w;
let dxw = xw + xw;
let r = [
[w2 + x2 - z2 - y2, dxy + dzw, dxz - dyw],
[-dzw + dxy, y2 - z2 + w2 - x2, dyz + dxw],
[dyw + dxz, dyz - dxw, z2 - y2 - x2 + w2],
];
let s = *self;
for (column, r) in r.iter().enumerate() {
for row in 0..3 {
let v = s.get(0, row) * r[0] + s.get(1, row) * r[1] + s.get(2, row) * r[2];
self.set(column, row, v);
}
self.set(column, 3, 0.0);
}
self.properties &= !(PERSPECTIVE | IDENTITY | TRANSLATION);
}
/// `Vector4f.mul(Matrix4fc)` of an affine matrix (`mulAffine`, JOML's `Math.fma`
/// unfused): the matrix times `v`, `w` kept.
pub fn transform_affine(&self, v: [f32; 4]) -> [f32; 3] {
debug_assert!(self.properties & AFFINE != 0);
let [x, y, z, w] = v;
std::array::from_fn(|row| {
self.get(0, row) * x
+ (self.get(1, row) * y + (self.get(2, row) * z + self.get(3, row) * w))
})
}
/// `Matrix4f.invert()` of a rotation and translation (`invertOrthonormal`; with the
/// identity and pure-translation shortcuts). `None` for any other matrix, which JOML
/// inverts by other code paths.
pub fn invert_orthonormal(&self) -> Option<Self> {
if self.properties & IDENTITY != 0 {
return Some(Self::IDENTITY);
}
let mut out = *self;
if self.properties & TRANSLATION != 0 {
for row in 0..3 {
out.set(3, row, -self.get(3, row));
}
out.properties = AFFINE | TRANSLATION | ORTHONORMAL;
return Some(out);
}
if self.properties & ORTHONORMAL == 0 {
return None;
}
let g = |c, r| self.get(c, r);
let t = |c| -(g(c, 0) * g(3, 0) + g(c, 1) * g(3, 1) + g(c, 2) * g(3, 2));
out.m = [
g(0, 0),
g(1, 0),
g(2, 0),
0.0,
g(0, 1),
g(1, 1),
g(2, 1),
0.0,
g(0, 2),
g(1, 2),
g(2, 2),
0.0,
t(0),
t(1),
t(2),
1.0,
];
out.properties = AFFINE | ORTHONORMAL;
Some(out)
}
pub fn to_glam(self) -> glam::Mat4 {
glam::Mat4::from_cols_array(&self.m)
}
}
}
use joml::{Mat4, Quat};
/// `Camera.getViewRotationMatrix` to the last bit: `Matrix4f.rotation` of the conjugate of
/// `setRotation`'s quaternion, and its JOML `invert()`. `view_matrix` turns the same quaternion
/// into a matrix by glam's formula, which differs in the last bits (1.0 for 0.99999994, 6e-8 for
/// 0).
pub fn view_rotation_matrix(yaw: f32, pitch: f32) -> (glam::Mat4, glam::Mat4) {
let q = Quat::rotation_yxz(PI - yaw * DEG_TO_RAD, -pitch * DEG_TO_RAD, 0.0);
let mut m = Mat4::IDENTITY;
m.rotation(Quat {
x: -q.x,
y: -q.y,
z: -q.z,
w: q.w,
});
let inverse = m.invert_orthonormal().expect("a rotation is orthonormal");
(m.to_glam(), inverse.to_glam())
}
/// Camera-relative world view used by terrain, sky and the first-person hand.
pub fn view_matrix(yaw: f32, pitch: f32) -> glam::Mat4 {
// Vanilla uses the conjugate of Camera.rotation, not a world-up look-at.
Loaded 100 of 1601 files, more files were not shown because too many files have changed in this diff. Show more