Advertisement
Guest User

[OCC] Chat Disabler v0.1

a guest
Jan 21st, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.64 KB | None | 0 0
  1. 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 ~-1 ~5 ~-1 ~1 stained_hardened_clay 2 hollow},{id:commandblock_minecart,Command:fill ~2 ~-2 ~-1 ~5 ~-2 ~1 stained_glass 3 0 stained_hardened_clay},{id:commandblock_minecart,Command:setblock ~1 ~-3 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"Click here to\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players add @e[type=armor_stand,name=TogAct,c=1] eX2AC2_A 1\\\"}}",Text2:"{\\\"text\\\":\\\"enable / disable\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_eX2AC2_A_min=1,score_eX2AC2_A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\"},\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"chat!\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_eX2AC2_A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players reset @e[score_eX2AC2_A_min=2] eX2AC2_A\\\"}}"}},{id:commandblock_minecart,Command:setblock ~1 ~-2 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"tellraw @a [\\\\\\\"\\\\\\\\u00a76\\\\\\\\u00a7lChat Disable v0.1 by JellyB00M!\\\\\\\"]\\\"}}",Text2:"{\\\"text\\\":\\\"CLICK ME\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"\\\"}",Text4:"{\\\"text\\\":\\\"\\\"}"}},{id:commandblock_minecart,Command:summon armor_stand ~3 ~-2 ~ {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}},{id:commandblock_minecart,Command:scoreboard objectives add eX2AC2_A dummy},{id:commandblock_minecart,Command:fill ~3 ~-2 ~ ~4 ~-2 ~ chain_command_block 5},{id:commandblock_minecart,Command:setblock ~3 ~-2 ~ repeating_command_block 5},{id:commandblock_minecart,Command:blockdata ~4 ~-2 ~ {auto:1,Command:"/tellraw @a [\\\"\\\\u00a7cChat has been disabled by an administrator.\\\"]"}},{id:commandblock_minecart,Command:blockdata ~3 ~-2 ~ {auto:1,Command:"/tellraw @a [\\\"\\\\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\\\"]"}},{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]}]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement