Im here lookingg for tips and tricks regarding workshop optimization and limitation~
For example: what are the do’s and don’ts of workshop programming.
What should i strive for when making something, and what should i avoid.
And where lies the limit of workshop memory? What happens if the limit is reached? And is there a difference between rules and actions? Is it better to spread the code out in lots of rules, or should i try to push as many of my actions into as few rules as possible?
You only loop it enough times to initialise all of the things you need.
For example, if I need 30 Light Shaft entities stacked on top of each other, you use one Create Entity action and loop 30 times, changing and using the data of 1 or more variables along the way to change the position/height etc.
Now, instead of having 30 manually inserted and edited actions, you can have 1 that dynamically changes based on where it is in the loop, and a couple extras for modifying the loop data - 30 actions, down to only around 5-10.