js.js and shittyeditor.js - getting for vm in ComputerBlockEntity
This commit is contained in:
parent
2b30a81496
commit
1abc960bff
3 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
fs.writeFile("/test.txt", "long hard text file")
|
|
||||||
var fileContent = fs.readFile(process.args[0])
|
var fileContent = fs.readFile(process.args[0])
|
||||||
fileContent.split("\n").forEach(function (it) {
|
fileContent.split("\n").forEach(function (it) {
|
||||||
screen.print(it)
|
screen.print(it)
|
||||||
|
|
1
src/main/resources/assets/ajarc/bin/js.js
Normal file
1
src/main/resources/assets/ajarc/bin/js.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
js.run(process.args[0])
|
4
src/main/resources/assets/ajarc/bin/shittyeditor.js
Normal file
4
src/main/resources/assets/ajarc/bin/shittyeditor.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
var args = process.args
|
||||||
|
var file = args[0]
|
||||||
|
var content = args[1]
|
||||||
|
fs.writeFile(file, content)
|
Loading…
Reference in a new issue