L luna_0_7 New member Joined Nov 28, 2023 Messages 5 Reaction score 0 Nov 29, 2023 #1 I know how to place a block randomly, but I want these blocks to be placed on any elevation, but I can't figure out how to stop them from floating. Please help.
I know how to place a block randomly, but I want these blocks to be placed on any elevation, but I can't figure out how to stop them from floating. Please help.
Bromeo Active member Joined Jan 27, 2023 Messages 46 Reaction score 5 Nov 29, 2023 #2 You could check if the block *one block* below it is not air using if block = Upvote 0 Downvote
Bromeo Active member Joined Jan 27, 2023 Messages 46 Reaction score 5 Nov 29, 2023 #3 Bromeo said: You could check if the block *one block* below it is not air using if block = Click to expand... Or alternatively keep repeating downwards until you reach something that isn’t air, then shift one back up and place it there Upvote 1 Downvote
Bromeo said: You could check if the block *one block* below it is not air using if block = Click to expand... Or alternatively keep repeating downwards until you reach something that isn’t air, then shift one back up and place it there
Mipoxa Well-known member Mythic Joined Sep 6, 2020 Messages 86 Reaction score 12 Nov 30, 2023 #4 Bromeo said: Or alternatively keep repeating downwards until you reach something that isn’t air, then shift one back up and place it there Click to expand... In this case using a raycast would be more efficient, I think Upvote 0 Downvote
Bromeo said: Or alternatively keep repeating downwards until you reach something that isn’t air, then shift one back up and place it there Click to expand... In this case using a raycast would be more efficient, I think
Bromeo Active member Joined Jan 27, 2023 Messages 46 Reaction score 5 Nov 30, 2023 #5 I never thought about that Upvote 1 Downvote