diff --git a/AetherionItems/src/main/java/de/aetherion/items/hud/PlaceChip.java b/AetherionItems/src/main/java/de/aetherion/items/hud/PlaceChip.java
new file mode 100644
index 00000000..b9388514
--- /dev/null
+++ b/AetherionItems/src/main/java/de/aetherion/items/hud/PlaceChip.java
@@ -0,0 +1,57 @@
+package de.aetherion.items.hud;
+
+import de.aetherion.items.combat.HudGlyphs;
+
+import org.bukkit.entity.Player;
+
+import java.util.Map;
+import java.util.UUID;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * One small line on the chip under the place plate, top right, for a place that has two numbers worth a glance
+ * (2026-12-03, Robb's playtest plan: "eine kleine Zeile oben rechts, nur in den Lullveins: Splitter und Fundstücke.
+ * Sonst nichts, das Feld bleibt leer"). The place's own plugin sets it while the player is there and clears it when
+ * they leave; the forage weather, which uses the same chip, wins where both would show.
+ *
+ *
The text is written in the HUD's pixel alphabet (capitals, digits, {@code .,:!'?/+-%()}); anything else is
+ * dropped by {@link HudGlyphs#label}.
+ */
+public final class PlaceChip {
+
+ private static final Map LINES = new ConcurrentHashMap<>();
+
+ private PlaceChip() {
+ }
+
+ /** Shows {@code text} on the chip for this player until {@link #clear}; null or blank clears it. */
+ public static void set(Player player, String text) {
+ if (player == null) {
+ return;
+ }
+ String label = text == null ? "" : HudGlyphs.label(text);
+ if (label.isEmpty()) {
+ LINES.remove(player.getUniqueId());
+ } else {
+ LINES.put(player.getUniqueId(), label);
+ }
+ }
+
+ public static void clear(Player player) {
+ if (player != null) {
+ LINES.remove(player.getUniqueId());
+ }
+ }
+
+ public static void forget(UUID playerId) {
+ if (playerId != null) {
+ LINES.remove(playerId);
+ }
+ }
+
+ /** The line for this player, or "" when there is none. */
+ static String of(Player player) {
+ String line = player == null ? null : LINES.get(player.getUniqueId());
+ return line == null ? "" : line;
+ }
+}
diff --git a/AetherionItems/src/main/java/de/aetherion/items/hud/StatusPanel.java b/AetherionItems/src/main/java/de/aetherion/items/hud/StatusPanel.java
index 0549f4c7..eac74623 100644
--- a/AetherionItems/src/main/java/de/aetherion/items/hud/StatusPanel.java
+++ b/AetherionItems/src/main/java/de/aetherion/items/hud/StatusPanel.java
@@ -114,6 +114,7 @@ public void blank(Player player) {
@Override
public void forget(UUID playerId) {
carrier.forget(playerId);
+ PlaceChip.forget(playerId);
if (radar != null) {
radar.forget(playerId);
}
@@ -292,6 +293,19 @@ private int place(HudPen pen, Player player, int state) {
pen.at(x0 + HudPen.CHIP_CAP + HudPen.ICON_W + 2).small(weather, 0,
PanelPalette.radar(state, PanelPalette.PART_LABEL + 5, PanelPalette.WEATHER));
below = 96;
+ } else {
+ // A place's own two numbers (the Lullveins: splinters and finds) on the same chip.
+ String line = PlaceChip.of(player);
+ if (!line.isEmpty()) {
+ int width = HudPen.CHIP_CAP + HudPen.ICON_W + 2 + HudGlyphs.width(line) + 2 + HudPen.CHIP_CAP;
+ int x0 = right(width);
+ pen.at(x0).chip(width, PanelPalette.radar(state, PanelPalette.PART_LABEL + 4, PanelPalette.WHITE));
+ TextColor row = PanelPalette.radar(state, PanelPalette.PART_LABEL + 5, PanelPalette.WHITE);
+ pen.at(x0 + HudPen.CHIP_CAP).icon(HudPen.Icon.SHARD, 0, row);
+ pen.at(x0 + HudPen.CHIP_CAP + HudPen.ICON_W + 2).small(line, 0,
+ PanelPalette.radar(state, PanelPalette.PART_LABEL + 5, PanelPalette.WEATHER));
+ below = 96;
+ }
}
return below;
}
diff --git a/AetherionItems/src/main/java/de/aetherion/items/menu/JournalDe.java b/AetherionItems/src/main/java/de/aetherion/items/menu/JournalDe.java
index 6d33b88f..1abe8c34 100644
--- a/AetherionItems/src/main/java/de/aetherion/items/menu/JournalDe.java
+++ b/AetherionItems/src/main/java/de/aetherion/items/menu/JournalDe.java
@@ -63,6 +63,8 @@ private JournalDe() {
{"Back to the Capital, once you have been there.", "Zurück in die Hauptstadt, sobald du dort warst."},
{"Foraging Isle: journal, tour and wayfinder.", "Foraging-Insel: Buch, Führung und Wegweiser."},
{"Mining Isle: journal, compass and crew tour.", "Mining-Insel: Buch, Kompass und Führung."},
+ {"The Lullveins: what to do down there in three steps, your finds and your drill.",
+ "Die Lullveins: was du dort unten tust, in drei Schritten, deine Fundstücke und dein Bohrer."},
{"Origin Journal: districts, glowcaps, bells, skyways.", "Atlas der Hauptinsel: Bezirke, Glowcaps, Glocken, Skyways."},
{"Make or manage a party.", "Eine Party gründen oder verwalten."},
{"Friends list, visits and guild invites.", "Freundesliste, Besuche und Gildeneinladungen."},
diff --git a/AetherionItems/src/main/java/de/aetherion/items/menu/JournalMenu.java b/AetherionItems/src/main/java/de/aetherion/items/menu/JournalMenu.java
index 69c7d3be..e6cd7047 100644
--- a/AetherionItems/src/main/java/de/aetherion/items/menu/JournalMenu.java
+++ b/AetherionItems/src/main/java/de/aetherion/items/menu/JournalMenu.java
@@ -579,6 +579,10 @@ ItemStack item(String name, List lore) {
}
}
+ /** The Lullveins page shows once the player has been down there (AetherionMining marks them). */
+ private static final String LULLVEINS = "Lullveins";
+ private static final NamespacedKey LULL_SEEN = NamespacedKey.fromString("aetherionmining:lull_seen");
+
private static final List ATLAS_LINES = List.of(
new Cmd("Dungeons", "dhub", JournalIcon.DUNGEONS, "The dungeon hub, from anywhere."),
new Cmd("Exile", "exile", JournalIcon.EXILE, "Cross to the exile island, or come back."),
@@ -586,7 +590,14 @@ ItemStack item(String name, List lore) {
private static final List ISLE_JOURNALS = List.of(
new Cmd("Grove", "grove", JournalIcon.GROVE, "Foraging Isle: journal, tour and wayfinder."),
new Cmd("Mine Isle", "mineisle", JournalIcon.MINE_ISLE, "Mining Isle: journal, compass and crew tour."),
- new Cmd("Origin", "origin", JournalIcon.ORIGIN, "Origin Journal: districts, glowcaps, bells, skyways."));
+ new Cmd("Origin", "origin", JournalIcon.ORIGIN, "Origin Journal: districts, glowcaps, bells, skyways."),
+ new Cmd(LULLVEINS, "lullveins journal", null, Material.AMETHYST_SHARD,
+ "The Lullveins: what to do down there in three steps, your finds and your drill."));
+
+ private static boolean hidden(Player player, Cmd cmd) {
+ return LULLVEINS.equals(cmd.label()) && (LULL_SEEN == null
+ || !player.getPersistentDataContainer().has(LULL_SEEN, PersistentDataType.BYTE));
+ }
/** The road tile from Quests (skill strands), or null before Ledger's stamp or without Quests. */
private static QuestProgressAccess.StrandTile strandTile(Player player) {
@@ -1027,7 +1038,7 @@ private void commands(Read read, List out, boolean right, List cmds,
if (row > 4) {
return;
}
- if (!available(player, cmd.command())) {
+ if (!available(player, cmd.command()) || hidden(player, cmd)) {
continue;
}
out.add(new Entry(row++, right, cmd.label(), Ink.INK,
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullCast.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullCast.java
index 8d567446..ca6ca23f 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullCast.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullCast.java
@@ -1,6 +1,8 @@
package de.aetherion.mining.lullveins;
import de.aetherion.core.api.AetherServices;
+import de.aetherion.core.api.BarChrome;
+import de.aetherion.core.api.HudNotes;
import de.aetherion.core.api.TalkAccess;
import de.aetherion.core.npc.FancyBody;
@@ -113,6 +115,8 @@ Location at(World world) {
private final Lullveins lv;
private final NamespacedKey propKey;
+ /** Set once Kalle has told this player what to do down here. */
+ private final NamespacedKey introKey;
private final Map badges = new HashMap<>();
/** Prop groups by place ("ring", "heaven", "hell", "pillar0".."pillar5"), each respawned on its own. */
private final Map> groups = new HashMap<>();
@@ -129,6 +133,7 @@ Location at(World world) {
LullCast(Lullveins lv) {
this.lv = lv;
this.propKey = new NamespacedKey(lv.plugin(), "lull_prop");
+ this.introKey = new NamespacedKey(lv.plugin(), "lull_intro");
}
// ── Upkeep ───────────────────────────────────────────────────────────────────────────────────────────────
@@ -673,10 +678,59 @@ void gormBark(Player player, String line) {
// ── Kalle: the lift ──────────────────────────────────────────────────────────────────────────────────────
+ /**
+ * What to do in Lullveins, in three sentences (2026-12-03, Robb and David stood on the Core Ring and did not know
+ * where to start): pillars, Heart, splinters to Gorm. Kalle says it on the first arrival, and again when asked;
+ * the same three steps are the Lullveins page of the Journal ({@link LullJournal}).
+ */
+ private static List loop(boolean german, boolean first) {
+ return german
+ ? List.of((first ? "Neues Gesicht! " : "") + "Kurzfassung: Bau Erz ab. Die Stimmen daraus bringen die sechs Säulen zum Klingen, drei oben im Himmel, drei unten in der Hölle.",
+ "Singen alle sechs, läutet Ysolde das Herz, und es wirft Lullsplitter ab.",
+ "Die Splitter bringst du zu Meister Gorm. Er baut dir einen Bohrer und macht ihn Stück für Stück stärker. Fang bei Ysolde an, im Osten auf dem Ring.")
+ : List.of((first ? "New face! " : "") + "Short version: mine ore. The voices in it make the six pillars sing, three up in Heaven, three down in Hell.",
+ "When all six sing, Ysolde rings the Heart, and it sheds Lull Splinters.",
+ "Take the splinters to Master Gorm. He builds you one drill and makes it stronger piece by piece. Start with Ysolde, east on the ring.");
+ }
+
+ /** The first arrival: Kalle, who stands right behind the landing, says the loop once. */
+ void welcome(Player player) {
+ if (player.getPersistentDataContainer().has(introKey, PersistentDataType.BYTE)) {
+ return;
+ }
+ if (lv.run().done(player) > 0) {
+ // Rang the Heart before this lesson existed: they know.
+ player.getPersistentDataContainer().set(introKey, PersistentDataType.BYTE, (byte) 1);
+ return;
+ }
+ Bukkit.getScheduler().runTaskLater(lv.plugin(), () -> {
+ if (player.isConnected() && lv.isLull(player.getWorld())
+ && !player.getPersistentDataContainer().has(introKey, PersistentDataType.BYTE)) {
+ greet(player);
+ }
+ }, 70L);
+ }
+
+ /** Kalle's three sentences and the note that points at the Journal page (also the admin's "intro" test). */
+ void greet(Player player) {
+ player.getPersistentDataContainer().set(introKey, PersistentDataType.BYTE, (byte) 1);
+ boolean german = LullText.de(player);
+ sayAll(player, Npc.KALLE, loop(german, true));
+ try {
+ HudNotes.show(player, BarChrome.Icon.CRYSTAL, LullText.c("§dLullveins"), NamedTextColor.LIGHT_PURPLE,
+ List.of(LullText.c(german ? "§7Steht auch im Journal:" : "§7It is in your Journal too:"),
+ LullText.c("§fAtlas §8› §fLullveins")), 240);
+ } catch (RuntimeException | LinkageError ignored) {
+ // no note without the pack-drawn HUD: Kalle answers the question any time
+ }
+ }
+
private Menu kalle(Player player) {
boolean de = LullText.de(player);
String opener = de ? "Kalle, Kurbel, Kette. In der Reihenfolge." : "Kalle, crank, chain. In that order.";
List topics = List.of(
+ new Topic("todo", "What do I do down here?", "Was mach ich hier unten?", NamedTextColor.YELLOW, true,
+ loop(false, false), loop(true, false)),
new Topic("ride", "How do I ride?", "Wie fahr ich?", NamedTextColor.YELLOW, false,
List.of("Click a board at the rail: up to Heaven, down to Hell. The crank does the rest. And me."),
List.of("Tafel am Geländer anklicken: hoch zum Himmel, runter zur Hölle. Den Rest macht die Kurbel. Und ich.")),
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullChip.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullChip.java
new file mode 100644
index 00000000..490b064f
--- /dev/null
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullChip.java
@@ -0,0 +1,42 @@
+package de.aetherion.mining.lullveins;
+
+import org.bukkit.entity.Player;
+
+/**
+ * The one small line top right, only in Lullveins (2026-12-03, Robb's playtest plan): the Lull Splinters the player
+ * carries and how many of the sixteen finds they have. It sits on the chip under the place plate, drawn by
+ * AetherionItems' HUD ({@code PlaceChip}); with an older Items jar, or without the pack-drawn HUD, there is no line
+ * and nothing else breaks.
+ */
+final class LullChip {
+
+ private static boolean missing;
+
+ private LullChip() {
+ }
+
+ static void show(Lullveins lv, Player player) {
+ if (missing || lv.items() == null || lv.finds() == null) {
+ return;
+ }
+ int splinters = LullItems.count(player, lv.items()::isSplinter);
+ int found = Integer.bitCount(lv.finds().mask(player) & 0xffff);
+ String line = splinters + " " + (LullText.de(player) ? "FUNDE " : "FINDS ") + found + "/" + LullFinds.COUNT;
+ try {
+ de.aetherion.items.hud.PlaceChip.set(player, line);
+ } catch (LinkageError older) {
+ missing = true;
+ }
+ }
+
+ static void clear(Player player) {
+ if (missing) {
+ return;
+ }
+ try {
+ de.aetherion.items.hud.PlaceChip.clear(player);
+ } catch (LinkageError older) {
+ missing = true;
+ }
+ }
+}
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullFinds.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullFinds.java
index 73230989..cca4c937 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullFinds.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullFinds.java
@@ -355,6 +355,16 @@ private void find(Player player, int i) {
String where = heaven ? LullText.t(player, "Heaven", "Himmel") : LullText.t(player, "Hell", "Hölle");
ActionBarLane.show(player, LullText.c((german ? "§dFundstück" : "§dFind") + " §8· §f" + district + "/8 §7" + where
+ (each > 0 ? " §8· §d+" + each + (german ? " Lullsplitter" : " Lull Splinters") : "")), 80);
+ if (all == 1) {
+ // The first one says what finds are for; after that the line top right keeps count.
+ int bundle = Math.max(0, lv.cfg().getInt("finds.splinters-set", 12));
+ LullText.say(player,
+ "§d✦ §7A find. There are §f16 §7in the mines, eight in Heaven and eight in Hell. Each gives Lull Splinters, all eight of one half §d"
+ + bundle + " §7more, all sixteen a §fdrill module§7. The count is top right.",
+ "§d✦ §7Ein Fundstück. In den Stollen liegen §f16§7, acht im Himmel und acht in der Hölle. Jedes gibt Lullsplitter, alle acht einer Hälfte §d"
+ + bundle + " §7dazu, alle sechzehn ein §fBohrer-Modul§7. Der Zähler steht oben rechts.");
+ }
+ LullChip.show(lv, player);
if (district == 8) {
int bundle = Math.max(0, lv.cfg().getInt("finds.splinters-set", 12));
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullForge.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullForge.java
index c289617f..1c9eae18 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullForge.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullForge.java
@@ -1,5 +1,7 @@
package de.aetherion.mining.lullveins;
+import de.aetherion.core.api.ChromePage;
+
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.TextDecoration;
@@ -19,6 +21,7 @@
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
+import org.bukkit.inventory.PlayerInventory;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.ArrayList;
@@ -60,13 +63,15 @@ record Cost(int splinters, Material m1, int n1, Material m2, int n2) {
new Cost(48, Material.NETHERITE_INGOT, 8, Material.EMERALD, 64),
};
- private static final int SLOT_DRILL = 13;
- private static final int SLOT_HEAD = 29;
- private static final int SLOT_MOTOR = 31;
- private static final int SLOT_TANK = 33;
- private static final int SLOT_MOD1 = 39;
- private static final int SLOT_MOD2 = 41;
- private static final int SLOT_CLOSE = 49;
+ private static final int SLOT_DRILL = 4;
+ private static final int SLOT_HEAD = 20;
+ private static final int SLOT_MOTOR = 22;
+ private static final int SLOT_TANK = 24;
+ private static final int SLOT_MOD1 = 30;
+ private static final int SLOT_MOD2 = 32;
+ private static final int SLOT_HELP = 45;
+ private static final int SLOT_SPLINTERS = 49;
+ private static final int SLOT_CLOSE = 53;
private final Lullveins lv;
/** Last forge click per player: one double-click must not buy two stages. */
@@ -85,124 +90,272 @@ public Inventory getInventory() {
}
}
+ private static String label(boolean german) {
+ return german ? "KERNSCHMIEDE" : "CORE FORGE";
+ }
+
+ /**
+ * The forge as a book page like the other menus of our own (2026-12-03, Robb's playtest plan): the drill on top,
+ * its three parts in one row with what each does now, what the next stage brings and what it costs, the two
+ * module slots under them, and along the bottom how the drill works, the splinters on the player and Close.
+ * Gorm works on the drill wherever it sits in the bag; it no longer has to be in the hand.
+ */
void open(Player player) {
- boolean de = LullText.de(player);
+ boolean german = LullText.de(player);
Holder holder = new Holder();
- Inventory inv = Bukkit.createInventory(holder, 54, LullText.c(de ? "§8Kernschmiede §7· Meister Gorm" : "§8Core Forge §7· Master Gorm"));
+ Inventory inv = Bukkit.createInventory(holder, 54, LullText.c(german ? "§8Kernschmiede" : "§8Core Forge"));
holder.inventory = inv;
draw(player, inv);
- player.openInventory(inv);
+ ChromePage.open(player, inv, ChromePage.Theme.FORGE, label(german));
player.playSound(player.getLocation(), Sound.BLOCK_SMITHING_TABLE_USE, SoundCategory.PLAYERS, 0.6f, 0.8f);
}
+ /** Where the player's drill sits: the hand first, else the first one in the bag; -1 without a drill. */
+ private int drillSlot(Player player) {
+ PlayerInventory bag = player.getInventory();
+ int hand = bag.getHeldItemSlot();
+ if (lv.items().isDrill(bag.getItem(hand))) {
+ return hand;
+ }
+ ItemStack[] contents = bag.getStorageContents();
+ for (int i = 0; i < contents.length; i++) {
+ if (lv.items().isDrill(contents[i])) {
+ return i;
+ }
+ }
+ // The off hand (slot 40) is no storage slot, but a drill held there is still the player's one drill.
+ return lv.items().isDrill(bag.getItemInOffHand()) ? 40 : -1;
+ }
+
private void draw(Player player, Inventory inv) {
- boolean de = LullText.de(player);
- ItemStack pane = icon(Material.GRAY_STAINED_GLASS_PANE, " ", List.of());
- ItemStack trim = icon(Material.PURPLE_STAINED_GLASS_PANE, " ", List.of());
+ boolean german = LullText.de(player);
+ ItemStack pane = ChromePage.spacer();
for (int i = 0; i < inv.getSize(); i++) {
- inv.setItem(i, i < 9 || i >= 45 ? trim : pane);
+ inv.setItem(i, pane);
}
- ItemStack hand = player.getInventory().getItemInMainHand();
- LullItems.Drill d = lv.items().read(hand);
+ int at = drillSlot(player);
+ ItemStack tool = at < 0 ? null : player.getInventory().getItem(at);
+ LullItems.Drill d = lv.items().read(tool);
int splinters = LullItems.count(player, lv.items()::isSplinter);
- inv.setItem(4, icon(Material.AMETHYST_SHARD, (de ? "§dLullsplitter: §f" : "§dLull Splinters: §f") + splinters,
- List.of(de ? "§7Aus dem Finale eines Resonanzlaufs." : "§7From the finale of a Resonance Run.")));
- inv.setItem(SLOT_CLOSE, icon(Material.BARRIER, de ? "§cSchließen" : "§cClose", List.of()));
+ inv.setItem(SLOT_SPLINTERS, icon(Material.AMETHYST_SHARD, (german ? "§dLullsplitter dabei: §f" : "§dLull Splinters on you: §f") + splinters,
+ german
+ ? List.of("§7Bezahlen jedes Teil des Bohrers.", "",
+ "§7Woher: §dYsolde §7läutet nach einem",
+ "§7Resonanzlauf das Herz (" + range() + "),",
+ "§7und jedes Fundstück in den Stollen.")
+ : List.of("§7They pay for every part of the drill.", "",
+ "§7From: §dYsolde §7rings the Heart after",
+ "§7a Resonance Run (" + range() + "),",
+ "§7and every find in the mines.")));
+ inv.setItem(SLOT_HELP, icon(Material.BOOK, german ? "§eSo funktioniert der Bohrer" : "§eHow the drill works", german
+ ? List.of("§7Ein Bohrer, der mit dir wächst. Er ist",
+ "§7ein Werkzeug wie deine Spitzhacke.",
+ "",
+ "§bKopf §7bestimmt, welches Erz bricht,",
+ "§7und wie viel herausfällt.",
+ "§bMotor §7macht das Abbauen schneller.",
+ "§bTank §7sammelt hier unten Resonanz.",
+ "§7Schleichen + Rechtsklick auf Erz:",
+ "§dAderstoß§7, die ganze Ader auf einmal.",
+ "§bModule §7fallen manchmal aus dem Herz",
+ "§7und geben dem Bohrer einen Kniff.")
+ : List.of("§7One drill that grows with you. It is",
+ "§7a tool like your pickaxe.",
+ "",
+ "§bHead §7decides which ore breaks, and",
+ "§7how much drops.",
+ "§bMotor §7makes mining faster.",
+ "§bTank §7gathers Resonance down here.",
+ "§7Sneak + right-click an ore:",
+ "§dVein Burst§7, the whole vein at once.",
+ "§bModules §7sometimes fall from the Heart",
+ "§7and give the drill a twist.")));
+ inv.setItem(SLOT_CLOSE, icon(Material.BARRIER, german ? "§cSchließen" : "§cClose", List.of()));
if (d == null) {
- boolean hasOne = false;
- for (ItemStack item : player.getInventory().getStorageContents()) {
- if (lv.items().isDrill(item)) {
- hasOne = true;
- break;
- }
- }
- if (hasOne) {
- inv.setItem(SLOT_DRILL, icon(Material.NETHERITE_PICKAXE, de ? "§bNimm deinen Lullbohrer in die Hand" : "§bHold your Lull Drill",
- List.of(de ? "§7Gorm arbeitet an dem Bohrer in deiner Hand." : "§7Gorm works on the drill in your hand.")));
- return;
- }
List lore = new ArrayList<>();
- lore.add(de ? "§7Ein Bohrer, der mit dir wächst." : "§7One drill that grows with you.");
- lore.add(de ? "§7Kopf I: §b110 §7Kraft, §6+20 §7Glück" : "§7Head I: §b110 §7power, §6+20 §7fortune");
+ lore.add(german ? "§7Ein Bohrer, der mit dir wächst." : "§7One drill that grows with you.");
+ lore.add((german ? "§7Kopf I: Kraft §b" : "§7Head I: power §b") + (int) LullItems.HEAD_POWER[1]
+ + (german ? "§7, Glück §6+" : "§7, fortune §6+") + (int) LullItems.HEAD_FORTUNE[1]);
+ lore.add("§8" + opens(1, german));
lore.add("");
- costLines(player, HEAD[1], lore, de);
+ costLines(player, HEAD[1], lore, german);
lore.add("");
- lore.add(de ? "§eKlick: schmieden" : "§eClick: forge it");
- inv.setItem(SLOT_DRILL, icon(Material.NETHERITE_PICKAXE, de ? "§b§lLullbohrer schmieden" : "§b§lForge a Lull Drill", lore));
+ lore.add(affords(player, HEAD[1]) ? (german ? "§eKlick: schmieden" : "§eClick: forge it")
+ : (german ? "§cDir fehlt noch etwas." : "§cYou are missing something."));
+ ItemStack build = icon(Material.NETHERITE_PICKAXE, german ? "§b§lLullbohrer schmieden" : "§b§lForge a Lull Drill", lore);
+ if (affords(player, HEAD[1])) {
+ glint(build);
+ }
+ inv.setItem(SLOT_DRILL, build);
+ String need = german ? "§7Erst den Bohrer schmieden (oben)." : "§7Forge the drill first (above).";
+ inv.setItem(SLOT_HEAD, icon(Material.GRAY_DYE, german ? "§8Kopf" : "§8Head", List.of(
+ german ? "§7Kraft und Glück." : "§7Power and fortune.", need)));
+ inv.setItem(SLOT_MOTOR, icon(Material.GRAY_DYE, "§8Motor", List.of(
+ german ? "§7Abbau-Tempo." : "§7Break speed.", need)));
+ inv.setItem(SLOT_TANK, icon(Material.GRAY_DYE, "§8Tank", List.of(
+ german ? "§7Resonanz und Aderstoß." : "§7Resonance and Vein Burst.", need)));
return;
}
- inv.setItem(SLOT_DRILL, hand.clone());
- inv.setItem(SLOT_HEAD, part(player, de ? "Kopf" : "Head", Material.NETHERITE_UPGRADE_SMITHING_TEMPLATE, d.head(), 5, HEAD,
- level -> (de ? "§7Kraft §b" : "§7Power §b") + (int) LullItems.HEAD_POWER[level] + (de ? " §7· Glück §6+" : " §7· Fortune §6+")
- + (int) LullItems.HEAD_FORTUNE[level]
- + (level == 3 ? (de ? " §7· 1. Modulplatz" : " §7· 1st module slot") : "")
- + (level == 5 ? (de ? " §7· 2. Modulplatz" : " §7· 2nd module slot") : "")));
- inv.setItem(SLOT_MOTOR, part(player, "Motor", Material.PISTON, d.motor(), 4, MOTOR,
- level -> (de ? "§7Abbau-Tempo §a+" : "§7Break speed §a+") + Math.round(LullItems.MOTOR_SPEED[level] * 100) + "%"));
- inv.setItem(SLOT_TANK, part(player, "Tank", Material.RESPAWN_ANCHOR, d.tank(), 3, TANK,
- level -> (de ? "§7Resonanz §d" : "§7Resonance §d") + LullItems.TANK_CAPACITY[level]
- + (de ? " §7· Aderstoß bis §f" : " §7· Vein Burst up to §f") + LullItems.TANK_BURST[level] + (de ? " §7Erze" : " §7ores")));
+ inv.setItem(SLOT_DRILL, tool.clone());
+ inv.setItem(SLOT_HEAD, part(player, german ? "Kopf" : "Head", german ? "Kraft und Glück" : "Power and fortune",
+ Material.NETHERITE_UPGRADE_SMITHING_TEMPLATE, d.head(), 5, HEAD,
+ level -> (german ? "Kraft §b" : "Power §b") + (int) LullItems.HEAD_POWER[level] + (german ? " §7· Glück §6+" : " §7· Fortune §6+")
+ + (int) LullItems.HEAD_FORTUNE[level],
+ level -> opens(level, german)));
+ inv.setItem(SLOT_MOTOR, part(player, "Motor", german ? "Abbau-Tempo" : "Break speed", Material.PISTON, d.motor(), 4, MOTOR,
+ level -> (german ? "Abbau-Tempo §a+" : "Break speed §a+") + Math.round(LullItems.MOTOR_SPEED[level] * 100) + "%",
+ level -> null));
+ inv.setItem(SLOT_TANK, part(player, "Tank", german ? "Resonanz und Aderstoß" : "Resonance and Vein Burst",
+ Material.RESPAWN_ANCHOR, d.tank(), 3, TANK,
+ level -> (german ? "Resonanz §d" : "Resonance §d") + LullItems.TANK_CAPACITY[level],
+ level -> (german ? "Aderstoß nimmt bis zu " : "Vein Burst takes up to ") + LullItems.TANK_BURST[level]
+ + (german ? " Erze" : " ores")));
inv.setItem(SLOT_MOD1, moduleSlot(player, d, 1));
inv.setItem(SLOT_MOD2, moduleSlot(player, d, 2));
}
- private ItemStack part(Player player, String name, Material material, int level, int max, Cost[] costs,
- java.util.function.IntFunction effect) {
- boolean de = LullText.de(player);
+ private String range() {
+ int min = Math.max(1, lv.cfg().getInt("run.splinters-min", 8));
+ int max = Math.max(min, lv.cfg().getInt("run.splinters-max", 12));
+ return min == max ? String.valueOf(min) : min + "–" + max;
+ }
+
+ /** What a head of this stage opens, in one line (the Mining Power gates of the Lullveins ore). */
+ private static String opens(int level, boolean german) {
+ return switch (level) {
+ case 1 -> german ? "Bricht Lapis, Diamant, Gold und Quarz." : "Breaks lapis, diamond, gold and quartz.";
+ case 2 -> german ? "Bricht jetzt auch Smaragd." : "Now breaks emerald too.";
+ case 3 -> german ? "Bricht Diamantblöcke · 1. Modulplatz." : "Breaks diamond blocks · 1st module slot.";
+ case 4 -> german ? "Bricht Netherit (Antiken Schrott)." : "Breaks netherite (ancient debris).";
+ default -> german ? "Bricht Netheritblöcke · 2. Modulplatz." : "Breaks netherite blocks · 2nd module slot.";
+ };
+ }
+
+ private static String pips(int level, int max) {
+ return "§b" + "▮".repeat(Math.max(0, level)) + "§8" + "▯".repeat(Math.max(0, max - level));
+ }
+
+ private ItemStack part(Player player, String name, String what, Material material, int level, int max, Cost[] costs,
+ java.util.function.IntFunction effect, java.util.function.IntFunction extra) {
+ boolean german = LullText.de(player);
List lore = new ArrayList<>();
- lore.add((de ? "§7Stufe: §f" : "§7Stage: §f") + (level > 0 ? LullItems.ROMAN[level] : "–") + "§8/" + LullItems.ROMAN[max]);
+ lore.add("§8" + what);
+ lore.add("");
if (level > 0) {
- lore.add(effect.apply(level));
+ lore.add((german ? "§fJetzt: §7" : "§fNow: §7") + effect.apply(level));
+ String more = extra.apply(level);
+ if (more != null) {
+ lore.add("§8" + more);
+ }
+ } else {
+ lore.add(german ? "§8Noch nicht eingebaut." : "§8Not fitted yet.");
}
lore.add("");
+ boolean can = false;
if (level >= max) {
- lore.add(de ? "§aFertig ausgebaut." : "§aFully built.");
+ lore.add(german ? "§a✔ Fertig ausgebaut." : "§a✔ Fully built.");
} else {
- lore.add((de ? "§7Nächste Stufe §f" : "§7Next stage §f") + LullItems.ROMAN[level + 1] + "§7:");
- lore.add(effect.apply(level + 1));
+ lore.add((german ? "§fStufe " : "§fStage ") + LullItems.ROMAN[level + 1] + ": §7" + effect.apply(level + 1));
+ String more = extra.apply(level + 1);
+ if (more != null) {
+ lore.add("§8" + more);
+ }
lore.add("");
- costLines(player, costs[level + 1], lore, de);
+ costLines(player, costs[level + 1], lore, german);
lore.add("");
- lore.add(de ? "§eKlick: ausbauen" : "§eClick: upgrade");
+ can = affords(player, costs[level + 1]);
+ lore.add(can ? (german ? "§eKlick: ausbauen" : "§eClick: upgrade") : (german ? "§cDir fehlt noch etwas." : "§cYou are missing something."));
}
- return icon(material, "§b§l" + name + (level > 0 ? " " + LullItems.ROMAN[level] : ""), lore);
+ ItemStack item = icon(material, "§b§l" + name + (level > 0 ? " §f" + LullItems.ROMAN[level] : "") + " " + pips(level, max), lore);
+ if (can) {
+ glint(item);
+ }
+ return item;
}
private ItemStack moduleSlot(Player player, LullItems.Drill d, int slot) {
- boolean de = LullText.de(player);
+ boolean german = LullText.de(player);
int unlock = slot == 1 ? 3 : 5;
if (d.head() < unlock) {
- return icon(Material.BLACK_STAINED_GLASS_PANE, de ? "§8Modulplatz " + slot + " (gesperrt)" : "§8Module slot " + slot + " (locked)",
- List.of(de ? "§7Öffnet mit Kopf " + LullItems.ROMAN[unlock] + "." : "§7Opens with Head " + LullItems.ROMAN[unlock] + "."));
+ return icon(Material.IRON_BARS, german ? "§8Modulplatz " + slot + " (gesperrt)" : "§8Module slot " + slot + " (locked)",
+ List.of(german ? "§7Öffnet mit Kopf " + LullItems.ROMAN[unlock] + "." : "§7Opens with Head " + LullItems.ROMAN[unlock] + "."));
}
LullItems.Module m = LullItems.Module.byId(slot == 1 ? d.mod1() : d.mod2());
if (m == null) {
List lore = new ArrayList<>();
- lore.add(de ? "§7Module fallen manchmal aus dem Herz." : "§7Modules sometimes fall from the Heart.");
+ lore.add(german ? "§7Module fallen manchmal aus dem Herz," : "§7Modules sometimes fall from the Heart,");
+ lore.add(german ? "§7eins gibt es für alle 16 Fundstücke." : "§7and one is the prize for all 16 finds.");
lore.add("");
- lore.add(de ? "§eKlick: erstes Modul aus deinem Inventar einbauen" : "§eClick: fit the first module from your inventory");
- return icon(Material.LIGHT_GRAY_STAINED_GLASS_PANE, de ? "§7Freier Modulplatz " + slot : "§7Empty module slot " + slot, lore);
+ List carried = new ArrayList<>();
+ for (ItemStack item : player.getInventory().getStorageContents()) {
+ LullItems.Module have = lv.items().moduleOf(item);
+ if (have != null && !d.has(have)) {
+ String line = have.color + "◆ " + have.name(german) + " §8· §7" + have.effect(german);
+ if (!carried.contains(line)) {
+ carried.add(line);
+ }
+ }
+ }
+ if (carried.isEmpty()) {
+ lore.add(german ? "§8Du hast gerade kein passendes Modul dabei." : "§8You carry no module that fits right now.");
+ } else {
+ lore.add(german ? "§fIn deiner Tasche:" : "§fIn your bag:");
+ lore.addAll(carried);
+ lore.add("");
+ lore.add(german ? "§eKlick: das erste davon einbauen" : "§eClick: fit the first of them");
+ }
+ ItemStack empty = icon(Material.ITEM_FRAME, german ? "§7Freier Modulplatz " + slot : "§7Empty module slot " + slot, lore);
+ if (!carried.isEmpty()) {
+ glint(empty);
+ }
+ return empty;
}
- return icon(m.icon, m.color + "§l" + m.name(de), List.of("§a" + m.effect(de), "",
- de ? "§eKlick: ausbauen (zurück ins Inventar)" : "§eClick: take it out (back to your inventory)"));
+ return icon(m.icon, m.color + "§l" + m.name(german), List.of(
+ (german ? "§8Modulplatz " : "§8Module slot ") + slot, "",
+ "§a" + m.effect(german), "",
+ german ? "§eKlick: ausbauen (zurück in die Tasche)" : "§eClick: take it out (back to your bag)"));
}
- private void costLines(Player player, Cost cost, List lore, boolean de) {
- lore.add(de ? "§7Kosten:" : "§7Cost:");
+ private void costLines(Player player, Cost cost, List lore, boolean german) {
+ lore.add(german ? "§7Kosten:" : "§7Cost:");
int splinters = LullItems.count(player, lv.items()::isSplinter);
- lore.add(mark(splinters >= cost.splinters()) + "§d" + cost.splinters() + (de ? " Lullsplitter" : " Lull Splinters"));
+ lore.add(costLine(splinters, cost.splinters(), "§d", german ? "Lullsplitter" : "Lull Splinters", german));
if (cost.m1() != null) {
- int have = LullItems.count(player, LullItems.plain(cost.m1()));
- lore.add(mark(have >= cost.n1()) + "§f" + cost.n1() + " " + LullItems.pretty(cost.m1(), de));
+ lore.add(costLine(LullItems.count(player, LullItems.plain(cost.m1())), cost.n1(), "§f", LullItems.pretty(cost.m1(), german), german));
}
if (cost.m2() != null) {
- int have = LullItems.count(player, LullItems.plain(cost.m2()));
- lore.add(mark(have >= cost.n2()) + "§f" + cost.n2() + " " + LullItems.pretty(cost.m2(), de));
+ lore.add(costLine(LullItems.count(player, LullItems.plain(cost.m2())), cost.n2(), "§f", LullItems.pretty(cost.m2(), german), german));
+ }
+ }
+
+ /** "✔ 32 Diamond" when it is there, "✘ 32 Diamond (you have 12)" when it is not. */
+ private static String costLine(int have, int need, String color, String what, boolean german) {
+ if (have >= need) {
+ return "§a✔ " + color + need + " " + what;
}
+ return "§c✘ " + color + need + " " + what + " §8(" + (german ? "du hast " : "you have ") + have + ")";
}
- private static String mark(boolean ok) {
- return ok ? "§a✔ " : "§c✘ ";
+ /** What is still missing for {@code cost}, as "12 Lull Splinters, 20 Diamond". */
+ private String missing(Player player, Cost cost, boolean german) {
+ List out = new ArrayList<>();
+ int splinters = LullItems.count(player, lv.items()::isSplinter);
+ if (splinters < cost.splinters()) {
+ out.add((cost.splinters() - splinters) + (german ? " Lullsplitter" : " Lull Splinters"));
+ }
+ if (cost.m1() != null) {
+ int have = LullItems.count(player, LullItems.plain(cost.m1()));
+ if (have < cost.n1()) {
+ out.add((cost.n1() - have) + " " + LullItems.pretty(cost.m1(), german));
+ }
+ }
+ if (cost.m2() != null) {
+ int have = LullItems.count(player, LullItems.plain(cost.m2()));
+ if (have < cost.n2()) {
+ out.add((cost.n2() - have) + " " + LullItems.pretty(cost.m2(), german));
+ }
+ }
+ return String.join(", ", out);
}
private boolean affords(Player player, Cost cost) {
@@ -246,25 +399,20 @@ public void onClick(InventoryClickEvent event) {
if (before != null && now - before < 300L) {
return;
}
- boolean de = LullText.de(player);
- ItemStack hand = player.getInventory().getItemInMainHand();
- LullItems.Drill d = lv.items().read(hand);
+ boolean german = LullText.de(player);
+ int at = drillSlot(player);
+ LullItems.Drill d = at < 0 ? null : lv.items().read(player.getInventory().getItem(at));
if (slot == SLOT_DRILL && d == null) {
- for (ItemStack item : player.getInventory().getStorageContents()) {
- if (lv.items().isDrill(item)) {
- return;
- }
- }
if (!affords(player, HEAD[1])) {
- deny(player);
+ deny(player, HEAD[1]);
return;
}
pay(player, HEAD[1]);
- ItemStack drill = lv.items().newDrill(de);
+ ItemStack drill = lv.items().newDrill(german);
Map left = player.getInventory().addItem(drill);
left.values().forEach(rest -> player.getWorld().dropItem(player.getLocation(), rest));
- forged(player, de ? "§bDein Lullbohrer ist fertig." : "§bYour Lull Drill is ready.");
- lv.cast().gormBark(player, de ? "Da. Halt ihn fest, er zieht nach links." : "There. Hold it tight, it pulls to the left.");
+ forged(player, german ? "§bDein Lullbohrer ist fertig." : "§bYour Lull Drill is ready.");
+ lv.cast().gormBark(player, german ? "Da. Halt ihn fest, er zieht nach links." : "There. Hold it tight, it pulls to the left.");
redraw(player, event.getInventory());
return;
}
@@ -275,29 +423,29 @@ public void onClick(InventoryClickEvent event) {
if (slot == SLOT_HEAD && d.head() < 5) {
Cost cost = HEAD[d.head() + 1];
if (!affords(player, cost)) {
- deny(player);
+ deny(player, cost);
return;
}
pay(player, cost);
- next = new LullItems.Drill(d.head() + 1, d.motor(), d.tank(), d.mod1(), d.mod2(), 0);
+ next = new LullItems.Drill(d.head() + 1, d.motor(), d.tank(), d.mod1(), d.mod2(), d.resonance());
} else if (slot == SLOT_MOTOR && d.motor() < 4) {
Cost cost = MOTOR[d.motor() + 1];
if (!affords(player, cost)) {
- deny(player);
+ deny(player, cost);
return;
}
pay(player, cost);
- next = new LullItems.Drill(d.head(), d.motor() + 1, d.tank(), d.mod1(), d.mod2(), 0);
+ next = new LullItems.Drill(d.head(), d.motor() + 1, d.tank(), d.mod1(), d.mod2(), d.resonance());
} else if (slot == SLOT_TANK && d.tank() < 3) {
Cost cost = TANK[d.tank() + 1];
if (!affords(player, cost)) {
- deny(player);
+ deny(player, cost);
return;
}
pay(player, cost);
- next = new LullItems.Drill(d.head(), d.motor(), d.tank() + 1, d.mod1(), d.mod2(), 0);
+ next = new LullItems.Drill(d.head(), d.motor(), d.tank() + 1, d.mod1(), d.mod2(), d.resonance());
} else if ((slot == SLOT_MOD1 || slot == SLOT_MOD2) && d.slots() >= (slot == SLOT_MOD1 ? 1 : 2)) {
- next = swapModule(player, d, slot == SLOT_MOD1 ? 1 : 2, de);
+ next = swapModule(player, d, slot == SLOT_MOD1 ? 1 : 2, german);
if (next == null) {
return;
}
@@ -305,22 +453,23 @@ public void onClick(InventoryClickEvent event) {
if (next == null) {
return;
}
- // The hand may have changed since the click began: write onto the item that is there now.
- ItemStack inHand = player.getInventory().getItemInMainHand();
- if (!lv.items().isDrill(inHand)) {
+ // Paying may have moved things: write onto the drill where it sits now.
+ int now2 = drillSlot(player);
+ ItemStack tool = now2 < 0 ? null : player.getInventory().getItem(now2);
+ if (!lv.items().isDrill(tool)) {
return;
}
- lv.items().write(inHand, next, de);
- player.getInventory().setItemInMainHand(inHand);
- forged(player, de ? "§bGorm hämmert. §7Der Bohrer summt tiefer." : "§bGorm hammers. §7The drill hums lower.");
+ lv.items().write(tool, next, german);
+ player.getInventory().setItem(now2, tool);
+ forged(player, german ? "§bGorm hämmert. §7Der Bohrer summt tiefer." : "§bGorm hammers. §7The drill hums lower.");
redraw(player, event.getInventory());
}
- private LullItems.Drill swapModule(Player player, LullItems.Drill d, int slot, boolean de) {
+ private LullItems.Drill swapModule(Player player, LullItems.Drill d, int slot, boolean german) {
String current = slot == 1 ? d.mod1() : d.mod2();
LullItems.Module fitted = LullItems.Module.byId(current);
if (fitted != null) {
- Map left = player.getInventory().addItem(lv.items().module(fitted, de));
+ Map left = player.getInventory().addItem(lv.items().module(fitted, german));
left.values().forEach(rest -> player.getWorld().dropItem(player.getLocation(), rest));
return slot == 1
? new LullItems.Drill(d.head(), d.motor(), d.tank(), "", d.mod2(), 0)
@@ -342,7 +491,7 @@ private LullItems.Drill swapModule(Player player, LullItems.Drill d, int slot, b
: new LullItems.Drill(d.head(), d.motor(), d.tank(), d.mod1(), m.id, 0);
}
LullText.say(player, "§7No module in your inventory (or it's already fitted).", "§7Kein Modul im Inventar (oder es steckt schon drin).");
- deny(player);
+ player.playSound(player.getLocation(), Sound.BLOCK_NOTE_BLOCK_BASS, SoundCategory.PLAYERS, 0.7f, 0.6f);
return null;
}
@@ -352,14 +501,22 @@ private void forged(Player player, String line) {
player.sendMessage(LullText.c(line));
}
- private void deny(Player player) {
+ /** Not enough: a low note, and Gorm's word on what is missing (the tile lists it too). */
+ private void deny(Player player, Cost cost) {
player.playSound(player.getLocation(), Sound.BLOCK_NOTE_BLOCK_BASS, SoundCategory.PLAYERS, 0.7f, 0.6f);
+ boolean german = LullText.de(player);
+ String missing = missing(player, cost, german);
+ if (!missing.isEmpty()) {
+ LullText.say(player, "§6Master Gorm §8» §7Not yet. Still missing: §f" + missing + "§7.",
+ "§6Meister Gorm §8» §7Noch nicht. Es fehlen: §f" + missing + "§7.");
+ }
}
private void redraw(Player player, Inventory inv) {
Bukkit.getScheduler().runTask(lv.plugin(), () -> {
if (player.isOnline() && player.getOpenInventory().getTopInventory() == inv) {
draw(player, inv);
+ ChromePage.retitle(player, ChromePage.Theme.FORGE, label(LullText.de(player)));
}
});
}
@@ -405,4 +562,10 @@ private static ItemStack icon(Material material, String name, List lore)
item.setItemMeta(meta);
return item;
}
+
+ private static void glint(ItemStack item) {
+ ItemMeta meta = item.getItemMeta();
+ meta.setEnchantmentGlintOverride(true);
+ item.setItemMeta(meta);
+ }
}
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullItems.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullItems.java
index b6e3724b..1aee3d94 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullItems.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullItems.java
@@ -141,6 +141,14 @@ int burstCost() {
this.lang = new NamespacedKey(plugin, "lull_lang");
}
+ /**
+ * The mark of an item's wording: the language and the wording's version. A new version makes {@link #speak}
+ * rewrite what players already carry, so old and new splinters read (and stack) the same.
+ */
+ private static String written(boolean de) {
+ return (de ? "de" : "en") + "2";
+ }
+
/**
* The same item written in the reader's language, or null when it is not a Lullveins item or already reads
* right. Names and lore are written once, in the language of whoever earned the item; a splinter a German
@@ -152,7 +160,7 @@ ItemStack inLanguage(ItemStack item, boolean de) {
return null;
}
String has = item.getItemMeta().getPersistentDataContainer().get(lang, PersistentDataType.STRING);
- if ((de ? "de" : "en").equals(has)) {
+ if (written(de).equals(has)) {
return null;
}
if (k.equals("splinter")) {
@@ -186,14 +194,21 @@ ItemStack splinters(int amount, boolean de) {
ItemMeta meta = item.getItemMeta();
meta.displayName(LullText.c(de ? "§d§lLullsplitter" : "§d§lLull Splinter").decoration(
net.kyori.adventure.text.format.TextDecoration.ITALIC, false));
+ // What it is for comes first (2026-12-03, Robb: every item says its use on the item).
meta.lore(lore(de
- ? List.of("§7Ein Splitter des Lullherzens.", "§7Noch warm. Er summt leise.", "",
- "§8Für die Kernschmiede auf dem Kernring.")
- : List.of("§7A splinter of the Lullheart.", "§7Still warm. It hums softly.", "",
- "§8For the Core Forge on the Core Ring.")));
+ ? List.of("§8Lullveins · Währung der Kernschmiede", "",
+ "§7Bezahlt jedes Teil deines §bLullbohrers§7:",
+ "§7Kopf, Motor und Tank bei §6Meister Gorm",
+ "§7(Kernring, Süden).", "",
+ "§8Woher: das Herz läuten, Fundstücke.")
+ : List.of("§8Lullveins · the Core Forge's currency", "",
+ "§7Pays for every part of your §bLull Drill§7:",
+ "§7head, motor and tank at §6Master Gorm's",
+ "§7(Core Ring, south).", "",
+ "§8From: ringing the Heart, finds.")));
meta.setEnchantmentGlintOverride(true);
meta.getPersistentDataContainer().set(kind, PersistentDataType.STRING, "splinter");
- meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, de ? "de" : "en");
+ meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, written(de));
item.setItemMeta(meta);
return item;
}
@@ -209,16 +224,23 @@ ItemStack module(Module module, boolean de) {
ItemMeta meta = item.getItemMeta();
meta.displayName(LullText.c(module.color + "§l" + module.name(de)).decoration(
net.kyori.adventure.text.format.TextDecoration.ITALIC, false));
- meta.lore(lore(List.of(
- de ? "§8Lullbohrer-Modul" : "§8Lull Drill module",
- "",
- "§a" + module.effect(de),
- "",
- de ? "§7Einbauen: Meister Gorm, Kernschmiede." : "§7Fit it: Master Gorm, Core Forge.")));
+ meta.lore(lore(de
+ ? List.of("§8Lullveins · Bohrer-Modul", "",
+ "§a" + module.effect(true), "",
+ "§7Kommt in einen Modulplatz deines",
+ "§bLullbohrers §7(frei ab Kopf III und V).",
+ "§7Einbauen und wieder ausbauen:",
+ "§6Meister Gorm§7, Kernring, Süden.")
+ : List.of("§8Lullveins · drill module", "",
+ "§a" + module.effect(false), "",
+ "§7Goes into a module slot of your",
+ "§bLull Drill §7(open from Head III and V).",
+ "§7Fit it and take it out again:",
+ "§6Master Gorm§7, Core Ring, south.")));
meta.setEnchantmentGlintOverride(true);
meta.setMaxStackSize(1);
meta.getPersistentDataContainer().set(kind, PersistentDataType.STRING, "module:" + module.id);
- meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, de ? "de" : "en");
+ meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, written(de));
item.setItemMeta(meta);
return item;
}
@@ -321,8 +343,9 @@ void refresh(ItemStack item, boolean de) {
}
lines.add("");
lines.add(de ? "§8Resonanz lädt nur in Lullveins." : "§8Resonance only charges in Lullveins.");
+ lines.add(de ? "§8Ausbauen: Meister Gorm, mit Lullsplittern." : "§8Upgrade: Master Gorm, with Lull Splinters.");
meta.lore(lore(lines));
- meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, de ? "de" : "en");
+ meta.getPersistentDataContainer().set(lang, PersistentDataType.STRING, written(de));
item.setItemMeta(meta);
}
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullJournal.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullJournal.java
new file mode 100644
index 00000000..4c3a4de5
--- /dev/null
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullJournal.java
@@ -0,0 +1,279 @@
+package de.aetherion.mining.lullveins;
+
+import de.aetherion.core.api.ChromePage;
+
+import net.kyori.adventure.text.Component;
+import net.kyori.adventure.text.format.TextDecoration;
+
+import org.bukkit.Bukkit;
+import org.bukkit.Material;
+import org.bukkit.Sound;
+import org.bukkit.SoundCategory;
+import org.bukkit.entity.Player;
+import org.bukkit.event.EventHandler;
+import org.bukkit.event.Listener;
+import org.bukkit.event.inventory.InventoryClickEvent;
+import org.bukkit.event.inventory.InventoryDragEvent;
+import org.bukkit.inventory.Inventory;
+import org.bukkit.inventory.InventoryHolder;
+import org.bukkit.inventory.ItemFlag;
+import org.bukkit.inventory.ItemStack;
+import org.bukkit.inventory.meta.ItemMeta;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * The Lullveins page of the Journal (Atlas › Lullveins, {@code /lullveins journal}): what to do down here in three
+ * steps, with where the player stands on each, and under them the finds, what the ore is for and the way around. It
+ * says the same as Kalle on the first arrival ({@link LullCast#welcome}); nothing on it is clickable but Close.
+ */
+final class LullJournal implements Listener {
+
+ private static final int SLOT_STEP1 = 11;
+ private static final int SLOT_STEP2 = 13;
+ private static final int SLOT_STEP3 = 15;
+ private static final int SLOT_FINDS = 29;
+ private static final int SLOT_ORE = 31;
+ private static final int SLOT_WAYS = 33;
+ private static final int SLOT_CLOSE = 49;
+
+ private final Lullveins lv;
+
+ LullJournal(Lullveins lv) {
+ this.lv = lv;
+ }
+
+ private static final class Holder implements InventoryHolder {
+ private Inventory inventory;
+
+ @Override
+ public Inventory getInventory() {
+ return inventory;
+ }
+ }
+
+ void open(Player player) {
+ boolean german = LullText.de(player);
+ Holder holder = new Holder();
+ Inventory inv = Bukkit.createInventory(holder, 54, LullText.c("§8Lullveins"));
+ holder.inventory = inv;
+ ItemStack pane = ChromePage.spacer();
+ for (int i = 0; i < inv.getSize(); i++) {
+ inv.setItem(i, pane);
+ }
+ LullRun run = lv.run();
+ int need = run.perPillar();
+ int runs = run.done(player);
+
+ // 1 · the pillars
+ List one = new ArrayList<>(german
+ ? List.of("§7Starte bei §dYsolde §7einen Resonanzlauf",
+ "§7(Herz-Pult, Osten auf dem Kernring).",
+ "§7Bau Erz ab: Manchmal springt eine",
+ "§7Stimme heraus. Jede Säule nimmt §f" + need,
+ "§7Stimmen aus ihrer Hälfte: drei Säulen",
+ "§7im §bHimmel§7, drei in der §6Hölle§7.")
+ : List.of("§7Start a Resonance Run with §dYsolde",
+ "§7(Heart's console, east on the Core Ring).",
+ "§7Mine ore: now and then a voice jumps",
+ "§7out. Each pillar takes §f" + need + " §7voices",
+ "§7from its half: three pillars in",
+ "§bHeaven§7, three in §6Hell§7."));
+ one.add("");
+ if (run.complete(player)) {
+ one.add(german ? "§a✔ Alle sechs singen." : "§a✔ All six sing.");
+ } else if (run.active(player)) {
+ int mask = run.pillars(player);
+ one.add((german ? "§fJetzt: §d" : "§fNow: §d") + Integer.bitCount(mask & 0b111111) + "/6 "
+ + (german ? "§7Säulen" : "§7pillars"));
+ one.add((german ? "§bHimmel §f" : "§bHeaven §f") + Integer.bitCount(mask & 0b000111) + "/3 §8(" + run.voices(player, true)
+ + "♪) " + (german ? "§6Hölle §f" : "§6Hell §f") + Integer.bitCount(mask & 0b111000) + "/3 §8(" + run.voices(player, false) + "♪)");
+ } else {
+ one.add(german ? "§8Kein Lauf aktiv." : "§8No run active.");
+ }
+ inv.setItem(SLOT_STEP1, icon(Material.AMETHYST_CLUSTER,
+ german ? "§d§l1 §8· §dSäulen zum Klingen bringen" : "§d§l1 §8· §dMake the pillars sing", one, run.active(player) && !run.complete(player)));
+
+ // 2 · the Heart
+ int min = Math.max(1, lv.cfg().getInt("run.splinters-min", 8));
+ int max = Math.max(min, lv.cfg().getInt("run.splinters-max", 12));
+ List two = new ArrayList<>(german
+ ? List.of("§7Singen alle sechs, geh zurück zu",
+ "§dYsolde§7. Sie läutet das Herz, und es",
+ "§7wirft §d" + min + " bis " + max + " Lullsplitter §7ab, dazu",
+ "§7Münzen, Bergbau-EP und manchmal",
+ "§7ein Bohrer-Modul.")
+ : List.of("§7When all six sing, go back to",
+ "§dYsolde§7. She rings the Heart, and it",
+ "§7sheds §d" + min + " to " + max + " Lull Splinters§7, plus",
+ "§7coins, Mining XP and sometimes",
+ "§7a drill module."));
+ two.add("");
+ two.add((german ? "§fGeläutet: §d" : "§fRung: §d") + runs + (german ? "§7-mal" : (runs == 1 ? " §7time" : " §7times")));
+ inv.setItem(SLOT_STEP2, icon(Material.BELL,
+ german ? "§d§l2 §8· §dDas Herz läuten" : "§d§l2 §8· §dRing the Heart", two, run.complete(player)));
+
+ // 3 · splinters to Gorm
+ int splinters = LullItems.count(player, lv.items()::isSplinter);
+ List three = new ArrayList<>(german
+ ? List.of("§7Die Splitter bringst du zu §6Meister",
+ "§6Gorm §7(Kernschmiede, Süden auf dem",
+ "§7Kernring). Er baut dir §feinen §7Bohrer",
+ "§7und macht ihn Stück für Stück stärker:",
+ "§7Kopf (Kraft), Motor (Tempo), Tank",
+ "§7(Aderstoß) und zwei Modulplätze.")
+ : List.of("§7Take the splinters to §6Master Gorm",
+ "§7(Core Forge, south on the Core Ring).",
+ "§7He builds you §fone §7drill and makes it",
+ "§7stronger piece by piece: head (power),",
+ "§7motor (speed), tank (Vein Burst) and",
+ "§7two module slots."));
+ three.add("");
+ three.add((german ? "§fLullsplitter dabei: §d" : "§fLull Splinters on you: §d") + splinters);
+ LullItems.Drill drill = drillOf(player);
+ if (drill == null) {
+ LullForge.Cost first = LullForge.HEAD[1];
+ three.add((german ? "§8Noch kein Bohrer. Der erste kostet " : "§8No drill yet. The first costs ") + first.splinters()
+ + (german ? " Splitter" : " splinters"));
+ three.add("§8" + (german ? "und " : "and ") + first.n1() + " " + LullItems.pretty(first.m1(), german) + ".");
+ } else {
+ three.add((german ? "§fBohrer: §7Kopf §b" : "§fDrill: §7Head §b") + LullItems.ROMAN[drill.head()]
+ + " §7Motor §b" + (drill.motor() > 0 ? LullItems.ROMAN[drill.motor()] : "–")
+ + " §7Tank §b" + (drill.tank() > 0 ? LullItems.ROMAN[drill.tank()] : "–"));
+ }
+ inv.setItem(SLOT_STEP3, icon(Material.NETHERITE_PICKAXE,
+ german ? "§d§l3 §8· §dSplitter zu Gorm" : "§d§l3 §8· §dSplinters to Gorm", three, false));
+
+ // finds
+ int mask = lv.finds().mask(player);
+ int up = Integer.bitCount(mask & 0xff);
+ int down = Integer.bitCount((mask >>> 8) & 0xff);
+ int each = Math.max(0, lv.cfg().getInt("finds.splinters-each", 2));
+ int set = Math.max(0, lv.cfg().getInt("finds.splinters-set", 12));
+ List finds = new ArrayList<>(german
+ ? List.of("§7Was die alten Lullknappen in den",
+ "§7Stollen liegen ließen: acht im Himmel,",
+ "§7acht in der Hölle. Rechtsklick hebt",
+ "§7eins auf. In der Nähe klingt es leise.",
+ "",
+ "§7Jedes gibt §d" + each + " Lullsplitter§7, alle acht",
+ "§7einer Hälfte §d" + set + " §7dazu, alle sechzehn",
+ "§7ein §fBohrer-Modul§7.")
+ : List.of("§7What the old Lull miners left in the",
+ "§7mines: eight in Heaven, eight in Hell.",
+ "§7Right-click picks one up. Close by,",
+ "§7it chimes softly.",
+ "",
+ "§7Each gives §d" + each + " Lull Splinters§7, all eight",
+ "§7of one half §d" + set + " §7more, all sixteen",
+ "§7a §fdrill module§7."));
+ finds.add("");
+ finds.add((german ? "§bHimmel §f" : "§bHeaven §f") + up + "/8 " + (german ? "§6Hölle §f" : "§6Hell §f") + down + "/8");
+ inv.setItem(SLOT_FINDS, icon(Material.LANTERN,
+ (german ? "§eFundstücke §f" : "§eFinds §f") + (up + down) + "§8/§f" + LullFinds.COUNT, finds, false));
+
+ // what the ore is for
+ inv.setItem(SLOT_ORE, icon(Material.DIAMOND, german ? "§bWofür das Erz gut ist" : "§bWhat the ore is for", german
+ ? List.of("§bHimmel: §7Lapis, Diamant, Smaragd,",
+ "§7tief unten Diamantblöcke.",
+ "§6Hölle: §7Gold, Quarz, Netherit,",
+ "§7tief unten Netheritblöcke.",
+ "",
+ "§7Gorm nimmt genau das, zusammen mit",
+ "§7Splittern, für jede Bohrer-Stufe.",
+ "§7Je seltener das Erz, desto öfter",
+ "§7springt im Lauf eine Stimme heraus.")
+ : List.of("§bHeaven: §7lapis, diamond, emerald,",
+ "§7deep down diamond blocks.",
+ "§6Hell: §7gold, quartz, netherite,",
+ "§7deep down netherite blocks.",
+ "",
+ "§7Gorm takes exactly these, together",
+ "§7with splinters, for every drill stage.",
+ "§7The rarer the ore, the more often a",
+ "§7voice jumps out during a run."), false));
+
+ // getting around
+ inv.setItem(SLOT_WAYS, icon(Material.CHAIN, german ? "§eWege" : "§eGetting around", german
+ ? List.of("§eKurbel-Kalles §7Aufzug fährt zwischen",
+ "§7Kernring, Himmel und Hölle: Tafel am",
+ "§7Geländer anklicken.",
+ "§7In jeder Hälfte führen vier Tore in",
+ "§7die Stollen, drei Sohlen tief.",
+ "",
+ "§7Hier unten gibt es keinen Fallschaden.",
+ "§d/lullveins leave §7bringt dich nach oben.")
+ : List.of("§eCrank Kalle's §7lift runs between the",
+ "§7Core Ring, Heaven and Hell: click a",
+ "§7board at the rail.",
+ "§7In each half four gates lead into the",
+ "§7mines, three levels deep.",
+ "",
+ "§7There is no fall damage down here.",
+ "§d/lullveins leave §7takes you back up."), false));
+
+ inv.setItem(SLOT_CLOSE, icon(Material.BARRIER, german ? "§cSchließen" : "§cClose", List.of(), false));
+ ChromePage.open(player, inv, ChromePage.Theme.MINE, "LULLVEINS");
+ player.playSound(player.getLocation(), Sound.ITEM_BOOK_PAGE_TURN, SoundCategory.PLAYERS, 0.7f, 1.0f);
+ }
+
+ /** The player's drill: the one in hand, else the first in the bag. */
+ private LullItems.Drill drillOf(Player player) {
+ LullItems.Drill held = lv.items().read(player.getInventory().getItemInMainHand());
+ if (held != null) {
+ return held;
+ }
+ for (ItemStack item : player.getInventory().getStorageContents()) {
+ LullItems.Drill d = lv.items().read(item);
+ if (d != null) {
+ return d;
+ }
+ }
+ return null;
+ }
+
+ void closeAll() {
+ for (Player player : Bukkit.getOnlinePlayers()) {
+ if (player.getOpenInventory().getTopInventory().getHolder() instanceof Holder) {
+ player.closeInventory();
+ }
+ }
+ }
+
+ @EventHandler
+ public void onClick(InventoryClickEvent event) {
+ if (!(event.getView().getTopInventory().getHolder() instanceof Holder)) {
+ return;
+ }
+ event.setCancelled(true);
+ if (event.getWhoClicked() instanceof Player player && event.getClickedInventory() == event.getView().getTopInventory()
+ && event.getRawSlot() == SLOT_CLOSE) {
+ player.closeInventory();
+ }
+ }
+
+ @EventHandler
+ public void onDrag(InventoryDragEvent event) {
+ if (event.getView().getTopInventory().getHolder() instanceof Holder) {
+ event.setCancelled(true);
+ }
+ }
+
+ private static ItemStack icon(Material material, String name, List lore, boolean glow) {
+ ItemStack item = new ItemStack(material);
+ ItemMeta meta = item.getItemMeta();
+ meta.displayName(LullText.c(name).decoration(TextDecoration.ITALIC, false));
+ List lines = new ArrayList<>();
+ for (String line : lore) {
+ lines.add(LullText.c(line).decoration(TextDecoration.ITALIC, false));
+ }
+ meta.lore(lines);
+ meta.addItemFlags(ItemFlag.values());
+ if (glow) {
+ meta.setEnchantmentGlintOverride(true);
+ }
+ item.setItemMeta(meta);
+ return item;
+ }
+}
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullShape.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullShape.java
index 7a3eab4c..39f59077 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullShape.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/LullShape.java
@@ -22,8 +22,11 @@ public final class LullShape {
// ── Frame ──────────────────────────────────────────────────────────────────────────────────────────────────
- /** Bumped whenever the generated blocks change, so an existing world is generated anew (1 = 1.0, 2 = the Stollen). */
- public static final int VERSION = 2;
+ /**
+ * Bumped whenever the generated blocks change, so an existing world is generated anew (1 = 1.0, 2 = the Stollen,
+ * 3 = ore gathered into bigger veins).
+ */
+ public static final int VERSION = 3;
/** Centre of the sphere and of the Heart. */
public static final int CX = 0;
@@ -978,6 +981,17 @@ private static short city(int x, int y, int z, Column c, double d) {
// ── Ore and light ──────────────────────────────────────────────────────────────────────────────────────────
+ /**
+ * How ore gathers into veins: the cluster noise's grain, the share of ore left between veins, how steeply it
+ * rises inside one, and the ceiling. Measured over the whole sphere against shape 2 (grain 4.5, 1.0 + 2.2 x):
+ * the same amount of ore (56,312 against 55,949 blocks), 63% of it in veins of four or more (before 36%), the
+ * average vein 3.0 blocks (before 1.9).
+ */
+ private static final double VEIN_SCALE = 6.0;
+ private static final double VEIN_BASE = 0.3;
+ private static final double VEIN_GAIN = 9.0;
+ private static final double VEIN_CAP = 3.4;
+
/** Ore on exposed rock: richer in ravines and caves, prize ore only deep. Clustered by noise. */
private static short ore(int x, int y, int z, Column c, short rock) {
boolean heaven = y >= CY;
@@ -989,8 +1003,10 @@ private static short ore(int x, int y, int z, Column c, short rock) {
return rock;
}
boolean deep = ly < c.surf - 1;
- double cluster = Noise.n3(x / 4.5, y / 4.5, z / 4.5, heaven ? 51 : 52);
- double boost = 1.0 + 2.2 * Math.max(0.0, cluster);
+ // Veins: ore gathers where the cluster noise runs high and thins out between (2026-12-03, Robb's playtest
+ // plan: "Adern etwas größer", a run should be more mining and less searching). Before, most ore stood alone.
+ double cluster = Noise.n3(x / VEIN_SCALE, y / VEIN_SCALE, z / VEIN_SCALE, heaven ? 51 : 52);
+ double boost = Math.min(VEIN_CAP, VEIN_BASE + VEIN_GAIN * Math.max(0.0, cluster));
// Along the Stollen the walls stay rock with veins in them, not a wall of ore.
if (c.mine != null && LullMines.lines(ly, c.mine)) {
boost *= 0.5;
diff --git a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/Lullveins.java b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/Lullveins.java
index 06a2ecb8..354594f9 100644
--- a/AetherionMining/src/main/java/de/aetherion/mining/lullveins/Lullveins.java
+++ b/AetherionMining/src/main/java/de/aetherion/mining/lullveins/Lullveins.java
@@ -12,6 +12,7 @@
import org.bukkit.GameMode;
import org.bukkit.GameRule;
import org.bukkit.Location;
+import org.bukkit.NamespacedKey;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.World;
@@ -83,6 +84,9 @@ public final class Lullveins implements Listener, CommandExecutor, TabCompleter
private LullLift lift;
private LullCast cast;
private LullFinds finds;
+ private LullJournal journal;
+ /** Set on a player who has stood in Lullveins: the Journal (AetherionItems) lists the Lullveins page for them. */
+ private NamespacedKey seenKey;
private final Map exits = new ConcurrentHashMap<>();
private BukkitTask task;
private boolean running;
@@ -161,6 +165,21 @@ LullCast cast() {
return cast;
}
+ LullFinds finds() {
+ return finds;
+ }
+
+ /** Marks the player as someone who knows the place (the Journal's Atlas then lists the Lullveins page). */
+ private void seen(Player player) {
+ if (seenKey != null) {
+ player.getPersistentDataContainer().set(seenKey, org.bukkit.persistence.PersistentDataType.BYTE, (byte) 1);
+ }
+ }
+
+ private boolean knows(Player player) {
+ return seenKey != null && player.getPersistentDataContainer().has(seenKey, org.bukkit.persistence.PersistentDataType.BYTE);
+ }
+
public String worldName() {
return cfg.getString("world", "lullveins");
}
@@ -225,7 +244,10 @@ public void start() {
lift = new LullLift(this);
cast = new LullCast(this);
finds = new LullFinds(this);
+ journal = new LullJournal(this);
+ seenKey = new NamespacedKey(plugin, "lull_seen");
pm.registerEvents(this, plugin);
+ pm.registerEvents(journal, plugin);
pm.registerEvents(finds, plugin);
pm.registerEvents(run, plugin);
pm.registerEvents(forge, plugin);
@@ -269,6 +291,9 @@ public void shutdown() {
}
if (forge != null) {
forge.closeAll();
+ if (journal != null) {
+ journal.closeAll();
+ }
}
if (world != null) {
for (Entity e : world.getEntities()) {
@@ -428,6 +453,10 @@ private void tick() {
finds.tick();
if (ticks % 20 == 0) {
LullLabels.sweep(plugin);
+ // The one small line top right: splinters and finds, only down here.
+ for (Player player : world.getPlayers()) {
+ LullChip.show(this, player);
+ }
}
if (ticks % 5 == 0) {
int after = Math.max(4, cfg.getInt("safety.slow-fall-after", 12));
@@ -516,10 +545,6 @@ public void enter(Player player) {
Title.Times.times(Duration.ofMillis(600), Duration.ofMillis(3200), Duration.ofMillis(900))));
player.playSound(to, Sound.BLOCK_BEACON_AMBIENT, SoundCategory.AMBIENT, 1.0f, 0.6f);
player.playSound(to, Sound.ENTITY_WARDEN_HEARTBEAT, SoundCategory.AMBIENT, 1.2f, 0.55f);
- if (run.done(player) == 0 && !run.active(player)) {
- LullText.say(player, "§7Ysolde waits at the §dHeart's console §7(east on the Core Ring). Master Gorm's forge is south, Kalle's lift right behind you.",
- "§7Ysolde wartet am §dHerz-Pult §7(Osten auf dem Kernring). Meister Gorms Schmiede liegt im Süden, Kalles Aufzug direkt hinter dir.");
- }
});
}
@@ -605,6 +630,8 @@ public void onJoin(PlayerJoinEvent event) {
player.teleportAsync(spawnPoint(world));
}
run.hud(player);
+ seen(player);
+ cast.welcome(player);
}, 10L);
}
@@ -613,6 +640,7 @@ public void onQuit(PlayerQuitEvent event) {
if (run != null) {
run.left(event.getPlayer());
}
+ LullChip.clear(event.getPlayer());
}
@EventHandler
@@ -620,11 +648,16 @@ public void onWorldChange(PlayerChangedWorldEvent event) {
Player player = event.getPlayer();
if (isLull(event.getFrom())) {
run.left(player);
+ LullChip.clear(player);
} else if (isLull(player.getWorld())) {
run.hud(player);
if (items != null) {
items.speak(player);
}
+ LullChip.show(this, player);
+ seen(player);
+ // The first time, Kalle (right behind the landing) says what to do here in three sentences.
+ cast.welcome(player);
}
}
@@ -698,6 +731,15 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
leave(player);
return true;
}
+ if (sub.equals("journal") || sub.equals("page") || sub.equals("seite")) {
+ // The Lullveins page of the Journal (Atlas): for everyone who has been down here.
+ if (!running || journal == null) {
+ LullText.say(player, "§dLullveins §7isn't here right now.", "§dLullveins §7ist gerade nicht da.");
+ } else if (knows(player) || mayEnter(player, true)) {
+ journal.open(player);
+ }
+ return true;
+ }
enter(player);
return true;
}
@@ -800,6 +842,14 @@ private void admin(CommandSender sender, String[] args) {
sender.sendMessage("§7Your run is reset.");
}
}
+ case "intro" -> {
+ // Test: Kalle's first-arrival explanation again, right now.
+ if (player != null && isLull(player.getWorld())) {
+ cast.greet(player);
+ } else {
+ sender.sendMessage("§7Stand in Lullveins for this.");
+ }
+ }
case "finds" -> {
if (player == null) {
return;
@@ -823,7 +873,7 @@ private void admin(CommandSender sender, String[] args) {
reload();
sender.sendMessage("§7lullveins.yml reloaded.");
}
- default -> sender.sendMessage("§7/lullveins admin status|open|close|tp [ring|heaven|hell|city|stollen|hallen|tiefe]|drill [player]|splinters [n]|module |fill|reset|finds [reset]|respawn|reload");
+ default -> sender.sendMessage("§7/lullveins admin status|open|close|tp [ring|heaven|hell|city|stollen|hallen|tiefe]|drill [player]|splinters [n]|module |fill|reset|intro|finds [reset]|respawn|reload");
}
}
@@ -840,11 +890,12 @@ public List onTabComplete(CommandSender sender, Command command, String
List out = new ArrayList<>();
if (args.length == 1) {
out.add("leave");
+ out.add("journal");
if (sender.hasPermission(ADMIN)) {
out.add("admin");
}
} else if (args.length == 2 && args[0].equalsIgnoreCase("admin") && sender.hasPermission(ADMIN)) {
- out.addAll(List.of("status", "open", "close", "tp", "drill", "splinters", "module", "fill", "reset", "finds", "respawn", "reload"));
+ out.addAll(List.of("status", "open", "close", "tp", "drill", "splinters", "module", "fill", "reset", "intro", "finds", "respawn", "reload"));
} else if (args.length == 3 && args[0].equalsIgnoreCase("admin") && args[1].equalsIgnoreCase("tp")) {
out.addAll(List.of("ring", "heaven", "hell", "city", "stollen", "hallen", "tiefe"));
} else if (args.length == 3 && args[0].equalsIgnoreCase("admin") && args[1].equalsIgnoreCase("module")) {
diff --git a/docs/PROJECT_STATE.md b/docs/PROJECT_STATE.md
index 92da42a7..e6ed62bd 100644
--- a/docs/PROJECT_STATE.md
+++ b/docs/PROJECT_STATE.md
@@ -2514,3 +2514,32 @@ forge house as a building is not in this round (it needs a look at the isle map
forge. The Vein Siphon's old recipe (built from a Mining Pickaxe) is gone as well (PR #271, same deploy).
- Open, noted for Robb: several Forge Marks still ask Compressed Diamond although the isle has no diamond ore.
- Deploy: Items + Quests on the six MMO backends and Mining on mmo-t, mmo-r, mmo-c, mmo-m, together, on Robb's go.
+
+## Lullveins package 1: understand it, and what things are for (2026-12-04 night, cloud session, branch `claude/lullveins-understand`, NOT live)
+
+Robb and David stood on the Core Ring and did not know where to start (playtest 2026-12-03). Plan package 1 of 3.
+Items + Mining, compiled, German overlay check green, nothing tested in-game.
+
+- **Kalle says the loop once** (`LullCast#welcome`, flag `lull_intro` on the player): on the first arrival, three
+ sentences in his bubble (chat without bubbles): ore gives voices, six pillars, Ysolde rings the Heart, splinters go
+ to Gorm. Then one small note under the compass that points at the Journal. He repeats it on the chip "What do I do
+ down here?". Admin test: `/lullveins admin intro`. Whoever has rung the Heart before is not greeted.
+- **Lullveins page of the Journal** (`LullJournal`, `/lullveins journal`, listed under Atlas once the player has stood
+ in Lullveins: Mining sets `aetherionmining:lull_seen`, Items' `JournalMenu` reads it): the three steps with where the
+ player stands on each, the finds (n of 16, by half), what the ore is for, the ways around.
+- **One small line top right, only in Lullveins** (Items `hud/PlaceChip`, set by Mining's `LullChip` once a second):
+ splinters carried and finds n/16, on the chip under the place plate (the forage weather's chip). Cleared on leaving.
+ Any plugin may use `PlaceChip` for a place's two numbers; the forage weather wins where both would show.
+- **Every item says its use** (`LullItems`): the splinter and the modules lead with what they are for and where; the
+ drill names Gorm. The wording has a version (`lull_lang` = "en2"/"de2"), so items players already carry are rewritten
+ on join and stack with new ones. The first find explains what the sixteen are for. Checked: every ore drop in
+ Lullveins is something Gorm takes (debris pays netherite ingots directly), so nothing had to go.
+- **Gorm's forge is a book page** (`LullForge`, `ChromePage` theme FORGE): drill on top, head / motor / tank in one
+ row with what each does now, what the next stage brings (the head names the ore it opens) and the cost with what is
+ missing, module slots that list the modules in the bag, a how-it-works tile, the splinter count. Gorm works on the
+ drill wherever it sits in the bag (it had to be in the hand). An upgrade keeps the stored Resonance (it was reset).
+- **Bigger veins** (`LullShape#ore`, `VERSION` 3): the same amount of ore (56,312 against 55,949 blocks over the whole
+ sphere), 63% of it in veins of four or more (before 36%), the average vein 3.0 blocks (before 1.9). **The Lullveins
+ world is generated anew on the host's next start** (`rebuild-on-shape-change`), as with shape 2.
+- Not in this package: the drill's own texture. It needs a pack swap and comes with package 2 (look), which changes
+ the pack anyway (lift model).