Altra Sekai — Mod Documentation
Minecraft 1.20.1 · Forge 47.4.x · Java 17 · Mod ID
altra_sekai
1. What is Altra Sekai?
Altra Sekai is a content mod that turns a fresh world into a living fantasy kingdom. On first world load, the mod deterministically picks one of 35 kingdom presets (theme, castle, walls, moat, districts) and builds it incrementally (budgeted per tick) around the spawn area. Inside you'll find NPCs, guilds, an economy, and the Shadow Cape ability.
All decisions (kingdom selection, layout, building placement) are driven by world seed + KingdomProfile.id() — no global randomness, so results are reproducible.
2. Features
2.1 Kingdoms (35 presets)
- Unique theme per kingdom (block palette, architectural style).
- Castle, gates (4 directions), towers, ring wall, moat.
- Districts: citadel, market, guild, residential, temple, craft, landmark, arrival plaza.
- Roads (avenues) from citadel to each district plus an approach road from the arrival court.
- Modular buildings: houses, guild hall, chapel, inn, blacksmith, market stalls, well, tower, lamppost.
- Decorations: lamps, fences, gardens, fields outside the wall.
- All buildings placed from NBT templates (190 templates) with rotation facing the district center.
2.2 Spawn & Respawn
- New/respawned players always spawn inside a kingdom.
- While the kingdom is still building, the player floats 70 blocks above the site (invulnerable) and sees progress in the action bar.
- When finished → teleport to the road in front of the castle,
setRespawnPosition(forced),setDefaultSpawnPos. - Death → respawn in the kingdom (forced).
2.3 NPCs
- All vanilla villagers are replaced by Altra NPCs.
- Varied skins (510 skins).
- Large name tags for special NPCs (king, shop guards, guild).
- Daily routine: work in the morning, plaza at noon, home at night (affected by
/time set). - Roles: King, Shop Guard, Blacksmith, Innkeeper, Wizard, Guild Receptionist, Guard, Citizen.
2.4 Guilds
- NPCs sit on chairs (stairs).
- Classes: Fighter, Tank, Assassin, Marksman, Mage.
- Marksmen shoot hostile mobs.
2.5 Shadow Cape
- Separate slot from armor (Altra slot).
- Unlimited flight while equipped.
- Speed levels: 0–5, +90% per level.
- Raise level: press R once (no need to hold).
- Level ≥ 2: noPhysics enabled + breaks blocks in front (radius scales with level).
- No fall/suffocation damage.
- Flight: double-jump.
- Cloak is visible on all players' backs.
2.6 Cosmetic Rings
- 6 styles: orbs orbit the player.
- Ouroboros = snake-shaped orb.
2.7 Economy
- Buy/sell with merchants, blacksmith, inn, wizard, guild receptionist.
- Prices based on item rarity.
- Currency: 1 Silver = 10 Copper, 1 Gold = 1000 Copper.
- Command
/altra money <copper>.
2.8 Creative Tab
- "Altra Sekai" tab: coins, Shadow Cape, 6 rings, NPC spawn eggs.
3. How to Use
3.1 Installation
- Install Forge 1.20.1 (47.4.x or newer).
- Put
altra_sekai-0.3.0.jarin themods/folder. - Launch Minecraft, create a new world (Creative/Survival).
- Wait for the kingdom to finish building (progress shown in action bar).
3.2 Using the Shadow Cape
- Obtain the Shadow Cape (creative tab or loot).
- Press Y to open the Altra Equipment screen, or right-click while holding the cape.
- Equip the cape in the cloak slot (separate from armor).
- Double-jump to start flying.
- Press R to raise flight speed level (one level per press, max 5).
- Press J to toggle vanish (50% transparent + purple outline; mobs stop targeting).
3.3 Using Rings
- Obtain a ring from the creative tab.
- Equip it in a ring slot (Altra Equipment).
- Orbs will orbit the player in the ring's style.
3.4 Interacting with Shops
- Right-click an NPC merchant/blacksmith/innkeeper/wizard/guild receptionist.
- Use coins (from
/altra money <copper>or gameplay). - Buy/sell according to item rarity.
3.5 Commands (op level 2)
| Command | Function |
|---|---|
/altra kingdom presets |
Show 35 kingdom presets |
/altra kingdom list |
List existing kingdoms |
/altra kingdom status |
Status of active kingdom build |
/altra kingdom spawn |
Teleport to kingdom spawn |
/altra kingdom tp <n> |
Teleport to kingdom n |
/altra kingdom build <0-34> |
Build kingdom preset n |
/altra building <name> [rot] |
Place a building template |
/altra npc <role> [n] |
Spawn NPC role |
/altra money <copper> |
Give coins |
/altra clear |
Clear area |
4. Cloak Controls ( need use cloak )
| Key | Function |
|---|---|
| J | Toggle vanish |
| Y | Open Altra Equipment |
| R | Raise flight speed level (while flying) |
| Double-jump | Start flying |
5. Kingdom System (Flow)
ServerStartedEvent→ create spawn kingdom entry (cell (0,0), chosen on land near origin) → enqueue job.- New player login → if kingdom not finished, player floats 70 blocks above the site (invulnerable), progress shown in action bar. When finished → teleport to road in front of castle,
setRespawnPosition(forced),setDefaultSpawnPos. - Other kingdoms are auto-generated when a player approaches (≤ 800 blocks from a 1400×1400 cell point). One job active at a time.
KingdomJob: force-loads the area chunk (setChunkForced) → sequential tasks: terraform → roads → templates → walls → decoration → NPCs. Budget 9 ms/tick.KingdomDatais saved (SavedData altra_kingdoms); if the server dies mid-build, the job restarts from scratch (deterministic).- City layout: 32-block grid; roads on multiples of 32 (5 wide), avenues on axes (7 wide); 26×26 interior blocks filled with
houses/guild/chapel/inn/blacksmith/market/plaza/barracks/park.FLOOR_Y/FOUND = 2.
6. Troubleshooting
| Problem | Solution |
|---|---|
| Kingdom doesn't appear | Wait a few minutes; check /altra kingdom status |
| "Can't keep up" in console | Normal during build; wait for completion |
| NPC falls from height | Known bug; will be fixed |
| Cape can't fly | Make sure cape is in cloak slot (not armor) |
| R doesn't raise level | Make sure you are flying (double-jump first) |
| Shop won't open | Right-click the correct NPC |
7. Known Issues (Honest)
- noPhysics at level ≥ 2 may cause clipping through blocks in tight spaces.
- "Received passengers for unknown entity" in logs is cosmetic (from seated NPCs), does not affect gameplay.
- Kingdom generation is heavy on first world load; expect several seconds of lag.
- NPCs may have odd rotations or clip into furniture.
- Ring orbs may not be visible to other clients in some cases.
- Economy is not yet balanced.
- Multiplayer not fully tested; expect equipment sync desync in rare cases.
- World reload may re-trigger build if interrupted mid-generation (deterministic but restarts from scratch).
8. License & Credits
- Mod by the Altra Sekai team.
- Assets (NBT, skins, textures) generated via Python scripts in
tools/. - License: all rights reserved (beta).