Is there a command to spawn blocks in the air with worldedit?

I went to the End and it was empty. So I fell, switched to creative mode and flew to avoid dying.

I need to make a floating block to 1) build from and 2) give me a visual point of reference to search for the End island.

Is there a way to make a floating block using world edit, maybe by coordinates?


Solution 1:

Try:

/setblock ~ ~ ~ minecraft:stone

Solution 2:

Easily, using the region-select commands and then the region commands that set the area to a certain block. See the full list of commands.

For example: //sel cuboid, //pos1, move up one block, //pos2, //set 1 to make the air in a one-block region stone.

However, I doubt you'll find the End island this way. If the End is empty and you're not standing on a slab of obsidian, you probably got there through commands instead of an End Portal. I believe that the End doesn't spawn anything until you go through an End Portal once. So do that.

Solution 3:

Just do /up <how high you want it to be>.

This will move you up a certain number of blocks. You cannot pass through walls with this command and a glass block will be placed at your feet to support you. (source)

Solution 4:

do

/execute @p ~ ~ ~ fill ~1 ~2 ~1 ~-1 ~-1 ~-1 dirt

in a command block to make a platform underneath you