All Mods Resource Packs Data Packs Shaders Modpacks Plugins
FilesJS

FilesJS

by LirxOwO • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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")

Change event trigger

ItemEvents.rightClicked('nether_star',event=>{
        FilesJS.backupFile("kubejs/README.txt")
})

Files.fileBackupCreated(event=>{
        event.server.tell("File backup path:",event.getPath())
})

You can't even access the mods folder!

Compared to directly accessing file content, this mod considers various security issues and restricts access to special extensions

How to Install FilesJS (Mod)

FilesJS by LirxOwO is verified for Forge across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 1.3, file size: 224 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Forge).
  2. Make sure you have the compatible loader or environment installed for Forge.
  3. Move the downloaded FilesJS file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.1
Forge
last yr. 1
1.21.x 1.20.x
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
[1.2.3] FilesJS 1.2.3 by LirxOwO on Dec 13, 2024
Download
Add event monitoring for file operations
[1.2.2] FilesJS 1.2.2 by LirxOwO on Dec 11, 2024
Download
Add support for shaderpacks folder and. ts file suffix
FilesJS Icon
Download FilesJS
Select game version
Select platform