kashub 1.0.0-FSR
Curse Maven Snippet
What's new
🚀 KasHub v1.0.0-FSR — First Stable Release
The First Stable Release of Kashub brings a unified multi-loader engine (Fabric + NeoForge 1.21.1), full in-game script editing, live packet-hooked events, and professional IDE/MCP integration.
🪟 Editor & UI (KHGui 1.0.11)
- Tab-bar geometry unified — new
TabBarLayoutowns tab widths, label ellipsis, close glyph and close hitbox; rendering, clicking, scrolling and clamping all read the same rects. Fixes the closexdrifting onto the filename once the strip overflowed. - Overflow now scrolls — the strip reserves real toolbar space, shrinks tabs to a 64px minimum, then scrolls horizontally (mouse wheel over the tab bar) with a slim accent scrollbar; tabs are scissored so they can never paint over the toolbar buttons.
- Close button works — a 16px hitbox around the 12px glyph means clicking
xcloses instead of re-focusing the tab. - Phantom dirty flag removed —
getContent()no longer fabricates"\n"for empty files, so freshly opened files stop showing the•marker and stop refusing to close. - No more content bleeding — tab switches/closes persist the buffer into the tab it belongs to (
lastTabIndex) and funnel through onesyncFromContext(), so reopening the editor no longer duplicates one script's text into every tab. - In-Game Docs Generator — dynamically generates documentation sections directly from registered game objects and methods, with per-method one-click
COPYcode snippet buttons.
⚡ Scripting Engine & Core Runtime
- Operators & Syntax — Added post-increment/decrement (
i++,i--) and compound assignments (+=,-=,*=,/=,%=). Block headers without parentheses (e.g.while i == 5 {) are supported. - Stack Overflow Guard — Recursion depth is strictly bounded (200 calls), producing a clean script error instead of crashing the client VM.
- Task Control & Real Pause — Task pausing now completely halts background loop execution instead of only updating state labels; stopped tasks cleanly unregister event handlers.
- VFS & Script Paths — Tilde expansion (
~) resolved cleanly to the user scripts directory; path traversal attacks (..) blocked. - Pathfinding — Armed stuck detection with automatic re-planning when no forward progress is made.
📡 Event Subsystem
- Packet Hooks — All gameplay events (
onPlayerJoin,onPlayerLeave,onRespawn,onDamage,onDeath,onHunger,onHeal,onTick,onJump,onSneak,onSprint,onItemUse,onInventoryChange) wired to live network packets and game hooks. - Lifecycle & Deduplication — Handler leaks eliminated when re-running tasks; double-firing of
onPlayerJoinfixed; finished tasks owning handlers stay alive without memory corruption.
🛠️ Tooling, Debugger & Server Bridge
- VS Code DAP Debugger — Breakpoints now pause execution in the interpreter loop before lines run; stepping and resume fully synchronized with the VS Code extension.
- Model Context Protocol (MCP) — Fixed
list_scriptsrecursive directory scanning,get_logsreading the active instance log, andscan_target_peripheralframe responses. - Server Plugin (Paper/Spigot) — Updated server bridge to support v2 syntax (
System.print) and dynamic command metadata discovery. - NeoForge Compatibility — Full build parity with Fabric under NeoForge 1.21.1 and bundled
libs/for offline/CI builds.
🧹 Multi-Loader Core & Progression
- Multi-Loader Core — Full Fabric + NeoForge baseline abstraction via
KHWrapperandArchitectury. - Neuro-Implant & Progression — Support for Curios and Trinkets neural implant slots with tiered access policies.
- ComputerCraft: Tweaked (CC:T) — Automatic peripheral mounting to
/mnt/cc/<id>/and in-game terminal integration.
This mod has no additional files