Hello! It's not about commands, more about mechanism to make falling sand look more natural, anyway I've made the sand-trap in my custom map - a square area on which if you stand in the middle, you will activate the command (in active the repeating command block) wchich breaks the support blocks underneath (with command /fill x y z x y z minecraft:air) and the player would fall into the hole.
I can make it works easily but I can't make it looks nicely
Screenshots are attached below on which you can see on the left side - how it actually works and on the right - how I would like it to look (glass blocks are there as the support blocks which would be broken if player activated the trap).
So your actual build is going to be a lot bigger than your example?
If you'd accept a simpler pattern (I'm not sure how obvious that would be in the time it takes for the sand to fall) you could cut down on the number of command blocks by removing ever larger squares (or circles?) of glass, I'm pretty sure that once the sand starts falling it wouldn't be affected by the delete command.
Or perhaps just a few command blocks in a loop, each time through the loop they remove any glass that doesn't have a block on all 4 sides.
Then you just have another command block that starts the sequence by removing the block under the player.
It's been a few days so I don't know if you still need help but I do have a solution. It does require you to download a mod, however.
The mod is called "ToggleBlockUpdates" and you can easily find it on CurseForge, a website for mods of a lot of different games. Although if you indeed to this vanilla I only have tedious answers for you.
1. Download Fabric Mod Loader, there are many videos on how to do this and the hardest part is finding the download button on the website.
2. Download Fabric API. I'm not sure if you'll need it but many creators using Fabric use this API so just to be safe you should download this too and put it into your "mods" folder.
3. Download "ToggleBlockUpdates" and put it into your mods folder. You will need to restart your game if the game is open beforehand.
4. Input the command to turn off block updates and you can now start making floating sand.
Now that your sand is floating you can break the block in the middle and it'll make the pattern you wish for. Again, this does require mods so backup your world to make sure nothing you previously built breaks. Block updates are essential to quite a number of things after to all so be careful.
Thanks for help, anyway I just wanted to make sand floating and then I would break one block underneath with a command and all the sand would fell with a domino effect (unfortunately it's impossible cause no matter which command you use sand would fall instantly insted of levitating) using only vanilla minecraft without any mods.
Sooo I've got an idea to use the layer of scaffoldings under the sand, scaffoldings break not regularly so sand would fall like this too.
It's not a domino effect but it looks chaotic what's mean more natural and I buy it :3
Hello! It's not about commands, more about mechanism to make falling sand look more natural, anyway I've made the sand-trap in my custom map - a square area on which if you stand in the middle, you will activate the command (in active the repeating command block) wchich breaks the support blocks underneath (with command /fill x y z x y z minecraft:air) and the player would fall into the hole.
I can make it works easily but I can't make it looks nicely
Screenshots are attached below on which you can see on the left side - how it actually works
and on the right - how I would like it to look (glass blocks are there as the support blocks which would be broken if player activated the trap).
I presume that the two left pictures represent snapshots taken halfway through the fall? And not afterwards?
I'd try a string of command blocks removing different parts of the glass with a slight delay between them.
Just testing.
I mean, I know that solves this problem but I was hoping there's simpler way to make it works, instead of using thousands of command blocks.
Anyway, thanks for the answer :3
Thousands?
So your actual build is going to be a lot bigger than your example?
If you'd accept a simpler pattern (I'm not sure how obvious that would be in the time it takes for the sand to fall) you could cut down on the number of command blocks by removing ever larger squares (or circles?) of glass, I'm pretty sure that once the sand starts falling it wouldn't be affected by the delete command.
Or perhaps just a few command blocks in a loop, each time through the loop they remove any glass that doesn't have a block on all 4 sides.
Then you just have another command block that starts the sequence by removing the block under the player.
Just testing.
It's been a few days so I don't know if you still need help but I do have a solution. It does require you to download a mod, however.
The mod is called "ToggleBlockUpdates" and you can easily find it on CurseForge, a website for mods of a lot of different games. Although if you indeed to this vanilla I only have tedious answers for you.
1. Download Fabric Mod Loader, there are many videos on how to do this and the hardest part is finding the download button on the website.
2. Download Fabric API. I'm not sure if you'll need it but many creators using Fabric use this API so just to be safe you should download this too and put it into your "mods" folder.
3. Download "ToggleBlockUpdates" and put it into your mods folder. You will need to restart your game if the game is open beforehand.
4. Input the command to turn off block updates and you can now start making floating sand.
Now that your sand is floating you can break the block in the middle and it'll make the pattern you wish for. Again, this does require mods so backup your world to make sure nothing you previously built breaks. Block updates are essential to quite a number of things after to all so be careful.
Thanks for help, anyway I just wanted to make sand floating and then I would break one block underneath with a command and all the sand would fell with a domino effect (unfortunately it's impossible cause no matter which command you use sand would fall instantly insted of levitating) using only vanilla minecraft without any mods.
Sooo I've got an idea to use the layer of scaffoldings under the sand, scaffoldings break not regularly so sand would fall like this too.
It's not a domino effect but it looks chaotic what's mean more natural and I buy it :3
Once again thanks for help