#1.19.2 Tooltips
31 messages · Page 1 of 1 (latest)
??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)
})
??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.
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
ItemEvents.tooltip(event => {
event.add("item", [
"Max Storage: 5G FE",
"Max Extract: 20M FE/t",
"Generates: 5M FE/t"
])
})
Still doesnt work
??neversay
Never say 'it crashed', 'it errored', or 'it didn't work' without providing the full crash report, log, and scripts!
You need to replace the String saying Item with the Item id
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
it doesn't work like that
client scripts have to be on the client
server doesn't care about those
Yes
so is it possible to change tooltips serverwide?
Nope
no 
every client needs to have script(s)
ahh sad times wanted to show the updated powergen on the reactors
If you modify the cilent configs from powah asswell IT should Show correctly
am i able to change it in server files and it will show to everyone
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?
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
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
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
pretty much
so sadly no updating tooltips. i was hoping there was some serverside way so they didnt have to modify their clients, thankyou tho