Smooth lighting and ambient occlusion now follow BlockModelLighter
(cubic/partial faces, diagonal samples through light-permeable blocks,
light blending with the sky-borrow and zero rules, partial-face weights),
with vanilla's integer colour arithmetic, cardinal shading, quad light
emission, flat lighting for emitting or non-AO blocks, tint source counts
and random block offsets. Fluids follow FluidRenderer: occlusion against
neighbour face shapes, legacy-solid corner heights, flow-rotated UVs with
Mth.atan2 and the sine table, water overlay beside glass and leaves, back
faces and max(self, above) light. Flat model elements skip their
degenerate faces like UnbakedCuboidGeometry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
VanillaStructurePlacementOracle generates vanilla terrain with live
structure starts and references for the 3x3 chunks around a target, runs
the structure part of applyBiomeDecoration through a WorldGenRegion-like
level and dumps the target chunk's blocks and block entities. The
structure_blocks example does the same with Horizon's generator
(GeneratorWorker::set_structures_only skips placed features) and
tools/compare_structure_blocks.py reports the differences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ParticleEngine gains ClientExplosionTracker-style explosion bursts,
TrackingEmitter and ServerLevel.sendParticles spreads; explode() and
Player.attack spawn them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port LightEngine.shapeOccludes / getFaceOcclusionShape (occlusion.nbt) so
slabs, stairs, snow layers, paths etc. block light directionally, and use
ChunkSkyLightSources.isEdgeOccluded for sky sources. Block light now rises
into the section above the highest occupied one.
Block edits on lit chunks are relit in place with vanilla's decrease and
increase passes instead of recomputing the 3x3 chunks (and remeshing every
section of them); edits that race a chunk light job are replayed onto it.
examples/light_parity compares Horizon light with the SkyLight/BlockLight
arrays of worlds saved by the vanilla 26.3 server (0 differences on
villages, outposts and a slab/stair/snow scene; 181 of 113M sky values
differ where vanilla's worldgen light is stale) and checks incremental
relighting against full relights. tools/vanilla_world_check.py runs the
vanilla server headless; tools/anvil_dump.py prints NBT and region chunks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chests, trapped chests and barrels written by world generation become
client containers; their loot tables are unpacked with the loot module
using the generated LootTableSeed and the container's biome. chunkgen_bench
can list generated block entities (HORIZON_BLOCK_ENTITIES).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Install the live feature registry (sharing the generator's worldgen bundle),
route bone meal through BoneMealItem.useOn, report biome names and the world
seed to block behaviour, play the bone meal sound and pop items from tall
flowers. GameLevel::max_y is now exclusive as LevelAccess documents. New
horizon-ctl commands: setblock, fill, getblock, container.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New horizon_world::loot: pools, weighted and nested entries, the item
modifiers chest tables use (counts, damage, random and level-based
enchanting, potions, stew effects, instruments, filtered/discard),
conditions, the stack splitter and the slot shuffle, all with vanilla's
random draw order. tools/compare_loot_fill.py runs a new vanilla oracle
(VanillaLootFillOracle) against the loot_fill example: all 58 chest
tables match slot for slot over 42 seeds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Workstation menus follow the vanilla screens: slot layouts, sprites, the
enchanting table's seeded offers with clues and galactic names, anvil
rename/repair/combine costs, grindstone disenchanting with experience,
smithing upgrades and trims, stonecutter recipe buttons, and the brewing
stand block entity with data-driven recipes. Item tooltips show rarity,
enchantments, potion effects and trims; enchanted items glint.
horizon-ctl gains menu commands (use, click-slot, click-gui, type, xp, ...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Font: bitmap glyph ascent/oversampling, unihex glyphs rasterized on demand
into a reserved atlas region, bold/italic/underline/strikethrough and
StringSplitter wrapping. Languages layer lang/<code>.json over en_us.
The command module ports Brigadier parsing, suggestions and smart usage
with the vanilla argument types and the 26.3 command tree; game rules
use the 26.3 registry names and saved-data file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Primitive codecs (VarInt/VarLong, strings, positions, LpVec3, BitSets),
VarInt21 framing, zlib threshold compression, AES/CFB8 encryption, MD5
offline UUIDs, network NBT via horizon-world, item stacks with data
component patches, chunk and light payloads with paletted containers,
synched entity data, and typed packets for every connection state in both
directions with round-trip tests. Packet ids are generated from the data
generator's packets report. The probe example logs into a vanilla 26.3
server and decoded ~8000 packets (329 chunks) without errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port TreeGrower (all growers incl. 2x2 dark oak, pale oak, mega spruce/jungle,
mangrove, azalea, poplar), BoneMealItem.useOn/growCrop/growWaterPlant and every
BonemealableBlock. Configured and placed features run on the live level via a
FeatureWorld/PlacementContext adapter with vanilla setBlock semantics. Also fix
torchflower crops never maturing and kelp growth into flowing water.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port EndCityPieces' section generators (house towers, towers, bridges,
fat towers and the single ship), the local collision rule of
recursiveChildren and the treasure chest data markers. Seeds 1 and 12345
match vanilla on all 158 End starts over 601x601 chunks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sections now report their block-entity blocks; a new block_entity_render
module draws them each frame with vanilla's baked layer models, renderer
transforms, animations (chest lids, banner wave, enchanting-table book)
and entity diffuse lighting. Adds setblock/fill control commands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 127 skipped placed features were all skipped because the worldgen bundle
lacked worldgen/blocks/{block-properties,cached-collision,cached-support}.nbt
and the survival definitions, which prepare_native_client.py only copied from
a previous simple-block parity run. Run the vanilla exporter directly when
those files are missing, and say so in the client when they are absent.
With them, every placed feature of the three dimensions runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port NetherFortressPieces (bridge and castle piece weights, children,
moveInsideHeights, chests and the blaze spawner) and NetherFossilStructure
(noise-column floor search, template piece with the dried ghast). The
structure-start oracle and chunkgen_bench take a dimension; seeds 1 and
12345 match vanilla on 5024 of 5025 Nether starts over 301x301 chunks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vanilla_diff compares Rust-decorated chunks with region files of a vanilla
world generated for the same seed; chunkgen_bench takes --dimension.
configure_end_gateway stores the exit of end_gateway_return gateways instead
of failing the feature.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Item stacks carry vanilla's extra components, saved in chunk and player NBT.
The enchantment registry loads from the data pack with ordered tags, the
EnchantmentHelper cost/selection rules, value effects and level-based values,
and the anvil, grindstone, smithing and stonecutter result rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Everyday work is built and tested on Linux only. macOS and Windows jobs run only when started by hand (workflow_dispatch: gh workflow run <workflow> --ref <branch>), not on pull requests or pushes to main. Release workflows are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub releases were deleted; the Mac starter and packs are built with
tools/build_release.py instead of downloaded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the creative screen's Escape and E handling into key_pressed, which
the control socket shares with the window, and keep both exporter hashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep both branches' PieceWorld additions and one copy of the
StartContext::sea_level both added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`--control` opens a local Unix socket; horizon-ctl sends text commands and
prints JSON replies. Scripts can read status, press keys and mouse buttons,
look, teleport, give items, change render distance, take PNG screenshots
of the presented frame, and benchmark frame times without a person at the
keyboard. Under control, losing focus no longer pauses the game.
Key presses and play-screen mouse buttons move into shared methods so the
window and the socket take the same paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Score fourteen subsystems against the code (55% overall) and test that the
README percentage matches the table. Fluids, redstone, crop growth and the
Nether already run in the client; the native-client status still described
the old test-generator terrain without mobs or containers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uncommitted work from a finished agent worktree on ludothinkpad (/home/ludovic/.t3/worktrees/2026-10-03-i-want-you-to-retro-e5fa4461/t3code-ec3c613c), saved before the worktree was removed. Not built or verified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uncommitted work from a finished agent worktree on ludothinkpad (/home/ludovic/.t3/scratch/2026-10-03-i-want-you-to-retro-e5fa4461/.claude/worktrees/agent-aecc9e1511b717b74), saved before the worktree was removed. Not built or verified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uncommitted work from a finished agent worktree on ludothinkpad (/home/ludovic/.t3/scratch/2026-10-03-i-want-you-to-retro-e5fa4461/.claude/worktrees/agent-ac2ea1edb29c4454e), saved before the worktree was removed. Not built or verified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uncommitted work from a finished agent worktree on ludothinkpad (/home/ludovic/.t3/scratch/2026-10-03-i-want-you-to-retro-e5fa4461/.claude/worktrees/agent-a2bb16cfb9ff4be19), saved before the worktree was removed. Not built or verified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Rust rewrite now targets one Linux machine (Ubuntu 26.04, i7-13700KF,
RTX 4080, GNOME on Wayland). macOS and Windows are out of scope; the Java
packs, including the Mac starter, remain available but are no longer developed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run the worldgen step after vanilla's data generator, which writes the
biome parameter tables it reads, and export entity-types.json with the
existing VanillaEntityTypesExporter. Without these, preparation failed and
the client exited with "No such file or directory" when loading mobs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Horizon now targets Linux and macOS only: remove the Windows CI runners and
wgpu's DX12 backend, and update the scope docs. The Ubuntu RTX 4080 desktop
becomes the first physical Linux target. tools/package_native_client.py bundles
a release build with its prepared resources and a launcher for playing on
another machine of the same platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port StructurePiece's orientation frame and block helpers, template pieces
with data markers, chest/dispenser loot block entities and the five
smaller legacy structures. Structure stubs use the chunk middle (block 8).
For seed 0 over 97x97 chunks all 35 starts of implemented structure types
match the vanilla oracle (pieces, boxes, positions).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Breaking, placing and block interaction now go through horizon-world's
level module (Level.setBlock with neighbour and shape updates,
BlockItem.place/getStateForPlacement, useWithoutItem), replacing the
client's ad-hoc placement. Each tick runs scheduled block and fluid
ticks, random ticks within the simulation distance, block events and
moving pistons, so water and lava flow, crops and grass grow, leaves
decay, redstone and pistons work, and unsupported blocks pop off. Level
events become destroy particles and sounds, loot drops, falling-block
entities (landing through FallingBlockEntity rules), menus, sleeping,
cake and TNT.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Worlds now have dimensions with vanilla's per-dimension region folders
(DIM-1). The Nether generates with the vanilla generator, has no sky
light, Nether cardinal shading, its fixed ambient light, biome fog and
environmental fog (10..96), and no sky, sun or clouds. Lighting a fire
inside an obsidian frame creates a portal (PortalShape 2..21 x 3..21);
standing in it for 80 ticks (1 in creative) travels with 8:1 coordinate
scaling, reusing a nearby portal or building one (PortalForcer). The
player's dimension is saved in level.dat.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Behaviours::placement_state exposes BlockItem placement-state selection
without writing to the level; tools/test_level_place_parity.py compares it
with vanilla (VanillaPlacementOracle) over random neighbourhoods: 20000/20000
cases match. PlaceContext gains can_use_game_master_blocks. Level module
formatted with rustfmt.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Templates store palette states as id/properties; reading only Name made
every template block air. Add a vanilla oracle (structure placement, start
selection and Structure.generate over a chunk rectangle), a bench mode
dumping Rust starts in the same format, and a comparison script. For seed
0 over 97x97 chunks all 15 jigsaw starts (villages, trial chambers, trail
ruins, abandoned camps) match vanilla piece for piece.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
VanillaLevelShapeOracle evaluates BlockState.updateShape and canSurvive over
generated 5x5x5 neighbourhoods with a reflective LevelReader and records the
ticks requested through ScheduledTickAccess; level_shape_fixture does the same
through Behaviours. 40000/40000 random cases match. Walls, snow layers and sea
pickles now read position-dependent collision shapes (bamboo, speleothems,
shulker boxes) through DynamicSupport.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Beds place their head in the facing direction (undoing when blocked)
and break as a pair. Using a bed sets the respawn point and, at night
or in thunder with no monsters within 8 blocks, puts the player to
sleep; after 100 ticks the night is skipped and weather cleared, with
the vanilla sleep fade.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Port ServerLevel.advanceWeatherCycle (vanilla durations, smoothed rain
and thunder levels, saved in level.dat) and the WeatherAttributes rain
and thunder layers over the sky, fog, cloud, sky-light and star
attributes. Rain and snow columns render within 10 blocks down to the
first motion-blocking block, snowing where the biome is cold enough;
rain plays its ambient sounds, thunderstorms flash and thunder, and
undead no longer burn in the rain. Adds --weather for testing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Options (FOV, render distance, sensitivity, master volume, GUI scale,
view bobbing) are reachable from the title and pause menus, use
vanilla's slider/button layout, apply immediately and persist in
options.txt with vanilla's keys and encodings. View bobbing ports
GameRenderer.bobView from the player's walk distance and bob.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Port structure sets (random spread with frequency reducers and exclusion
zones), vanilla start selection, JigsawPlacement (pool aliases, shuffled
jigsaws by selection priority, placement-priority queue, free-space
checks, expansion hack, rigid/terrain-matching junctions) and pool
element placement. Proto generation computes per-chunk references within
8 chunks and feeds the beardifier into the noise fill; FEATURES places
referenced starts per decoration step before that step's features.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>