/give @p sign 1 0 {BlockEntityTag:{Text2:"{"text":"Click","color":"blue","clickEvent":{"action":"run_command","value":"/setblock ~ ~ ~ command_block 3 replace {auto:1,Command:summon FallingSand ~ ~1 ~ {Time:1,Block:redstone_block,Passengers:[{id:FallingSand,Time:1,Block:activator_rail,Passengers:[{id:MinecartCommandBlock,Command:scoreboard objectives add guihold dummy},{id:MinecartCommandBlock,Command:scoreboard objectives add guimenu dummy},{id:MinecartCommandBlock,Command:scoreboard objectives add interface dummy},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~2 repeating_command_block 3 replace {auto:1,Command:/scoreboard players set @a guihold 0}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~3 command_block 3 replace {auto:1,Command:give @p barrier 1 0 {rrGUIITEM:1,}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~3 chain_command_block 3 replace {auto:1,Command:/scoreboard players set @a guihold 1 {SelectedItem:{id:minecraft:barrier,tag:{rrGUIITEM:1}}}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~4 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guihold_min=1] ~ ~ ~ tp @e[type=MinecartChest,tag=menugui,r=3,c=1] @p}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~5 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guihold_min=1] ~ ~ ~ tp @e[type=MinecartChest,tag=menugui,r=3,c=1] ~ ~1.2 ~}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~6 chain_command_block 3 replace {auto:1,Command:/scoreboard players set @a[score_guihold_min=1,score_guimenu=0] guimenu 1 {SelectedItem:{id:minecraft:barrier,tag:{rrGUIITEM:1}}}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~7 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guihold=0] ~ ~ ~ /scoreboard players set @p guimenu 0}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~8 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guihold_min=1,score_guimenu=1,score_guimenu_min=1] ~ ~ ~ summon MinecartChest ~ ~1.2 ~ {Silent:1,Invulnerable:1b,CustomName:\u00a7k kghcfg,CustomDisplayTile:1,DisplayTile:air,NoGravity:0,Tags:[menugui]}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~9 chain_command_block 3 replace {auto:1,Command:/scoreboard players set @a[score_guimenu_min=1,score_guimenu=1] guimenu 2}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~10 chain_command_block 3 replace {auto:1,Command:execute @a[score_guihold_min=0,score_guihold=0] ~ ~1 ~ tp @e[type=MinecartChest,tag=menugui,r=0,c=1] ~ ~-500 ~}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~11 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guimenu_min=3,score_guimenu=3] ~ ~ ~ /scoreboard players set @p guimenu 0}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~12 chain_command_block 3 replace {auto:1,Command:/execute @a[score_guihold=0] ~ ~ ~ /scoreboard players set @p guimenu 0}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~13 chain_command_block 3 replace {auto:1,Command:/scoreboard players tag @e[tag=menugui] add onGround}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~14 chain_command_block 3 replace {auto:1,Command:/execute @e[tag=menugui] ~ ~ ~ detect ~ ~-1 ~ air -1 scoreboard players tag @e[c=1] remove onGround}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~15 chain_command_block 3 replace {auto:1,Command:tp @e[type=MinecartChest,tag=menugui,tag=onGround] ~ ~-500 ~}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~16 chain_command_block 3 replace {auto:1,Command:execute @a[score_guihold_min=1] ~ ~ ~ entitydata @e[type=MinecartChest,tag=menugui,c=1] {Motion:[0.0,0.0,0.0]}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~17 chain_command_block 3 replace {auto:1,Command:scoreboard players add @e[type=MinecartChest,tag=menugui] interface 0}},{id:MinecartCommandBlock,Command:scoreboard objectives add IbiJSQv1 dummy},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~2 repeating_command_block 3 replace {auto:1,Command:scoreboard players add @a IbiJSQv1 0}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~3 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ stats entity @p set SuccessCount @p IbiJSQv1}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~4 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ clear @p end_gateway 0 1 {itemUUID:IbiJSQv1}}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~5 chain_command_block 3 replace {auto:1,Command:execute @a[score_IbiJSQv1_min=1] ~ ~ ~ null}},{id:MinecartCommandBlock,Command:scoreboard objectives add 00T1HSH8 dummy},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~6 chain_command_block 3 replace {auto:1,Command:scoreboard players add @a 00T1HSH8 0}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~7 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ stats entity @p set SuccessCount @p 00T1HSH8}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~8 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ clear @p lit_furnace 0 1 {itemUUID:00T1HSH8}}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~9 chain_command_block 3 replace {auto:1,Command:execute @a[score_00T1HSH8_min=1] ~ ~ ~ null}},{id:MinecartCommandBlock,Command:scoreboard objectives add 18qiu4uW dummy},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~10 chain_command_block 3 replace {auto:1,Command:scoreboard players add @a 18qiu4uW 0}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~11 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ stats entity @p set SuccessCount @p 18qiu4uW}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~12 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ clear @p fire 0 1 {itemUUID:18qiu4uW}}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~13 chain_command_block 3 replace {auto:1,Command:execute @a[score_18qiu4uW_min=1] ~ ~ ~ null}},{id:MinecartCommandBlock,Command:scoreboard objectives add bJecXBWk dummy},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~14 chain_command_block 3 replace {auto:1,Command:scoreboard players add @a bJecXBWk 0}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~15 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ stats entity @p set SuccessCount @p bJecXBWk}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~16 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ clear @p end_portal 0 1 {itemUUID:bJecXBWk}}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~17 chain_command_block 3 replace {auto:1,Command:execute @a[score_bJecXBWk_min=1] ~ ~ ~ null}},{id:MinecartCommandBlock,Command:scoreboard objectives add 0Bc0NqZk dummy},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~18 chain_command_block 3 replace {auto:1,Command:scoreboard players add @a 0Bc0NqZk 0}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~19 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ stats entity @p set SuccessCount @p 0Bc0NqZk}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~20 chain_command_block 3 replace {auto:1,Command:execute @a ~ ~ ~ clear @p ender_pearl 0 1 {itemUUID:0Bc0NqZk}}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~21 chain_command_block 3 replace {auto:1,Command:execute @a[score_0Bc0NqZk_min=1] ~ ~ ~ null}},{id:MinecartCommandBlock,Command:setblock ~-1 ~-2 ~2 repeating_command_block 3 replace {auto:1,Command:entitydata @e[tag=menugui,score_interface_min=,score_interface=] {Items:[{Slot:4b,id:end_gateway,Damage:0s,Count:1b,tag:{itemUUID:IbiJSQv1,HideFlags:63,display:{}}},{Slot:12b,id:lit_furnace,Damage:0s,Count:1b,tag:{itemUUID:00T1HSH8,HideFlags:63,display:{}}},{Slot:13b,id:fire,Damage:0s,Count:1b,tag:{itemUUID:18qiu4uW,{AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:100,Operation:2,UUIDLeast:239903,UUIDMost:870905,Slot:\"offhand\"}],display:{Name:\"Hot\"}},HideFlags:63,display:{Name:FirePower,}}},{Slot:14b,id:end_portal,Damage:0s,Count:1b,tag:{itemUUID:bJecXBWk,HideFlags:63,display:{}}},{Slot:22b,id:ender_pearl,Damage:0s,Count:1b,tag:{itemUUID:0Bc0NqZk,HideFlags:63,display:{}}},]}}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~ command_block 0 replace {auto:1,Command:fill ~ ~ ~ ~ ~3 ~ air}},
{id:MinecartCommandBlock,Command:kill @e[r=0]}]}]}}"}}"}}