94 lines
7.3 KiB
Markdown
94 lines
7.3 KiB
Markdown
# Dunium
|
|
|
|
Original Minecraft building tools: **Fabric visual client mod + Paper server plugin**.
|
|
|
|
Version **0.1.0-alpha.1** targets **Minecraft Java 1.21.8 / Java 21**.
|
|
|
|
## Status
|
|
|
|
Both original 1.21.8 components passed the full Gradle build, including **46 engine checks**. A separate **Minecraft 26.3 / Java 25 Fabric client** now builds successfully under `dunium-client-26.3/` (Gradle 9.6.0 / Loom 1.17.21). Seven isolated Paper/WorldGuard checks passed using a simulated builder. Dunium is installed on Giedermark with only `giedi_prime` allowed; Axiom and the world are backed up. Graphical client behavior and multiplayer handshake through ViaVersion still require in-game verification. Experimental alpha; not Axiom feature parity.
|
|
|
|
## Features in the source
|
|
|
|
| Component | Features |
|
|
| --- | --- |
|
|
| Visual client | K palette, [ / ] corner selection, server-confirmed cyan outlines, building and terrain tool pages |
|
|
| Editing | Cuboid fill, exact-state replace, copy/paste including air, 90/180/270 degree rotation, X/Z mirroring, solid sphere brush, flatten to Y |
|
|
| Recovery | Undo/redo with expected-state conflict checks; cancel retains completed edits in current-session history |
|
|
| Multiplayer | Global per-tick work budget, limited concurrent jobs, overlapping Dunium operations refused, permission/location rechecks |
|
|
| Protection | Explicit world allowlist, creative-only default, loaded chunks only, border/height/distance checks, block entity exclusion, optional WorldGuard 7 bridge and cancellable protection event |
|
|
|
|
Clipboard transforms also rotate/mirror directional block states through Paper's API. Preview means bounds and an upper-bound position count; it does not show an exact ghost copy or guarantee every position changes.
|
|
|
|
## Build
|
|
|
|
Set JAVA_HOME to a JDK 21 installation. Initial builds require internet. The Gradle 8.14 wrapper includes a distribution SHA-256 check.
|
|
|
|
```sh
|
|
sh gradlew clean build
|
|
# Server and engine checks only:
|
|
sh gradlew -PserverOnly :dunium-server:build :dunium-common:check
|
|
```
|
|
|
|
```powershell
|
|
.\gradlew.bat clean build
|
|
.\gradlew.bat -PserverOnly :dunium-server:build :dunium-common:check
|
|
```
|
|
|
|
Artifacts: `dunium-server/build/libs/Dunium-Server-0.1.0-alpha.1.jar` and `dunium-client/build/libs/Dunium-Client-0.1.0-alpha.1.jar`. Use the remapped client JAR, not a sources/dev JAR. The server embeds the shared engine; no common JAR needs installing. Minecraft and Fabric API are not bundled.
|
|
|
|
A Gitea Actions workflow is included; it needs an enabled runner and network access. No successful CI run is claimed. Windows machines with cached Paper dependencies can run `scripts/build-cached-server.ps1 -DependencyCache <Gradle modules-2/files-2.1> -JavaHome <JDK>` to compile, check and package only the server without Gradle/network.
|
|
|
|
## Test installation
|
|
|
|
1. Back up a disposable Paper 1.21.8 build world. Put the server JAR in that stopped test server's `plugins/` directory.
|
|
2. Start once to generate `plugins/Dunium/config.yml`. Stop, explicitly add the test world's name to `allowed-worlds`, and restart. An empty allowlist denies all edits.
|
|
3. Grant `dunium.use` and `dunium.edit` (both default to operators) and use creative mode.
|
|
4. After the client builds successfully, install Fabric Loader 0.17.2+ for Minecraft 1.21.8, Fabric API 0.133.4+1.21.8 and the client JAR in that client profile's `mods/` folder.
|
|
5. Join, wait for the handshake, set corners using [ and ] while looking at blocks, and press K. Full preview/error messages appear in chat. Minecraft controls allow rebinding keys.
|
|
|
|
Paper commands also work without the mod, including for Bedrock players through an existing Geyser installation. Bedrock cannot run the Fabric UI. Singleplayer integrated-server editing, Folia, other Minecraft versions and live DuneRealms deployment are not included.
|
|
|
|
## Commands
|
|
|
|
Use `/dunium` or `/du`.
|
|
|
|
| Command | Action |
|
|
| --- | --- |
|
|
| `pos1 [x y z]`, `pos2 [x y z]` | Set corners; omitted coordinates use your current block position |
|
|
| `clear`, `status`, `help` | Manage selection or inspect work |
|
|
| `fill <state>` | Prepare cuboid fill |
|
|
| `replace <exact-state> <state>` | Match the complete canonical block state, including properties |
|
|
| `copy` | Batched snapshot; refused if any position is unsupported/protected |
|
|
| `rotate <90\|180\|270>`, `mirror <x\|z>` | Transform clipboard |
|
|
| `paste [x y z]` | Prepare paste; origin is minimum corner; includes air |
|
|
| `sphere <radius> <state> [x y z]` | Prepare solid sphere centered on coordinate |
|
|
| `flatten <y> <state>` | Within selection, fill through Y and clear above |
|
|
| `confirm` | Start the prepared edit before its timeout |
|
|
| `cancel` | Discard preview or stop remaining work; completed changes remain undoable |
|
|
| `undo`, `redo` | Run history immediately in batches |
|
|
|
|
Example: `/du pos1`, move, `/du pos2`, `/du fill minecraft:sandstone`, inspect bounds, `/du confirm`, then `/du undo`.
|
|
|
|
## Limits and data behavior
|
|
|
|
- No paid feature gates. Administrators configure block counts, brush radius, global tick budget, sessions/jobs, distance, confirmation timeout and history budgets. Hard validation ceilings prevent overflow/unbounded allocation.
|
|
- History and clipboards are memory-only. Logout, plugin disable or restart discards them; completed world changes persist. No crash recovery journal exists. Back up test worlds.
|
|
- Block entities (containers, signs, spawners and other NBT blocks) are excluded from source and destination. Entities/inventories are not copied. Denied materials are refused or skipped.
|
|
- Direct writes suppress physics. Later neighbor updates may still affect fluids, gravity, multiblock structures and redstone. Undo tracks direct block-data writes, not external effects.
|
|
- Conflict checks compare block data, and cannot identify a later edit that restored the same state. Conflicting/protected history positions are skipped and not automatically retried.
|
|
- Dunium jobs cannot overlap each other. Other plugins and players can still edit; a copy across multiple ticks is not an atomic snapshot.
|
|
- WorldGuard 7 integration fails closed when installed but incompatible/unavailable; runtime compatibility still needs testing. Other protection systems must listen to `DuniumEditCheckEvent` or restrict the build-world allowlist. Generic protection compatibility is not claimed.
|
|
- Protocol v1 uses bounded UTF-8 plugin messages on `dunium:command` and `dunium:state`. The server trusts no client-supplied identity or permissions and revalidates operations.
|
|
|
|
## Remaining work
|
|
|
|
Full Fabric build and live test matrix, persisted recovery, smooth/noise brushes, gradients/hollow shapes, schematic import/export, exact ghost previews, preferences and more protection adapters. See [validation](docs/VALIDATION.md).
|
|
|
|
## Provenance
|
|
|
|
Original implementation and visuals; no Axiom code, assets, license bypasses or proprietary protocols. No distribution license for Dunium's own code has been selected. The Gradle wrapper is third-party Apache-2.0 code; see `gradle/wrapper/LICENSE-Gradle.txt`.
|
|
|
|
## Minecraft 26.3 client
|
|
|
|
Build separately with Java 25 and Gradle 9.6.0: `gradle -p dunium-client-26.3 build`. Fabric Loader 0.19.5+ and Fabric API 0.161.0+26.3 are required. Its JAR is `dunium-client-26.3/build/libs/Dunium-Client-0.1.0-alpha.2+mc26.3.jar`. Do not install the 1.21.8 client alongside it. Server remains Paper 1.21.8 and protocol v1. See [release verification](docs/RELEASE-20261107.md).
|

Staff