This script is to add tooltips to some rings that turn you into a race with an ability that can be pressed with a certain hotkey. The junk in the "<>" is supposed to say "<g>" or whatever hotkey they set it at. We got this to work on client as well as a small modded server. what im wondering is if this mod is because of maybe lazydfu or something? I recently tried this out on the main pack with 250 mods in it so im guessing its some mod messing with it
const $OriginsClient = Java.loadClass('io.github.apace100.origins.OriginsClient')
ItemEvents.tooltip(event => {
event.addAdvanced(['kubejs:dragon_ring'], (item, advanced, text) => {
let key = $OriginsClient.usePrimaryActivePowerKeybind.key.displayName
if (!event.isShift()) {
text.add(1, [
Text.of('120% Entity size').gold(),
])
text.add(2, [
Text.of('Press').gold(),
Text.of(' <').yellow(),
Text.of( key ).yellow(),
Text.of('> ').yellow(),
Text.of('to Breath Fire at the cost of ').gold(),
Text.of('Energy').aqua()
])
text.add(3, [
Text.of('Grants Fire Resistance').gold(),
])
text.add(4, [
Text.of('Grants Night Vision Above 25% ').darkAqua(),
Text.of('Energy').aqua()
])
text.add(5, [Text.of('Hold ').gold(),
Text.of('[Shift] ').yellow(),
Text.of('to see buffs.').gold()
])
}
})```
