From c2a6e62dee15e294f06879fcd4d5a9e9a489860d Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Mon, 30 Nov 2026 18:15:59 +0100 Subject: [PATCH] Light Ender Chest frequency pads and brighten the lid --- DuneChest/build.gradle.kts | 2 +- .../com/example/dunechest/StorageModule.java | 10 +++++++--- DuneChest/src/main/resources/plugin.yml | 2 +- DuneChest/tools/ender_chest_art.py | 12 +++++++----- .../textures/block/ender_chest_top.png | Bin 748 -> 765 bytes tools/install-plugin-fleet.py | 8 ++++++-- 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/DuneChest/build.gradle.kts b/DuneChest/build.gradle.kts index 796861c0..4216167d 100644 --- a/DuneChest/build.gradle.kts +++ b/DuneChest/build.gradle.kts @@ -1,6 +1,6 @@ plugins { java } group = "com.example" -version = "1.0.1" +version = "1.0.2" repositories { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") diff --git a/DuneChest/src/main/java/com/example/dunechest/StorageModule.java b/DuneChest/src/main/java/com/example/dunechest/StorageModule.java index e6115af3..3e4c3ea5 100644 --- a/DuneChest/src/main/java/com/example/dunechest/StorageModule.java +++ b/DuneChest/src/main/java/com/example/dunechest/StorageModule.java @@ -388,9 +388,13 @@ public final class StorageModule implements Listener, CommandExecutor { made.add(body.getUniqueId()); for (int i = 0; i < 3; i++) { double[] c = StorageRules.padCentre(f, i); final int idx = i; - var d = w.spawn(b.getLocation(), BlockDisplay.class, bd -> { - bd.setBlock(wool(p.colors[idx]).createBlockData()); bd.setPersistent(false); - bd.setTransformation(new Transformation(new Vector3f((float) (c[0] - 0.135), 1.012f, (float) (c[1] - 0.135)), new AxisAngle4f(), new Vector3f(0.27f, 0.05f, 0.27f), new AxisAngle4f())); + var d = w.spawn(b.getLocation().add(0, 1, 0), BlockDisplay.class, pad -> { + pad.setBlock(wool(p.colors[idx]).createBlockData()); + pad.setPersistent(false); + pad.setBrightness(new Display.Brightness(15, 15)); + pad.setTransformation(new Transformation( + new Vector3f((float) (c[0] - 0.145), 0.025f, (float) (c[1] - 0.145)), + new AxisAngle4f(), new Vector3f(0.29f, 0.055f, 0.29f), new AxisAngle4f())); }); made.add(d.getUniqueId()); } diff --git a/DuneChest/src/main/resources/plugin.yml b/DuneChest/src/main/resources/plugin.yml index 646847b5..45a75d5f 100644 --- a/DuneChest/src/main/resources/plugin.yml +++ b/DuneChest/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: DuneChest -version: 1.0.1 +version: 1.0.2 main: com.example.dunechest.DuneChest api-version: '1.21.8' softdepend: [floodgate, DuneMenus, DuneEss] diff --git a/DuneChest/tools/ender_chest_art.py b/DuneChest/tools/ender_chest_art.py index 4ce302ab..aefdb758 100644 --- a/DuneChest/tools/ender_chest_art.py +++ b/DuneChest/tools/ender_chest_art.py @@ -12,12 +12,12 @@ BODY = [(38, 24, 58), (44, 28, 66), (33, 20, 50), (50, 32, 74)] # dark viol BRASS = [(196, 150, 70), (222, 178, 92), (160, 118, 52)] EDGE = (20, 12, 32) -def body(): +def body(palette=BODY): im = Image.new("RGBA", (S, S)) px = im.load() for y in range(S): for x in range(S): - px[x, y] = rng.choice(BODY) + (255,) + px[x, y] = rng.choice(palette) + (255,) return im def bevel(im): @@ -50,12 +50,14 @@ side = bevel(body()); band(side, 1, 5); band(side, S - 6, S - 2); rivets(side, 3 front = bevel(body()); band(front, 1, 7); band(front, S - 6, S - 2); eye(front); rivets(front, 4) d = ImageDraw.Draw(front); d.rectangle([S // 2 - 2, 6, S // 2 + 1, 10], fill=BRASS[1] + (255,), outline=BRASS[2] + (255,)) # latch -top = bevel(body()) +# A lighter lid gives the lit frequency pads a visible frame, including in dark rooms. +LID = [(106, 77, 118), (117, 86, 129), (97, 71, 109), (128, 94, 138)] +top = bevel(body(LID)) d = ImageDraw.Draw(top) for i in range(3): # three recessed pad slots, matching the wool pads placed on top cx = int(round((i + 0.5) / 3 * S)) - d.rectangle([cx - 5, S // 2 - 5, cx + 5, S // 2 + 5], fill=(14, 8, 22, 255), outline=BRASS[0] + (255,)) - d.rectangle([cx - 4, S // 2 - 4, cx + 4, S // 2 + 4], outline=(60, 40, 90, 255)) + d.rectangle([cx - 5, S // 2 - 5, cx + 5, S // 2 + 5], fill=(68, 46, 84, 255), outline=BRASS[1] + (255,)) + d.rectangle([cx - 4, S // 2 - 4, cx + 4, S // 2 + 4], outline=(92, 66, 108, 255)) bottom = bevel(body()) os.makedirs(os.path.join(root, "textures/block"), exist_ok=True) diff --git a/network/resource-pack/central/overlay/assets/dunerealms/textures/block/ender_chest_top.png b/network/resource-pack/central/overlay/assets/dunerealms/textures/block/ender_chest_top.png index 08128f1a1ed6be903bf89ae173af10d3e335ccfb..5f3cc19e729f92b35d7a75bf35247a8cf8dfa516 100644 GIT binary patch delta 741 zcmViT(IGxcWI?LYaIHk4W) z&!4_Xhx^^F2mf&PZc0G%?BpPQ``*X%!v{+;(&?SGwrSHa4u5I}(>n3|_J;@4% zg6Sf-?qsh^f#t9a9*A6yVWWK@LsCKx9q56qWJUmpNJj5$B$yvjB$^?eDw?VdXwAo5 zaSpD%S|e8F@P9`|drde|aNR*6f;DaE63eUs89)_ zqc=ELhgJz`oo^F~DKI^>O2C7bP85XT6Lj62v~;r5{(mwFf=efx1;r)S?$i61+y4~5 zetY;&!#A&fr2k=C^KjmuUu$&K9j)GP(zZ$)OLdn(x;ui6rM~X#^EbIk+uhc`ggdcf zkV0~$&fq)!c)BJej84Wcti?w(Lj~FrFD|3yt!b;1f)_DgI1{um|n8~anXCAkoQSXGgGnFJ)zp+_v&zl zW9T-2SiGBI#{S>Jzi!T&o#L$$aQM9efxW+2j>(f#;w1m4#`8wzNW2N-hv>?I-=h2m XgS}=OL!8G&00000NkvXXu0mjfl&x&{ delta 724 zcmV;_0xSLf1?&ZoB!9C>L_t(|UhS8^Y862g#`nrKT<{iGNMV`6+R8@|@oB7m1Z#^t zfsc{WS|p`~Scs&M81M#`c){?S>~HvHBHCQCO%5!(J9GB@`R2@=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