mojira.dev
MC-143765

Certain states do not work when placing blocks with a custom BlockStateTag

When placing items with a custom BlockStateTag NBT tag, certain block states do not take effect. Examples I have found so far include:

  • Creating campfires which are unlit by default (Ex: /give @p minecraft:campfire{BlockStateTag:{lit:false}} )

  • End Portal Frames with eyes already inserted (Ex: /give @p minecraft:end_portal_frame{BlockStateTag:{eye:true}} )

  • All tested blocks which feature the "waterlogged" tag (Ex: /give @p minecraft:oak_fence{BlockStateTag:{waterlogged:true}} )

This does not seem to be an issue with the blocks themselves, as some block states are still applied (Ex: Campfires can be summoned facing a certain direction, but not waterlogged or extinguished.)

Comments 2

You need to quote it, e.g. lit:"true"

Just to elaborate, if you don't, it'll see you entered true (or false) and it will be treated as a boolean entry (which is saved as bytes, so 1b and 0b), quotation fixes this, as it enforces it to treat it as a string.

Skylar Rose

(Unassigned)

Unconfirmed

Minecraft 19w06a

Retrieved