A simple KubeJS script that notifies users of modpacks about updates. Made by KostromDan, packaged for KJSPKG.
- Install NetJS [https://www.curseforge.com/minecraft/mc-mods/netjs-kubejs-addon]
- Clone [https://gist.github.com/KostromDan/52b72e5ff28b23f7a3b957a88281185b]
- Replace gists_id and modpack name with yours.
let gists_id = '52b72e5ff28b23f7a3b957a88281185b'
let modpack_name = 'M-Tech'- Install and config properly Better Compatibility Checker[https://www.curseforge.com/minecraft/mc-mods/better-compatibility-checker]
By default script will parse version from it. If you don't want to use it: comment/add this lines of code:
//const $BCC = Java.loadClass('dev.wuffs.bcc.BCC')
ItemEvents.clientLeftClicked(event => {
//let version = $BCC.localPingData.version
let version = "modpack version"