This command allows to create a sensor
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
# This user did not upload the source commands!
summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-1 ~7 ~2 ~1 lapis_block 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-1 ~7 ~1 ~1 stained_glass 11 replace lapis_block"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add perto dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add longe dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add 2lF1XD_I dummy"},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Sensor Vanila Mod V2\\n\",\"color\":\"yellow\",\"bold\":true,\"underlined\":true},{\"text\":\"Feito por jean224\\n\",\"color\":\"yellow\",\"bold\":true,\"underlined\":true},{\"text\":\"Clique para ver mais comandos meus\",\"color\":\"yellow\",\"bold\":true,\"underlined\":true}]"},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Ajuda\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/say Drop um Bloco de Ferro e um Bloco de Redstone pra fazer o Sensor e para remove-lo você deve subir em cima dele\\\"},\\\"bold\\\":true}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Destruir sistema\\\",\\\"color\\\":\\\"black\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-3 ~-1 ~6 ~2 ~1 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~ chain_command_block 1 replace {auto:1,Command:"/execute @e[score_2lF1XD_I_min=5,score_2lF1XD_I=5] ~ ~ ~ execute @e[score_2lF1XD_I_min=6,score_2lF1XD_I=6,r=1] ~ ~ ~ kill @e[type=Item,r=3,score_2lF1XD_I_min=5,score_2lF1XD_I=7] "}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_2lF1XD_I_min=5,score_2lF1XD_I=5] ~ ~ ~ execute @e[score_2lF1XD_I_min=6,score_2lF1XD_I=6,r=1] ~ ~ ~ summon Item ~ ~0.5 ~ {Item:{id:spawn_egg,Damage:120,Count:1,tag:{display:{Name:\\\"Sensor\\\"},EntityTag:{id:\\\"Villager\\\"}}}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e 2lF1XD_I 6 {Item:{id:minecraft:iron_block},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e 2lF1XD_I 5 {Item:{id:minecraft:redstone_block},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Morto] ~ ~ ~ kill @e[type=ArmorStand,name=Morto]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Morto] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:spawn_egg,Damage:120,Count:1,tag:{display:{Name:\\\"Sensor\\\"},EntityTag:{id:\\\"Villager\\\"}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Morto] ~ ~ ~ setblock ~ ~ ~ minecraft:air"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 5 replace {auto:1,Command:"/execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:redstone_block 0 entitydata @e[type=ArmorStand,name=Sensor,r=2] {CustomName:\\\"Morto\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 1 replace {auto:1,Command:"/execute @e[score_longe=0,score_longe_min=0] ~ ~ ~ setblock ~ ~ ~ minecraft:air"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 4 replace {auto:1,Command:"/execute @p[score_perto=0,score_perto_min=0] ~ ~ ~ execute @e[score_longe_min=1] ~ ~ ~ scoreboard players remove @e[type=ArmorStand,name=Sensor] longe 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_perto_min=1] ~ ~ ~ scoreboard players set @e[type=ArmorStand,name=Sensor,r=6] longe 2"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[score_perto_min=1] ~ ~ ~ execute @e[type=ArmorStand,name=Sensor,r=6] ~ ~ ~ setblock ~ ~ ~ minecraft:redstone_block"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 1 replace {auto:1,Command:"/scoreboard players remove @p[score_perto_min=1] perto 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Sensor] ~ ~ ~ scoreboard players set @p[r=6] perto 2"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 5 replace {auto:1,Command:"/kill @e[type=Villager,name=Sensor]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ repeating_command_block 5 replace {auto:1,Command:"/execute @e[type=Villager,name=Sensor] ~ ~ ~ summon ArmorStand ~ ~ ~ {CustomName:\\\"Sensor\\\",Small:1,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:command_block,Count:1}]}"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}