截图
介绍
中文介绍正在准备中,下面暂时显示原文。
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
常见问题
FilesJS 支持哪些 Minecraft 版本?
FilesJS 支持 Minecraft Java 版 1.20.1–1.21.4,共 11 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
FilesJS 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
LirxOwO 的其他作品
查看全部 →Ride Every Thing
by LirxOwO
Players can ride on any mob, including blocks, entities, and other players.
206.9万
3 个月前
CurseForge
Riding Partners:Reforged
by LirxOwO
允许玩家组队并共同骑乘同一匹马。
186.8万
1 年前
Modrinth
FilesJS
by LirxOwO
Allow you to use kubejs for some restrictive operations on files
157万
29 天前
CurseForge
Dumplings Delight Reload
by KalebLangley, LirxOwO 等
Players can make all kinds of dumpling food in this mod!
101.1万
3 个月前
Modrinth
评论
登录后评论和评分