Light Ender Chest frequency pads and brighten the lid
All checks were successful
Planet DuneChest Build / dunechest (push) Successful in 1m11s
DuneRealms Plugin CI / plugins (push) Successful in 3m3s

This commit is contained in:
unimatrixgit 2026-11-30 18:15:59 +01:00
commit c2a6e62dee
6 changed files with 22 additions and 12 deletions

View file

@ -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/")

View file

@ -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());
}

View file

@ -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]

View file

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

After

Width:  |  Height:  |  Size: 765 B

Before After
Before After

View file

@ -275,8 +275,12 @@ def plan(artifacts, inventory, expected_source):
if not {'dunerealmsgui','mcgui'}.issubset(existing_paths):
raise ValueError('DuneChest pack delivery requires the installed GUI and MCGUI runtimes')
installed=existing_paths.get('dunechest')
if installed is not None and digest(installed)!=chosen[0]['sha256']:
raise ValueError('Existing DuneChest differs from this first fleet release')
approved_dunechest = {
chosen[0]['sha256'],
'a1cd67aeea65d4a9dc98b75b1466fd54a120213e3eef31582c9492d546e484c2',
}
if installed is not None and digest(installed) not in approved_dunechest:
raise ValueError('Existing DuneChest differs from the approved release or predecessor')
replaced={entry['filename'] for entry in previous}
retained=[{'filename':path.name,'sha256':digest(path),'metadata':metadata(path)}
for path in sorted(plugins.glob('*.jar')) if path.name not in replaced]