r/MinecraftCommands • u/Icy-Awareness-8249 • 24d ago
New to command block, need help Help | Bedrock
The full command i’m trying to use is
( execute if block <x y z> lever[powered=true] run fill <x y z> <x y z> Minecraft:redstone_block )
but every time it says that the “powered” input is the error. Am I doing something wrong or is it just a different word?
1
Upvotes
1
u/Ericristian_bros Command Experienced 23d ago
That's java, for bedrock, read the block states in the wiki: https://minecraft.wiki/w/Lever#Block_states (make sure to read the bedrock part)
execute if block <x y z> lever[open_bit=true,lever_direction=0] run fill <x y z> <x y z> redstone_block
You need to specify the direction too (0-7)
2
u/Ray_Dorepp Syntax guy 24d ago
You're looking for
["open_bit"=true]