#Access to datapack files?
7 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
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'})
I think this could help
let me try it again, though i tried it before and it didn't work
I used it before, so I wonder how you're using it? Does it give errors?
it works! Thanks, probbly made some mistake in past with path