COWMODSКаталог модов

FilesJS

Allow you to use kubejs for some restrictive operations on files

Автор: LirxOwO76,7 тыс.4обновлён 2 мар. 2025 г.
Механики игрыУправление

Описание

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

Галерея

Последние версии

Все версии →
release

FilesJS 1.3

1.3
2 мар. 2025 г.65,8 тыс.Minecraft: 1.20.1forge
Скачать
release

FilesJS 1.2.3

1.2.3
13 дек. 2024 г.10,7 тыс.Minecraft: 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4forge
Скачать
Что нового
Add event monitoring for file operations
release

FilesJS 1.2.2

1.2.2
11 дек. 2024 г.102Minecraft: 1.20.1forge
Скачать
Что нового
Add support for shaderpacks folder and. ts file suffix
beta

FilesJS 1.1

1.1
9 дек. 2024 г.115Minecraft: 1.20.1forge
Скачать