Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
fail-fast: false
matrix:
include:
- minecraft: '1.20.1'
module: mod-1.20.1
java: '21'
- minecraft: '1.21.1'
module: mod
java: '21'
Expand Down Expand Up @@ -76,6 +79,12 @@ jobs:
run: |
./gradlew.bat --no-daemon build
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Test 1.20.1 saved worlds
if: matrix.minecraft == '1.20.1'
working-directory: mod-1.20.1
run: |
./gradlew.bat --no-daemon runGameTest
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Test 1.21.1 gameplay logic
if: matrix.minecraft == '1.21.1'
working-directory: mod
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ mod-26.3/run/
mod-26.3/run-render-check/
mod/run-map-check-*/
mod/run-walking-check/

# Fabric 1.20.1 backport: source is tracked, local builds and test worlds are not.
mod-1.20.1/build/
mod-1.20.1/.gradle/
mod-1.20.1/run/
mod-1.20.1/run-*/
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 1.0.4 - 2026-10-27

- Add a Fabric 1.20.1 build and clean base pack, with Java 17 checks.
- Replace rocket/flight redirects that conflict with older MixinExtras annotation handling.
- Prepare adjacent terrain by geographic coordinates and guard against crossing into unrelated saved regions.
- Bound background voxel workers and recover queued work after worker crashes.
- Add native render settings, Polish strings and a read-only release checker. Updates still require closing Minecraft and replacing the matching JAR.
- Clarify JAR and modpack installation. RealWorldMC is not a datapack.

Live provider transitions, fresh graphical setup and cross-platform gameplay still need release validation. See [the test record](docs/release-1.0.4.md).

## 1.0.3 (2026-10-18)

- Integrate itzSelestia's Xaero minimap/world-map contribution, preserving the original commits; improve geographic overlays, caching and dimension isolation.
Expand Down
10 changes: 10 additions & 0 deletions HANDOFF.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Current handoff: 1.0.4 local candidate

Work is on `release/1.0.4` in `D:\RealWorldMC`. No remote push, merge, tag or publication was performed for this candidate. Four targets are tracked: 1.20.1, recommended 1.21.1, experimental 26.2 and 26.3. The website is separate and unchanged.

Start with [validation and remaining work](docs/release-1.0.4.md), [1.20.1 port handoff](docs/port-1.20.1-handoff.md), [release instructions](docs/releases.md) and [draft release notes](docs/releases/v1.0.4.md). PR #9 and #10 commits were imported locally with follow-up safety fixes; do not merge their original heads and assume those fixes are included.

The following sections are historical architecture notes. Older version labels describe their original snapshot.

---

# RealWorldMC handoff

## 1.0.2 preparation, 15 October 2026
Expand Down
2 changes: 1 addition & 1 deletion build-pack.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param([ValidateSet('1.21.1','26.2','26.3')][string]$MinecraftVersion = '1.21.1', [string]$ServiceDirectory = '', [string]$OutputDirectory = $PSScriptRoot, [switch]$VisualPack)
param([ValidateSet('1.20.1','1.21.1','26.2','26.3')][string]$MinecraftVersion = '1.21.1', [string]$ServiceDirectory = '', [string]$OutputDirectory = $PSScriptRoot, [switch]$VisualPack)
$ErrorActionPreference = 'Stop'
$jarName = if ($MinecraftVersion -ne '1.21.1') { "realworldmc-mc$MinecraftVersion-1.0.0.jar" } else { 'realworldmc-1.0.0.jar' }
$jar = Join-Path $PSScriptRoot $jarName
Expand Down
2 changes: 1 addition & 1 deletion build-release.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param([ValidateSet('1.21.1','26.2','26.3')][string]$MinecraftVersion = '1.21.1', [string]$OutputDirectory = (Join-Path $PSScriptRoot 'release-output'))
param([ValidateSet('1.20.1','1.21.1','26.2','26.3')][string]$MinecraftVersion = '1.21.1', [string]$OutputDirectory = (Join-Path $PSScriptRoot 'release-output'))
$ErrorActionPreference = 'Stop'
$module = if ($MinecraftVersion -ne '1.21.1') { "mod-$MinecraftVersion" } else { 'mod' }
$versionLine = Get-Content (Join-Path $PSScriptRoot "$module/gradle.properties") | Where-Object { $_ -match '^version=' }
Expand Down
18 changes: 12 additions & 6 deletions docs/controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Back to README](../README.md)

These instructions are for **1.21.1**. On 26.2, Street View opens the browser companion; native photo gameplay is not included.
These instructions cover the native **1.20.1 and 1.21.1** builds. On 26.2 and 26.3, Street View opens the browser companion; native photo gameplay is not included.

## Travel

Expand All @@ -17,9 +17,9 @@ These instructions are for **1.21.1**. On 26.2, Street View opens the browser co

`/earth setlocation 44.427454 26.087287` changes the start for **new worlds** and requires command permission. Existing worlds keep their own origin.

## Glide and fly
## Flight

`/earth fly` toggles equipment-free flight. Steve automatically glides while moving quickly and stands upright when hovering or moving straight up/down. `/earth glide` enables the same mode. Add `on` or `off` to either command; `/rw` works too. These modes require Creative singleplayer.
`/earth fly` toggles equipment-free flight. Steve automatically glides while moving quickly and stands upright when hovering or moving straight up/down. Add `on` or `off` to set it explicitly; `/rw` works too. These modes require Creative singleplayer.

W/S move forward/back, A/D strafe, arrow up/down changes speed, and Space/Shift rises/descends. Release movement keys to slow to a hover. Fireworks provide an optional boost. See [the flight guide](flight.md) for speeds, camera behaviour and globe transitions.

Expand Down Expand Up @@ -50,20 +50,26 @@ Your rebound camera toggle also works. Entering or leaving Street View preserves

`/earth help` shows the main commands. Click a yellow command to fill chat, then enter its arguments. `/earth help more` shows extra options.

Messages use a green **RW**, a dark gray separator and white text. Commands are pale yellow. `/earth goto` uses a green boss bar with three stages; these are not download percentages. In the prepared 1.0.1 build, photo loading and short control hints appear in stacked lines above the bottom-left map credits. The larger white arrows turn yellow when selected. Loading updates do not fill chat.
Messages use a green **RW**, a dark gray separator and white text. Commands are pale yellow. `/earth goto` uses a green boss bar with three stages; these are not download percentages. Photo loading and short control hints appear in stacked lines above the bottom-left map credits. The larger white arrows turn yellow when selected. Loading updates do not fill chat.

`/earth hud` toggles this corner information. Add `on` or `off` to set it explicitly. The setting persists; normal chat, loading boss bars, navigation arrows and other mods' messages are unaffected. Opening chat hides the controls so they do not overlap it.

Street View uses fixed daylight and softly shaded blocks. Lighting in a 360-degree photograph cannot react to placed torches or match every shadow exactly. The photo dimension uses a vanilla Iris pipeline; Earth exploration keeps your chosen shaders.

## Experimental space filming

The local experimental 1.21.1 build also has [Earth-to-space filming controls](space-flight.md). They are not in the published v1.0.0 download.
The native builds include [experimental Earth-to-space filming controls](space-flight.md).

In Creative singleplayer, fly above 2 km over your region's ground reference to enter automatically. Space/Shift change altitude; W/S cruise and A/D strafe. Descend below 1.6 km to resume local flight. `/earth space` starts ascent earlier; `/earth space return` goes back to the entry point. The threshold uses the region's saved ground height, not a live terrain measurement under the player.

The prepared 1.0.1 build also accepts `/rw moon`, `/rw mars` and `/rw earth` for orbital flyovers and return to Earth orbit. The `/earth` prefix works too. Above 100 km, aim at a destination marker and hold W for 2.5 seconds to travel. Release W or look away to cancel. See [space flight](space-flight.md) for imagery limits and [planetary data](planetary-data.md) for sources.
The native builds also accept `/rw moon`, `/rw mars` and `/rw earth` for orbital flyovers and return to Earth orbit. The `/earth` prefix works too. Above 100 km, aim at a destination marker and hold W for 2.5 seconds to travel. Release W or look away to cancel. See [space flight](space-flight.md) for imagery limits and [planetary data](planetary-data.md) for sources.

## New-world starting place

New Real World worlds choose from [100 places](spawn-locations.md). Operator commands `/earth setlocation random` and `/earth setlocation <lat> <lon>` control future worlds only. Saved worlds never move.

## Detail and updates

`/earth settings` opens map detail controls on the native builds. Changes apply to new tile requests; they do not edit provider keys. Higher settings use more memory and requests.

`/earth update` checks the latest GitHub release and opens its notes. It does not replace files while Minecraft is running. Back up worlds, close Minecraft, then replace the old JAR with the matching Minecraft version. `/rw` is an alias for both commands.
82 changes: 82 additions & 0 deletions docs/plan-1.0.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# RealWorldMC 1.0.4 implementation plan

Updated 27 October 2026. Implemented locally on `release/1.0.4`; no remote PR merged, push, tag or release. See [validation and manual gates](release-1.0.4.md). The sections below retain the original audit and acceptance criteria.

## Baseline

Latest release: [v1.0.3](https://github.com/Teddy563/realworldmc/releases/tag/v1.0.3), published 18 October. Local tracked HEAD and origin/main both point to `6f18d1f` (release rerun fix, PR #8). The current checkout is `port/1.20.1`; the new port was untracked before this audit.

Release targets: Fabric 1.20.1 (new, required), 1.21.1 (recommended), 26.2 and 26.3 (experimental). Native feature changes must not be advertised as experimental-target feature parity.

## Order of work

### 1. Preserve and integrate the 1.20.1 port

Follow [the port handoff](port-1.20.1-handoff.md). First commit the source snapshot and build exclusions separately, preserving its known static generator Codec fix. Add deterministic packaging of the current service, clean base pack, CI and clean-launch/save-reopen checks. Retain Heroes as an optional pack, not a mandatory dependency of RealWorldMC.

### 2. Fix launch crash #12 before feature work

[Issue #12](https://github.com/Teddy563/realworldmc/issues/12) reports a MixinExtras AnnotationNode ClassCastException transforming FireworkRocketItem with only RealWorldMC and Fabric API, Loader 0.17.2, Java 21.0.7.

The published metadata permits Loader >=0.16.0, but development uses 0.19.5. This is a compatibility hypothesis, not a confirmed root cause. Reproduce with the published 1.0.3 JAR and the exact reported minimal stack. Compare the tested loader and the declared minimum; inspect the actual MixinExtras version and remapped rocket mixin annotations. Fix the injection or dependency declaration based on the result. Do not prescribe unrelated optimization mods as a workaround.

Gate: minimal packaged-JAR launch reaches the menu and a world on every supported loader baseline; normal rockets and equipment-free boosts still work. Include Java 17 / 1.20.1 in the launch matrix. If raising the minimum loader is required, tell users plainly in metadata, setup and release notes.

### 3. Resolve region crossing #7; revise PR #9

[Issue #7](https://github.com/Teddy563/realworldmc/issues/7) describes NYC changing to Croatia across a barrier. Current EarthRegions.indexAt rounds positions into cells spaced 50,000 blocks apart, so crossing a midpoint can select a different saved geographic origin. The issue has a linked user video; review that repro during implementation (not watched in this audit).

[PR #9](https://github.com/Teddy563/realworldmc/pull/9), reviewed at `313e9920`, has green CI. Its 22,000-block radius only creates a gap: the next center becomes valid again at 28,000 blocks along the same axis. It does not guarantee geographic continuity and may expose empty terrain in the gap. Do not close #7 on the radius change alone.

Implement explicit ownership of the active geographic region. Before its safe limit, prepare a geographically adjacent origin and translate position, velocity and camera heading together. Retain current coverage until the new frame is ready. If preparation fails, retain the current view and provide a bounded stop/retry path; never infer a destination from an unrelated occupied grid cell. Saved worlds and existing edits must retain their geographic association.

Gate: populated adjacent NYC/Croatia cells, both directions, diagonals, negative boundaries, high-speed flight, orbit return, failed provider request and world reload. Confirm coordinates and scenery agree before/after each transition. Apply to 1.20.1, 1.21.1 and experimental targets, including renderer and collision callers.

### 4. Harden the worker-pool part of PR #9 separately

Useful direction: keep CPU voxelization off the HTTP event loop. Static review found:

- A replacement worker is pushed into freeWorkers by _spawnWorker and may immediately receive a queued task through _processNext without being removed from that free list. A new request can then assign a second task to the same worker and overwrite activeId.
- The pending queue is unbounded; explicit worker counts are not bounded integers. Add a conservative cap and backpressure.
- Guard worker retirement against duplicate error/exit handling, failed respawns and postMessage serialization errors. Every accepted task must resolve or reject; close must reject new work.
- Mesh inputs are structured-cloned; only output buffers are transferred. Measure memory and CPU before calling the entire operation zero-copy.
- Existing tests check output shape, not equivalence to synchronous results under real coordinates or worker failure.

Gate: byte-for-byte sync/worker parity, queue saturation, crash with queued work, failed spawn, duplicate exit, shutdown, invalid counts and a responsiveness/memory benchmark. Preserve the contributor commit and add focused fixes, or split the PR with the contributor before merge. Do not bundle incomplete boundary behavior with an otherwise useful worker optimization.

### 5. Rebase and narrow PR #10 after #9

[PR #10](https://github.com/Teddy563/realworldmc/pull/10), reviewed at `b5045b40`, includes PR #9's exact commit plus updater, Polish translations and rendering settings. CI is green, but it does not test safe update installation. Rebase after #9 so its changes are not integrated twice.

Keep: version notice, changelog UI, translations and a bounded quality-settings screen, after these changes:

- Match the exact Minecraft/loader release asset. Never fall back to the first JAR if the right version is missing.
- Current updater writes a new versioned JAR beside the old one, leaving duplicate mod IDs on restart. For 1.0.4, prefer a Releases/download-folder workflow with clear replacement steps. Defer in-place installation until it has verified staging, backup, restart-time replacement and rollback tests; never overwrite a loaded JAR.
- Validate downloaded filename/path, size, release checksum and mod metadata. Handle interrupted downloads and GitHub rate limits without freezing startup.
- Use Fabric's version parser or another existing semver implementation. Current digit-stripping can misread +mc1.20.1 build metadata and prereleases.
- Marshal progress/UI mutations onto the client thread; handle closed/resized screens. Translate hardcoded English/Polish status text too.
- Bound fineRadius/far/maxTiles/maxSse on both client and service. Apply quality settings before orbital policy so local distance overrides do not overwrite orbit distances. Save atomically through existing config conventions and preserve credentials; report save errors instead of silently ignoring them.

Gate: exact assets for all four targets, no matching asset, offline/403/429, interrupted download, duplicate-mod prevention, prerelease/build metadata comparisons, UI scaling, language fallback and orbital settings.

### 6. Address installation question #11

[Issue #11](https://github.com/Teddy563/realworldmc/issues/11) is a setup/documentation issue: RealWorldMC is a Fabric mod, not a datapack. Explain matching Minecraft + Fabric + Fabric API, placing the JAR in mods, and importing .mrpack through a compatible launcher. Do not claim an untested launcher is supported. Prepare a reply for owner review; no comment was posted in this audit.

## Merge and release gates

1. Source-tracked 1.20.1 port with packaging/tests.
2. Minimal-launch fix #12.
3. Revised region fix and hardened worker pool from #9; keep independent commits.
4. Rebased safe subset of #10, with direct in-place updater deferred unless fully validated.
5. Docs/#11, four-target CI, release notes and clean pack import.

Keep contributor attribution. New maintainer commits use Teddy563 <real@teddy.bar>, no automated co-author trailers. Do not force-push contributor branches or merge solely because CI is green.

Version all mod targets and service to 1.0.4. Generate each JAR/ZIP/mrpack from the same commit and service source; check metadata, archive contents and checksums. Test no-Node Windows startup and documented macOS/Linux Node discovery. Ensure no provider credentials, personal worlds, cached tiles, patched private add-ons or build outputs enter source/releases.

Only tag v1.0.4 after all four build/import/launch gates pass. Keep 1.21.1 recommended; describe 1.20.1 as newly supported with its tested feature list. Publish GitHub first and verify website asset selection for four targets; update Modrinth separately with the matching files and versions.

## Evidence and limits

Read open issues and comments, full PR file diffs, PR commit lists and CI statuses through GitHub API. Both PRs passed six existing checks (three builds plus three Node OS checks). Read the local port source/build metadata and prior handoff; inspected the existing Java 17 JAR. No new gameplay tests or provider requests were performed, and no PRs/comments/releases were changed. The root HANDOFF.md is historical and still contains obsolete 1.0.1/1.0.2 status; update its current-status section during implementation.
Loading
Loading