Closed schrum2 closed 2 years ago
I think this is resolved. Comment, test, and close if appropriate.
Actually, this isn't done yet. The command line parameter works, but you still need to remove block_type
from the parameter list for type_count
and replace it with args
Removed block_type
from the parameter list for type_count
and replaced it with args
.
Make a parameter DESIRED_BLOCK that is any block name. This will have a type string, but inside of
main.py
after the value has been read in, you can convert args to be the integer that corresponds to the name. I think this would be done with BlockType somehow, but I'm not fully sure.In any case, change the function header for
type_count
to replaceblock_type
withargs
and get theargs.DESIRED_BLOCK
from theargs