Mineuniverse
Log in Register
Mods

FilesJS

Allow you to use kubejs for some restrictive operations on files
by LirxOwO
Download Claim this project
1,274,401 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons KubeJS

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-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.2.jar
MC Client, 1.20.1, Forge, Server
Beta 2024-12-11 Get

More from LirxOwO

Sparkle: Reforge
8,756
DeatButThreeReload
84
Touhou Little Maid for AE2
816
Better Leveling: Respawn
6,924
AE2 Pattrn Find
60
BetterFly
5,773

You Might Also Like

Theurgy KubeJS
Theurgy KubeJS provides KubeJS integrations for Theurgy.
9,503,452
EntityJS
This mod uses KubeJS to dynamically register entities with full AI/Animation/Spawn Control support!
8,731,173
KubeJS TFC
KubeJS TFC integration
919,127
Forbidden Arcanus JS
Forbidden and Arcanus kubejs Compatibility
97,097
Immersive Engineering JS
kubejs compat for ie
94,624
KubeJS REI Runtime
Allows KubeJS to hide and show items from REI dynamically
89,244