#Script No Worky, why?

165 messages · Page 1 of 1 (latest)

tawdry canopyBOT
#

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

narrow yacht
#

@solar geyser

solar geyser
#

??code

silent mantleBOT
# 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.

narrow yacht
solar geyser
#

??sendcode

silent mantleBOT
# solar geyser ??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.

narrow yacht
#

StartupEvents.registry('item', event => {
event.create('uncooked_dorito')
.displayName('§cUncooked Dorito')
.tooltip('§fNot very tasty, perhaps bake it?')
})

solar geyser
#

theres no tooltip field

narrow yacht
#

...

#

Then hpw do I add item description????

#

That's what reddit suggested.

solar geyser
#

if youd watch the end of the tutorial youd see me add tooltips to items heh

narrow yacht
#

Why is it at the end

solar geyser
#

reddit is usually wrong

narrow yacht
#

I thoguth you just didn't cover it

solar geyser
#

i covered a lot of things

narrow yacht
#

Why would I skip to the end for tooltips.

solar geyser
narrow yacht
#

Smh.

solar geyser
#

that makes no sense lul

#

thats like asking why your favorite part of the movie isnt first

narrow yacht
#

What if my favorite is always the beginning?

#

After alll, it;s where the main foundation of a movie is laid out

solar geyser
#

they're even timestamped

narrow yacht
#

So...I have to make a different script for item tooltips!?

#

Or is there a way to add them in with the items script?

solar geyser
#

i dont think so

#

although i coulda sworn you could

narrow yacht
#

Do all tooltips go client side?

silent mantleBOT
#

You can make custom items with KubeJS, and the wiki has a page on them!

solar geyser
#

apparently its a thing?

#

but not showing up with probejs

#

also is it booting up or erroring on startup

solar geyser
narrow yacht
#

It is not. It also shows texture as a code line in the wiki...

narrow yacht
#

As I said it is not erroring

solar geyser
#

is it just not showing up in the creative tab?

narrow yacht
#

Not showing up at alll.

#

I'ma try the texture code line

#

See if dat fixes it

solar geyser
narrow yacht
solar geyser
#

what about with /give command?

narrow yacht
#

Uhhhhh

#

We'll find out in a hot min

solar geyser
narrow yacht
#

Wha

#

What da fub

solar geyser
#

send your startup logs

#

as well as your latest.log

#

??kjslogs

silent mantleBOT
# solar geyser ??kjslogs

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.

solar geyser
#

startup not server*

narrow yacht
silent mantleBOT
#

Paste version of startup.log from @weary compass

narrow yacht
solar geyser
#

is your script in startup_scripts?

#

kube>startup_scripts

narrow yacht
solar geyser
narrow yacht
#

?

solar geyser
#

0/0 KubeJS startup scripts loaded

#

meaning your script isnt even being loaded

narrow yacht
#

It's there.

solar geyser
#

its a .js script right

narrow yacht
#

It exists.

#

ifk

#

There's a file and a text docu

solar geyser
#

a .txt?

#

is that where your code is?

#

if so change it from .txt to .js

#

like so

narrow yacht
#

Oh I dumb. It didn't auto save it as a .js

#

Wtf.

solar geyser
#

lol

narrow yacht
#

Why did vsc not autosave it as a .js

solar geyser
#

happens

narrow yacht
#

I cannot be bothered to constantly do that.

#

Wtf.

#

Ok lemme see if it works

solar geyser
#

why not just rename it?

narrow yacht
#

Oh true

#

but even then

solar geyser
#

thats how i do it anyways

narrow yacht
#

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

solar geyser
#

i do that in episode 2 heh

narrow yacht
#

Bleh

solar geyser
#

you can also find a script on the wiki for it as well

narrow yacht
#

I also need to make my own effects some how

solar geyser
#

i do that in episode 1

narrow yacht
#

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

narrow yacht
solar geyser
#

effect registry and any other registry script is startup

narrow yacht
#

Ok

#

416 mods takes forever to load up

solar geyser
#

you should make a test pack with only kubejs for this stuff

#

will save you hours

narrow yacht
#

I should...

#

Cause now it's loading the world finally.

#

Tbf I did only dedicated 12GB ram to my modpack. Shoulda done 24GB

solar geyser
#

with 416 mods i doubt ram is the issue

#

for loadtimes anyways

narrow yacht
#

sadcat I got like umpteen diff performance mods

#

Like ImmediatelyFast, Krypton, BetterFPS, Radium, etc etc

#

It works!!!!

solar geyser
#

🎉

#

??closeticket

silent mantleBOT
# solar geyser ??closeticket

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.

narrow yacht
#

@solar geyserWhat the heck is KubeJS Additions

#

and is it necessary if I use JEI?

solar geyser
#

its not necessary for jei events

#

its a kjs addon mod that provides extra functionalities

#

??kjsaddons

silent mantleBOT
# solar geyser ??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!

narrow yacht
solar geyser
#

i guess it offers some other functionalities for jei though im unsure what they are

narrow yacht
#

@solar geyserAm I able to call items from other mods when making a KubeJS script?

#

pepedrool Just making sure I got all my T's crossed and i's dotted rn'

solar geyser
#

depends on the script

#

if youre asking if jei/recipe events work for modded items then yes

narrow yacht
#

Like lets say I want to make a recipe for create via KubeJS to make a specific item

solar geyser
#

should

narrow yacht
#

Oh my I got a lot to learn

solar geyser
#

this will be your best friend

narrow yacht
solar geyser
narrow yacht
#

Ok ok thank you ofc ofc

tawdry canopyBOT
#

Ticket re-opened!

narrow yacht
#

@solar geyser

#

Ok ok ok

#

do you know why ctx be displaying twice!?

solar geyser
#

Note: You should generally create a new post for unrelated issues.

narrow yacht
solar geyser
narrow yacht
#

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

solar geyser
#

your script is working now ahujel

narrow yacht
solar geyser
#

make a new ticket focused on the ctx issue providing details

narrow yacht
#

It's in the same script

#

Cause script no worky