Rebuild Guild lobby interiors with flat ceilings and expanded painting galleries
This commit is contained in:
parent
5677340853
commit
f8013eda5b
20 changed files with 402 additions and 102 deletions
2
.github/workflows/lobby.yml
vendored
2
.github/workflows/lobby.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
name: Dune-Guild-Lobby
|
||||
path: |
|
||||
DuneLobby/build/libs/*.jar
|
||||
worlds/Dune-Guild-Lobby-1.0.0.zip
|
||||
worlds/Dune-Guild-Lobby-1.1.0.zip
|
||||
DuneLobby/README.md
|
||||
DuneLobby/VALIDATION.md
|
||||
if-no-files-found: error
|
||||
|
|
|
|||
|
|
@ -1,33 +1,33 @@
|
|||
# Spacing Guild lobby world
|
||||
|
||||
A separate **Minecraft Java / Paper 1.21.4 / Java 21** End-dimension lobby. The world is already built and saved in [`../worlds/Dune-Guild-Lobby-1.0.0.zip`](../worlds/Dune-Guild-Lobby-1.0.0.zip); the deterministic builder and runtime companion are here. It does not replace a planet world.
|
||||
A separate **Minecraft Java / Paper 1.21.4 / Java 21** End-dimension lobby. The rebuilt 1.1.0 world is already built and saved in [`../worlds/Dune-Guild-Lobby-1.1.0.zip`](../worlds/Dune-Guild-Lobby-1.1.0.zip); the deterministic builder and runtime companion are here. It does not replace a planet world.
|
||||
|
||||

|
||||

|
||||
|
||||
The image above is AI concept art generated with the built-in image tool, not an in-game screenshot. Actual architecture uses vanilla block geometry; the End sky is vanilla, not a shader or a custom purple sky. Ordinary vanilla light is not coloured. The saved world contains enclosed roofs; the concept removes them to show the rooms. [`previews/saved-world-plan.png`](previews/saved-world-plan.png) is generated from the actual saved blocks.
|
||||
The image above is an actual Minecraft 1.21.4 client capture of the rebuilt world, using vanilla rendering. Version 1.1.0 replaces the simplified 1.0.0 draft. It has opaque interior walls, enclosed connecting halls and flat ceilings; no outside or sky views. The original AI overview remains in previews as a historical reference, not evidence of the delivered build. The independently decoded block plan is in previews/actual-1.1.0/.
|
||||
|
||||
## Rooms
|
||||
|
||||
| Room | Centre X/Z | Contents |
|
||||
|---|---|---|
|
||||
| Central spawn | 0 / 0 | Safe arrival at **0.5, 81, 10.5**, facing north; block-built aquatic Navigator inside an amber glass tank, Guild liaison |
|
||||
| Central spawn | 0 / 0 | Safe arrival at **0.5, 81, 10.5**, facing north; monumental amber Navigator tank on a broad stepped dais, upper galleries and Guild liaison |
|
||||
| Starport / teleport | -78 / -58 | Dune II inspired square arrival apron, grounded frigate, control tower and **five raised launch pads** with striped edges, lights and destination consoles |
|
||||
| Official Exchange | -66 / 40 | CHOAM counters, commodities, storage and Exchange Broker |
|
||||
| News | 62 / -42 | Illustrated dispatch panel, reading benches and interactive news lecterns |
|
||||
| Rules | 62 / 37 | Charter panel, benches and interactive rules lecterns |
|
||||
| Smuggler exchange | -66 / 101 | Dim side passage, screens, brown awnings, crates, worn copper; separate **water** and **spice** seller NPCs |
|
||||
| Smuggler exchange | -66 / 101 | Enclosed dim side passage, framed paintings, screens, brown awnings, pipes, crates and worn copper; separate **water** and **spice** seller NPCs |
|
||||
|
||||
All rooms connect by enclosed corridors. Launch consoles ask for confirmation. There are no Nether portals: the starport is a landing/launch design.
|
||||
|
||||
## Install the already built world
|
||||
|
||||
1. Use a **separate lobby Paper backend**. Stop that server before copying files. Leave existing planet servers and worlds in place.
|
||||
2. Extract the ZIP into the server directory. It contains `guild_lobby/`, `plugins/DuneLobby-1.0.0.jar`, and these setup instructions. Do not extract over an existing `guild_lobby`; preserve it separately first.
|
||||
2. Extract the ZIP into the server directory. It contains `guild_lobby/`, `plugins/DuneLobby-1.1.0.jar`, and these setup instructions. Do not extract over an existing `guild_lobby`; preserve it separately first.
|
||||
3. Install [ImageFrame from Spigot](https://www.spigotmc.org/resources/106031/). The tested version is **2026.1.5.0**, which lists Minecraft 1.21.4 support. With Python available, `python DuneLobby/tools/install_imageframe.py /path/to/lobby-server` downloads that exact dependency and verifies its SHA256. The third-party JAR is not vendored in this repository/package. Dependency source: <https://github.com/LOOHP/ImageFrame> (GPL-3.0).
|
||||
4. Start Paper. DuneLobby loads `guild_lobby` as **THE_END**, preserves the saved blocks and restores the eleven ImageFrame panels. Artwork is included in DuneLobby's JAR, so no remote artwork hosting is required. ImageFrame map IDs are allocated for this server rather than trusting IDs from another world. Keep ImageFrame installed to render the pictures.
|
||||
4. Start Paper. DuneLobby loads `guild_lobby` as **THE_END**, preserves the saved blocks and restores the 25 ImageFrame paintings. Artwork is included in DuneLobby's JAR, so no remote artwork hosting is required. ImageFrame map IDs are allocated for this server rather than trusting IDs from another world. Keep ImageFrame installed to render the pictures.
|
||||
5. `/lobby` returns to central spawn. Console `dunelobby verify` checks spawn clearance, room/pad/vendor accessibility, NPCs and artwork. Console `dunelobby artwork` restores decorations if required; it reuses registered image maps instead of creating duplicates.
|
||||
|
||||
DuneLobby creates a world only when **console** runs `dunelobby build`, and refuses if a folder with that name already exists. This command is for reproducing a new world, not installing the included map. No planet file or existing lobby structure is regenerated on startup.
|
||||
DuneLobby creates a world only when **console** runs `dunelobby build`, and refuses if a folder with that name already exists. This command is for reproducing a new world, not installing the included map. No planet file or existing lobby structure is regenerated on startup. To replace a 1.0.0 lobby, stop the server, preserve that old guild_lobby folder, and import the new ZIP; merely updating the JAR will not replace the draft geometry.
|
||||
|
||||
Keep Paper's default primary world as a small bootstrap world; the plugin loads the End lobby as a secondary world and routes joins/respawns there. Do not use `guild_lobby` as `level-name`, since that loads it as the primary overworld before the plugin can select THE_END. Example **lobby backend** settings:
|
||||
|
||||
|
|
@ -75,3 +75,9 @@ Design references: [1984 Navigator / heighliner production artwork](https://www.
|
|||
## Validation
|
||||
|
||||
See `VALIDATION.md` for the recorded build, actual saved-world checks and limitations. The package includes `manifest.json` with file hashes. No live network, paid Solaris transfer or real player account is used in local validation.
|
||||
|
||||
## Rendering and compatibility
|
||||
|
||||
There are 25 ImageFrame paintings (1,024 map tiles), plus framed item displays and lit copper/blackstone borders. Local artwork is embedded in the companion JAR. No client mod or shader is required. The visual check used the installed Java client against a loopback-only test server. Computer control was then stopped by the user; no further app input was issued.
|
||||
|
||||
The companion disables the End dragon-fight controller using the tested Paper 1.21.4 ServerLevel.setDragonFight API through a narrow reflection adapter. This prevents a boss bar, dragon and exit-portal generation after a real player joins. Other Paper versions require validation; incompatible versions report an explicit error instead of silently claiming the lobby is ready.
|
||||
|
|
|
|||
|
|
@ -1,31 +1,31 @@
|
|||
# Guild lobby delivery validation — 2026-10-18
|
||||
# Guild lobby 1.1.0 validation — 2026-10-18
|
||||
|
||||
## Delivered
|
||||
This rebuild supersedes the simplified 1.0.0 draft. The current package is `worlds/Dune-Guild-Lobby-1.1.0.zip` (21,383,329 bytes), SHA256 `f66c0bc3192a1b1010b28e7123af60133b7ec32a2eb5fc62ca88e6d36a2bc5cf`.
|
||||
|
||||
- Saved End world: `worlds/Dune-Guild-Lobby-1.0.0.zip`, **10,893,624 bytes**, SHA256 `6ecfef68a94a603d1f0a7a0485c3bcfd40eeb2180205347e2a2a7eb0f143dda8`.
|
||||
- ZIP contains the actual `guild_lobby/level.dat`, End Anvil region/entity/data files, DuneLobby 1.0.0 companion JAR, verified dependency installer, setup instructions and per-file SHA256 manifest. It contains no server executable, player data, session lock or world UUID file.
|
||||
- Source, original panels and reused project artwork are in `DuneLobby/`. Source builds embed the artwork and do not fetch remote images.
|
||||
- AI design preview and an independent plan rendered from the saved chunks are in `DuneLobby/previews/`.
|
||||
## Changes and visual evidence
|
||||
|
||||
- Monumental Navigator tank, broad stepped dais, gold floor medallion, upper galleries, carved blackstone columns, short diagonal connections and furnished rooms replace the sparse grid layout.
|
||||
- All connecting halls and room boundaries are opaque interiors with flat ceilings. There are no exterior/sky views. The outer enclosure is opaque too.
|
||||
- Twenty-five ImageFrame paintings use 1,024 map tiles; fifteen separate item displays decorate the official market. Water and spice sellers remain separate NPCs in the dim, screened smuggler market.
|
||||
- `previews/actual-1.1.0/navigator-chamber.jpg` is an actual installed Minecraft Java 1.21.4 client window capture, using vanilla rendering. It was displayed to the user before their approval. It is not an AI rendering. The historical concept remains separately labelled.
|
||||
- The real client joined the local loopback test server. An End dragon-controller issue discovered during that check was corrected: the companion disables the controller through the tested Paper 1.21.4 adapter, preventing the boss bar, dragon and vanilla exit portal from appearing.
|
||||
- Computer control was stopped by the user after the visual check. No further app input was issued. The previously captured game image was exported as an artifact through file operations.
|
||||
|
||||
## Checks completed
|
||||
|
||||
1. Compiled with Java 21.0.12.1 and Gradle 8.14 against Paper API 1.21.4. Build passed. This module has no separate unit-test suite; validation below runs the actual server/world.
|
||||
2. Started a local, loopback-only **Paper 1.21.4 build 232** server with pinned **ImageFrame 2026.1.5.0**. Generated all six rooms, block Navigator, starport arrival apron, five launch platforms, frigate, corridors and four NPCs. Installed eleven ImageFrame panels (276 map tiles).
|
||||
3. Runtime flood-fill checks passed: **16,274 reachable standing cells**, clear supported central spawn, routes to every room, both smuggler counters and all five raised launch pads. World environment reported **THE_END**.
|
||||
4. Stopped and restarted the server. The imported world was reused, NPCs remained and artwork restored. Runtime verification passed after restart, without duplicate frames or merchants.
|
||||
5. `dunelobby build` refused an existing world folder, as intended.
|
||||
6. Extracted the package into a **second fresh Paper server** with no ImageFrame data or primary-world map data. It imported the End world, recreated its own image-map registry and restored all eleven panels. Runtime verification passed there too. A subsequent restart checked the final panel-facing adjustment and passed again.
|
||||
7. Independently decoded the saved Anvil/NBT data after shutdown: Minecraft data version **4189**; spawn **0,81,10**; clear headroom; **109,535 non-air blocks in build height**; six supported room centres; five marked launch pads; exactly **4 villagers** (one each liaison, official broker, water seller, spice seller); exactly **276 glowing item frames**; **no Ender Dragon**. See `previews/saved-world-plan.json`.
|
||||
8. ZIP integrity check passed. All included file hashes are recorded in its `manifest.json`. Temporary validation servers were shut down after testing.
|
||||
1. Java 21 / Gradle 8.14 build passed against Paper API 1.21.4. There is no separate unit-test suite; these checks run the real server and decode the saved world.
|
||||
2. Built a fresh world on Paper 1.21.4 build 232 with ImageFrame 2026.1.5.0. The builder performed 565,328 block placements.
|
||||
3. Restarted with the final companion, restored all 25 image maps and verified the saved world without regenerating its blocks.
|
||||
4. Runtime flood-fill and environment checks passed: six rooms, both seller approaches, five launch pads, four named NPCs, 1,024 artwork frames, clear supported spawn, opaque flat ceiling/enclosure and no active dragon battle controller.
|
||||
5. After clean shutdown, an independent Anvil/NBT reader confirmed data version 4189, spawn 0/81/10, 386,882 non-air blocks in the inspected height range (including enclosure), four villagers, 1,024 glowing painting frames, fifteen item frames, six text labels, and no Ender Dragon. It checked the flat ceiling and outer walls directly from saved blocks. Results and an actual-block plan are in `previews/actual-1.1.0/`.
|
||||
6. ZIP integrity check passed. The package includes a per-file SHA256 manifest, the actual saved End chunks, companion JAR and setup/dependency installer. Locks, UUID identity files, player data and the server executable are excluded. Local test servers were shut down.
|
||||
|
||||
Final runtime output:
|
||||
|
||||
```text
|
||||
GUILD_VERIFY PASS walkable=16274 artwork=276 []
|
||||
GUILD_VERIFY PASS walkable=13791 artwork=1024 []
|
||||
```
|
||||
|
||||
## Practical limits
|
||||
## Limits
|
||||
|
||||
The preview is concept art. The map uses real vanilla blocks, End atmosphere and ordinary vanilla light. There was no graphical Minecraft client available for an in-game visual walkthrough; the saved-block plan was visually inspected. Paid Solaris transactions, actual player merchant clicks and remote proxy destinations were not exercised. DuneEss/DuneCore integration routes through their existing player commands; configure those optional plugins before using the official economy. Lobby merchants use emerald barter and their spice/water are separate sample goods, not faction reward currency. No live server was deployed.
|
||||
|
||||
The dedicated lobby has its own join/respawn routing. On an existing mixed backend, disable that routing in the companion config. Install ImageFrame separately using the pinned installer or its official distribution. Keep its data and primary-world map data with normal server backups after installation.
|
||||
The screenshot verifies the Navigator interior; it is not a claim of pixel-for-pixel equivalence to the earlier AI art. Other room geometry, paint placement and connectivity were checked from the saved world and running server. Merchant clicks, paid Solaris transfers, remote proxy destinations and production concurrency were not exercised. No live server was deployed. The smuggler merchants use emerald barter and sample goods, separate from redeemable faction rewards. Paper versions other than the tested 1.21.4 require validation because the dragon-controller adapter is version-specific. Install the new world folder to replace a 1.0.0 draft; updating only the JAR deliberately leaves existing blocks intact.
|
||||
|
|
|
|||
BIN
DuneLobby/artwork/arrakis-cover.png
Normal file
BIN
DuneLobby/artwork/arrakis-cover.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
BIN
DuneLobby/artwork/shai-hulud-encounter.png
Normal file
BIN
DuneLobby/artwork/shai-hulud-encounter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
BIN
DuneLobby/artwork/sietch-panorama.png
Normal file
BIN
DuneLobby/artwork/sietch-panorama.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
BIN
DuneLobby/artwork/smuggler-spice-mission.png
Normal file
BIN
DuneLobby/artwork/smuggler-spice-mission.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
|
|
@ -1,6 +1,6 @@
|
|||
plugins { java }
|
||||
group = "com.example"
|
||||
version = "1.0.0"
|
||||
version = "1.1.0"
|
||||
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/") }
|
||||
dependencies { compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT") }
|
||||
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
## Delivered 1.1.0 interior
|
||||
|
||||
ctual-1.1.0/navigator-chamber.jpg is the actual installed Minecraft Java 1.21.4 client, captured during local visual verification. It is not an AI rendering. ctual-1.1.0/saved-world-plan.png and JSON are decoded from the saved blocks. The approved revision uses opaque interiors and flat ceilings; the older roofless concept below is retained only as historical design material.
|
||||
|
||||
# Lobby previews
|
||||
|
||||
- `guild-lobby-concept.png`: built-in ImageGen concept rendering, generated 2026-10-18. This is a visual design reference, not a Minecraft screenshot.
|
||||
|
|
|
|||
BIN
DuneLobby/previews/actual-1.1.0/navigator-chamber.jpg
Normal file
BIN
DuneLobby/previews/actual-1.1.0/navigator-chamber.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 163 KiB |
23
DuneLobby/previews/actual-1.1.0/saved-world-plan.json
Normal file
23
DuneLobby/previews/actual-1.1.0/saved-world-plan.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"minecraft": "1.21.4",
|
||||
"data_version": 4189,
|
||||
"spawn": [
|
||||
0,
|
||||
81,
|
||||
10
|
||||
],
|
||||
"saved_non_air_blocks_in_build_height": 386882,
|
||||
"entities": {
|
||||
"minecraft:glow_item_frame": 1024,
|
||||
"minecraft:text_display": 6,
|
||||
"minecraft:item_frame": 15,
|
||||
"minecraft:villager": 4
|
||||
},
|
||||
"npc_roles": {
|
||||
"exchange": 1,
|
||||
"water": 1,
|
||||
"spice": 1,
|
||||
"liaison": 1
|
||||
},
|
||||
"checks": "PASS: saved spawn, five launch pads, six rooms, four unique NPCs, 1024 artwork frames, opaque enclosure and flat ceiling, no dragon"
|
||||
}
|
||||
BIN
DuneLobby/previews/actual-1.1.0/saved-world-plan.png
Normal file
BIN
DuneLobby/previews/actual-1.1.0/saved-world-plan.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
|
|
@ -58,6 +58,7 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
String name=getConfig().getString("world","guild_lobby");
|
||||
if(!name.matches("[A-Za-z0-9_-]+")) throw new IllegalArgumentException("world must be a simple folder name");
|
||||
lobby=Bukkit.createWorld(new WorldCreator(name).environment(World.Environment.THE_END).generator(new VoidGenerator()).generateStructures(false));
|
||||
disableDragonBattle();
|
||||
lobby.setSpawnLocation(new Location(lobby,.5,81,10.5,180,0));
|
||||
lobby.setGameRule(GameRule.DO_MOB_SPAWNING,false); lobby.setGameRule(GameRule.DO_FIRE_TICK,false);
|
||||
lobby.setGameRule(GameRule.MOB_GRIEFING,false); lobby.setGameRule(GameRule.DO_DAYLIGHT_CYCLE,false);
|
||||
|
|
@ -67,13 +68,25 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
lobby.setPVP(false); lobby.getWorldBorder().setCenter(-16,16); lobby.getWorldBorder().setSize(330);
|
||||
lobby.setKeepSpawnInMemory(false);
|
||||
// Keep the bounded lobby footprint loaded: NPC/art restoration must see all rooms.
|
||||
for(int cx=-8;cx<=6;cx++) for(int cz=-6;cz<=8;cz++) lobby.addPluginChunkTicket(cx,cz,this);
|
||||
if(lobby.getEnderDragonBattle()!=null) lobby.getEnderDragonBattle().setPreviouslyKilled(true);
|
||||
for(int cx=-8;cx<=6;cx++) for(int cz=-7;cz<=8;cz++) lobby.addPluginChunkTicket(cx,cz,this);
|
||||
for(EnderDragon dragon:lobby.getEntitiesByClass(EnderDragon.class)) dragon.remove();
|
||||
}
|
||||
private void disableDragonBattle() {
|
||||
// Paper 1.21.4 exposes ServerLevel.setDragonFight. Clearing the controller prevents
|
||||
// both a boss bar and vanilla portal/dragon generation after a real player joins.
|
||||
try {
|
||||
Object handle=lobby.getClass().getMethod("getHandle").invoke(lobby);
|
||||
var setter=Arrays.stream(handle.getClass().getMethods())
|
||||
.filter(m->m.getName().equals("setDragonFight")&&m.getParameterCount()==1).findFirst().orElseThrow();
|
||||
setter.invoke(handle,new Object[]{null});
|
||||
} catch(ReflectiveOperationException|NoSuchElementException e) {
|
||||
throw new IllegalStateException("This lobby requires the tested Paper 1.21.4 dragon-controller API",e);
|
||||
}
|
||||
}
|
||||
private boolean inLobby(World world) { return lobby!=null && world.equals(lobby); }
|
||||
private void ensureNpcs() {
|
||||
for(int x=-8;x<=6;x++) for(int z=-6;z<=8;z++) lobby.getChunkAt(x,z).load();
|
||||
npc("liaison","Guild Navigator Liaison",0,81,-5,Villager.Profession.CLERIC);
|
||||
npc("liaison","Guild Navigator Liaison",13,87,-11,Villager.Profession.CLERIC);
|
||||
npc("exchange","CHOAM Exchange Broker",-82,81,23,Villager.Profession.LIBRARIAN);
|
||||
npc("water","Discreet Water Seller",-78,81,110,Villager.Profession.FISHERMAN);
|
||||
npc("spice","Discreet Spice Seller",-54,81,110,Villager.Profession.LEATHERWORKER);
|
||||
|
|
@ -99,7 +112,7 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
File target=new File(Bukkit.getWorldContainer(),getConfig().getString("world","guild_lobby"));
|
||||
if(target.exists() || lobby!=null) { sender.sendMessage("Refusing to overwrite an existing world. Import it or choose a new world name."); return true; }
|
||||
loadWorld(); long n=new LobbyBuilder(lobby).build(); ensureNpcs(); lobby.save();
|
||||
try { Files.writeString(lobby.getWorldFolder().toPath().resolve("DUNE-LOBBY.txt"),"DuneLobby 1.0.0 / Minecraft Java 1.21.4 / End void / spawn 0.5 81 10.5 yaw 180\n"); }
|
||||
try { Files.writeString(lobby.getWorldFolder().toPath().resolve("DUNE-LOBBY.txt"),"DuneLobby 1.1.0 / Minecraft Java 1.21.4 / End lighting, opaque enclosure / spawn 0.5 81 10.5 yaw 180\n"); }
|
||||
catch(IOException e) { getLogger().warning(e.toString()); }
|
||||
sender.sendMessage("GUILD_BUILD_COMPLETE: "+n+" placements. Run dunelobby artwork, then dunelobby verify.");
|
||||
}
|
||||
|
|
@ -114,24 +127,29 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
List<String> failures=new ArrayList<>();
|
||||
Location s=lobby.getSpawnLocation();
|
||||
if(lobby.getEnvironment()!=World.Environment.THE_END) failures.add("environment");
|
||||
if(lobby.getEnderDragonBattle()!=null) failures.add("dragon battle controller active");
|
||||
if(!lobby.getBlockAt(s.getBlockX(),80,s.getBlockZ()).getType().isSolid() || !lobby.getBlockAt(s.getBlockX(),81,s.getBlockZ()).isPassable() || !lobby.getBlockAt(s.getBlockX(),82,s.getBlockZ()).isPassable()) failures.add("spawn clearance");
|
||||
// Flood-fill two-block-high walkable cells with step height <= 1.
|
||||
Set<String> seen=new HashSet<>(); ArrayDeque<int[]> todo=new ArrayDeque<>(); todo.add(new int[]{0,81,10});
|
||||
while(!todo.isEmpty()) {
|
||||
int[] p=todo.removeFirst(); String k=p[0]+","+p[1]+","+p[2];
|
||||
if(p[0]<-120||p[0]>92||p[2]<-94||p[2]>128||p[1]<79||p[1]>86||!seen.add(k)) continue;
|
||||
if(p[0]<-120||p[0]>92||p[2]<-94||p[2]>128||p[1]<79||p[1]>101||!seen.add(k)) continue;
|
||||
if(!walkable(p[0],p[1],p[2])) { seen.remove(k); continue; }
|
||||
for(int[] d:new int[][]{{1,0},{-1,0},{0,1},{0,-1}}) for(int dy:new int[]{0,1,-1}) {
|
||||
int x=p[0]+d[0],y=p[1]+dy,z=p[2]+d[1];
|
||||
if(!seen.contains(x+","+y+","+z) && walkable(x,y,z)) { todo.add(new int[]{x,y,z}); break; }
|
||||
}
|
||||
}
|
||||
int[][] targets={{0,81,10},{-66,81,35},{62,81,-36},{62,81,30},{-66,81,100},{-78,81,-32},{-78,81,109},{-54,81,109}};
|
||||
int[][] targets={{0,81,10},{-66,81,35},{62,81,-36},{66,81,30},{-66,81,100},{-78,81,-32},{-78,81,109},{-54,81,109}};
|
||||
for(int[] p:targets) if(!seen.contains(p[0]+","+p[1]+","+p[2])) failures.add("unreachable "+Arrays.toString(p));
|
||||
for(int[] p:LobbyBuilder.PADS) if(!seen.contains(p[0]+",83,"+p[1])) failures.add("launch pad "+Arrays.toString(p));
|
||||
for(int[] p:new int[][]{{0,10},{-78,-58},{-66,40},{62,-42},{62,37},{-66,101},{-30,-21},{31,21}})
|
||||
if(!lobby.getBlockAt(p[0],128,p[1]).getType().isOccluding()) failures.add("missing flat ceiling "+Arrays.toString(p));
|
||||
for(int y:new int[]{81,96,120}) for(int[] p:new int[][]{{-126,0},{96,0},{0,-98},{0,130}})
|
||||
if(!lobby.getBlockAt(p[0],y,p[1]).getType().isOccluding()) failures.add("visible sky boundary "+Arrays.toString(p));
|
||||
for(String role:List.of("liaison","exchange","water","spice")) if(lobby.getEntitiesByClass(Villager.class).stream().noneMatch(v->role.equals(v.getPersistentDataContainer().get(roleKey,PersistentDataType.STRING)))) failures.add("missing NPC "+role);
|
||||
long art=lobby.getEntitiesByClass(ItemFrame.class).stream().filter(v->v.getPersistentDataContainer().has(new NamespacedKey(this,"art"),PersistentDataType.STRING)).count();
|
||||
if(art<30) failures.add("art frames "+art+" < 30");
|
||||
if(art!=LobbyArtwork.tileCount()) failures.add("art frames "+art+" != "+LobbyArtwork.tileCount());
|
||||
String result="GUILD_VERIFY "+(failures.isEmpty()?"PASS":"FAIL")+" walkable="+seen.size()+" artwork="+art+" "+failures;
|
||||
sender.sendMessage(result);
|
||||
try { Files.writeString(getDataFolder().toPath().resolve("verification.txt"),result+"\n"); } catch(IOException e) { getLogger().warning(e.toString()); }
|
||||
|
|
@ -148,7 +166,7 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
}
|
||||
@EventHandler public void damage(EntityDamageEvent e) { if(inLobby(e.getEntity().getWorld())) e.setCancelled(true); }
|
||||
@EventHandler public void spawn(CreatureSpawnEvent e) {
|
||||
if(inLobby(e.getLocation().getWorld()) && e.getSpawnReason()!=CreatureSpawnEvent.SpawnReason.CUSTOM) e.setCancelled(true);
|
||||
if(inLobby(e.getLocation().getWorld()) && (e.getEntity() instanceof EnderDragon || e.getSpawnReason()!=CreatureSpawnEvent.SpawnReason.CUSTOM)) e.setCancelled(true);
|
||||
}
|
||||
@EventHandler public void breakBlock(BlockBreakEvent e) { if(inLobby(e.getBlock().getWorld())&&!e.getPlayer().hasPermission("dunelobby.build")) e.setCancelled(true); }
|
||||
@EventHandler public void placeBlock(BlockPlaceEvent e) { if(inLobby(e.getBlock().getWorld())&&!e.getPlayer().hasPermission("dunelobby.build")) e.setCancelled(true); }
|
||||
|
|
|
|||
|
|
@ -32,8 +32,24 @@ final class LobbyArtwork {
|
|||
new Panel("giedi","world-1.png",-100,88,-87,5,4),
|
||||
new Panel("kaitain","world-2.png",-90,88,-87,5,4),
|
||||
new Panel("caladan","world-3.png",-68,88,-87,5,4),
|
||||
new Panel("sigma","world-4.png",-58,88,-87,5,4));
|
||||
new Panel("sigma","world-4.png",-58,88,-87,5,4),
|
||||
new Panel("navigator_left","guild-navigator.png",-23,103,-26,6,10),
|
||||
new Panel("navigator_right","arrakis-cover.png",18,103,-26,6,10),
|
||||
new Panel("choam_history_south","spice-expedition.png",-86,85,60,10,6),
|
||||
new Panel("choam_arrakis_south","arrakis-cover.png",-56,85,60,10,6),
|
||||
new Panel("news_caladan","world-3.png",44,85,-60,6,6),
|
||||
new Panel("news_kaitain","world-2.png",73,85,-60,6,6),
|
||||
new Panel("news_expedition_south","spice-expedition.png",47,85,-22,8,6),
|
||||
new Panel("news_sandworm_south","shai-hulud-encounter.png",69,85,-22,8,6),
|
||||
new Panel("charter_sietch_south","sietch-panorama.png",45,85,56,10,6),
|
||||
new Panel("charter_arrakis_south","arrakis-cover.png",70,85,56,10,6),
|
||||
new Panel("starport_guild_south","guild-navigator.png",-110,86,-29,10,7),
|
||||
new Panel("starport_arrakis_south","arrakis-cover.png",-59,86,-29,10,7),
|
||||
new Panel("smuggler_water","smuggler-water-camp.png",-85,84,84,8,5),
|
||||
new Panel("smuggler_spice","smuggler-spice-mission.png",-57,84,84,8,5));
|
||||
LobbyArtwork(DuneLobby plugin,World world) { this.plugin=plugin; this.world=world; key=new NamespacedKey(plugin,"art"); }
|
||||
static int tileCount() { return PANELS.stream().mapToInt(p->p.width*p.height).sum(); }
|
||||
static int panelCount() { return PANELS.size(); }
|
||||
void restore() { install(); }
|
||||
void install() {
|
||||
if(!Bukkit.getPluginManager().isPluginEnabled("ImageFrame")) { plugin.getLogger().warning("Install ImageFrame 2026.1.5.0 to restore image decorations; structural lobby remains usable."); return; }
|
||||
|
|
@ -89,8 +105,18 @@ final class LobbyArtwork {
|
|||
for(ItemFrame frame:world.getEntitiesByClass(ItemFrame.class)) {
|
||||
String tag=frame.getPersistentDataContainer().get(key,PersistentDataType.STRING); if(tag!=null) existing.put(tag,frame);
|
||||
}
|
||||
boolean facesNorth=p.name.equals("guild")||p.name.equals("smugglers")||p.name.endsWith("_south");
|
||||
int backing=p.z+(facesNorth?1:-1);
|
||||
for(int x=p.x-1;x<=p.x+p.width;x++) for(int y=p.y-1;y<=p.y+p.height;y++) {
|
||||
if(x!=p.x-1&&x!=p.x+p.width&&y!=p.y-1&&y!=p.y+p.height) continue;
|
||||
world.getBlockAt(x,y,backing).setType(Material.WAXED_CUT_COPPER,false);
|
||||
}
|
||||
for(int x:new int[]{p.x-2,p.x+p.width+1}) {
|
||||
for(int y=p.y-1;y<=p.y+p.height;y++) world.getBlockAt(x,y,backing).setType(Material.CHISELED_POLISHED_BLACKSTONE,false);
|
||||
world.getBlockAt(x,p.y+p.height+1,backing).setType(Material.LANTERN,false);
|
||||
}
|
||||
for(int row=0;row<p.height;row++) for(int col=0;col<p.width;col++) {
|
||||
boolean north=p.name.equals("guild")||p.name.equals("smugglers");
|
||||
boolean north=facesNorth;
|
||||
int x=p.x+(north?p.width-1-col:col),y=p.y+p.height-1-row,z=p.z; String tag=p.name+":"+row+":"+col;
|
||||
BlockFace face=north?BlockFace.NORTH:BlockFace.SOUTH;
|
||||
// South-wall panels face into the room; reverse column order for that view.
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ import org.bukkit.block.Sign;
|
|||
import org.bukkit.block.sign.Side;
|
||||
import org.bukkit.block.data.Directional;
|
||||
import org.bukkit.block.data.type.Slab;
|
||||
import org.bukkit.entity.ItemFrame;
|
||||
import org.bukkit.entity.TextDisplay;
|
||||
import org.bukkit.entity.Display;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import java.util.*;
|
||||
|
||||
/** Deterministic, bounded build. Coordinates are also used by the saved-world verifier. */
|
||||
|
|
@ -23,35 +27,80 @@ final class LobbyBuilder {
|
|||
private boolean inside(int x,int z,int rx,int rz) {
|
||||
return Math.abs(x)<=rx && Math.abs(z)<=rz && Math.abs(x)+Math.abs(z)<=rx+rz-5;
|
||||
}
|
||||
/** Octagonal rooms, glazed clerestories, stepped barrel vaults, repeated ribs. */
|
||||
/** Heavy carved room walls; the entire lobby shares a flat opaque ceiling. */
|
||||
private void room(int cx,int cz,int rx,int rz,int height,boolean shady) {
|
||||
for(int x=-rx;x<=rx;x++) for(int z=-rz;z<=rz;z++) {
|
||||
if(!inside(x,z,rx,rz)) continue;
|
||||
boolean edge = !inside(x+1,z,rx,rz)||!inside(x-1,z,rx,rz)||!inside(x,z+1,rx,rz)||!inside(x,z-1,rx,rz);
|
||||
block(cx+x,78,cz+z,Material.DEEPSLATE_TILES);
|
||||
block(cx+x,79,cz+z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
Material floor = (Math.floorMod(x,8)==0 || Math.floorMod(z,8)==0) ? Material.POLISHED_BLACKSTONE : Material.DEEPSLATE_TILES;
|
||||
if(Math.abs(x)==rx-2 || Math.abs(z)==rz-2) floor=shady?Material.WAXED_WEATHERED_COPPER:Material.WAXED_CUT_COPPER;
|
||||
block(cx+x,76,cz+z,Material.DEEPSLATE_TILES);
|
||||
block(cx+x,77,cz+z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
block(cx+x,78,cz+z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
block(cx+x,79,cz+z,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
Material floor = Math.floorMod(Math.floorDiv(x,4)+Math.floorDiv(z,4),2)==0?Material.DEEPSLATE_TILES:Material.POLISHED_BLACKSTONE_BRICKS;
|
||||
if(Math.abs(x)==rx-3 || Math.abs(z)==rz-3) floor=shady?Material.WAXED_WEATHERED_COPPER:Material.GILDED_BLACKSTONE;
|
||||
if(Math.abs(x)==rx-5 || Math.abs(z)==rz-5) floor=shady?Material.CRACKED_DEEPSLATE_BRICKS:Material.WAXED_CUT_COPPER;
|
||||
block(cx+x,80,cz+z,floor);
|
||||
int roof = FLOOR+height-(int)Math.round(7.0*Math.pow(Math.abs(x)/(double)rx,2));
|
||||
block(cx+x,roof,cz+z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
if(Math.floorMod(z+rz,8)==0) {
|
||||
block(cx+x,roof-1,cz+z,Material.DEEPSLATE_BRICKS);
|
||||
if(Math.abs(x)%9==0) block(cx+x,roof-2,cz+z,Material.WAXED_CUT_COPPER);
|
||||
}
|
||||
if(edge) for(int y=81;y<roof;y++) {
|
||||
Material m=Material.POLISHED_BLACKSTONE_BRICKS;
|
||||
if(y>=85 && y<=roof-4) m=Material.PURPLE_STAINED_GLASS;
|
||||
if(y==84 || y==roof-3) m=Material.WAXED_CUT_COPPER;
|
||||
if(Math.floorMod(x+z,8)==0) m=Material.DEEPSLATE_BRICKS;
|
||||
block(cx+x,y,cz+z,m);
|
||||
int wallTop=FLOOR+height;
|
||||
if(edge) {
|
||||
for(int y=65;y<=wallTop;y++) {
|
||||
Material m=Material.POLISHED_BLACKSTONE_BRICKS;
|
||||
if(y>=85 && y<wallTop-3) m=Material.CHISELED_POLISHED_BLACKSTONE;
|
||||
if(y==76 || y==79 || y==84 || y==wallTop-3) m=shady?Material.WAXED_WEATHERED_COPPER:Material.WAXED_CUT_COPPER;
|
||||
if(y==wallTop-1) m=Material.CHISELED_POLISHED_BLACKSTONE;
|
||||
block(cx+x,y,cz+z,m);
|
||||
}
|
||||
if(Math.floorMod(x+z,3)==0) block(cx+x,wallTop+1,cz+z,Material.POLISHED_BLACKSTONE_BRICK_SLAB);
|
||||
}
|
||||
block(cx+x,wallTop+4,cz+z,Material.BLACK_CONCRETE);
|
||||
if(Math.floorMod(x,12)==0&&Math.floorMod(z,12)==0) block(cx+x,wallTop+3,cz+z,Material.SHROOMLIGHT);
|
||||
}
|
||||
for(int x=-rx+7;x<=rx-7;x+=8) for(int z=-rz+7;z<=rz-7;z+=8) {
|
||||
if(!shady || Math.floorMod(x+z,3)==0) lamp(cx+x,81,cz+z,shady);
|
||||
for(int z=-rz+8;z<=rz-8;z+=8) for(int s:new int[]{-1,1}) pillar(cx+s*(rx-1),cz+z,80+height,shady);
|
||||
for(int x=-rx+8;x<=rx-8;x+=8) for(int s:new int[]{-1,1}) pillar(cx+x,cz+s*(rz-1),80+height,shady);
|
||||
for(int x=-rx+8;x<=rx-16;x+=8) for(int s:new int[]{-1,1}) wallArch(cx+x,cz+s*(rz-1),true,80+height,shady);
|
||||
for(int z=-rz+8;z<=rz-16;z+=8) for(int s:new int[]{-1,1}) wallArch(cx+s*(rx-1),cz+z,false,80+height,shady);
|
||||
for(int x=-rx+7;x<=rx-7;x+=8) for(int s:new int[]{-1,1}) {
|
||||
if(!shady) lamp(cx+x,81,cz+s*(rz-5),false);
|
||||
}
|
||||
for(int z=-rz+4;z<=rz-4;z++) {
|
||||
block(cx,80,cz+z,shady?Material.WAXED_WEATHERED_COPPER:Material.GOLD_BLOCK);
|
||||
if(!shady && Math.floorMod(z,6)==0) { block(cx-1,80,cz+z,Material.WAXED_CUT_COPPER); block(cx+1,80,cz+z,Material.WAXED_CUT_COPPER); }
|
||||
}
|
||||
}
|
||||
private void pillar(int x,int z,int top,boolean shady) {
|
||||
box(x-2,65,z-2,x+2,78,z+2,Material.DEEPSLATE_BRICKS);
|
||||
box(x-2,79,z-2,x+2,82,z+2,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
box(x-1,83,z-1,x+1,top,z+1,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
for(int y:new int[]{83,89,top-2}) {
|
||||
box(x-1,y,z-1,x+1,y,z+1,shady?Material.WAXED_WEATHERED_COPPER:Material.WAXED_CUT_COPPER);
|
||||
block(x,y,z,Material.GOLD_BLOCK);
|
||||
}
|
||||
box(x-2,top,z-2,x+2,top+1,z+2,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
block(x,top+2,z,Material.LANTERN);
|
||||
for(int s:new int[]{-1,1}) { block(x+s,top+2,z,Material.LANTERN); block(x,top+2,z+s,Material.LANTERN); }
|
||||
for(int y=85;y<=top-4;y++) for(int s:new int[]{-1,1}) {
|
||||
block(x+s*2,y,z,Material.AMETHYST_BLOCK);
|
||||
if(y%3==0) block(x+s*2,y+1,z,Material.END_ROD);
|
||||
}
|
||||
}
|
||||
private void wallArch(int x,int z,boolean acrossX,int top,boolean shady) {
|
||||
for(int u=0;u<=8;u++) {
|
||||
int y=top-7+(int)Math.round(5*Math.sqrt(Math.max(0,1-Math.pow((u-4)/4.0,2))));
|
||||
int px=x+(acrossX?u:0),pz=z+(acrossX?0:u);
|
||||
box(px,y,pz,px,y+2,pz,Material.DEEPSLATE_BRICKS);
|
||||
block(px,y-1,pz,shady?Material.WAXED_WEATHERED_COPPER:Material.GILDED_BLACKSTONE);
|
||||
}
|
||||
}
|
||||
private void enclosure() {
|
||||
// Simple flat ceiling and opaque walls: the End sky cannot be seen from the lobby.
|
||||
box(-126,59,-98,96,60,130,Material.BLACK_CONCRETE);
|
||||
box(-126,128,-98,96,129,130,Material.BLACK_CONCRETE);
|
||||
box(-126,61,-98,-126,127,130,Material.BLACK_CONCRETE);
|
||||
box(96,61,-98,96,127,130,Material.BLACK_CONCRETE);
|
||||
box(-125,61,-98,95,127,-98,Material.BLACK_CONCRETE);
|
||||
box(-125,61,130,95,127,130,Material.BLACK_CONCRETE);
|
||||
for(int x=-120;x<=88;x+=16) for(int z=-92;z<=124;z+=16) {
|
||||
block(x,127,z,Material.SHROOMLIGHT); // Flush, flat ceiling lighting.
|
||||
}
|
||||
// Gold centre stripe serves as a continuous wayfinding route.
|
||||
for(int z=-rz+4;z<=rz-4;z++) block(cx,80,cz+z,shady?Material.WAXED_WEATHERED_COPPER:Material.GOLD_BLOCK);
|
||||
}
|
||||
private void lamp(int x,int y,int z,boolean dim) {
|
||||
block(x,y,z,Material.POLISHED_BLACKSTONE_BRICK_WALL);
|
||||
|
|
@ -91,33 +140,98 @@ final class LobbyBuilder {
|
|||
}
|
||||
}
|
||||
private void navigator() {
|
||||
box(-11,81,-25,11,83,-11,Material.DEEPSLATE_BRICKS);
|
||||
box(-9,84,-24,9,85,-12,Material.WAXED_CUT_COPPER);
|
||||
box(-8,86,-24,8,108,-12,Material.ORANGE_STAINED_GLASS);
|
||||
box(-7,87,-23,7,107,-13,Material.AIR);
|
||||
for(int x:new int[]{-9,9}) for(int z:new int[]{-24,-12}) {
|
||||
box(x,85,z,x,109,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
for(int y=86;y<=108;y+=4) block(x,y,z,Material.GOLD_BLOCK);
|
||||
box(-17,81,-28,17,83,-10,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
box(-16,84,-28,16,85,-10,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
box(-15,86,-28,15,86,-10,Material.WAXED_CUT_COPPER);
|
||||
for(int z=-1;z>=-12;z--) {
|
||||
int y=80+(int)Math.ceil(-z/2.0);
|
||||
box(-6,81,z,6,y,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
for(int x:new int[]{-6,6}) block(x,y,z,Material.GOLD_BLOCK);
|
||||
for(int x:new int[]{-8,8}) { block(x,y+1,z,Material.POLISHED_BLACKSTONE_BRICK_WALL); if(z%3==0) block(x,y+2,z,Material.LANTERN); }
|
||||
}
|
||||
box(-9,109,-24,9,110,-12,Material.WAXED_CUT_COPPER);
|
||||
for(int x=-7;x<=7;x+=3) { block(x,86,-18,Material.SHROOMLIGHT); block(x,108,-18,Material.SHROOMLIGHT); }
|
||||
// Pale, folded, finned aquatic Navigator sculpture; no client model required.
|
||||
ellipsoid(0,96,-19,3.2,6.5,2.3,Material.SMOOTH_SANDSTONE);
|
||||
ellipsoid(0,103,-18,4.2,3.0,2.8,Material.CUT_SANDSTONE);
|
||||
ellipsoid(0,101,-15.6,2.6,1.3,1.0,Material.SMOOTH_SANDSTONE);
|
||||
block(-2,103,-15,Material.BLACK_TERRACOTTA); block(2,103,-15,Material.BLACK_TERRACOTTA);
|
||||
box(-10,87,-27,10,89,-15,Material.WAXED_CUT_COPPER);
|
||||
box(-9,90,-26,9,121,-14,Material.ORANGE_STAINED_GLASS);
|
||||
box(-8,91,-25,8,120,-15,Material.AIR);
|
||||
box(-10,122,-27,10,123,-14,Material.WAXED_CUT_COPPER);
|
||||
box(-9,124,-26,9,124,-15,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
for(int x:new int[]{-11,11}) {
|
||||
box(x-1,87,-27,x+1,124,-14,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
for(int y=89;y<=123;y+=4) {
|
||||
box(x-1,y,-15,x+1,y,-13,Material.WAXED_OXIDIZED_COPPER);
|
||||
block(x,y,-12,Material.GOLD_BLOCK);
|
||||
}
|
||||
for(int y=91;y<=119;y+=7) { block(x, y,-12,Material.LANTERN); }
|
||||
}
|
||||
for(int x=-8;x<=8;x+=4) for(int z:new int[]{-24,-16}) { block(x,90,z,Material.SHROOMLIGHT); block(x,121,z,Material.SHROOMLIGHT); }
|
||||
// Oversized folded aquatic body, bulbous head, ribbed trunk and fanned hands.
|
||||
ellipsoid(0,105,-21,4.0,8.3,3.0,Material.SMOOTH_SANDSTONE);
|
||||
ellipsoid(0,115,-20,5.6,4.3,3.5,Material.CUT_SANDSTONE);
|
||||
ellipsoid(0,112,-17,3.5,2.1,1.5,Material.SMOOTH_SANDSTONE);
|
||||
ellipsoid(0,95,-22,5.7,2.7,2.6,Material.SANDSTONE);
|
||||
block(-3,115,-17,Material.BROWN_TERRACOTTA); block(3,115,-17,Material.BROWN_TERRACOTTA);
|
||||
block(0,111,-16,Material.BLACK_TERRACOTTA);
|
||||
for(int s:new int[]{-1,1}) {
|
||||
ellipsoid(s*3.3,95,-17,1.3,4.2,1,Material.SMOOTH_SANDSTONE);
|
||||
ellipsoid(s*3,90,-17.5,2.4,1.3,2.2,Material.CUT_SANDSTONE);
|
||||
for(int f=0;f<4;f++) box(s<0?-6:-1,92+f,-15-f,s<0?-1:6,92+f,-15-f,Material.SMOOTH_SANDSTONE);
|
||||
ellipsoid(s*4.6,104,-19,1.5,5.2,1.6,Material.CUT_SANDSTONE);
|
||||
ellipsoid(s*5.4,99,-19,2.7,1.4,2.3,Material.SMOOTH_SANDSTONE);
|
||||
for(int f=0;f<5;f++) {
|
||||
int end=s*(4+f);
|
||||
box(Math.min(s*3,end),100+f/2,-17-f/2,Math.max(s*3,end),100+f/2,-17-f/2,Material.SMOOTH_SANDSTONE);
|
||||
}
|
||||
}
|
||||
for(int y=90;y<=102;y+=3) { block(-3,y,-17,Material.SANDSTONE); block(3,y,-17,Material.SANDSTONE); }
|
||||
for(int z=-10;z<=-6;z++) for(int x=-6;x<=6;x++) block(x,80,z,Material.GOLD_BLOCK);
|
||||
box(-2,81,-9,2,82,-8,Material.WAXED_CUT_COPPER);
|
||||
sign(0,82,-7,BlockFace.SOUTH,"SPACING GUILD","NAVIGATOR","Right-click liaison","for planet travel");
|
||||
for(int y=99;y<=111;y+=2) for(int s:new int[]{-1,1}) box(s<0?-4:2,y,-18,s<0?-2:4,y,-17,Material.SANDSTONE);
|
||||
for(int x:new int[]{-14,14}) for(int z=-25;z<=-11;z+=5) lamp(x,87,z,false);
|
||||
box(11,87,-12,15,88,-12,Material.WAXED_CUT_COPPER);
|
||||
sign(13,88,-11,BlockFace.SOUTH,"SPACING GUILD","NAVIGATOR","Right-click liaison","for planet travel");
|
||||
for(int x=-18;x<=18;x++) for(int z=-5;z<=23;z++) {
|
||||
double r=Math.hypot(x,z-10);
|
||||
if((r>=9.5 && r<=10.5)||(r>=3.5&&r<=4.5)) block(x,80,z,Material.GOLD_BLOCK);
|
||||
if((r>=11.5 && r<=12.5)||(r>=4.5&&r<=5.5)) block(x,80,z,Material.GOLD_BLOCK);
|
||||
if(r>12.5 && r<13.5) block(x,80,z,Material.WAXED_CUT_COPPER);
|
||||
}
|
||||
galleries();
|
||||
}
|
||||
private void galleries() {
|
||||
for(int x=-24;x<=24;x++) for(int z=-26;z<=26;z++) {
|
||||
if(!inside(x,z,24,26) || !(Math.abs(x)>=21 || z>=24)) continue;
|
||||
block(x,90,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
if(Math.abs(x)==21 || z==24) { block(x,91,z,Material.POLISHED_BLACKSTONE_BRICK_WALL); if(Math.floorMod(x+z,6)==0) block(x,92,z,Material.LANTERN); }
|
||||
}
|
||||
for(int s:new int[]{-1,1}) for(int i=0;i<10;i++) {
|
||||
int z=18-i,y=81+i;
|
||||
box(s<0?-24:22,81,z,s<0?-22:24,y,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
block(s*21,y+1,z,Material.WAXED_CUT_COPPER);
|
||||
}
|
||||
for(int s:new int[]{-1,1}) for(int z:new int[]{-19,-7,5,23}) {
|
||||
box(s<0?-24:22,81,z-1,s<0?-22:24,89,z+1,Material.DEEPSLATE_BRICKS);
|
||||
for(int y:new int[]{84,89}) block(s*22,y,z,Material.GOLD_BLOCK);
|
||||
block(s*20,85,z,Material.LANTERN);
|
||||
}
|
||||
}
|
||||
private void bridge(int x1,int z1,int x2,int z2,boolean shady) {
|
||||
int minX=Math.min(x1,x2)-4,maxX=Math.max(x1,x2)+4,minZ=Math.min(z1,z2)-4,maxZ=Math.max(z1,z2)+4;
|
||||
double vx=x2-x1,vz=z2-z1,length2=vx*vx+vz*vz;
|
||||
for(int x=minX;x<=maxX;x++) for(int z=minZ;z<=maxZ;z++) {
|
||||
double t=Math.max(0,Math.min(1,((x-x1)*vx+(z-z1)*vz)/length2));
|
||||
double d=Math.hypot(x-x1-t*vx,z-z1-t*vz);
|
||||
if(d>3.6) continue;
|
||||
box(x,76,z,x,79,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
block(x,80,z,d<.8?Material.GOLD_BLOCK:d>2.5?Material.WAXED_CUT_COPPER:Material.DEEPSLATE_TILES);
|
||||
box(x,81,z,x,88,z,Material.AIR);
|
||||
block(x,93,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
if(d>2.5) box(x,89,z,x,92,z,Material.CHISELED_POLISHED_BLACKSTONE);
|
||||
}
|
||||
for(int x=minX;x<=maxX;x++) for(int z=minZ;z<=maxZ;z++) {
|
||||
double t=Math.max(0,Math.min(1,((x-x1)*vx+(z-z1)*vz)/length2));
|
||||
double d=Math.hypot(x-x1-t*vx,z-z1-t*vz);
|
||||
if(d<2.5 || d>3.6 || !w.getBlockAt(x,80,z).getType().isSolid()) continue;
|
||||
boolean outer=false;
|
||||
for(int[] v:new int[][]{{1,0},{-1,0},{0,1},{0,-1}}) if(!w.getBlockAt(x+v[0],80,z+v[1]).getType().isSolid()) outer=true;
|
||||
if(!outer) continue;
|
||||
box(x,81,z,x,92,z,Material.POLISHED_BLACKSTONE_BRICKS);
|
||||
block(x,84,z,Material.WAXED_CUT_COPPER); block(x,90,z,Material.WAXED_CUT_COPPER);
|
||||
if(Math.floorMod(x+z,6)==0) {
|
||||
block(x,88,z,Material.SHROOMLIGHT);
|
||||
box(x,68,z,x,75,z,Material.DEEPSLATE_BRICKS); block(x,72,z,Material.WAXED_CUT_COPPER);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void pad(int cx,int cz,int radius,int y,boolean launch,int number) {
|
||||
|
|
@ -207,17 +321,121 @@ final class LobbyBuilder {
|
|||
}
|
||||
for(int z=85;z<=115;z+=5) { block(-86,85,z,Material.WAXED_WEATHERED_COPPER); block(-46,85,z,Material.WAXED_WEATHERED_COPPER); }
|
||||
}
|
||||
private void title(double x,double y,double z,String text) {
|
||||
w.spawn(new Location(w,x,y,z),TextDisplay.class,d->{
|
||||
d.setText(ChatColor.GOLD+text); d.setBillboard(Display.Billboard.CENTER);
|
||||
d.setBackgroundColor(Color.fromARGB(210,20,16,15)); d.setShadowed(true);
|
||||
d.setLineWidth(400); d.setPersistent(true);
|
||||
});
|
||||
}
|
||||
private void displayItem(int x,int y,int z,Material item) {
|
||||
block(x,y,z-1,Material.DARK_OAK_PLANKS);
|
||||
w.spawn(new Location(w,x+.5,y+.5,z+.5),ItemFrame.class,f->{
|
||||
f.setFacingDirection(BlockFace.SOUTH,true); f.setItem(new ItemStack(item),false);
|
||||
f.setFixed(true); f.setInvulnerable(true); f.setPersistent(true);
|
||||
});
|
||||
}
|
||||
private void furnishing() {
|
||||
// Dense layered stalls, bottles, catalogues and market displays.
|
||||
for(int x:new int[]{-82,-66,-50}) {
|
||||
box(x-5,83,21,x+5,88,21,Material.DARK_OAK_PLANKS);
|
||||
for(int y:new int[]{83,86,89}) box(x-5,y,21,x+5,y,22,Material.WAXED_CUT_COPPER);
|
||||
for(int i=0;i<5;i++) displayItem(x-4+i*2,84,23,new Material[]{Material.DIAMOND,Material.GOLD_INGOT,Material.ORANGE_DYE,Material.POTION,Material.EMERALD}[i]);
|
||||
for(int dx:new int[]{-3,3}) { block(x+dx,83,26,Material.BREWING_STAND); block(x+dx,87,26,Material.LANTERN); }
|
||||
title(x+.5,89,26.5,x==-66?"CHOAM":x==-82?"TRADE":"CONTRACTS");
|
||||
}
|
||||
for(int x:new int[]{-85,-47}) for(int z=34;z<=46;z+=4) {
|
||||
box(x-1,81,z-1,x+1,82,z+1,Material.DARK_OAK_PLANKS);
|
||||
block(x,83,z,Material.BREWING_STAND); block(x,83,z+1,Material.LANTERN);
|
||||
}
|
||||
for(int x:new int[]{-74,-58}) {
|
||||
block(x,82,41,Material.BREWING_STAND); block(x,82,43,Material.CANDLE);
|
||||
block(x-2,82,42,Material.DECORATED_POT); block(x+2,82,44,Material.LANTERN);
|
||||
}
|
||||
// Rules hall: proper seats with backs, aisle runner and illuminated charter panels.
|
||||
for(int z:new int[]{34,40,46,52}) for(int x=48;x<=76;x++) {
|
||||
if(x>=58&&x<=66) continue;
|
||||
block(x,81,z,Material.DARK_OAK_STAIRS);
|
||||
var data=(org.bukkit.block.data.type.Stairs)w.getBlockAt(x,81,z).getBlockData();
|
||||
data.setFacing(BlockFace.SOUTH); w.getBlockAt(x,81,z).setBlockData(data,false);
|
||||
block(x,82,z+1,Material.DARK_OAK_TRAPDOOR);
|
||||
}
|
||||
for(int z=27;z<=54;z++) for(int x=60;x<=64;x++) block(x,81,z,Material.BLACK_CARPET);
|
||||
for(int x:new int[]{48,55,69,76}) {
|
||||
box(x-2,83,16,x+2,91,16,Material.WAXED_CUT_COPPER);
|
||||
box(x-1,84,17,x+1,90,17,Material.SMOOTH_SANDSTONE);
|
||||
block(x-2,88,18,Material.LANTERN); block(x+2,88,18,Material.LANTERN);
|
||||
}
|
||||
// News room desks: ledgers, lamps, charts and side shelving.
|
||||
for(int x=48;x<=76;x+=7) {
|
||||
block(x+2,82,-49,Material.LANTERN); block(x-1,82,-50,Material.DECORATED_POT);
|
||||
box(x-2,81,-32,x+2,81,-32,Material.DARK_OAK_STAIRS);
|
||||
}
|
||||
for(int x:new int[]{42,82}) {
|
||||
box(x,81,-53,x,88,-33,Material.CHISELED_BOOKSHELF);
|
||||
for(int z=-52;z<=-34;z+=6) { block(x,89,z,Material.LANTERN); block(x,82,z,Material.WAXED_CUT_COPPER); }
|
||||
}
|
||||
// Smuggler den: pipework, patchwork canvas, mismatched stock and a recessed entrance.
|
||||
for(int x:new int[]{-78,-54}) {
|
||||
box(x-6,89,103,x+6,89,110,Material.BROWN_WOOL);
|
||||
for(int dx=-6;dx<=6;dx+=3) box(x+dx,89,103,x+dx,89,110,Material.ORANGE_TERRACOTTA);
|
||||
box(x-6,88,103,x+6,88,103,Material.DARK_OAK_SLAB);
|
||||
title(x+.5,90,104,x==-78?"WATER":"SPICE");
|
||||
block(x+3,83,107,Material.BREWING_STAND); block(x-3,83,107,Material.DECORATED_POT);
|
||||
box(x-4,81,113,x+4,83,114,Material.BARREL);
|
||||
}
|
||||
box(-87,90,84,-45,90,84,Material.WAXED_WEATHERED_COPPER);
|
||||
box(-87,90,84,-87,90,118,Material.WAXED_WEATHERED_COPPER);
|
||||
box(-45,90,84,-45,90,118,Material.WAXED_WEATHERED_COPPER);
|
||||
for(int z=86;z<=116;z+=6) {
|
||||
block(-87,89,z,Material.GRINDSTONE); block(-45,89,z,Material.GRINDSTONE);
|
||||
box(-85,81,z,-83,83,z+1,Material.BARREL); block(-84,84,z,Material.DARK_OAK_TRAPDOOR);
|
||||
box(-49,81,z,-47,82,z+1,Material.BARREL);
|
||||
}
|
||||
box(-71,81,83,-70,86,84,Material.DARK_OAK_LOG); block(-70,87,84,Material.SOUL_LANTERN);
|
||||
// Control tower and starport fittings echo Dune II's square industrial sprite.
|
||||
box(-84,91,-86,-72,100,-82,Material.SMOOTH_SANDSTONE);
|
||||
box(-82,95,-81,-74,98,-81,Material.CYAN_STAINED_GLASS);
|
||||
box(-85,101,-87,-71,102,-81,Material.WAXED_CUT_COPPER);
|
||||
for(int x:new int[]{-83,-73}) { box(x,103,-86,x,106,-86,Material.IRON_BARS); block(x,107,-86,Material.LANTERN); }
|
||||
title(-78,103,-80,"GUILD STARPORT");
|
||||
for(int[] p:PADS) {
|
||||
for(int s:new int[]{-1,1}) { block(p[0]+s*7,81,p[1]+5,Material.WAXED_CUT_COPPER); block(p[0]+s*7,82,p[1]+5,Material.LANTERN); }
|
||||
block(p[0]+5,83,p[1]-8,Material.LEVER);
|
||||
}
|
||||
frigate();
|
||||
}
|
||||
private void frigate() {
|
||||
box(-87,81,-61,-69,91,-44,Material.AIR);
|
||||
for(int z=-59;z<=-44;z++) {
|
||||
int width=z>=-47?Math.max(1,(-z-43)/2):3;
|
||||
box(-78-width,84,z,-78+width,86,z,Material.SMOOTH_QUARTZ);
|
||||
if(z<-50) box(-80,87,z,-76,87,z,Material.LIGHT_GRAY_CONCRETE);
|
||||
if(z%3==0) { block(-78-width,85,z,Material.POLISHED_ANDESITE); block(-78+width,85,z,Material.POLISHED_ANDESITE); }
|
||||
}
|
||||
box(-80,86,-49,-76,87,-48,Material.CYAN_STAINED_GLASS);
|
||||
for(int s:new int[]{-1,1}) {
|
||||
int x=-78+s*5;
|
||||
box(x-1,84,-58,x+1,86,-52,Material.SMOOTH_QUARTZ);
|
||||
block(x,85,-59,Material.SEA_LANTERN);
|
||||
box(Math.min(x,-78),83,-54,Math.max(x,-78),83,-51,Material.GRAY_CONCRETE);
|
||||
box(x,81,-56,x,83,-56,Material.IRON_BLOCK); box(x,81,-49,x,83,-49,Material.IRON_BLOCK);
|
||||
}
|
||||
box(-79,88,-58,-77,88,-55,Material.DEEPSLATE_TILES);
|
||||
}
|
||||
long build() {
|
||||
room(0,0,26,29,34,false);
|
||||
room(-78,-58,38,32,27,false);
|
||||
room(-66,40,26,24,23,false);
|
||||
room(62,-42,25,23,23,false);
|
||||
room(62,37,25,23,23,false);
|
||||
room(-66,101,24,23,16,true);
|
||||
corridor(-26,0,-66,0,false); corridor(-66,-29,-66,19,false);
|
||||
corridor(26,0,62,0,false); corridor(62,-22,62,17,false);
|
||||
corridor(-66,61,-66,81,true);
|
||||
enclosure();
|
||||
room(0,0,26,29,40,false);
|
||||
room(-78,-58,38,32,16,false);
|
||||
room(-66,40,26,24,16,false);
|
||||
room(62,-42,25,23,16,false);
|
||||
room(62,37,25,23,16,false);
|
||||
room(-66,101,24,23,12,true);
|
||||
bridge(-22,-15,-43,-31,false); bridge(-22,17,-42,25,false);
|
||||
bridge(22,-15,39,-27,false); bridge(22,17,39,25,false);
|
||||
bridge(-66,61,-66,83,true);
|
||||
navigator(); starport(); exchange(); news(); rules(); smugglers();
|
||||
furnishing();
|
||||
// Arrival marker is unobstructed at (0.5,81,10.5), facing north to the tank.
|
||||
block(0,80,10,Material.LODESTONE);
|
||||
return count;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
name: DuneLobby
|
||||
version: 1.0.0
|
||||
version: 1.1.0
|
||||
main: com.example.dunelobby.DuneLobby
|
||||
api-version: '1.21'
|
||||
load: POSTWORLD
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ def blocks(world):
|
|||
result = {}
|
||||
for chunk in chunks(world/'DIM1'/'region'):
|
||||
cx, cz = int(chunk['xPos']), int(chunk['zPos'])
|
||||
if not (-8 <= cx <= 6 and -6 <= cz <= 8):
|
||||
if not (-8 <= cx <= 6 and -7 <= cz <= 8):
|
||||
continue
|
||||
for section in chunk['sections']:
|
||||
sy = int(section['Y'])
|
||||
if sy < 4 or sy > 7:
|
||||
if sy < 4 or sy > 8:
|
||||
continue
|
||||
states = section['block_states']
|
||||
palette = [str(p['Name']).removeprefix('minecraft:') for p in states['palette']]
|
||||
|
|
@ -129,11 +129,16 @@ if __name__ == '__main__':
|
|||
if role is not None:
|
||||
roles[str(role)] += 1
|
||||
assert roles == Counter({'liaison':1,'exchange':1,'water':1,'spice':1}),roles
|
||||
assert entity_counts['minecraft:glow_item_frame'] == 276,entity_counts
|
||||
assert entity_counts['minecraft:glow_item_frame'] == 1024,entity_counts
|
||||
assert entity_counts['minecraft:ender_dragon'] == 0,entity_counts
|
||||
for x,z in [(0,0),(-78,-58),(-66,40),(62,-42),(62,37),(-66,101)]:
|
||||
assert data.get((x,128,z)) == 'black_concrete', (x,z,'flat ceiling')
|
||||
for y in [81,96,120]:
|
||||
for x,z in [(-126,0),(96,0),(0,-98),(0,130)]:
|
||||
assert data.get((x,y,z)) == 'black_concrete',(x,y,z,'opaque enclosure')
|
||||
report={'minecraft':'1.21.4','data_version':int(level['DataVersion']),'spawn':[0,81,10],
|
||||
'saved_non_air_blocks_in_build_height':len(data),'entities':dict(entity_counts),'npc_roles':dict(roles),
|
||||
'checks':'PASS: saved spawn, five launch pads, six rooms, four unique NPCs, 276 artwork frames, no dragon'}
|
||||
'checks':'PASS: saved spawn, five launch pads, six rooms, four unique NPCs, 1024 artwork frames, opaque enclosure and flat ceiling, no dragon'}
|
||||
render(data,args.output)
|
||||
args.output.with_suffix('.json').write_text(json.dumps(report,indent=2)+'\n',encoding='utf-8')
|
||||
print(json.dumps(report,indent=2))
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ if __name__ == '__main__':
|
|||
if file.name in ('session.lock','uid.dat') or 'playerdata' in relative.parts or 'advancements' in relative.parts or 'stats' in relative.parts:
|
||||
continue
|
||||
files['guild_lobby/'+relative.as_posix()]=file.read_bytes()
|
||||
files['plugins/DuneLobby-1.0.0.jar']=(ROOT/'build/libs/DuneLobby-1.0.0.jar').read_bytes()
|
||||
files['plugins/DuneLobby-1.1.0.jar']=(ROOT/'build/libs/DuneLobby-1.1.0.jar').read_bytes()
|
||||
files['tools/install_imageframe.py']=(ROOT/'tools/install_imageframe.py').read_bytes()
|
||||
files['README-Guild-Lobby.md']=(ROOT/'README.md').read_bytes()
|
||||
files['README.txt']=('Dune Guild Lobby 1.0.0 | Paper 1.21.4 | Java 21\n\n'
|
||||
files['README.txt']=('Dune Guild Lobby 1.1.0 | Paper 1.21.4 | Java 21 | Interiors only\n\n'
|
||||
'Extract into a STOPPED dedicated lobby server directory. Do not overwrite an existing guild_lobby.\n'
|
||||
'Install ImageFrame 2026.1.5.0: python tools/install_imageframe.py <server-directory>\n'
|
||||
'Keep level-name=lobby_bootstrap (or another primary world); do not set level-name=guild_lobby.\n'
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ A Dune-themed Minecraft Java plugin suite for **Paper 1.21.4 and Java 21**. Expl
|
|||
| DuneTerrain | 1.0.7 | Planet generation, Arrakis formations and landmarks, spice deposits, personal sietch caches, and safe spawn. |
|
||||
| DuneNPC | 1.0.0 | Guild Navigators, smuggler missions, stationary quest camps, timed deadlines, particles and NPC admin GUI. |
|
||||
| DuneEss | 1.0.1 | Solaris economy through Vault, spice sales, Guild travel, help, and administrative travel/economy tools. |
|
||||
| [DuneLobby](DuneLobby/README.md) | 1.0.0 | Optional saved End lobby: Guild Navigator spawn, Dune II starport, Exchange, News, Rules and shady water/spice market. |
|
||||
| [DuneLobby](DuneLobby/README.md) | 1.1.0 | Interior lobby with flat ceilings, monumental Navigator dais, Dune II starport, Exchange, News, Rules, shady water/spice market and 25 framed paintings. |
|
||||
| DuneResourcePack.zip | Minecraft Java 1.21.4 | Desert Sniffer skin, haunted Fremen zombies, spice-gold suspicious sand, and smuggler wandering traders. |
|
||||
|
||||
## Download and install
|
||||
|
||||
**Optional lobby:** download the already built [Dune Guild Lobby world package](worlds/Dune-Guild-Lobby-1.0.0.zip) and follow the [lobby setup guide](DuneLobby/README.md) for a separate Paper backend. It includes its companion plugin; ImageFrame is installed separately. Planet installation below is unchanged.
|
||||
**Optional lobby:** download the rebuilt [Dune Guild Lobby 1.1.0 world package](worlds/Dune-Guild-Lobby-1.1.0.zip) and follow the [lobby setup guide](DuneLobby/README.md) for a separate Paper backend. It includes its companion plugin; ImageFrame is installed separately. Version 1.0.0 is a superseded draft. Planet installation below is unchanged.
|
||||
|
||||
1. Open the latest successful [GitHub Actions build](https://github.com/unimatrixgit/mcdune/actions) and download **DuneRealms-Server-Package** from its artifacts. The server package includes Vault, all four project plugin JARs, the resource pack, and the manual. GitHub artifact downloads may require sign-in.
|
||||
2. Stop the Paper server and back up its worlds, plugin data, and any shared database before replacing an existing release.
|
||||
|
|
|
|||
BIN
worlds/Dune-Guild-Lobby-1.1.0.zip
Normal file
BIN
worlds/Dune-Guild-Lobby-1.1.0.zip
Normal file
Binary file not shown.
Loading…
Reference in a new issue

Staff