2

Is there any commands that make falling sand stay on ground as a ghost block forever and never break? Something like this video

  • The goal being to create a block that "looks solid" but is actually empty air? – Raven Dreamer Dec 25 '15 at 3:52
  • Did any of the answers help you? Then you can mark it as accepted answer. – Fabian Röling Nov 6 '17 at 8:34
5

You can force a FallingSand entity to ride an armor stand to prevent it from falling.

1.8:

/summon FallingSand ~ ~1 ~ {Time:1,Riding:{id:"ArmorStand",NoGravity:1,Invisible:1}}

1.9:

/summon ArmorStand ~ ~1 ~ {NoGravity:1,Invisible:1,Passengers:[{id:"FallingSand",Time:1}]}

However, FallingSand will not exist forever. Once its internal timer ticks to 600 while it's within the boundaries of the world, it will despawn. The preventative for that is to periodically set the Time tag back to 1, which will reset the internal timer.

/entitydata @e[type=FallingSand] {Time:1}

Alternatively, you can summon an armor stand that is wearing the desired block on its head without the need for FallingSand, though it will be slightly smaller than a full block.

1.8:

/summon ArmorStand ~ ~1 ~ {NoGravity:1,Invisible:1,Equipment:[{},{},{},{},{id:"minecraft:sand"}]}

1.9:

/summon ArmorStand ~ ~1 ~ {NoGravity:1,Invisible:1,ArmorItems:[{},{},{},{id:"minecraft:sand"}]}
1

You can set a falling block timer to an extreme negative value. Because it ticks up by 1 every 1/20th of a second, it takes more than 3 years to vanish.

To prevent it from falling down, you can use the NoGravity tag.

So it ends up as:

/summon falling_block ~ ~ ~ {NoGravity:1b,Block:"minecraft:sand",Time:-2147483648}

"sand" can be replaced by any block ID.

  • Time increases by 1 per tick. It will despawn once it reaches 600 and will not last infinitely. – Skylinerw Mar 13 '17 at 11:35
  • By the way, the question apparently was made back in 1.8/1.9 times, and at least as of 1.8 I can confirm NoGravity doesn't work on FallingSand. – Egor Hans Jan 15 at 10:53
0

The method of spawning falling sand on top of an armor stand works great, to avoid the despawning of the falling sand-enity, simply set the age to a really big negative number. The maximum is -2147483648 or -2^31. but that should last you a good 107,374,212 seconds which corresponds to about 3.4 years of in-game time, if that isn't enough just reset the entity data tag with a command block.

This should work:

/summon ArmorStand ~ ~1 ~ {NoGravity:1,Invisible:1,Passengers[{id:"FallingSand",Time:-2147483648}]}
0

Okay, so this question is going on 3 years old, but I have come up with a working answer for it. In case you weren't aware, the first step is to enter the following command.

/summon falling_sand ~ ~ ~ {Time:1b,BlockState:{Name:"minecraft:stone"},NoGravity:1b}

Stone can be replaced with any block of your choosing. The next step, however, is what makes this permanent. Set up a command nearby the falling blocks (or do /execute positioned (their coordinates) run) that is repeating, always active and says the following:

execute as @e[type=falling_block,distance=0..5] run data merge entity @s {Time:1b}

What this does is constantly reset the time state of the falling block so it never reaches 600. The falling block will be permanent and look just like a normal block, but will be able to be passed through.

-1
/summon minecraft:falling_block ~ ~ ~ {Time:-2147483648,Block:Stone,NoGravity:1}
  • This was already answered (with proper grammar) before. – Fabian Röling Oct 21 '17 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.