{"action":"created","issue":{"url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/37","labels_url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/37/comments","events_url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/37/events","html_url":"https://github.com/AlexSTV/Voxelmetric/issues/37","id":95934953,"number":37,"title":"Check free blocks around a block","user":{"login":"Dalez","id":1947695,"avatar_url":"https://avatars.githubusercontent.com/u/1947695?v=3","gravatar_id":"","url":"https://api.github.com/users/Dalez","html_url":"https://github.com/Dalez","followers_url":"https://api.github.com/users/Dalez/followers","following_url":"https://api.github.com/users/Dalez/following{/other_user}","gists_url":"https://api.github.com/users/Dalez/gists{/gist_id}","starred_url":"https://api.github.com/users/Dalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dalez/subscriptions","organizations_url":"https://api.github.com/users/Dalez/orgs","repos_url":"https://api.github.com/users/Dalez/repos","events_url":"https://api.github.com/users/Dalez/events{/privacy}","received_events_url":"https://api.github.com/users/Dalez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T17:38:55Z","updated_at":"2015-07-20T18:05:58Z","closed_at":null,"body":"I'm not sure if there is this feature already, but it would be a good feature to check what blocks are free around a certain block. For instance, if you Raycast onto a block, it would return the blocks next to it that would be free. For example:\r\nxxx\r\nxBx\r\nxyy\r\n\r\nB = Block\r\nx = There is no block here (well, there is air)\r\ny = There is a block here\r\n\r\nIt would be cool to have a feature for only \"air\" and also to return all blocks. You could then check if the block is free, and add a block next to it (I'm planning on this for farming).\r\n\r\nWould be nice to have this with the random update/schedule system that is being made now too."},"comment":{"url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/comments/122970105","html_url":"https://github.com/AlexSTV/Voxelmetric/issues/37#issuecomment-122970105","issue_url":"https://api.github.com/repos/AlexSTV/Voxelmetric/issues/37","id":122970105,"user":{"login":"AlexSTV","id":5434285,"avatar_url":"https://avatars.githubusercontent.com/u/5434285?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexSTV","html_url":"https://github.com/AlexSTV","followers_url":"https://api.github.com/users/AlexSTV/followers","following_url":"https://api.github.com/users/AlexSTV/following{/other_user}","gists_url":"https://api.github.com/users/AlexSTV/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexSTV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexSTV/subscriptions","organizations_url":"https://api.github.com/users/AlexSTV/orgs","repos_url":"https://api.github.com/users/AlexSTV/repos","events_url":"https://api.github.com/users/AlexSTV/events{/privacy}","received_events_url":"https://api.github.com/users/AlexSTV/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T18:05:58Z","updated_at":"2015-07-20T18:05:58Z","body":"Hey @Dalez you can do this using the GetBlockPos and GetBlock, I don't think a specific helper function is needed though because it's not that common a use case. You can use GetBlockPos with a raycast to get the position of the block you're pointing at and then in a for loop get all the blocks around it. Here's a gist that might do what you're wanting: https://gist.github.com/AlexSTV/2f061e0b1ebdb0581132"}}