Back to mods
FilesJS project artwork

CurseForge · Minecraft mod

FilesJS

Allow you to use kubejs for some restrictive operations on files

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which FilesJS release should I use?

Updated last month
Latest stable file Files JS-26.1.2-NeoForge-1.1.0.jar
Game version 26.1.2
Loader NeoForge

FilesJS Files JS-26.1.2-NeoForge-1.1.0.jar targets 26.1.2 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 3 required mods have matching files.

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does FilesJS Files JS-26.1.2-NeoForge-1.1.0.jar need?

Files JS-26.1.2-NeoForge-1.1.0.jar. Change the file and its required mods may change too.

All 3 required mods have matching files

Install KubeJS, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 10 come through another mod in the chain.

1 listed on this file 10 pulled in by those mods
KubeJS Needed by FilesJS Files JS-26.1.2-NeoForge-1.1.0.jar
required
Matching file found Matched file: KubeJS-NeoForge-26.1.2-8.0.8
EMI Needed by KubeJS
pulled in
No matching file
Better Advanced Tooltips Needed by KubeJS
pulled in
Matching file found Matched file: better-advanced-tooltips-2601.1.0-build.11.jar
Just Enough Items (JEI) Needed by KubeJS
pulled in
Matching file found Matched file: 29.53.0.115 for NeoForge 26.1.2
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: Rhino 2101.2.7-build.85
Architectury API Needed by Roughly Enough Items Fabric/Forge/NeoForge (REI)
pulled in
Matching file found Matched file: [NeoForge 26.1.2] v20.1.17
MezzConfigGUI Needed by Just Enough Items (JEI)
pulled in
Matching file found Matched file: MezzConfig GUI mc26.1.2-0.5.10 for NeoForge
MezzConfig Needed by Just Enough Items (JEI)
pulled in
Matching file found Matched file: MezzConfig 0.6.11 for NeoForge 26.1.2

10 extra mods were pulled in by other dependencies. Indented rows show who needs each one. 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-26.1.2-NeoForge-1.1.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Files JS-26.1.2-NeoForge-1.1.0.jar. It targets 26.1.2 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install KubeJS, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 10 come through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Files JS-26.1.2-NeoForge-1.1.0.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.

13 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

FilesJS versions and loaders

7 of 7 releases match

Looking for an older file? The official CurseForge project page is in Resources.