Compare commits

..

2 Commits

Author SHA1 Message Date
Matt f88f6eaaca Merge pull request 'pack: v0.30.4 — drop broken JEI-hide client script' (#56) from fix/v0.30.4-drop-broken-jei-hide into main 2026-06-01 19:15:19 +00:00
Matt 3912ec541d 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>
2026-06-01 19:15:19 +00:00
2 changed files with 2 additions and 13 deletions
@@ -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');
});
+2 -2
View File
@@ -1,13 +1,13 @@
{ {
"$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing", "$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing",
"name": "Brass and Sigil", "name": "Brass and Sigil",
"version": "0.30.3", "version": "0.30.4",
"minecraft": "1.21.1", "minecraft": "1.21.1",
"loader": { "loader": {
"type": "neoforge", "type": "neoforge",
"version": "21.1.228" "version": "21.1.228"
}, },
"lockedAt": "2026-05-30T21:15:04Z", "lockedAt": "2026-06-01T19:14:46Z",
"mods": [ "mods": [
{ {
"source": "modrinth", "source": "modrinth",