FilesJS
Modby LirxOwO
Allow you to use kubejs for some restrictive operations on files
Description
This is a plugin mod for kubejs that allows you to perform limited operations on files using kubejs.
The file reading and writing can only be done within the instance folder of Minecraft, and external file contents cannot be accessed.
Write multiple lines
FilesJS.writeLines("kubejs/server_scripts/src/test.js", ["test1,test2,test3"])
Delete file
FilesJS.delete("kubejs/server_scripts/src/test.js")
Event listeners
ItemEvents.rightClicked('nether_star',event=>{
FilesJS.backupFile("kubejs/README.txt")
})
Files.fileBackupCreated(event=>{
event.server.tell("File backup path:",event.getPath())
})
If there are any bugs in this mod, please provide feedback to GitHub issue. here
Due to the fact that this operation can be used with Java reflection in KubeJS, security checks are no longer supported. Please be aware!!! ⚠️
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Bad Wither No Cookie!
A simple mod to silence the Wither and Dragon broadcast sounds
Global XP
Adds a block to store XP that is accessible to all players
Legacy: [Let's Do] Brewery
Ozapft is! Brau Bier, beiss in a Bretzn – willkomme zum Braufescht!
Eating Animation
A mod that adds sprite animations for edible and drinkable items.
Luminax
Adds a bunch of simple glowing blocks to the game
BisectHosting Server Integration Menu
BisectHosting Server Ordering Menu