Allium v0.2.20a
Wiki: https://github.com/castledking/Allium/wiki
Highlights
- Deterministic CraftEngine custom ores & asynchronous pre-generation (
/pregen) — Native custom ore generation returns to Allium using CraftEngine block carriers instead of legacy Oraxen note blocks. Salt, Silver, and Galena ores generate in stone and deepslate variants with stable seeds, custom vein geometry, chunk height clamps, and lowland/mountain elevation limits. A new asynchronous runner under/pregen(and/allium pregen) pregenerates chunks with rate pacing (chunks-per-tick,delay-ticks) and safe pause, resume, and cancellation support. - Zero-scale Jade 26.3 ore HUD overlay — Datapack block discovery in Jade 26.3 is supported via a zero-scale, packet-only item display entity that tracks the player's crosshair over custom ores within six blocks. It supplies the genuine CraftEngine item name, custom texture, and stack identity without creating world entities, adding chunk metadata, or interfering with existing Jade handshake handlers.
- Interactive snapshot editor & manual copies in
/restore— Staff withallium.restore.editcan now interactively edit inventory restoration sessions directly in the GUI. Items can be freely moved between the snapshot panel and staff inventories, with support for all 36 storage slots, armor, offhand, and ender chests. Edits can be applied directly to a player or saved as a non-destructiveMANUALsnapshot copy. A configurable 30-day snapshot retention policy and/core purge restoresnapshotscommand prevent database bloat. - Card level-up announcement debouncing — Fast bursts of card experience (e.g. high-reward quest completions) that advance multiple levels at once no longer flood chat with sequential level-up alerts.
CardLevelAnnouncementscombines contiguous level gains across a 10-tick window into a single unified announcement without delaying XP application or stat boosts. - Quest difficulty multipliers and multi-plugin card XP bridges — Quests (LMBishop) and ExcellentQuests integrations now support granular difficulty multipliers (
QuestXpRules) mapped to quest IDs, categories, or stage suffixes. EcoJobs and LiteFish integrations are hardened: LiteFish catch events provide non-zero hook values to prevent EcoJobs counters from evaluating to zero, and duplicate XP payouts across custom and Bukkit catch events are eliminated. Damage attribution for card XP now traces projectile shooters and modern PaperDamageSourcecauses. - Player scale boost overhaul & automatic unmorph — The player scale bonus boost now rolls cleanly between configurable
minimumandmaximumbounds (0.6x to 2.0x) based on slot strength, replacing flat addition. Unequipping or replacing an equipped card now automatically terminates active morph disguises if the new card cannot grant the form. Dropping cards withQcan also be toggled viacard-menu.allow-drop. - Tablist rank preservation (
FarPlayerReAddPolicy) — When distant-player rendering plugins like ExtendedHorizons resend player tab entries beyond the tracking range, Allium strips redundant display name and list order actions from the packet. This keeps TAB's formatted prefixes, suffixes, and sorting intact. - CrowBar radar HUD alignment — Radar dots sent to CrowBar clients now consult
PartyManager.isOnLocatorFor(). CrowBar blips follow the exact same party visibility, staff locator overrides, and card-widened locator boost ranges as the vanilla locator bossbar instead of revealing players across the whole world. - Chat deletion packet rewrite & InteractiveChat safety — Chat deletion resending now sends isolated whitespace packets (
ChatHistoryClear, bounded 100..4096) to cleanly evict stored client message entries instead of multiline strings that clients can collapse. Packet tracking actively cancels packets matching deleted messages, queues concurrent resend requests safely, and includes an event guard for InteractiveChat. - Multi-recipe SpawnerCraft slideshow guide — Right-clicking a mob head now opens an interactive slideshow GUI that smoothly cycles through Spawner, Plushie, and Card crafting recipes without closing or reopening the container.
- The kitchen expands: Deep-Dish Pizza & extensible recipes —
kitchen.ymlnow supports customcrafting(shapeless) andsmelting(furnace, smoker, blast furnace) recipe sections with exact item matching. Introduces multi-stage deep-dish pizza assembly (crust → spinach → cheese → tomato sauce → baking), 10-minute cooling, and slice-by-slice eating, alongside missing cherry pie texture fixes. - Persistent teleport toggles & TFly reload recovery —
/tptogglepreferences are now persisted to SQLite and survive server restarts.TFlyManagerrehydrates online players across plugin reloads, guards against zero-state balance overwrites on shutdown, and preserves active flight. PacketEvents frame markers also strip player head profile identities to fix vanilla client"'s Head"rendering bugs.
Technical Details
CraftEngine Custom Ores & Asynchronous Pregeneration
Allium restores native custom ore generation powered directly by CraftEngine's block API. Custom ores are real state-carried blocks that utilize CraftEngine-allocated mushroom carrier states, preserving Nexo note-block states.
ore-generation:
enabled: true
auto-generate: true
worlds: [Resource]
jade:
enabled: true
ores:
salt:
enabled: true
block: sf:salt_ore
deepslate-block: sf:deepslate_salt_ore
vein-size: 8
min-height: 0
max-height: 64
chance-per-chunk: 0.35
veins-per-chunk: 2
silver:
enabled: true
block: sf:silver_ore
deepslate-block: sf:deepslate_silver_ore
vein-size: 8
min-height: -56
max-height: 118
lowland-max-height: 56
single-above: 59
chance-per-chunk: 0.15
veins-per-chunk: 2
galena:
enabled: true
block: sf:galena_ore
deepslate-block: sf:deepslate_galena_ore
vein-size: 8
min-height: -56
max-height: 8
chance-per-chunk: 0.10
veins-per-chunk: 2
Generation Mechanics
- Vein Generation (
OreVeins): Adjacent-block random walks are bounded strictly within the chunk (X/Z: 0..15). Vein placement is deterministic using a seed derived from world seed, chunk coordinates, and ore name hash: $$\text{seed} + \text{chunkX} \times 341873128712\text{L} + \text{chunkZ} \times 132897987541\text{L} + \text{ore.hashCode()} \times 91815541\text{L}$$ - Natural Replacement: Only natural stone and deepslate blocks are replaced. The appropriate standard or deepslate ore block is selected based on the target block's depth and material.
- Elevation Rules: Silver ore honors mountainous terrain detection (
lowland-max-height: 56), switching to single-block deposits above Y=59 (single-above: 59). - Persistent Marking: Chunks retain a persistent marker (
allium_ore_generated) in their PersistentDataContainer. Previously marked chunks are skipped.
Pregeneration Runner (/pregen)
Automatic generation hooks chunk population in listed worlds. For existing chunks, /pregen provides bounded asynchronous chunk generation:
/pregen start <radius-in-chunks> [world]
/pregen world <world> <radius-in-chunks> [center-chunk-x center-chunk-z]
/pregen pause
/pregen resume
/pregen stop
/pregen status
- Pacing: Chunk requests are asynchronous and dispatched via
pregen.delay-ticks, processing up topregen.chunks-per-tick(default 2, clamp 1..16). - Safety: Plugin reload or server shutdown gracefully halts pending jobs without running unfinished callbacks.
pregen.generate-ores: falseallows generating base terrain without custom ores. - Permissions: Base permission is
allium.pregen(with sub-permissionsstart,world,pause,resume,stop,status).
Jade 26.3 Zero-Scale Packet Overlay
Jade 26.3 normally inspects block entities to request name overrides, which does not apply to non-entity block carriers. Allium leverages Jade's datapack block discovery pathway (DatapackBlockManager.override and ObjectNameProvider):
- Zero-Scale Entity Display (
JadeOreOverlay): When a player announces Jade protocol 9, a single client-side packet-onlyItemDisplayis spawned via PacketEvents. - Target Tracking: The display follows the player's line of sight when looking at a custom ore within a 6-block radius. The display has zero scale (
new Vector3f(0, 0, 0)), no shadow, and exists purely in network packets. - Client Recognition: The display holds the matching CraftEngine item stack with
$jade:stack.idset, allowing the Jade client to render the authentic custom ore name and item icon. - Cleanup: Looking away, world switching, disconnecting, or disabling Allium immediately destroys the packet entity. No world entities or chunk data are ever created.
Inventory Snapshot Editor & Retention Policy
The /restore GUI has been significantly expanded from a read-only viewer into an interactive inventory repair workshop.
Snapshot Editing Sessions
- Live Inventory Manipulation (
SnapshotEditorGUI&SnapshotEditSession): Staff withallium.restore.editcan drag, click, and shift-click items between their own player inventory and the snapshot display. - Slot Mapping: All 36 storage slots, 4 armor slots, and offhand slot are mapped and synced. Ender chest contents can be opened and edited through a dedicated sub-session.
- Restoration Modes:
- Restoring to oneself or target applies the session's current edited state, even if unsaved.
- Clicking Save as Manual Snapshot writes a new snapshot entry with reason
MANUALand a fresh timestamp, leaving the original death, login, or freeze snapshot intact in history.
- Shift-Click Safety: Shift-clicks between inventories are explicitly intercepted, cancelled, and rescheduled on the player's entity thread to prevent inventory race conditions and duplication.
Snapshot Retention & Purging
- Configuration:
restore.snapshot-retention-days: 30(inconfig.yml) defines the cutoff for snapshot expiration. - Automated & Manual Purge: The daily maintenance task deletes expired snapshots. Administrators can manually trigger an immediate purge via:
/core purge restoresnapshots - Cache Eviction: Purged records are immediately invalidated from
InventoryManager's in-memory cache so deleted snapshots never reappear in the GUI. - Database Resilience: Database snapshot queries throw exceptions on SQL failure rather than returning empty lists, preventing database dropouts from overwriting cached history.
- Freeze & Gamemode Snapshots:
Freezecommands andCreativeManagergamemode switches now save snapshots directly throughInventoryManager, ensuring they are registered in the active/restorecache without requiring a reload.
Trading Cards: Announcements, Difficulty Rules & Multi-Plugin Bridges
Level-Up Debounce (CardLevelAnnouncements)
When cards gain massive XP spikes from major quests or boss defeats, contiguous level promotions (e.g. Level 1 → Level 4) are batched across a 10-tick window. Only the consolidated level-up announcement is sent to chat, while stat boosts and XP progression apply immediately without delay.
Granular Quest XP Difficulty (QuestXpRules)
Both LMBishop Quests and ExcellentQuests completions now evaluate difficulty scaling from tradingcards/config.yml:
xp:
sources:
quest-complete:
enabled: true
amount: 150
default-difficulty: easy
difficulty-multipliers:
easy: 1.0
medium: 2.0
hard: 4.0
expert: 8.0
quest-difficulties: {}
category-difficulties: {}
stage-difficulties:
"1": easy
"2": medium
"3": hard
"4": expert
The system evaluates stage suffixes (e.g. _1, -2), category rules, or explicit quest mappings to scale card XP proportionally.
Combat & Fishing Bridges
- Projectile & DamageSource Attribution:
CardXpListenernow inspects modernDamageSourcecausing entities and projectile shooters, awarding mob kill XP to archers and indirect damagers whose kills previously failed to register. - EcoJobs & LiteFish Reconciliation:
- LiteFish fires custom catch events with 0 vanilla XP. Libreforge's
catch_fishtrigger treatsexpToDropas event value, which caused EcoJobs counters to evaluate to zero.FishingXpListenerinjectsliteFishCatchValueintoPlayerFishEvent.setExpToDrop(). - LiteFish's Bukkit catch events are marked so custom fish payouts are not rewarded twice.
- Weightless LiteFish species still register valid catch XP.
- LiteFish fires custom catch events with 0 vanilla XP. Libreforge's
Player Scale Bonus Boost
BonusStrength now treats CARD_SCALE as an explicit size range rather than additive flat scaling:
- Slot strength (0..100) linearly maps the player's scale between
minimum(default 0.6x) andmaximum(default 2.0x). - Legacy scale boosts without explicit strength resolve safely using their configured amount.
- Lore correctly formats scale multipliers (e.g.
x1.15 Scale).
Morph Cleanup & Card Menu Dropping
- Morph Desync Fix (
MorphService.cardChanged): When a player unequips a Fabled card or swaps it for a card that does not support the current disguise, the active mob morph and flight abilities are instantly stripped. - Card Menu Drop Toggle: Added
card-menu.allow-drop: falsetotradingcards/config.yml. When false, pressingQopens the card menu instead of dropping the item into the world. Setting this totruerestores vanilla dropping while keeping right-click to open menus.
Frame Marker Skull Fix
- Player Head Tooltips: Minecraft's client constructs skull tooltips as
"{owner}'s Head"when a profile UUID is present without a name.FrameMarkerPacketListenerstrips the profile name and UUID from the network packet copy (skinOnlyProfile), preserving texture properties and the skin patch. The custom frame lore renders cleanly without the extraneous"'s Head"line. - Reload Cleanup:
FrameMarkerPacketListener.shutdown()explicitly unregisters the PacketEvents listener during disable, preventing orphaned listeners across hot reloads.
Tablist Protection & CrowBar Radar Synchronization
Tablist Rank Preservation (FarPlayerReAddPolicy)
Plugins like ExtendedHorizons render entities beyond vanilla simulation distance by sending synthetic PLAYER_INFO_UPDATE packets with ADD_PLAYER but omitting UPDATE_LISTED and INITIALIZE_CHAT. These packets bypass tablist formatters (like TAB) and overwrite rank prefixes and sorting with vanilla player names.
FarPlayerReAddPolicy.trim() detects these re-add packets for verified online players and strips UPDATE_DISPLAY_NAME and UPDATE_LIST_ORDER, preserving formatted ranks and tab order.
CrowBar Locator Parity
PartyManager.isOnLocatorFor(viewer, target) now governs both the vanilla bossbar locator and CrowBar's compass radar packets:
- Party members, staff locator overrides, and forced visible players remain tracked.
- Distant players stop displaying once outside the viewer's tracking radius (including card-widened locator boosts).
Chat Deletion & PacketEvents Resend Safety
- Evicting Client History (
ChatHistoryClear):chat.deletion_resend.clear_lines(bounded between 100 and 4096) sends distinct invisible unicode space sequences across individual chat packets. This forces client chat history to scroll out and evicts deleted entries without relying on newline blocks that clients fold. - Direct Packet Cancellation:
PacketChatTrackerImplchecks outgoing packets against deleted message components and cancels them at the network layer if a match is found. - Queued Resends: Multiple
/delmsgcommands executed in rapid succession toggle atomic flags (resendRequested,resendAllRequested) to queue clean sequential resends rather than colliding during PacketEvents packet dispatch. - InteractiveChat Guard: Registered an event listener guard preventing InteractiveChat packet re-parsers from conflicting during chat history replays.
The Kitchen: Extensible Recipes & Deep-Dish Pizza
harvest/kitchen.yml now supports full custom crafting and smelting pipelines alongside physical preparation stations:
crafting:
tomato_sauce:
ingredients:
- [nexo:tomato, nexo:tomato_silver_star, nexo:tomato_golden_star]
- [nexo:tomato, nexo:tomato_silver_star, nexo:tomato_golden_star]
- minecraft:bowl
result: {item: nexo:tomato_sauce, amount: 1}
cheese:
ingredients: [minecraft:milk_bucket, sf:salt]
result: {item: nexo:cheese, amount: 1}
pizza_base:
ingredients: [nexo:dough, nexo:dough, nexo:dough]
result: {item: nexo:pizza_base, amount: 1}
smelting:
bake_deep_dish_pizza:
ingredient: nexo:cold_deep_dish_pizza
result: {item: nexo:baked_deep_dish_pizza, amount: 1}
type: furnace
time: 200
experience: 0.35
Deep-Dish Pizza Assembly
- Base Placement: Place a
nexo:pizza_baseon a valid surface. Alternatively, choosing spinach on a standard crust branches into pizza preparation (opens-on-standard-crust: true). - Assembly Stages: Right-click sequentially with Spinach, Cheese, and Tomato Sauce. Floating holograms display instructions, and in-progress display models (
sf:models/block/deep_dish_pizza_*) update at each step. - Baking & Eating: Cooking in a stove/furnace yields
Deep Dish Pizza (Sauce on Top). Slices can be consumed one by one (4 bites total), with a 10-minute cooling window before reverting to a cold pizza. - Refunds: Breaking an unbaked pizza refunds the exact base crust and added ingredients.
- Cherry Pie Fix: Restored missing
cherry_filled_top.pngtexture referenced bysf:block/cherry_pie_filled.
CraftEngine Crop Stages & Seeds Migration
- Migration utilities (
import_nexo_crops.py,import_nexo_seeds.py) map Nexo crop and seed definitions into native CraftEngine block carriers (ce:crop) using lower tripwire carriers, preserving stage displays, Jade names, and ExcellentShop configurations.
Additional Fixes & Engine Improvements
- TFly State Preservation:
TFlyManagerscans all online players on startup/reload to rehydrate flight balances before running the first tick task. Stored balances are protected from accidental zero-overwrites during shutdown if a module failed to initialize. Active flight states persist across reloads if flight is still permitted. - SpawnerCraft Guide Slideshow:
SpawnerCraftGuideGuihosts an interactive crafting guide. Clicking inside the GUI cycles between Spawner, Plushie, and Trading Card recipes without closing the container or re-triggering inventory events. Mob head items display updated lore hinting at right-click guide access. - Teleport Toggle Persistence:
/tptogglesettings are backed by SQLite (setTeleportToggled/isTeleportToggled), persisting player teleport rejection preferences across server restarts. - Test Suite Expansion: Added unit tests covering load ordering, teleport toggle persistence, snapshot editor sessions, chat deletion resends, ore generation math, Jade packet overlays, and multi-plugin XP bridges (now 711 passing tests).
Upgrade Notes
CraftEngine Custom Ores:
ore-generation.enableddefaults tofalse. Ensure the corresponding CraftEngine resource pack (sf_ores) is installed and configured before enabling.- Run
/pregen start <radius> <world>to pre-populate custom ores in existing worlds.
Snapshot Retention:
- Verify
restore.snapshot-retention-days: 30inconfig.yml. Snapshots older than this cutoff will be removed during the daily cleanup or via/core purge restoresnapshots. Set to0to retain snapshots indefinitely.
- Verify
Trading Cards & Relics:
- Review
tradingcards/config.ymlfor newcard-menu.allow-dropsettings andxp.sources.quest-completedifficulty rules. - Player scale bonus boosts now roll strictly between
minimumandmaximummultipliers intradingcards/boosts.yml.
- Review