Download FilesJS — Minecraft Mods — MetaMods
FilesJS

FilesJS

Active

Downloads

0

Last update

7 months ago

Versions

1.20.1 — 1.21.4
Client and server
Forge
Neoforge
Game mechanics
Control
Addons

FilesJS

This modification is a plugin for KubeJS that provides the ability to perform limited file operations directly from your KubeJS scripts.

Security First

All file operations work exclusively within the Minecraft game folder, ensuring a high level of security. The system prevents access to data outside the game instance, protecting your computer from potential threats.

Main Features

Writing Multi-line Text

You can write multiple lines of text to a specified file:

FilesJS.writeLines("kubejs/server_scripts/src/test.js", ["test1,test2,test3"])

File Deletion

A simple way to delete any file within the game instance:

FilesJS.delete("kubejs/server_scripts/src/test.js")

Backup with Events

Configure automatic file backup during specific game events:

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

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

Important Security Feature

For additional protection, the system blocks access to critically important folders, including the mods directory. File operations also have limitations when working with certain file extension types, minimizing potential risks when using scripts.

Project members
xiaoliziawa

xiaoliziawa

Developer

LirxOwO

LirxOwO

Developer

Created: 11 Dec 2024

ID: 67378