mojira.dev
MC-121742

block states can't be used in /give, /clear and /replaceitem, but can be used in /setblock /fill /execute detect and /testforblock

As of 1.11 snapshots you can use block states in /setblock, /fill, /execute detect and /testforblock, rather then meta data, this makes /give, /clear and /replaceitem stupidly hard to use, to get the right item.
This also affects models; models are named acacia_log, where in game you have log2:0.

The best way to fix this is to make them separate blocks (like the model files), in the attachments (

[media]

) is a LONG list of blocks that shouldn't be block states but their own block.
The model/block state files should be renamed too when they are not the same as listed below.

This list contains:

  • Block states that shouldn't be block states.

  • Logical changes.

  • Changes that'll make the code more sane.

Build up like this:

  • Current collection

    • What it should be (old data value(s)/old block state(s)/{old nbt data})

      • Additional note(s)

Linked issues

Attachments

Comments 21

Using "light_gray" instead of "silver" might make it more consistent.

Ids are internals, everywhere but the translations it states silver, hence why it is consistent then.

Why the suggested switch from stained_hardened_clay to color_terracotta (instead of color_clay or color_stained_clay)?

Seems like, with real terracotta just added, it would cause some confusion.

I just listened to @unknown, he's making the changes, and as the changes are being made, this list gets updated.

@unknown The new blocks are called glazed terracotta, and they're made by smelting stained clay. So I guess that retroactively makes stained clay simply not-glazed terracotta. And hey, it's more concise, so that's a plus. 😛

11 more comments

Included some more information in the list, as well as mentioned what changes are not certain.

Updated with the latest info, main changes:

  • (de)confirmation of all things (but comparator power(ed) tag)

  • smooth_quartz

  • oak_pressure_plate

  • oak_button

  • oak_trapdoor

  • piston_extension -> moving_piston

  • banner -> COLOR_banner

  • wall_banner -> COLOR_wall_banner

  • spawn_egg -> ENTITY_spawn_egg

  • red_mushroom_block, brown_mushroom_block -> red_mushroom_block, brown_mushroom_block, mushroom_stem

  • FLOWER_flower_pot -> potted_FLOWER

  • wall_XXX_skull/head -> XXX_wall_skull/head

  • chiseled_quartz -> chiseled_quartz_block

  • notch_apple -> enchanted_golden_apple

  • slime_ball not altered

  • speckled_melon not altered

  • redstone not altered

  • end_crystal not altered

  • fireworks -> firework_rocket

Updated list again to show:

  • portal goes unchanged

  • wooden_button is the current id with future id oak_button

  • MOB_wall_skull instead of wall_MOB_skull

as per FVbico's request.

Some more minor changed.

I hope this is the last time I need to upload this...

user-f2760

Erik Broes

Confirmed

/clear, /execute-detect, /fill, /give, /replaceitem, /setblock, /testforblock, block, block-state, command, model, rewrite

Minecraft 1.12.1, Minecraft 17w45a

Minecraft 17w47a

Retrieved