| Blockland Forums > Modification Help |
| Baseplate detection |
| (1/1) |
| cucumberdude:
How can I check if %cl.brickgroup.getObject(%i) is a baseplate? |
| Destiny/Zack0Wack0:
%brick.isBaseplate or %brick.isBaseplate() EDIT: Also if you want to check if its any brick with something built on top of it use %brick.getNumUpBricks(). |
| cucumberdude:
Great, thanks. And just out of curiosity, does %brick.getNumUpBricks() r check if the brick on the bottom is actually supporting the ones above, or just that there are bricks on top? |
| lilboarder32:
It returns how many bricks are on top of the brick you called it on. Also, I'm not sure, but I think even if something like an 8x16 plate is supporting bricks and is on the ground it is considered a baseplate. That might be only with the .isBaseplate() method, nit the built in variable. |
| Navigation |
| Message Index |