1

In my minecraft world (in 1.13), I need to /setblock blue stained glass, which I believe has the ID 3. (FYI, I use the tilde symbol (~) in place of the coordinates because they are not really very important regarding my question.)

In 1.12, I was able to use: /setblock ~ ~ ~ minecraft:stained_glass 3.

In 1.13, I tried: /setblock ~ ~ ~ minecraft:glass 3, but it didn’t seem to work.

How will I be able to do this?

1 Answer 1

3

blue_stained_glass now has its own ID, like so:

/setblock ~ ~ ~ blue_stained_glass

In 1.13, item damage values are only used for actual damage (like on tools/armor), so you'll also notice changes like bonemeal rather than dye 15, or charcoal rather than coal 1.

Then, block IDs correspond to item IDs, and blockstates (numeric block metadata no longer exists) are only used for properties like rotation/powered/open that a block placed by that item can have.

/setblock ~ ~ ~ dispenser[facing=up]
5
  • Hi, @SirBenet, in your answer you mentioned: “dispenser[facing=up]. Is it [facing=up] or dispenser 1, 2, 3, etc.
    – DM01131
    Commented Aug 2, 2018 at 17:02
  • @user209814 dispenser[facing=up] - blockstates are specified like that (square brackets, after bock name) in 1.13, and numeric metadata no longer exists.
    – SirBenet
    Commented Aug 2, 2018 at 17:05
  • Really, @SirBenet? I thought for buttons you could do like (Example: /testforbock lever 12.
    – DM01131
    Commented Aug 5, 2018 at 13:16
  • And actually I did and it worked so maybe can you do it for levers and buttons but not blocks?
    – DM01131
    Commented Aug 5, 2018 at 13:17
  • You need to use blockstates (e.g: [facing=up]) now, numeric metadata no longer exists for any blocks as of 1.13.
    – SirBenet
    Commented Aug 5, 2018 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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