Add Fabric 26.3 client and record verified builds and Giedermark deployment

This commit is contained in:
unimatrixgit 2026-11-07 21:36:30 +01:00
commit 6b67c4db50
10 changed files with 250 additions and 1 deletions

View file

@ -6,7 +6,7 @@ Version **0.1.0-alpha.1** targets **Minecraft Java 1.21.8 / Java 21**.
## Status
Server source compiles against Paper 1.21.8, and the editing engine passes **46 regression checks**. A server JAR is packaged for testing. The Fabric client source is implemented, but **its build and in-game behavior are not verified**: this environment cannot download Fabric dependencies or connect to Gradle's local daemon. Full Gradle build and live integration remain release gates. This is an experimental alpha, not Axiom feature parity.
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
@ -88,3 +88,7 @@ Full Fabric build and live test matrix, persisted recovery, smooth/noise brushes
## 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).

View file

@ -1,3 +1,7 @@
## Deployment completed — 7 November 2026
Dunium is running on Giedermark with allowed-worlds [giedi_prime]. Axiom and world backup: /root/dunium-giedermark-20261107T202904Z on planet host. See [verification and rollback](RELEASE-20261107.md). Historical observations and procedure below are retained.
# Requested Giedermark replacement
User requested replacing AxiomPaper on Giedi Prime, displayed as Giedermark in the control panel, and supplying the matching Dunium client mod.

13
docs/RELEASE-20261107.md Normal file
View file

@ -0,0 +1,13 @@
# Dunium release verification — 7 November 2026
- Full Gradle 8.14 / Java 21 original build passed, including 46 engine checks.
- Full Gradle 9.6.0 / Loom 1.17.21 / Java 25 client 26.3 build passed.
- Client 26.3 SHA-256: 61dd905e9c116dfc4dda4d858d969f4b6fea95df810f346d61bf38dde658b678.
- Server SHA-256: 19f03ae80e536d72339d2aa2955e9c81bd8a35984814736302a6b3b4067b2726.
- Seven isolated Paper 1.21.8-60 checks with a simulated builder: plugin enabled; empty allowlist denies; fill; undo; redo; permission denial; WorldGuard build denial. WorldGuard query cache was allowed to expire after changing its test flag. These are server integration checks, not a real Minecraft client connection.
- Test server bound only to loopback and was stopped after testing. Probe plugin was never installed on Giedermark.
- Giedermark fresh player count was zero, save-all flush completed, server stopped. World/Axiom backup at /root/dunium-giedermark-20261107T202904Z on planet host. Original Axiom JAR and remap cache moved outside plugin scan path. Its configuration retained.
- Giedermark restarted: Dunium enabled, allowed worlds [giedi_prime], no Axiom startup, Paper ready. Other planet services were not restarted.
- Rollback: stop dune-giedi_prime, move Dunium JAR outside plugins, restore original Axiom JAR from backup and restart. Restore world archive only if actual world rollback is needed.
- 26.3 client uses native SDL-compatible InputConstants, KeyMapping category, extraction-based screen widgets and per-tick Gizmos selection outline. Payload format remains bounded raw UTF-8 protocol v1 compatible with existing Dunium server.
- Remaining: graphical client launch/UI, handshake through ViaVersion, two real builders, clipping/layout on small displays, advanced multiplayer test matrix. No crash journal or CoreProtect logging integration.

View file

@ -1,3 +1,7 @@
## Update — 7 November 2026
Full builds and isolated server checks now passed; Giedermark deployed. See [current release report](RELEASE-20261107.md). The historical gates below remain a test checklist; earlier environment/build blockers are resolved. Graphical client tests remain outstanding.
# Dunium 0.1.0-alpha.1 validation
## Verified locally

View file

@ -0,0 +1,8 @@
plugins { id 'net.fabricmc.fabric-loom' version '1.17.21' }
version='0.1.0-alpha.2+mc26.3'
group='com.dunerealms.dunium'
base { archivesName='Dunium-Client' }
repositories { mavenCentral(); maven { url='https://maven.fabricmc.net/' } }
dependencies { minecraft 'com.mojang:minecraft:26.3'; implementation 'net.fabricmc:fabric-loader:0.19.5'; implementation 'net.fabricmc.fabric-api:fabric-api:0.161.0+26.3' }
java { toolchain { languageVersion=JavaLanguageVersion.of(25) }; withSourcesJar() }
tasks.withType(JavaCompile).configureEach { options.release=25; options.encoding='UTF-8' }

View file

@ -0,0 +1,2 @@
pluginManagement { repositories { maven { url = 'https://maven.fabricmc.net/' }; gradlePluginPortal() } }
rootProject.name = 'Dunium-Client-MC26.3'

View file

@ -0,0 +1,123 @@
package dunium;
import java.nio.charset.StandardCharsets;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.networking.v1.*;
import net.minecraft.gizmos.Gizmos;
import net.minecraft.gizmos.GizmoStyle;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.minecraft.client.Minecraft;
import net.minecraft.client.KeyMapping;
import com.mojang.blaze3d.platform.InputConstants;
import net.minecraft.network.RegistryFriendlyByteBuf;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
import net.minecraft.world.phys.*;
import net.minecraft.core.BlockPos;
import net.minecraft.world.phys.AABB;
public final class DuniumClient implements ClientModInitializer {
public static String feedback="Waiting for a Dunium-enabled server. Creative mode and builder permissions are required.";
public static boolean connected;
private static final KeyMapping.Category CATEGORY=KeyMapping.Category.register(Identifier.fromNamespaceAndPath("dunium","tools"));
private static String dimension="";
private static BlockPos a,b;
private int ticks;
public record CommandPayload(String message) implements CustomPacketPayload {
public static final Type<CommandPayload> ID=new Type<>(Identifier.fromNamespaceAndPath("dunium","command"));
public static final StreamCodec<RegistryFriendlyByteBuf,CommandPayload> CODEC=StreamCodec.ofMember(
(value,buf)->write(buf,value.message,1024),buf->new CommandPayload(read(buf,1024)));
public Type<? extends CustomPacketPayload> type() { return ID; }
}
public record StatePayload(String message) implements CustomPacketPayload {
public static final Type<StatePayload> ID=new Type<>(Identifier.fromNamespaceAndPath("dunium","state"));
public static final StreamCodec<RegistryFriendlyByteBuf,StatePayload> CODEC=StreamCodec.ofMember(
(value,buf)->write(buf,value.message,4096),buf->new StatePayload(read(buf,4096)));
public Type<? extends CustomPacketPayload> type() { return ID; }
}
private static String read(RegistryFriendlyByteBuf buffer,int limit) {
int size=buffer.readableBytes();
if (size>limit) throw new IllegalArgumentException("Dunium payload is too large");
return buffer.readCharSequence(size,StandardCharsets.UTF_8).toString();
}
private static void write(RegistryFriendlyByteBuf buffer,String value,int limit) {
byte[] bytes=value.getBytes(StandardCharsets.UTF_8);
if (bytes.length>limit) throw new IllegalArgumentException("Dunium payload is too large");
buffer.writeBytes(bytes);
}
@Override public void onInitializeClient() {
PayloadTypeRegistry.serverboundPlay().register(CommandPayload.ID,CommandPayload.CODEC);
PayloadTypeRegistry.clientboundPlay().register(StatePayload.ID,StatePayload.CODEC);
ClientPlayNetworking.registerGlobalReceiver(StatePayload.ID,(payload,context)->context.client().execute(()->receive(payload.message)));
ClientPlayConnectionEvents.JOIN.register((handler,sender,client)->reset());
ClientPlayConnectionEvents.DISCONNECT.register((handler,client)->reset());
KeyMapping menu=key("key.dunium.menu",InputConstants.KEY_K);
KeyMapping first=key("key.dunium.pos1",InputConstants.KEY_LBRACKET);
KeyMapping second=key("key.dunium.pos2",InputConstants.KEY_RBRACKET);
ClientTickEvents.END_CLIENT_TICK.register(client->{
if (client.player==null || client.level==null) return;
ticks++;
if (a!=null && b!=null && client.level.dimension().identifier().toString().equals(dimension)) {
try (var collector=client.collectPerTickGizmos()) {
Gizmos.cuboid(new AABB(Math.min(a.getX(),b.getX()),Math.min(a.getY(),b.getY()),Math.min(a.getZ(),b.getZ()),Math.max(a.getX(),b.getX())+1,Math.max(a.getY(),b.getY())+1,Math.max(a.getZ(),b.getZ())+1),GizmoStyle.stroke(0xFF1AD9F2,2f));
}
}
if (!connected && ticks%100==40 && ClientPlayNetworking.canSend(CommandPayload.ID)) send("hello");
while (menu.consumeClick()) if (client.gui.screen()==null) client.gui.setScreen(new ToolScreen(target(client)));
while (first.consumeClick()) if (client.gui.screen()==null) select(1,target(client));
while (second.consumeClick()) if (client.gui.screen()==null) select(2,target(client));
});
}
private KeyMapping key(String name,int code) {
return KeyMappingHelper.registerKeyMapping(new KeyMapping(name,InputConstants.Type.KEYBOARD,code,CATEGORY));
}
private void reset() {
connected=false; a=null; b=null; dimension=""; ticks=0;
feedback="Waiting for a Dunium-enabled server. Creative mode and builder permissions are required.";
}
private static BlockPos parse(String value) {
if (value.equals("-")) return null;
String[] xyz=value.split(",");
if (xyz.length!=3) throw new IllegalArgumentException("Invalid point");
int x=Integer.parseInt(xyz[0]),y=Integer.parseInt(xyz[1]),z=Integer.parseInt(xyz[2]);
if (Math.abs((long)x)>30_000_000 || Math.abs((long)z)>30_000_000 || Math.abs((long)y)>4096) throw new IllegalArgumentException("Invalid bounds");
return new BlockPos(x,y,z);
}
private static void receive(String message) {
String[] fields=message.split("\t",5);
if (fields.length!=5 || !fields[0].equals("1")) return;
try {
BlockPos first=parse(fields[2]),second=parse(fields[3]);
dimension=fields[1]; a=first; b=second; feedback=fields[4]; connected=true;
} catch (IllegalArgumentException ignored) { /* Ignore incompatible or malformed state. */ }
}
public static BlockPos target(Minecraft client) {
if (client.player==null) return BlockPos.ZERO;
HitResult hit=client.player.pick(64,1,false);
return hit instanceof BlockHitResult block && hit.getType()==HitResult.Type.BLOCK ? block.getBlockPos() : client.player.blockPosition();
}
public static void select(int index,BlockPos point) { send("pos"+index+" "+point.getX()+" "+point.getY()+" "+point.getZ()); }
public static void send(String command) {
if (!ClientPlayNetworking.canSend(CommandPayload.ID)) {
feedback="This server does not advertise Dunium. Install Dunium-Server and grant builder permissions.";
var player=Minecraft.getInstance().player;
if (player!=null) player.sendSystemMessage(Component.literal(feedback));
return;
}
ClientPlayNetworking.send(new CommandPayload("1\t"+command));
}
public static String selectionText() {
if (a==null || b==null) return "Selection: set both corners using [ and ] while looking at blocks.";
long volume=((long)Math.abs(a.getX()-b.getX())+1)*(Math.abs(a.getY()-b.getY())+1)*(Math.abs(a.getZ()-b.getZ())+1);
return "Selection: "+volume+" blocks. Outline reflects the server's accepted corners.";
}
}

View file

@ -0,0 +1,65 @@
package dunium;
import net.minecraft.client.gui.GuiGraphicsExtractor;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.gui.components.*;
import net.minecraft.network.chat.Component;
import net.minecraft.core.BlockPos;
/** Original compact tool palette; actual edits always require server confirmation. */
public final class ToolScreen extends Screen {
private final BlockPos target;
private final boolean terrain;
private EditBox source,destination;
private int left,top,panelWidth;
public ToolScreen(BlockPos target) { this(target,false); }
private ToolScreen(BlockPos target,boolean terrain) { super(Component.literal("Dunium")); this.target=target; this.terrain=terrain; }
@Override protected void init() {
panelWidth=Math.min(480,width-20); left=(width-panelWidth)/2; top=Math.max(4,(height-300)/2);
int half=(panelWidth-30)/2, x=left+10, right=x+half+10;
source=new EditBox(font,x,top+62,half,20,Component.literal("Exact source block state"));
source.setMaxLength(400); source.setValue(terrain?"3":"minecraft:stone"); addRenderableWidget(source);
destination=new EditBox(font,right,top+62,half,20,Component.literal("Destination block state"));
destination.setMaxLength(400); destination.setValue("minecraft:sandstone"); addRenderableWidget(destination);
if (!terrain) {
button("Set corner 1",x,top+90,half,()->DuniumClient.select(1,target));
button("Set corner 2",right,top+90,half,()->DuniumClient.select(2,target));
button("Preview fill",x,top+114,half,()->DuniumClient.send("fill "+destination.getValue().trim()));
button("Preview replace",right,top+114,half,()->DuniumClient.send("replace "+source.getValue().trim()+" "+destination.getValue().trim()));
button("Copy selection",x,top+138,half,()->DuniumClient.send("copy"));
button("Preview paste here",right,top+138,half,()->DuniumClient.send("paste "+target.getX()+" "+target.getY()+" "+target.getZ()));
} else {
button("Preview sphere",x,top+90,half,()->DuniumClient.send("sphere "+source.getValue().trim()+" "+destination.getValue().trim()+" "+target.getX()+" "+target.getY()+" "+target.getZ()));
button("Flatten to target Y",right,top+90,half,()->DuniumClient.send("flatten "+target.getY()+" "+destination.getValue().trim()));
button("Rotate clipboard 90",x,top+114,half,()->DuniumClient.send("rotate 90"));
button("Rotate clipboard 180",right,top+114,half,()->DuniumClient.send("rotate 180"));
button("Mirror clipboard X",x,top+138,half,()->DuniumClient.send("mirror x"));
button("Mirror clipboard Z",right,top+138,half,()->DuniumClient.send("mirror z"));
}
button("Confirm edit",x,top+162,half,()->DuniumClient.send("confirm"));
button("Cancel work",right,top+162,half,()->DuniumClient.send("cancel"));
button("Undo",x,top+186,half,()->DuniumClient.send("undo"));
button("Redo",right,top+186,half,()->DuniumClient.send("redo"));
button(terrain?"Building tools":"Terrain / clipboard",x,top+210,half,()->{ if (minecraft!=null) minecraft.gui.setScreen(new ToolScreen(target,!terrain)); });
button("Close",right,top+210,half,this::onClose);
}
private void button(String text,int x,int y,int width,Runnable run) {
addRenderableWidget(Button.builder(Component.literal(text),b->run.run()).bounds(x,y,width,20).build());
}
@Override public void extractRenderState(GuiGraphicsExtractor context,int mouseX,int mouseY,float delta) {
context.fill(left,top,left+panelWidth,Math.min(height-4,top+300),0xED101C27);
context.text(font,"DUNIUM / BUILD TOOLS",left+10,top+10,0xFF63DAE8);
context.text(font,DuniumClient.connected?"Server connected | K opens tools":"Awaiting server handshake",left+10,top+26,0xFFD3DCE5);
context.text(font,terrain?"Sphere radius":"Exact source",left+10,top+50,0xFFBBC7D3);
context.text(font,"Destination",left+20+(panelWidth-30)/2,top+50,0xFFBBC7D3);
super.extractRenderState(context,mouseX,mouseY,delta);
String status=DuniumClient.feedback;
// Keep status readable on smaller displays; full messages are also sent through chat.
String trimmed=font.plainSubstrByWidth(status,panelWidth-20);
context.text(font,trimmed,left+10,top+240,0xFFFFD68A);
context.text(font,font.plainSubstrByWidth(DuniumClient.selectionText(),panelWidth-20),left+10,top+255,0xFFBBC7D3);
context.text(font,"Target: "+target.getX()+", "+target.getY()+", "+target.getZ(),left+10,top+270,0xFFBBC7D3);
}
@Override public boolean isPauseScreen() { return false; }
}

View file

@ -0,0 +1,7 @@
{
"category.dunium": "Dunium",
"key.dunium.menu": "Open building tools",
"key.dunium.pos1": "Select first corner",
"key.dunium.pos2": "Select second corner",
"key.category.dunium.tools": "Dunium"
}

View file

@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"id": "dunium",
"version": "0.1.0-alpha.2+mc26.3",
"name": "Dunium",
"description": "Original visual building tools for Dunium-enabled Paper servers.",
"environment": "client",
"entrypoints": {
"client": [
"dunium.DuniumClient"
]
},
"depends": {
"fabricloader": ">=0.19.5",
"minecraft": "26.3",
"java": ">=25",
"fabric-api": ">=0.161.0"
}
}