#Do kubejs have require ?

12 messages · Page 1 of 1 (latest)

forest relic
#

I try to manipulate a json file but it say me a error with no further information

slow depotBOT
#

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

forest relic
#

I think is the require the problem but i'm not sure

green sinewBOT
#

Here's a simple snippet showing how to use JsonIO to read/write JSON files anywhere within the Minecraft folder:

// Reading the contents of the file from the given path
let config = JsonIO.read('kubejs/config/myawesomeconfig.json')

// Writing to an existing/new file
JsonIO.write('kubejs/config/myawesomeconfig.json', {settings: 'creeper', weirdblock: 'minecraft:end_gateway'})
lusty jasper
#

maybe?

forest relic
#

ok thanks

#

so their no requirejs in kubejs

#

?

lusty jasper
#

?

#

wym requirejs

#

like require like lua or what are you talking about

mental widget
#

KubeJS does not support the require keyword.