Mineuniverse
Mods
FilesJS

FilesJS

MOD
Allow you to use kubejs for some restrictive operations on files
by LirxOwO
Download Claim this project
1,530,337 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Addons KubeJS
Advertisement Remove ads with Premium →

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!!! ⚠️

Files JS-26.1.2-NeoForge-1.1.0.jar
MC Client, NeoForge, Server, 26.1.2
Release 2026-09-26 Get
Files JS-1.21.1-NeoForge-1.0.jar
MC Client, 1.21.1, NeoForge, Server
Release 2025-07-11 Get
Files JS-1.20.1-1.3.jar
MC Client, 1.20.1, Forge, Server
Release 2025-03-02 Get
Files JS-1.20.1-1.2.3.jar
MC Client, 1.20.1, Forge, Server
Release 2024-12-12 Get
Files JS-1.20.1-1.2.2.jar
MC Client, 1.20.1, Forge, Server
Beta 2024-12-11 Get
Files JS-1.20.1-1.2.1.jar
MC Client, 1.20.1, Forge, Server
Beta 2024-12-10 Get

More from LirxOwO

Advertisement Remove ads with Premium →

You Might Also Like