Add a GetBlockAt function which returns a block
I use Code Connection, which may be a little different to Education edition.
Anyway... I have written a script that tests a block to see if it is one of several different types before being able to make a decision. However, because I can only compare a block at a given location with a single block type, I must repeat this for every block type that I want to compare a block with... and each test takes time, and the more different types of block that I must test a given block against, the longer it takes.
So, I would suggest a function which returns the type and data of the block at a given location rather than comparing it against a single block type, so that it can be added to a variable and compared against multiple block types without having to perform a time-consuming query of the location of the block every time.
Call it GetBlockAt(Location), and have it return a block.
-
Great feedback, I've passed on to the product planning team.
0
Please sign in to leave a comment.
Comments
1 comment