Curcuit_Blocks

Minecraft | Keys & Locks | 1 Command

Sep 5th, 2016
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. /summon FallingSand ~ ~1 ~ {Block:"redstone_block",Time:3,Passengers:[{id:"FallingSand",Block:"activator_rail",Time:3,Passengers:[{id:"MinecartCommandBlock",Command:/gamerule commandBlockOutput false},{id:"MinecartCommandBlock",Command:/scoreboard objectives add PackTimer dummy},{id:"MinecartCommandBlock",Command:/fill ~2 ~-2 ~-1 ~5 ~4 ~1 minecraft:gold_block 0 hollow},{id:"MinecartCommandBlock",Command:/fill ~2 ~-1 ~-1 ~5 ~3 ~1 minecraft:stained_glass 1 replace minecraft:gold_block},{id:MinecartCommandBlock,Command:setblock ~1 ~2 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"Click here\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/particle explode ~2.5 ~-1 ~ 2 3 1 .01 100 normal\\\"}}",Text2:"{\\\"text\\\":\\\"to remove\\\",\\\"color\\\":\\\"dark_red\\\"}",Text3:"{\\\"text\\\":\\\"this machine\\\",\\\"color\\\":\\\"dark_red\\\"}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-4 ~-1 ~4 ~2 ~1 air\\\"}}"}},{id:"MinecartCommandBlock",Command:/setblock ~ ~1 ~ command_block 1 0 {auto:1b,Command:fill ~ ~ ~ ~ ~-2 ~ air}},{id:"MinecartCommandBlock",Command:/summon FallingSand ~3 ~-1 ~ {Block:chain_command_block,Data:0,Time:1,TileEntityData:{Command:/execute @e[tag=GoldNKL] ~ ~ ~ execute @e[tag=GoldKL,dx=0] ~ ~ ~ execute @e[tag=StickKL,dx=0] ~ ~ ~ kill @e[c=3,type=Item]},Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/entitydata @e[name=Lock,type=Blaze] {Health:0.0f,DeathLootTable:"",DeathTime:19s}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:repeating_command_block,Data:0,TileEntityData:{auto:1b,Command:/execute @e[name=Lock,type=Blaze] ~ ~ ~ /blockdata ~ ~-1 ~ {Lock:"Key"}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/execute @e[tag=GoldNKL] ~ ~ ~ execute @e[tag=GoldKL,dx=0] ~ ~ ~ execute @e[tag=StickKL,dx=0] ~ ~ ~ summon Item ~ ~1 ~ {Motion:[0.0,0.3,0.0],Item:{id:"gold_nugget",Count:1b,tag:{KeyKL:1b,ench:[],display:{Name:"Key",Lore:["Right click on","Locked chests to","open them."]}}},Passengers:[{id:"Item",Item:{id:"spawn_egg",Count:1b,tag:{ench:[],display:{Name:"Lock",Lore:["Place on top","of the object","you wish to lock"]},EntityTag:{id:"Blaze"}}}}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/scoreboard players tag @e[type=Item] add StickKL {Item:{id:"minecraft:stick",Count:1b},OnGround:1b}},Time:1,DropItem:0}]}]}]}]}},{id:"MinecartCommandBlock",Command:/summon FallingSand ~4 ~-1 ~ {Block:repeating_command_block,Data:1,TileEntityData:{auto:1b,Command:/scoreboard players add KeyLock PackTimer 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/scoreboard players test KeyLock PackTimer 20},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:/scoreboard players set KeyLock PackTimer 0},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:repeating_command_block,Data:9,TileEntityData:{auto:1b,Command:/scoreboard players tag @e[type=Item] add GoldKL {Item:{id:"minecraft:gold_ingot",Count:1b},OnGround:1b}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:4,TileEntityData:{Command:/scoreboard players tag @e[type=Item] add GoldNKL {Item:{id:"minecraft:gold_nugget",Count:1b},OnGround:1b}},Time:1,DropItem:0}]}]}]}]}},{id:"MinecartCommandBlock",Command:/setblock ~ ~1 ~ command_block 1 0 {auto:1b,Command:fill ~ ~ ~ ~ ~-2 ~ air}},{id:"MinecartCommandBlock",Command:kill @e[r=2,type=MinecartCommandBlock]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment