#net.minecraft.util.lazyloadedvalue error on tooltip

14 messages · Page 1 of 1 (latest)

fair peak
#

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()
    ])
    }
 })```
raven gazelleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

fair peak
#

and for better context it does this even in a singleplayer world

severe ice
#

that happened to me while trying to help you, i had to add a get() or something

#

check the ticket you asked how to get this

fair peak
#

oh fr?

#

aight lemme check

fair peak
tough orbitBOT
severe ice
#

try it, when I was testing I had to use get

fair peak
#

aight

#

if its that simple imma be so happy lol

fair peak