8

I need to place hundreds of blocks and I do that easily with the fill command. But, I can't seem to fill an area with top slabs. I tried /fill x1 y1 z1 x2 y2 z2 minecraft:stone_slab then I get bottom slabs placed.

7 Answers 7

14

Minecraft Java 1.13 snapshot

You can use

/fill x1 y1 z1 x2 y2 z2 minecraft:oak_slab[type=top]
13

Minecraft Java 1.12.2 (and older)

The problem here is that the command /fill x1 y1 z1 x2 y2 z2 minecraft:stone_slab automatically means /fill x1 y1 z1 x2 y2 z2 minecraft:stone_slab 0, the 0 is added. If you change this 0 to another value, the slab will change it's position; 8 is for the upper stone slabs:

/fill x1 y1 z1 x2 y2 z2 minecraft:stone_slab 8

Note: This technique works only for Minecraft versions 1.12.2 and older. For newer versions, check out the other answer on this question.

1
  • 6
    @NabeelParkar If this answer solved your problem, hit the check mark. It rewards the answerer, and tells future visitors what solved your problem :)
    – APCoding
    Commented May 19, 2016 at 1:05
2

You can pretty much just Tab to autocomplete the command in-game. I did, and it worked out:

/fill {coördinates} {coördinates} minecraft:stone_slab[type=top]

I just tabbed in the command itself, but now you know it.

2

Minecraft Java 1.15.2

The way that you would do this is by using the square bracket parameter at the end of your block type. If you want top slabs, it would be executed as

/fill x1 y1 z1 x2 y2 z2 minecraft:stone_slab[type=top]

If you want to find out some more things about /fill, this video will hopefully help:

1

Minecraft Bedrock 1.16+

It's kinda tricky in Bedrock. The various "original" stone slabs (stonebrick, andesite, cobble, etc.) are broken down into 4 groups(stone_slab, stone_slab2, etc.). There is an additional data value you need to get more specific(top, double)

This will give you mossy stone brick bottom slabs

  • /fill x1 y1 z1 x2 y2 z2 stone_slab4

Whereas this will give you regular stone top slabs

  • /fill x1 y1 z1 x2 y2 z2 stone_slab4 10

Use the various information in the slab article wiki to help build your command. Took me a lot of tries to get the regular stone upper slabs. The "Double Upper" used in the article is kind of a bad label as it seems to refer to the single upper slabs instead of 2 slabs together.

2
  • 2
    As much as I appreciate you taking your time to figure your problem out yourself, the answers here aren't incorrect. since the question is tagged minecraft-java-edition. If you want, you can "ask" a new question regarding the same issue but for bedrock edition and answer it yourself to help others with your issue.
    – Quijibo
    Commented Nov 30, 2020 at 21:15
  • 2
    For my part, I am glad you posted this, because this page is the first search result for "bedrock fill bottom slab". It is what I was looking for, so I upvoted your answer. With the efforts underway to merge Bedrock and Java features, your answer should also apply to Java (but I have no idea if it does). And @Quijibo nobody said the answers here are incorrect. They just don't work for Bedrock. And that matters a lot, because Bedrock has the larger installed base. Commented Oct 23, 2021 at 0:07
1

Minecraft Java 1.21+

In Java Edition 1.21 you have to put [half=top] to put slabs or trapdoors at the top.

1
  • 6
    Welcome to Arqade! It would be helpful if you edited your answer to include a full example command, in case an answer posted here disappears for whatever reason. That way, your answer will be much more useful for future readers. In case you didn't know, you can also edit other users' posts to include additional information, if necessary. Commented Jul 3 at 2:31
-2

Minecraft Bedrock 1.20

This works on 1.20 Bedrock Edition:

/fill x y z x y z slab ["top_slot_bit" : true ]

NOTE: I do not know if this works for java edition, nor do I know if this works for lower versions (1.19 and below).

1
  • 2
    Please read the tags of the question and don't post answers for other editions.
    – pppery
    Commented Jun 19, 2023 at 2:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .