Detecting Andesite, Diorite, and Granite with agent get itemid from slot
I am trying to set up some examples for students and was writing a mining program where the agent would collect resources as they were mined, and periodically dump all the junk, e.g. cobble, dirt, gravel, andesite, granite etc.
I was using a "for element of" loop to iterate through my list of junk blocks, and it works fine for the original block types like cobble, dirt, sand, gravel etc, but the newer blocks like andesite, granite, and diorite get returned as undefined by the agent "get itemid from slot" block. Printing the value of the list for these blocks instead gives values like 65537 (Granite), 196609 (Diorite), and 327681 (Andesite).
Is this a bug or is there something I don't know about these newer blocks?
-
Hi Andrew Hamilton,
Thanks for posting, yes I can confirm this is a bug with MakeCode. They have not updated to include these newer blocks. I'll let them know.
0
Please sign in to leave a comment.
Comments
1 comment