#Script No Worky, why?
165 messages · Page 1 of 1 (latest)
@solar geyser
??code
🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.
??sendcode
Send your code here instead of a screenshot
It makes it easier to diagnose your code and help you fix it or make the required changes/additions.
StartupEvents.registry('item', event => {
event.create('uncooked_dorito')
.displayName('§cUncooked Dorito')
.tooltip('§fNot very tasty, perhaps bake it?')
})

theres no tooltip field
if youd watch the end of the tutorial youd see me add tooltips to items 
reddit is usually wrong
I thoguth you just didn't cover it
i covered a lot of things
Why would I skip to the end for tooltips.
saving the best for last
Smh.
?
that makes no sense 
thats like asking why your favorite part of the movie isnt first
What if my favorite is always the beginning?
After alll, it;s where the main foundation of a movie is laid out

they're even timestamped
So...I have to make a different script for item tooltips!?
Or is there a way to add them in with the items script?

Do all tooltips go client side?
You can make custom items with KubeJS, and the wiki has a page on them!
uh
apparently its a thing?
but not showing up with probejs
also is it booting up or erroring on startup
in the tooltip event yes though apparently youre able to do it off the item builder (though probejs doesnt show it for some reason)
^
As I said it is not erroring
is it just not showing up in the creative tab?
youve never said it didnt error

what about with /give command?
works on my machine ™️
You can find your KubeJS startup log in /minecraft/logs/kubejs/startup.log.
If you are on 1.18 or below it will be called startup.txt.
Please send it if asked, as it contains helpful information.
startup not server*
Paste version of startup.log from @weary compass

Yep.

?
It's there.
its a .js script right
lol
happens
why not just rename it?
Ight I'll see if it works
Then I have to learn how to make it a food item that gives poison or hunger or whatever it is rotten flesh gives
i do that in episode 2 
Bleh
you can also find a script on the wiki for it as well
i do that in episode 1
Making my own custom effect for The Holy Dorito, The Corrupt Dorito, and The Chaotic Dorito. All of which I still got to make sprites for

Do effects go client side, startup or server
effect registry and any other registry script is startup
I should...

Cause now it's loading the world finally.

Tbf I did only dedicated 12GB ram to my modpack. Shoulda done 24GB
I got like umpteen diff performance mods
Like ImmediatelyFast, Krypton, BetterFPS, Radium, etc etc

It works!!!!
Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.
Do you have any other questions regarding your issue? Feel free to ask!
Note: You should generally create a new post for unrelated issues.
its not necessary for jei events
its a kjs addon mod that provides extra functionalities
??kjsaddons
KubeJS Additions adds more events and methods to make it easier for pack creators to do things such as toggling force-loaded chunks or getting ticking chunks, add additional checks for blocks and entities, add player stats, toggle a player's elytra, mess with JEI and more!

i guess it offers some other functionalities for jei though im unsure what they are
@solar geyserAm I able to call items from other mods when making a KubeJS script?
Just making sure I got all my T's crossed and i's dotted rn'
depends on the script
if youre asking if jei/recipe events work for modded items then yes
Like lets say I want to make a recipe for create via KubeJS to make a specific item
should
this will be your best friend

Ok ok thank you ofc ofc
Ticket re-opened!
Note: You should generally create a new post for unrelated issues.
It is related to the same script though


Yes because the script I opened this for is the same script I still be working on and having issues with

your script is working now 
No cause it displays ctx twice
make a new ticket focused on the ctx issue providing details

