mojira.dev
MC-54707

Command: setblock minecraft:sign produces a confusing error message

The command:
"/setblock ~ ~ ~ minecraft:sign" produces the error message:
"There is no such item with name minecraft:sign"

However, minecraft:sign is an item, and works with commands such as /give.
setblock requires a block, not an item, and so the correct names to use for setblock are "minecraft:wall_sign" and "minecraft:standing_sign", which are the blocks produced by the sign item when it is placed in the world.

As such, it would be less confusing if the error message instead said:
"There is no such block with name minecraft:sign"

Linked issues

Attachments

Comments 7

I believe the setblock command is expecting a block, rather than an item. Because signs may be placed on the ground or on a wall, the item will produce a different block for each of them. Try "minecraft:standing_sign" or "minecraft:wall_sign".

However, the error message is admittedly misleading. "minecraft:sign" is certainly an item.

indeed, sign = item, standing_sign/wall_sign = blocks
this is invalid

Thx all for your answers. Sorry but I don't speak english very well 😛

This is valid, the command says 'minecraft:sign' is not an item, yet is is an item. It isn't a *block*

well if you look at it like that, indeed valid

It would be really cool if it would suggest the correct name, based on item- and block-forms and which one you misuse in which context.

Tonneau Sébastien

michael

Confirmed

Minecraft 14w18b, Minecraft 1.8

Minecraft 1.8.1-pre1

Retrieved