Port FirstPersonHandsAndItemsRenderer: the right arm (player model,
default skin) or the held item with its firstperson_righthand display
transform, the arm swing (6-tick swing on attack, mining and placing)
and the equip height animation, drawn after clearing depth so it never
clips into the world.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Ores and player kills drop experience split into vanilla orb sizes;
orbs fall, home in on the player within 8 blocks and are collected one
every 2 ticks, filling the XP bar with vanilla's level curve and the
level-up sound every 5 levels (saved as XpLevel/XpP/XpTotal). Bows
charge while held (BowItem power curve), consume arrows outside
creative, and player arrows hit mobs for ceil(speed * 2) damage with
critical bonuses.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Also fix PushReaction to the 26.3 enum (PUSH_PULL, PUSH, POPPED,
IMMOVEABLE, IGNORE_ENTITY).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Load gzip NBT structure templates lazily with vanilla palette ordering,
apply processors (rule, block_ignore, block_rot, gravity, protected_blocks,
capped, jigsaw_replacement, block_age, lava_submerged) and place them with
rotation/mirror, waterlogging and block-entity data (loot seeds). Per-state
rotate/mirror tables and template ordering flags come from a new vanilla
exporter. Template and fossil features now decode, so desert wells,
fossils and sulfur springs generate; their block entities are kept on the
ProtoChunk. The prepare script bundles templates, processor lists, pools,
structures and structure sets.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Equippable items swap into armor slots (inventory screen slots with the
empty-slot icons, saved as vanilla slots 100-103) and apply their
attribute modifiers, so the validated vanilla armor and toughness
damage reduction applies; armor loses max(1, damage/4) durability per
hit. Buckets pick up and place water and lava sources; hoes till,
shovels make paths, axes strip logs and wood, flint and steel and fire
charges light fire, with vanilla sounds and tool durability.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each meshed section records VisGraph face connectivity through
non-opaque blocks; the renderer walks sections breadth-first from the
camera through connected faces without stepping back towards it, as
SectionOcclusionGraph does, and only draws reachable sections. The walk
is recomputed when the camera changes section or visibility changes,
and disabled when the camera is inside an opaque block.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
PlaceContext resolves the replaced position as BlockPlaceContext does
(canBeReplaced per class, nearest looking directions), place_block runs
BlockItem.place with standing/wall and double-high items and setPlacedBy,
and use_without_item covers doors, trapdoors, gates, buttons, levers,
diodes, note blocks, cakes, composters, berries, pots, beds and menus.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The game opens on a vanilla-style title screen (logo, Singleplayer,
Quit) over the spinning title panorama. Select World lists saves by
last play with game mode; Create New World takes a name, a seed
(numbers or text hashed like vanilla) and the game mode, and finds a
free folder name. Save and Quit returns to the title. README and the
parity status now describe the playable Rust game.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Mth.normal sampling with float clamping and a saturating int cast, as used
by the pointed dripstone and sulfur spike placement offsets.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Behaviours loads per-block class chains, instance configuration and per-state
support/signal/fluid facts exported by VanillaBlockBehaviourExporter, and ports
Level.setBlock with the CollectingNeighborUpdater, updateShape for every
overriding class, canSurvive, FlowingFluid spreading with lava/water
interactions, gravity blocks, rails, tripwires, redstone wire/torches/diodes,
scheduled ticks and random ticks.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Food is consumed by holding use for 32 ticks with vanilla's eating
sounds and item particles in the last 25 ticks and a burp on finish
(FoodData.eat). Breaking blocks and attacking add 0.005 and 0.1
exhaustion. Dying throws the inventory out like Inventory.dropAll.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Celestial bodies follow SkyRenderer: the sun (30) and moon (20) at height
100 on a frame rotated by the timeline angles, the 1500 seeded stars at
the timeline star brightness, drawn additively behind terrain. Clouds
follow CloudRenderer: 12x4x12 cells from clouds.png drifting 0.03 blocks
per tick at the cloud height with per-face shading and the timeline
cloud colour. Adds --time and --look options for visual checks.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Chests, trapped chests and barrels hold 27 slots; furnaces, blast
furnaces and smokers tick like AbstractFurnaceBlockEntity.serverTick,
reading fuel burn times and speed multipliers from the data-driven
context providers and toggling the LIT state. Container screens use
the vanilla layouts and progress sprites. Contents drop when broken,
persist in Anvil block_entities, and chests render from the vanilla
chest model with the eased lid animation. Entity model export now
writes NaN UVs of degenerate faces as 0.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge worktree-agent-a8b4c3c64b61988c7 (trees, ores, vegetation, lakes,
geodes, dungeons, icebergs, dripstone, fungus, end spikes). The decoration
world now supplies the world seed, the write-zone check, raw section
writes for bulk ore placement and full-block collision tests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Mob types use vanilla's exported dimensions and default attributes and
its baked LayerDefinitions models with walk/arm/swell animations.
Creature packs spawn at chunk generation from biome spawn lists and
monsters spawn in the dark near the player with vanilla's light checks.
Passive mobs stroll, look and panic; zombies, spiders and creepers chase
(creepers swell and explode with the ray-based vanilla explosion);
skeletons shoot arrows. Player melee uses the attack-strength charge,
crits and knockback; deaths drop from entity loot tables.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Unit tests pin Java HashSet bucket iteration, Fisher-Yates draw order and
the seed-derived End spike layout. The oracle ignores sounds, level
events and entity queries; the Rust fixture accepts end-gateway
configuration; FEATURE_FILTER limits a rerun to matching features.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Wire the vanilla overworld generator (noise, aquifers, surface, carvers and
implemented placed features) into chunk streaming. Search outward in a
spiral for a solid, dry surface to spawn on, as vanilla avoids ocean spawns.
Give entity-dependent collision queries the defaults for players and mobs,
load only JSON recipes, and export entity types/attributes for mobs.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Load Java-exported block properties, face support, collision and survival
rules from the worldgen bundle's blocks/ directory (copied there by
prepare_native_client.py) and bind them with the state-provider catalog,
so simple-block, patch and vegetation features decode and run. The
decoration world answers survival, sturdy-face, collision and attachment
queries, draws WorldGenRegion's positioned level random, and treats the
entity-free, unlit proto region as unobstructed with zero light.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
minecraft:end_spike reproduces SpikeCacheLoader (seed-keyed shuffled
sizes), obsidian columns, iron-bar cages, the crystal's yaw draw, bedrock
and fire; the crystal entity is handed to a new spawn_end_crystal world
hook.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Streaming now supports vanilla's generation stages (proto chunk, 3x3
decoration, finalization). vanillagen.rs binds the overworld generator
from the generator branch; it is not yet registered in lib.rs until that
branch is merged. Adds dropped items, particles, crack overlay, sounds,
Anvil saves and the entity model exporter. Build not yet verified.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds minecraft:speleothem_cluster (Column scans, pools, merged tips) and
minecraft:large_dripstone (wind offsets, base embedding, height curve).
The differential harness now resolves named features and placed features
lazily on the Java side, logs dungeon loot/spawner block entities, uses
the world seed and survival rules, and exercises every other configured
feature over surface, cave, flooded-cave, ocean and nether worlds.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
RandomSource gains next_gaussian with per-source cached second values,
reset by set_seed for the legacy and Xoroshiro sources as in vanilla.
The WorldgenRandom adapter keeps its own cache that native setSeed does
not reset. FloatProvider decodes and samples minecraft:clamped_normal.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds minecraft:vegetation_patch and waterlogged_vegetation_patch (native
HashSet surface order), coral_tree/coral_claw over nested placed
features, huge_red/brown_mushroom, multiface_growth (glow lichen and
sculk vein spreaders), lake, monster_room (chest reorientation, loot
seed and spawner entity hooks), geode (seeded parity noise via a new
world-seed query), iceberg and root_system. Catalog expansion resolves
their nested placed-feature holders.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Decodes every vanilla 26.3 tree, fallen_tree, ore and scattered_ore
configured feature from the authenticated JAR, places each with both
random kinds over layered synthetic worlds backed by native proto-chunk
sections, and compares ordered writes, beehive occupants, post-processing
marks, results, random tails and the final block diff with Rust.
First run: 2783 of 3018 fixtures identical; every ore fixture matches.
The remaining differences are StructureTemplate.updateShapeAtEdge
neighbor shape updates (faceless vines and unsupported plants beside the
tree), which the Rust world hook does not yet implement.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Resolve each possible biome's placed features in vanilla encounter order
into a FeatureDecorationPlan and run FEATURES over a 3x3 neighborhood
through a WorldGenRegion-style adapter (write radius, zoomed biomes,
biome filters, freeze/snow weather). Roots whose algorithm or bindings
are missing are skipped and reported. Add worker stage timings, CPU-time
reporting in the bench, and a parameter-report quantization test.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Section palettes hash state IDs with a multiplicative hasher instead of
SipHash, and fill_noise skips heightmap updates at or below
first-available - 2, which are no-ops. Material-stage parity output is
byte-identical to vanilla.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GeneratorData loads a worldgen bundle (written by prepare_native_client.py
to the client resource dir) once; OverworldGenerator binds a seed and shares
compiled samplers across threads; GeneratorWorker generates vanilla
BIOMES..TERRAIN proto chunks (noise fill with aquifers, material surface,
carvers) that match the material-stage parity dumps. Decoration is stubbed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Model catalog now binds all registered blockstates. Sprites accept
fractional alpha, interpolated animations and non-16px frames
(resampled into the shared 16px array). Resource preparation extracts
every jar asset and data file, exports per-state light/hardness/sound
facts through a vanilla exporter, and bundles item default components
from vanilla's data generator reports.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Refresh scale dimensions and clamp health and absorption after movement, preserving native callback order and queued synchronization. Replay per-reference JVM identities in the scene comparison and cover changing limits, modifiers and low tunnels. Waypoint callbacks remain explicit requests for the future manager runtime.
Connect Shift input timing, dry pose fit, movement slowdown and eye height to the resident walking scene. Compare exact evolving state against pinned native client/server methods and record Linux window validation. Full gameplay and release acceptance remain unfinished.
Back up the current Rust pose, collision, ledge and native oracle work before further integration. This is a work-in-progress checkpoint: probe output, camera integration and differential validation are still pending; full vanilla parity is not claimed.