#Beta script for making automated smithing transform upgrade recipes
16 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of smithing_recipes.js from @odd grotto
This code also generates some json files in the kubejs folder so you can check and see if it is working to your liking. You can add and remove armor types/weapon and tool types/etc. You can even add materials, but you need to make sure you follow the upgrade rules and add a path following the code in the script.
and what's the problem you're having with it
you should post this in #1048591172165189632
I wanted people to look it over and check for errors/inefficiencies
sorry dogs wanted out while I was updating the post. 🙂
ah, ok that's alright.
forEach is slow compared other looping methods. You can loop over the length and index them later. Or use a for of loop though idk if that exists in rhino
if you really want to go for performance
though this probably won't make a difference
might be a good idea for one of those packs that has 300 materials, thanks.
Is this still true with rhino? Under the hood it's probably using a Java stream right? Are there performance implications there?