fix: KubeJS client events - tooltip and JEI API changes
All checks were successful
Build & Release Pack / build (push) Successful in 1m41s

- ItemEvents.tooltip → ItemEvents.modifyTooltips (new KubeJS 2101 API)
- JEIEvents.information → RecipeViewerEvents.addInformation('item', ...)
  (JEI integration moved to unified RecipeViewerEvents system)
This commit is contained in:
MiTHRAL 2026-08-19 19:29:16 -04:00
parent aaa2ecea1e
commit 1cc4df514d
4 changed files with 16 additions and 16 deletions

View file

@ -2,7 +2,7 @@
// Client tooltips: the story rides on the items you carry.
// Text lives in STORY/02-items.md (tooltip.scicraft.* keys) — never hardcode.
ItemEvents.tooltip(event => {
ItemEvents.modifyTooltips(event => {
event.add('scicraft:photon_core', [
'',
Text.translate('tooltip.scicraft.photon_core.1'),

View file

@ -1,27 +1,27 @@
// SCICRAFT — The Dark Photon Protocol
// JEI info pages: where the story is and where to get the pieces.
// JEI/Recipe Viewer info pages: where the story is and where to get the pieces.
// Text lives in STORY/02-items.md (jei.scicraft.* keys) — never hardcode.
JEIEvents.information(event => {
event.addItem('scicraft:photon_fragment', [
RecipeViewerEvents.addInformation('item', event => {
event.add('scicraft:photon_fragment', [
Text.translate('jei.scicraft.photon_fragment.1'),
Text.translate('jei.scicraft.photon_fragment.2'),
Text.translate('jei.scicraft.photon_fragment.3')
])
event.addItem('scicraft:photon_core', [
event.add('scicraft:photon_core', [
Text.translate('jei.scicraft.photon_core.1'),
Text.translate('jei.scicraft.photon_core.2')
])
event.addItem('scicraft:void_stabilizer', [
event.add('scicraft:void_stabilizer', [
Text.translate('jei.scicraft.void_stabilizer.1'),
Text.translate('jei.scicraft.void_stabilizer.2')
])
event.addItem('scicraft:quantum_lattice', [
event.add('scicraft:quantum_lattice', [
Text.translate('jei.scicraft.quantum_lattice.1'),
Text.translate('jei.scicraft.quantum_lattice.2'),
Text.translate('jei.scicraft.quantum_lattice.3')
])
event.addItem('scicraft:renegade_glass', [
event.add('scicraft:renegade_glass', [
Text.translate('jei.scicraft.renegade_glass.1'),
Text.translate('jei.scicraft.renegade_glass.2')
])

View file

@ -2,7 +2,7 @@
// Client tooltips: the story rides on the items you carry.
// Text lives in STORY/02-items.md (tooltip.scicraft.* keys) — never hardcode.
ItemEvents.tooltip(event => {
ItemEvents.modifyTooltips(event => {
event.add('scicraft:photon_core', [
'',
Text.translate('tooltip.scicraft.photon_core.1'),

View file

@ -1,27 +1,27 @@
// SCICRAFT — The Dark Photon Protocol
// JEI info pages: where the story is and where to get the pieces.
// JEI/Recipe Viewer info pages: where the story is and where to get the pieces.
// Text lives in STORY/02-items.md (jei.scicraft.* keys) — never hardcode.
JEIEvents.information(event => {
event.addItem('scicraft:photon_fragment', [
RecipeViewerEvents.addInformation('item', event => {
event.add('scicraft:photon_fragment', [
Text.translate('jei.scicraft.photon_fragment.1'),
Text.translate('jei.scicraft.photon_fragment.2'),
Text.translate('jei.scicraft.photon_fragment.3')
])
event.addItem('scicraft:photon_core', [
event.add('scicraft:photon_core', [
Text.translate('jei.scicraft.photon_core.1'),
Text.translate('jei.scicraft.photon_core.2')
])
event.addItem('scicraft:void_stabilizer', [
event.add('scicraft:void_stabilizer', [
Text.translate('jei.scicraft.void_stabilizer.1'),
Text.translate('jei.scicraft.void_stabilizer.2')
])
event.addItem('scicraft:quantum_lattice', [
event.add('scicraft:quantum_lattice', [
Text.translate('jei.scicraft.quantum_lattice.1'),
Text.translate('jei.scicraft.quantum_lattice.2'),
Text.translate('jei.scicraft.quantum_lattice.3')
])
event.addItem('scicraft:renegade_glass', [
event.add('scicraft:renegade_glass', [
Text.translate('jei.scicraft.renegade_glass.1'),
Text.translate('jei.scicraft.renegade_glass.2')
])