#How do i start lootjs?

19 messages · Page 1 of 1 (latest)

normal flax
#

i wanna use lootjs, but i don't know how to start and how to use it.
Can someone tell me how use it?

winged adderBOT
#

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

lucid current
#

look at its wiki

normal flax
#

the wiki doesn't say anything about how to start lootjs

#

oh wait

normal flax
#

no. i still don't know how to find the .js file

lucid current
#

????

normal flax
#

the file where write the code, like in kubejs

faint leaf
#

You dont find the file, you make the file.

#

And if you’re wondering what type of script it belong in

#

That’s also on the wiki, but to save you some time it’s the server script

normal flax
crude cedar
#

or you just use the same .js in kubejs folder

faint leaf
#

A rule of thumb with any addon mod for KubeJS (as of when I’m posting this):
All addon mods only add new things to KubeJS as a language.

#

That means that you can have more event listeners, more global bindings, and other related stuff within normal KubeJS scripts

#

So if you make a new .js file in your client/server/startup folder then you will be able to use the addon’s features in those scripts. You can also modify old js scripts to use the addon’s features as well

#

I have yet to see any addon require a specific folder or file structure so far