// 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.fromServer('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) } })