CurseForge · Minecraft mod
FilesJS
Allow you to use kubejs for some restrictive operations on files
Quick answer
Which FilesJS release matches 1.20.6 Forge?
FilesJS Files JS-1.20.1-1.2.3.jar targets 1.20.1, 1.20.2, 1.20.3 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. 1 required mod needs a matching file.
Where it goes
Is FilesJS required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does FilesJS Files JS-1.20.1-1.2.3.jar need?
Files JS-1.20.1-1.2.3.jar on 1.20.6 Forge. Every mod below is checked against that same setup.
Install KubeJS first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add FilesJS without breaking your instance.
Built for FilesJS Files JS-1.20.1-1.2.3.jar on 1.20.6 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use Files JS-1.20.1-1.2.3.jar. It targets 1.20.1, 1.20.2, 1.20.3 with Forge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install KubeJS first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside Files JS-1.20.1-1.2.3.jar. It opens that exact file at the source.
About this project
What does FilesJS add?
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!!! ⚠️
Project description from CurseForge.
Pick your setup
FilesJS by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.2
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
2 loader builds1.21
1 loader build1.20.6
1 loader build1.20.5
1 loader build1.20.4
1 loader build1.20.3
1 loader build1.20.2
1 loader build1.20.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
FilesJS versions and loaders
Files JS-1.20.1-1.2.3.jar
12 Dec 2024
Looking for an older file? The official CurseForge project page is in Resources.