SciCraft/client_pack/kubejs/client_scripts/03_protocol_tome.js
MiTHRAL ae0ede6c28
All checks were successful
Build & Release Pack / build (push) Successful in 1m46s
SCICRAFT — The Dark Photon Protocol v1.0.0
NeoForge 1.21.1 (21.1.248) packwiz pack: client + server packs, story
system (KubeJS/FTB Quests), patched World Portal & Create Ore Excavation,
performance presets, and ops tooling. Clean-history import for v1.0.0.
2026-08-24 14:27:31 -04:00

11 lines
418 B
JavaScript

// SCICRAFT — The Dark Photon Protocol
// Client: open the FTB Quests book when the server says the Tome was used.
// The server sends 'scicraft:open_quests' on Tome right-click.
NetworkEvents.dataReceived('scicraft:open_quests', event => {
try {
Java.loadClass('dev.ftb.mods.ftbquests.client.FTBQuestsClient').openGui()
} catch (err) {
console.warn('Protocol Tome: could not open FTB Quests GUI', err)
}
})