TransWikia.com

Activate redstone lamp with command block?

Arqade Asked on July 8, 2021

I’ve reviewed several articles and other questions (here’s one), trying to trace down a way to activate a redstone lamp using a command block. Everything I’ve found says to use:

/setblock x y z minecraft:redstone_lamp[lit=true]

I get a syntax error within the braces saying that lit was unexpected:

Screenshot of error.

How can I activate a redstone lamp with a command block?

One Answer

In Bedrock edition there's a seaparate object ID for the lit block state of the redstone lamp:

Screenshot of new object.

So instead of using block states like you would in Java edition:

setblock x y z redstone_lamp[lit=true]

You should specify the object ID for the lit redstone lamp:

setblock x y z lit_redstone_lamp

Special thanks to @Penguin for pointing out in a comment that, while my initial answer was correct, my explanation was wrong. I've adjusted my answer to clarify this for future readers.

Correct answer by Taco タコス on July 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP