#How would I create a reversible stonecutter recipe
7 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt
Paste version of server.txt from @left silo
not sure what exactly is wrong but I would advise you to use for in or forEach loops instead of indexed for loops when you want to iterate over something like an array:
for (output in blocklist) {
for (input in blocklist) {
e.stonecutting(output, input)
}
}``` or:
```JS
blocklist.forEach((output) => {
blocklist.forEach((input) => {
e.stonecutting(output, input)
}
}```
Thanks, it worked really well. I just added an 'if input != output' and it made it so you couldn't turn one thing into itself and it works well.