#1.19.2 Tooltips

31 messages · Page 1 of 1 (latest)

crimson gobletBOT
#

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

hollow tusk
#

??codeblock

cerulean wadiBOT
# hollow tusk ??codeblock

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
hollow tusk
#

??kjslogs

cerulean wadiBOT
# hollow tusk ??kjslogs

You can find your KubeJS client log in /minecraft/logs/kubejs/client.log.
If you are on 1.18 or below it will be called client.txt.
Please send it if asked, as it contains helpful information.

ionic robin
#

You can't have nested Arrays inside of the function.

#

You can Just do ```js
event.add("item", [
"Max Storage: 5G FE",
"Max Extract: 20M FE/t",
"Generates: 5M FE/t"
])

And don't need to use Text.of
echo scarab
#
ItemEvents.tooltip(event => {
    event.add("item", [
        "Max Storage: 5G FE",
        "Max Extract: 20M FE/t",
        "Generates: 5M FE/t"
      ])
})

Still doesnt work

hollow tusk
#

??neversay

cerulean wadiBOT
# hollow tusk ??neversay

Never say 'it crashed', 'it errored', or 'it didn't work' without providing the full crash report, log, and scripts!

ionic robin
echo scarab
#

i have this in my servers client scripts folder as i want it to be server wide and it isnt changing for me when reloading

ItemEvents.tooltip(event => {
    event.add("powah:reactor_nitro", [
        "Max Storage: 5G FE",
        "Max Extract: 20M FE/t",
        "Generates: 5M FE/t"
      ])
})```
Is there something im overlooking
hollow tusk
#

it doesn't work like that

#

client scripts have to be on the client

#

server doesn't care about those

ionic robin
#

Yes

echo scarab
#

so is it possible to change tooltips serverwide?

ionic robin
#

Nope

hollow tusk
#

every client needs to have script(s)

echo scarab
#

ahh sad times wanted to show the updated powergen on the reactors

ionic robin
#

If you modify the cilent configs from powah asswell IT should Show correctly

echo scarab
#

am i able to change it in server files and it will show to everyone

ionic robin
#

Probably Not, cause If it doesn't work allready with the modified values in the powah config.

But why can't you modify the client Files?

echo scarab
#

its a public server and i cant expect everyone to know how to add a client script in without breaking it. the powah tooltips are static so changing the power gen doesnt show. the only way to change it i assume is a client script

ionic robin
#

But you can send that with the modpack, that you're running. If you didn't modify it

#

This is either a Thing of you don't know how to ship a modpack or it's a modpack you modified which is never a great Thing to do

echo scarab
#

its all the mods 8 VB on curseforge. since its a premade modpack that people just download, theres no way to get a client script to them without sending it and them putting it in themself

hollow tusk
#

pretty much

echo scarab
#

so sadly no updating tooltips. i was hoping there was some serverside way so they didnt have to modify their clients, thankyou tho