pack: v0.30.4 — drop the broken JEI-hide client script
The hide_disabled_items.js client script I added in v0.30.3 used `JEIEvents.hideItems(...)` -- a namespace that does NOT exist in KubeJS 2101.7.2 on NeoForge 1.21.1. There is no kubejs-jei bridge mod for 1.21.1 NeoForge published on Modrinth at this time. Client launchers were showing: KubeJS client script errors hide_disabled_items.js#8 ReferenceError: \"JEIEvents\" is not defined. Removing the script entirely. The Shattered Dimensional Carver still: - Cannot be produced (Capsid recipe override with barrier input) - Does nothing on use (server-side right-click cancel) Tradeoff: the item will still appear as a recipe-less entry in JEI search if players type its name. Cosmetic only; no gameplay path to obtain or use it. If a JEI-hide approach becomes available in a future KubeJS update or via a new bridge mod, we can revisit. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
// Brass and Sigil -- client-side: hide items disabled server-side from JEI
|
||||
//
|
||||
// The Shattered Dimensional Carver is disabled on the server (the
|
||||
// Capsid recipe is overridden to require barriers, and the right-click
|
||||
// is cancelled). Hiding it from JEI completes the illusion -- players
|
||||
// don't see a recipe-less ghost item cluttering search.
|
||||
|
||||
JEIEvents.hideItems(event => {
|
||||
event.hide('alexsmobs:shattered_dimensional_carver');
|
||||
console.info('[bns/hide_disabled_items] hid alexsmobs:shattered_dimensional_carver from JEI');
|
||||
});
|
||||
Reference in New Issue
Block a user