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:
How can I activate a redstone lamp with a command block?
In Bedrock edition there's a seaparate object ID for the lit block state of the redstone lamp:
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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP