schrum2 / EvoCraft-SCOPE

0 stars 0 forks source link

DESIRED_BLOCK for type_count #37

Closed schrum2 closed 2 years ago

schrum2 commented 2 years ago

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 replace block_type with args and get the args.DESIRED_BLOCK from the args

schrum2 commented 2 years ago

I think this is resolved. Comment, test, and close if appropriate.

schrum2 commented 2 years ago

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

alejmedinajr commented 2 years ago

Removed block_typefrom the parameter list for type_countand replaced it with args.