js.js and shittyeditor.js - getting for vm in ComputerBlockEntity

This commit is contained in:
echo 2024-07-22 17:12:24 +03:30
parent 2b30a81496
commit 1abc960bff
3 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,3 @@
fs.writeFile("/test.txt", "long hard text file")
var fileContent = fs.readFile(process.args[0])
fileContent.split("\n").forEach(function (it) {
screen.print(it)

View file

@ -0,0 +1 @@
js.run(process.args[0])

View file

@ -0,0 +1,4 @@
var args = process.args
var file = args[0]
var content = args[1]
fs.writeFile(file, content)