feat: Aliens and Structures#5
Draft
Dario-Maselli wants to merge 7 commits into
Draft
Conversation
Add Phase 0 scaffolding for the Alien Villager feature: design and task documents, Blockbench model, client model, server-side entity (AlienVillager.java), registration changes, spawn egg (model/json/texture), language and model datagen entries, and in-world spawn in the Greenxertz biome. Update registries (entities/items/biomes/creative tab), ModModelProvider/ModLanguageProvider, and NerospaceClient renderer wiring. Also fix Blockbench model texture paths and update tooling (tools/gen_textures.py, tools/model_sync.py). This implements the initial wandering, wary-neutral villager and associated assets and is build-verified as Phase 0.
Implements Phase 1/2 for Alien Villagers: adds a custom AlienVillagerRenderer and AlienVillagerRenderState (per-individual color seed, biome, planet, display tier) plus a meadow texture and model tweaks to support per-entity tinting and biome-based skins. Generalizes GreenxertzMobModel and GlowEyesLayer with render-state generics and updates sibling model classes accordingly. Extends AlienVillager into a Merchant with per-player reputation (stored via Codec), gift handling, tiered MerchantOffers, and a new AlienTrades catalog; trading uses the vanilla MerchantMenu. Misc: updates Blockbench model texture paths, documents progress in ALIEN_VILLAGERS_TASKS.md, fixes syncModels/python build note, and minor build/task tweaks. Build-verified (compile/build/ecjCheck) with the new changes.
Introduce a claimable Village Core block and backing BlockEntity plus a rare Hamlet worldgen feature. - Add VillageCoreBlock and VillageCoreBlockEntity with claim/owner storage and player-facing messages. - Register block, block item, block entity, and add to creative tab, block tags, loot tables, language, and model/datagen providers; include texture and asset JSONs. - Implement HamletFeature (simple custom Feature) and register it via new ModFeatures; add configured and placed feature entries (hamlet & hamlet_placed) and hook into the Greenxertz biome generation. - Wire feature registration into Nerospace startup and update mod datagen/providers to generate models/lang/tags/loot for the new content. This implements the Phase 3 "small structures + Village Core" slice using a robust Feature (avoiding jigsaw complexity) and prepares the per-village systems for later phases.
Add Phase 4 teach-and-grow functionality: new procedural building catalogue and full in-world construction engine. - Add VillageBuildings.java: building Type catalog (HUT, WORKSHOP), ordered placement generator producing ordered Placement lists (WALL/ROOF/LIGHT/AIR). - Update VillageCoreBlock: register server-side ticker, add useItemOn to accept Nerosteel blocks (deposit into core), and call core.onUse for owner interactions; adjust imports to reference ModBlocks/ModBlockEntities. - Expand VillageCoreBlockEntity: preserve claiming behavior and add stockpile, builtCount and full job state (type/progress/plot/placements). Implement deposit(Player, ItemStack), onUse(Player) to start/build jobs (reputation and cost gated), serverTick to place blocks over time with particles, finishJob, villageTier scanning of nearby AlienVillager entities, and persistence (save/load) for new fields. - Minor docs: mark Phase 4 done and summarize simplifications in ALIEN_VILLAGERS_TASKS.md. This implements the core teach-and-grow loop (stockpile, reputation gate, staged block-by-block placement and persistence) and wires the block/entity to the mod registries.
Introduce exclusive Artificer gear (Grav Striders, Xertz Resonator) with item models, textures and language entries; register items and wire datagen. Grav Striders negate fall damage via an event hook; Xertz Resonator scans nearby blocks for ores and reports counts. Expand village systems: add Quest enum, teach/quest hand-in and sneak-collect flows, passive production outputs, reputation grants, and config-gated night raids (Config.ALIEN_RAIDS_ENABLED). Harden VillageCore interactions (client/server), persist new state, and update AlienVillagerRenderer to pick planet-specific textures. Add a rare Ruin feature (feature/configured/placed JSON, RuinFeature class, register in ModFeatures/Configured/PlacedFeatures) and spawn it in greenxertz; also add alien villager spawns to planet biomes. Minor doc/datagen updates (phase completion in ALIEN_VILLAGERS_TASKS.md, build.gradle whitespace).
Deliver the deferred content: adds a decoration block set (Alien Bricks, Cracked Bricks, Tile, Pillar, Lamp, Crystal Block) with textures, models, blockstates, item models, loot tables and pickaxe tag entries, plus language entries. Introduces the Ruin Warden boss (entity class, Blockbench .bbmodel, model, renderer layer, textures including glow) and wires datagen/model_sync updates. Adds a MegaCity world feature (configured + placed), registers it in the Greenxertz biome and updates ruin/hamlet placement logic (rarity_filter -> count). Several Java registry/datagen/world classes updated/added and docs/progress logs expanded; changes are build/ecjCheck/runData verified.
Add a local package.json and enhance tools/gradle-mcp: dynamically load markdownlint (full ruleset when installed) with initMarkdownlint/lintText, expose engine info, update markdown_check docs and tool list, and make main() async. Improve tools/ecj.prefs comments and set nullUncheckedConversion to warning to align ECJ with VS Code warnings. Fix a nullable dereference in NerospaceClient by guarding ClientMeteorTracker.pos(), and remove a redundant @SuppressWarnings in ModConfiguredFeatures. Normalize many wiki/MD table headers and small content/formatting edits across docs, update PRIVACY.md mailto formatting, and remove the v1.0.0 release link from CHANGELOG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Alien Villager feature: design and task documents, Blockbench model, client model, server-side entity (AlienVillager.java), registration changes, spawn egg (model/json/texture), language and model datagen entries, and in-world spawn in the Greenxertz biome. Update registries (entities/items/biomes/creative tab), ModModelProvider/ModLanguageProvider, and NerospaceClient renderer wiring. Also fix Blockbench model texture paths and update tooling (tools/gen_textures.py, tools/model_sync.py). This implements the initial wandering, wary-neutral villager and associated assets and is build-verified as Phase 0.
Summary
Related issue
Type of change
Checklist
./gradlew runData(if datagen changed) and./gradlew buildboth pass (BUILD SUCCESSFUL).Notes for reviewers