summon falling_block ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1,Passengers:[{id:commandblock_minecart,Command:gamerule commandBlockOutput false},{id:commandblock_minecart,Command:fill ~2 ~-3 ~-2 ~8 ~5 ~2 quartz_block 0 hollow},{id:commandblock_minecart,Command:fill ~2 ~-2 ~-2 ~8 ~4 ~2 stained_glass 0 0 quartz_block},{id:commandblock_minecart,Command:/scoreboard objectives add rc stat.talkedToVillager},{id:commandblock_minecart,Command:/scoreboard objectives add clickmode dummy},{id:commandblock_minecart,Command:/scoreboard objectives add sneak stat.sneakTime },{id:commandblock_minecart,Command:/scoreboard objectives add code dummy},{id:commandblock_minecart,Command:/scoreboard objectives add codestep dummy},{id:commandblock_minecart,Command:/scoreboard objectives add codeinit dummy},{id:commandblock_minecart,Command:/scoreboard objectives add code_correct dummy},{id:commandblock_minecart,Command:/scoreboard objectives add codecompare dummy},{id:commandblock_minecart,Command:/scoreboard objectives add dooropen dummy},{id:commandblock_minecart,Command:/scoreboard objectives add item dummy},{id:commandblock_minecart,Command:setblock ~1 ~ ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/scoreboard players set @p item 2\\\"}}",Text2:"{\\\"text\\\":\\\"Give\\\"}",Text3:"{\\\"text\\\":\\\"Lock\\\"}",Text4:"{\\\"text\\\":\\\"\\\"}"}},{id:commandblock_minecart,Command:setblock ~1 ~1 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\"}",Text2:"{\\\"text\\\":\\\"Destroy\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Machine\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-4 ~-2 ~7 ~4 ~2 air\\\"}}"}},{id:commandblock_minecart,Command:fill ~3 ~-2 ~-1 ~7 ~4 ~1 chain_command_block 5},{id:commandblock_minecart,Command:setblock ~3 ~3 ~-1 chain_command_block 1},{id:commandblock_minecart,Command:fill ~7 ~3 ~-1 ~4 ~3 ~-1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~3 ~ chain_command_block 2},{id:commandblock_minecart,Command:setblock ~3 ~3 ~1 chain_command_block 2},{id:commandblock_minecart,Command:fill ~7 ~3 ~1 ~4 ~3 ~1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~2 ~1 chain_command_block 1},{id:commandblock_minecart,Command:setblock ~3 ~2 ~ chain_command_block 3},{id:commandblock_minecart,Command:fill ~7 ~2 ~ ~4 ~2 ~ chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~2 ~-1 chain_command_block 3},{id:commandblock_minecart,Command:setblock ~3 ~1 ~-1 chain_command_block 1},{id:commandblock_minecart,Command:fill ~7 ~1 ~-1 ~4 ~1 ~-1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~1 ~ chain_command_block 2},{id:commandblock_minecart,Command:setblock ~3 ~1 ~1 chain_command_block 2},{id:commandblock_minecart,Command:fill ~7 ~1 ~1 ~4 ~1 ~1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~ ~1 chain_command_block 1},{id:commandblock_minecart,Command:setblock ~3 ~ ~ chain_command_block 3},{id:commandblock_minecart,Command:fill ~7 ~ ~ ~4 ~ ~ chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~ ~-1 chain_command_block 3},{id:commandblock_minecart,Command:setblock ~3 ~-1 ~-1 chain_command_block 1},{id:commandblock_minecart,Command:fill ~7 ~-1 ~-1 ~4 ~-1 ~-1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~-1 ~ chain_command_block 2},{id:commandblock_minecart,Command:setblock ~3 ~-1 ~1 chain_command_block 2},{id:commandblock_minecart,Command:fill ~7 ~-1 ~1 ~4 ~-1 ~1 chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~-2 ~1 chain_command_block 1},{id:commandblock_minecart,Command:setblock ~3 ~-2 ~ chain_command_block 3},{id:commandblock_minecart,Command:fill ~7 ~-2 ~ ~4 ~-2 ~ chain_command_block 4},{id:commandblock_minecart,Command:setblock ~7 ~-2 ~-1 chain_command_block 3},{id:commandblock_minecart,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5},{id:commandblock_minecart,Command:blockdata ~3 ~4 ~-1 {auto:1,Command:/scoreboard players set @a item 0}},{id:commandblock_minecart,Command:blockdata ~3 ~3 ~-1 {auto:1,Command:/tp @e[tag=LS] ~ ~-100 ~ }},{id:commandblock_minecart,Command:blockdata ~4 ~3 ~-1 {auto:1,Command:/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /scoreboard players set @e[tag=LB,c=1] codeinit -1}},{id:commandblock_minecart,Command:blockdata ~5 ~3 ~-1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-1 ~-1 ~-1 {Tags:[\\\"lc\\\"],Invisible:1,Passengers:[{id:\\\"villager\\\",Invulnerable:1,ActiveEffects:[{Id:14,Amplifier:5,Duration:9}],Offers:{},Silent:1,Tags:[\\\"v\\\",\\\"lc\\\"]}]}"}},{id:commandblock_minecart,Command:blockdata ~6 ~3 ~-1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.27 ~-1.3 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~7 ~3 ~-1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.27 ~-0.7 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~7 ~3 ~ {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.27 ~-1 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~6 ~3 ~ {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.48 ~-1.3 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~5 ~3 ~ {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.48 ~-0.7 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~4 ~3 ~ {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.48 ~-1 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~3 ~3 ~ {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.67 ~-1.3 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~3 ~3 ~1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.67 ~-0.7 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~4 ~3 ~1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~-0.5 ~0.67 ~-1 {ArmorItems:[{},{},{},{id:stone_button,Count:1}],NoGravity:1,Rotation:[90f],Pose:{Head:[180f,0f,0f]},Invisible:1,Tags:[\\\"lc\\\"]}"}},{id:commandblock_minecart,Command:blockdata ~5 ~3 ~1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~ ~1 ~-1 {Tags:[\\\"LB\\\",\\\"lc\\\"],NoGravity:1,Invisible:1,Marker:1}"}},{id:commandblock_minecart,Command:blockdata ~6 ~3 ~1 {auto:1,Command:"/execute @p ~ ~ ~ /execute @e[tag=LS,r=10] ~ ~ ~ /summon armor_stand ~ ~ ~ {Tags:[\\\"LD\\\",\\\"lc\\\"],NoGravity:1,Invisible:1,Marker:1}"}},{id:commandblock_minecart,Command:blockdata ~7 ~3 ~1 {auto:1,Command:/execute @e[tag=LB] ~ ~ ~ /setblock ~ ~ ~ quartz_block}},{id:commandblock_minecart,Command:blockdata ~7 ~2 ~1 {auto:1,Command:/execute @e[tag=LB,score_dooropen_min=1] ~ ~ ~ /execute @e[tag=LD,c=1] ~ ~ ~ /setblock ~ ~1 ~ iron_door 9}},{id:commandblock_minecart,Command:blockdata ~6 ~2 ~1 {auto:1,Command:/execute @e[tag=LB,score_dooropen_min=1] ~ ~ ~ /execute @e[tag=LD,c=1] ~ ~ ~ /setblock ~ ~ ~ iron_door 1}},{id:commandblock_minecart,Command:blockdata ~5 ~2 ~1 {auto:1,Command:/execute @e[tag=LB,score_dooropen=0] ~ ~ ~ /execute @e[tag=LD,c=1] ~ ~ ~ /setblock ~ ~1 ~ iron_door 8}},{id:commandblock_minecart,Command:blockdata ~4 ~2 ~1 {auto:1,Command:/execute @e[tag=LB,score_dooropen=0] ~ ~ ~ /execute @e[tag=LD,c=1] ~ ~ ~ /setblock ~ ~ ~ iron_door 0}},{id:commandblock_minecart,Command:blockdata ~3 ~2 ~1 {auto:1,Command:/scoreboard players add @e[tag=LB] codestep 0}},{id:commandblock_minecart,Command:blockdata ~3 ~2 ~ {auto:1,Command:/execute @e[tag=v] ~ ~ ~ /teleport @p[score_clickmode_min=1,r=2] ~-0.4 ~-0.4 ~}},{id:commandblock_minecart,Command:blockdata ~4 ~2 ~ {auto:1,Command:/effect @e[tag=v] invisibility 9 9 true}},{id:commandblock_minecart,Command:blockdata ~5 ~2 ~ {auto:1,Command:/scoreboard players set @a rc 0}},{id:commandblock_minecart,Command:blockdata ~6 ~2 ~ {auto:1,Command:/execute @e[tag=v] ~ ~ ~ /scoreboard players set @a[score_rc_min=1,r=2,score_clickmode=0] clickmode 1}},{id:commandblock_minecart,Command:blockdata ~7 ~2 ~ {auto:1,Command:/execute @a[score_rc_min=1,score_clickmode_min=1,rym=-117,ry=-63,rx=20,rxm=-15] ~ ~ ~ /playsound minecraft:block.stone_button.click_on master @a}},{id:commandblock_minecart,Command:blockdata ~7 ~2 ~-1 {auto:1,Command:/execute @a[score_rc_min=1,score_clickmode_min=1,rym=-117,ry=-63,rx=20,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,c=1] codestep 1}},{id:commandblock_minecart,Command:blockdata ~6 ~2 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 9}},{id:commandblock_minecart,Command:blockdata ~5 ~2 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 8}},{id:commandblock_minecart,Command:blockdata ~4 ~2 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 7}},{id:commandblock_minecart,Command:blockdata ~3 ~2 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 6}},{id:commandblock_minecart,Command:blockdata ~3 ~1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 5}},{id:commandblock_minecart,Command:blockdata ~4 ~1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 4}},{id:commandblock_minecart,Command:blockdata ~5 ~1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 3}},{id:commandblock_minecart,Command:blockdata ~6 ~1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 2}},{id:commandblock_minecart,Command:blockdata ~7 ~1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=3,score_codestep_min=3] code 1}},{id:commandblock_minecart,Command:blockdata ~7 ~1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 90}},{id:commandblock_minecart,Command:blockdata ~6 ~1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 80}},{id:commandblock_minecart,Command:blockdata ~5 ~1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 70}},{id:commandblock_minecart,Command:blockdata ~4 ~1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 60}},{id:commandblock_minecart,Command:blockdata ~3 ~1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 50}},{id:commandblock_minecart,Command:blockdata ~3 ~1 ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 40}},{id:commandblock_minecart,Command:blockdata ~4 ~1 ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 30}},{id:commandblock_minecart,Command:blockdata ~5 ~1 ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 20}},{id:commandblock_minecart,Command:blockdata ~6 ~1 ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=2,score_codestep_min=2] code 10}},{id:commandblock_minecart,Command:blockdata ~7 ~1 ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 900}},{id:commandblock_minecart,Command:blockdata ~7 ~ ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 800}},{id:commandblock_minecart,Command:blockdata ~6 ~ ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 700}},{id:commandblock_minecart,Command:blockdata ~5 ~ ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 600}},{id:commandblock_minecart,Command:blockdata ~4 ~ ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 500}},{id:commandblock_minecart,Command:blockdata ~3 ~ ~1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 400}},{id:commandblock_minecart,Command:blockdata ~3 ~ ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 300}},{id:commandblock_minecart,Command:blockdata ~4 ~ ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 200}},{id:commandblock_minecart,Command:blockdata ~5 ~ ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=1,score_codestep_min=1] code 100}},{id:commandblock_minecart,Command:blockdata ~6 ~ ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 9000}},{id:commandblock_minecart,Command:blockdata ~7 ~ ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 8000}},{id:commandblock_minecart,Command:blockdata ~7 ~ ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=20,rxm=10] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 7000}},{id:commandblock_minecart,Command:blockdata ~6 ~ ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 6000}},{id:commandblock_minecart,Command:blockdata ~5 ~ ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 5000}},{id:commandblock_minecart,Command:blockdata ~4 ~ ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=6,rxm=-3] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 4000}},{id:commandblock_minecart,Command:blockdata ~3 ~ ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-78,ry=-63,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 3000}},{id:commandblock_minecart,Command:blockdata ~3 ~-1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-97,ry=-81,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 2000}},{id:commandblock_minecart,Command:blockdata ~4 ~-1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_rc_min=1,rym=-117,ry=-102,rx=-5,rxm=-15] ~ ~ ~ /scoreboard players add @e[tag=LB,score_codestep=0,score_codestep_min=0] code 1000}},{id:commandblock_minecart,Command:blockdata ~5 ~-1 ~-1 {auto:1,Command:/scoreboard players add @a clickmode 0}},{id:commandblock_minecart,Command:blockdata ~6 ~-1 ~-1 {auto:1,Command:/scoreboard players set @a[score_clickmode_min=1,score_sneak_min=1] clickmode 0}},{id:commandblock_minecart,Command:blockdata ~7 ~-1 ~-1 {auto:1,Command:/execute @a[score_clickmode_min=1,score_sneak_min=1] ~ ~ ~ /scoreboard players set @e[tag=LB,c=1] code 0}},{id:commandblock_minecart,Command:blockdata ~7 ~-1 ~ {auto:1,Command:/execute @a[score_clickmode_min=1,score_sneak_min=1] ~ ~ ~ /scoreboard players set @e[tag=LB,c=1] codestep 0}},{id:commandblock_minecart,Command:blockdata ~6 ~-1 ~ {auto:1,Command:/scoreboard players set @a[score_clickmode=0] sneak 0}},{id:commandblock_minecart,Command:blockdata ~5 ~-1 ~ {auto:1,Command:/scoreboard players set @e[score_codestep=0] code 0}},{id:commandblock_minecart,Command:blockdata ~4 ~-1 ~ {auto:1,Command:/scoreboard players set @e[score_codestep_min=4] codestep 0}},{id:commandblock_minecart,Command:blockdata ~3 ~-1 ~ {auto:1,Command:/scoreboard players set @e[score_codestep_min=4,score_codeinit=-1] codeinit 1}},{id:commandblock_minecart,Command:blockdata ~3 ~-1 ~1 {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare=0,score_codecompare_min=0] ~ ~ ~ /scoreboard players set @p[score_clickmode_min=1] clickmode 0}},{id:commandblock_minecart,Command:blockdata ~4 ~-1 ~1 {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare=0,score_codecompare_min=0] ~ ~ ~ /scoreboard players set @e[tag=LB,score_codestep_min=4] dooropen 100}},{id:commandblock_minecart,Command:blockdata ~5 ~-1 ~1 {auto:1,Command:"/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare=0,score_codecompare_min=0] ~ ~ ~ /title @p[score_clickmode_min=1] actionbar {\\\"text\\\":\\\"Correct code!\\\",\\\"color\\\":\\\"green\\\"}"}},{id:commandblock_minecart,Command:blockdata ~6 ~-1 ~1 {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare_min=1] ~ ~ ~ /scoreboard players set @p[score_clickmode_min=1] clickmode 0}},{id:commandblock_minecart,Command:blockdata ~7 ~-1 ~1 {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare=-1] ~ ~ ~ /scoreboard players set @p[score_clickmode_min=1] clickmode 0}},{id:commandblock_minecart,Command:blockdata ~7 ~-2 ~1 {auto:1,Command:"/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare_min=1] ~ ~ ~ /title @p[score_clickmode_min=1] actionbar {\\\"text\\\":\\\"Wrong code!\\\",\\\"color\\\":\\\"red\\\"}"}},{id:commandblock_minecart,Command:blockdata ~6 ~-2 ~1 {auto:1,Command:"/execute @e[score_codestep_min=4,score_codeinit_min=1,score_codecompare=-1] ~ ~ ~ /title @p[score_clickmode_min=1] actionbar {\\\"text\\\":\\\"Wrong code!\\\",\\\"color\\\":\\\"red\\\"}"}},{id:commandblock_minecart,Command:blockdata ~5 ~-2 ~1 {auto:1,Command:/scoreboard players operation @e[score_codestep_min=4] codecompare -= @e[score_codestep_min=4] code}},{id:commandblock_minecart,Command:"/tellraw @p [\"\",{\"text\":\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nCombination Locks\",\"color\":\"gold\",\"bold\":true},{\"text\":\" by \",\"color\":\"none\",\"bold\":false},{\"text\":\"McMakistein\\n\",\"color\":\"blue\",\"bold\":true},{\"text\":\"Check out my social media for more of my work!\\n\\n\",\"color\":\"green\",\"italic\":true,\"bold\":false},{\"text\":\"[Twitter] \",\"color\":\"blue\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://twitter.com/MrMakistein\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Click to follow me!\"}]}},\"italic\":false},{\"text\":\" - \",\"color\":\"black\"},{\"text\":\"[Youtube] \",\"color\":\"red\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.youtube.com/user/McMakistein\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Subscribe to my channel!\"}]}}},{\"text\":\" - \",\"color\":\"black\"},{\"text\":\"[Facebook]\\n\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.facebook.com/McMakistein\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Like my page!\"}]}}}]"},{id:commandblock_minecart,Command:blockdata ~4 ~-2 ~1 {auto:1,Command:/scoreboard players operation @e[score_codestep_min=4] codecompare = @e[score_codestep_min=4] code_correct}},{id:commandblock_minecart,Command:blockdata ~3 ~-2 ~1 {auto:1,Command:/scoreboard players add @e[tag=LB,score_codestep_min=4] codecompare 0}},{id:commandblock_minecart,Command:blockdata ~3 ~-2 ~ {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit=-1] ~ ~ ~ /scoreboard players set @p[score_clickmode_min=1] clickmode 0}},{id:commandblock_minecart,Command:blockdata ~4 ~-2 ~ {auto:1,Command:"/execute @e[score_codestep_min=4,score_codeinit=-1] ~ ~ ~ /title @p[score_clickmode_min=1] actionbar [\\\"\\\",{\\\"text\\\":\\\"Code set to: \\\",\\\"color\\\":\\\"green\\\"},{\\\"score\\\":{\\\"name\\\":\\\"@e[tag=LB,score_codestep_min=4]\\\",\\\"objective\\\":\\\"code\\\"}}]"}},{id:commandblock_minecart,Command:blockdata ~5 ~-2 ~ {auto:1,Command:/execute @e[score_codestep_min=4,score_codeinit=-1] ~ ~ ~ /scoreboard players operation @e[tag=LB,score_codestep_min=4] code_correct = @e[tag=LB,score_codestep_min=4] code}},{id:commandblock_minecart,Command:blockdata ~6 ~-2 ~ {auto:1,Command:/execute @e[score_dooropen_min=1,score_dooropen=1] ~ ~ ~ /playsound minecraft:block.iron_door.close master @a}},{id:commandblock_minecart,Command:blockdata ~7 ~-2 ~ {auto:1,Command:/execute @e[score_dooropen_min=99,score_dooropen=99] ~ ~ ~ /playsound minecraft:block.iron_door.open master @a}},{id:commandblock_minecart,Command:blockdata ~7 ~-2 ~-1 {auto:1,Command:/scoreboard players remove @e[score_dooropen_min=1] dooropen 1}},{id:commandblock_minecart,Command:blockdata ~6 ~-2 ~-1 {auto:1,Command:/scoreboard players add @e[tag=LB] dooropen 0}},{id:commandblock_minecart,Command:blockdata ~5 ~-2 ~-1 {auto:1,Command:"/give @a[score_item_min=2,score_item=2] minecraft:spawn_egg 1 94 {display:{Name:\\\"Spawn Lock\\\"},EntityTag:{id:\\\"minecraft:squid\\\",Tags:[LS]}}"}},{id:commandblock_minecart,Command:blockdata ~4 ~-2 ~-1 {auto:1,Command:/execute @e[score_item_min=1,score_item=1] ~ ~ ~ /execute @e[tag=LD,r=1] ~ ~ ~ /kill @e[tag=lc,r=3]}},{id:commandblock_minecart,Command:blockdata ~3 ~-2 ~-1 {auto:1,Command:"/scoreboard players set @e[type=item] item 1 {Item:{id:\\\"minecraft:bedrock\\\",Count:1b,Damage:0s}}"}},{id:commandblock_minecart,Command:setblock ~ ~ ~1 command_block 0 0 {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:commandblock_minecart,Command:setblock ~ ~-1 ~1 redstone_block},{id:commandblock_minecart,Command:kill @e[type=commandblock_minecart,r=1]}]}]}]}
-
-
-
-