Atm I am trying to detect If somebody is standing at a pressure plate so a commandblock 10 blocks away can detect it and set a block.
So far I got this: "/execute if block -42 69 51 #minecraft:pressure_plates[powered=true] run setblock -52 63 43 air°
But I cant get it to work, any ideas what I am doing wrong?
Actually, they weren't testing for just generic "pressure_plate" as there isn't a block by that id, they were referencing the vanilla block tag "#minecraft:pressure_plates" which includes:
so the block tag "#minecraft:pressure_plates" does have an 's' at the end. How you can tell if something is a block id as opposed to a block tag is that a block tag has a '#' at the beginning.
Hello,
Atm I am trying to detect If somebody is standing at a pressure plate so a commandblock 10 blocks away can detect it and set a block.
So far I got this: "/execute if block -42 69 51 #minecraft:pressure_plates[powered=true] run setblock -52 63 43 air°
But I cant get it to work, any ideas what I am doing wrong?
solved it, not quite sure how, maybe it was "air" and not "minecraft:air"
Pressure_plate don't have a "s" at the end.
I like trains... OF CHAIN COMMAND BLOCKS !
Actually, they weren't testing for just generic "pressure_plate" as there isn't a block by that id, they were referencing the vanilla block tag "#minecraft:pressure_plates" which includes:
minecraft:light_weighted_pressure_plate
minecraft:heavy_weighted_pressure_plate
minecraft:oak_pressure_plate
minecraft:spruce_pressure_plate
minecraft:birch_pressure_plate
minecraft:jungle_pressure_plate
minecraft:acacia_pressure_plate
minecraft:dark_oak_pressure_plate
minecraft:crimson_pressure_plate
minecraft:warped_pressure_plate
minecraft:stone_pressure_plate
minecraft:polished_blackstone_pressure_plate
so the block tag "#minecraft:pressure_plates" does have an 's' at the end. How you can tell if something is a block id as opposed to a block tag is that a block tag has a '#' at the beginning.
Oups my bad, don't see the "#"
I like trains... OF CHAIN COMMAND BLOCKS !