FilesJS 图标

FilesJS

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/filesjs
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: game-mechanics management

资源介绍

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

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Mad Particle

价格:0 墨喵币
下载量:0

查看详情
Low Fire, Shield & More

价格:0 墨喵币
下载量:0

查看详情
Mapper Base

价格:0 墨喵币
下载量:0

查看详情
DirectionHUD

价格:0 墨喵币
下载量:0

查看详情