Closed bobvicktor closed 3 years ago
This is absolutely perfect!
Glad you liked it. :)
I’m not super excited about the idea of adding a new argument for every new structure, since you’ll eventually run out of letters, but there shouldn’t be that many, right?... That’s why I added -s. No matter how many structures are added you can still pass in the name using -s.
Maybe in the future if too many structures are added to let each have their own single letter flag they could be split in to groups and use a pair of arguments to select the group and which one from the group, or something like that. Or maybe only add whole word flags. That’s a future issue though, I wouldn’t worry about it too much right now.
On Wed, Mar 10, 2021 at 9:08 PM n00b-asaurus @.***> wrote:
Merged #16 https://github.com/n00b-asaurus/Redstone-Development-Kit/pull/16 into master.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/n00b-asaurus/Redstone-Development-Kit/pull/16#event-4440159938, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATELXU2S42JDPECKMJH6DQTTC73X7ANCNFSM4YZ3K2HQ .
Added check to see if Redstone Structure Generator is being run as a script (is main) or being called by another script and moved code to a function called main() to make it possible to call.
Added arguments for selecting which structure to build, making it easier to select the structure they want to build and repeat structures using command history.
The user can: