Altra Sekai

Altra Sekai is a Minecraft Forge mod that procedurally builds a living fantasy kingdom (35 presets) with NPCs, guilds, economy, Shadow Cape (flight, vanish), cosmetic rings, and Altra equipment slots. Spawn/respawn inside the kingdom. Commands via /altra.

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

  1. Install Forge 1.20.1 (47.4.x or newer).
  2. Put altra_sekai-0.3.0.jar in the mods/ folder.
  3. Launch Minecraft, create a new world (Creative/Survival).
  4. Wait for the kingdom to finish building (progress shown in action bar).

3.2 Using the Shadow Cape

  1. Obtain the Shadow Cape (creative tab or loot).
  2. Press Y to open the Altra Equipment screen, or right-click while holding the cape.
  3. Equip the cape in the cloak slot (separate from armor).
  4. Double-jump to start flying.
  5. Press R to raise flight speed level (one level per press, max 5).
  6. Press J to toggle vanish (50% transparent + purple outline; mobs stop targeting).

3.3 Using Rings

  1. Obtain a ring from the creative tab.
  2. Equip it in a ring slot (Altra Equipment).
  3. Orbs will orbit the player in the ring's style.

3.4 Interacting with Shops

  1. Right-click an NPC merchant/blacksmith/innkeeper/wizard/guild receptionist.
  2. Use coins (from /altra money <copper> or gameplay).
  3. 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 &lt;n&gt; Teleport to kingdom n
/altra kingdom build &lt;0-34&gt; Build kingdom preset n
/altra building &lt;name&gt; [rot] Place a building template
/altra npc &lt;role&gt; [n] Spawn NPC role
/altra money &lt;copper&gt; 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)

  1. ServerStartedEvent → create spawn kingdom entry (cell (0,0), chosen on land near origin) → enqueue job.
  2. 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.
  3. Other kingdoms are auto-generated when a player approaches (≤ 800 blocks from a 1400×1400 cell point). One job active at a time.
  4. KingdomJob: force-loads the area chunk (setChunkForced) → sequential tasks: terraform → roads → templates → walls → decoration → NPCs. Budget 9 ms/tick. KingdomData is saved (SavedData altra_kingdoms); if the server dies mid-build, the job restarts from scratch (deterministic).
  5. 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).

Altra Sekai Team

profile avatar
Owner
  • 1
    Projects
  • 15
    Downloads

Vibe Modder :v Hello I am Hanmsft, person who love making minecraft mods to change minecraft into fantasy rpg. >> Moving forward, I will continue to create other interesting mods. >>