Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Watch my YouTube video for help:https://www.youtube.com/watch?v=OfSW_1T7t0Q&feature=youtu.be
- //One Command Format At Very Bottom!
- //MAKE SURE YOU INSTALL MY PLANTABLE BOMBS IN ONE COMMAND FOR THIS TO WORK!
- //Scoreboards
- > /scoreboard objectives add defuse dummy
- > /scoreboard objectives add dtimer dummy
- //Defuse Kit Item
- > /give @a minecraft:shears 1 0 {display:{Name:"Defuse Kit"},ench:[{id:99,lvl:99}]}
- //Checking for Defuse Kit in player's hand
- //set this command block to repeat and always active!
- > /scoreboard players set @p defuse 1 {SelectedItem:{id:minecraft:shears,tag:{display:{Name:"Defuse Kit"}}}}
- //Checking for the player looking straight down, has defuse kit in their hand and is within a 2 block radius of the bomb
- //set this command block to chain and always active!
- > /execute @e[type=ArmorStand,name=bomb] ~ ~ ~ /execute @a[r=2,score_defuse_min=1,rx=90,rxm=90] ~ ~ ~ /scoreboard players add @a dtimer 1
- //tellraw
- //set this command block to chain and always active!
- > /execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /tellraw @p ["",{"text":"Bomb Has Been Defused","color":"green"}]
- //remove armorstand from bomb timer
- //set this command block to chain and always active!
- > /execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /scoreboard players remove @e[type=ArmorStand,name=bomb] btimer 1000
- //kill armorstand with flashing red light
- //set this command block to chain and always active!
- > /execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /kill @e[type=ArmorStand,name=light]
- //summon armorstand with green light
- //set this command block to chain and always active!
- > /execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /execute @e[type=ArmorStand,name=bomb] ~ ~ ~ /summon ArmorStand ~ ~1.61 ~ {CustomName:"defused",NoGravity:1b,ShowArms:1,Small:1,Invisible:1,Invulnerable:1,NoBasePlate:1,HandItems:[{id:skull,Damage:3,Count:1,tag:{SkullOwner:{Id:"eb2e049e-5563-4df7-be8a-1c89123a79a1",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWU0ODYxNWRmNmI3ZGRmM2FkNDk1MDQxODc2ZDkxNjliZGM5ODNhM2ZhNjlhMmFjYTEwN2U4ZjI1MWY3Njg3In19fQ=="}]}}}},{}],DisabledSlots:2039583}
- //reset scoreboard and timer
- > /scoreboard players set @a defuse 0
- > /scoreboard players set @a[score_dtimer_min=100] dtimer 0
- //one command block format
- > 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 ~8 ~-1 ~2 stained_hardened_clay 15 hollow},{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-1 ~8 ~-2 ~2 stained_glass 6 0 stained_hardened_clay},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Defusable Bombs By ChaoticRedstone\",\"color\":\"dark_red\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Compressed into one command\",\"color\":\"dark_red\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Make sure you install my plantable bombs in one command as well! [REQUIRED]\",\"color\":\"gold\"}]"},{id:MinecartCommandBlock,Command:/scoreboard objectives add defuse dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add dtimer dummy},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\"}",Text2:"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-1 ~7 ~1 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~ ~7 ~-2 ~1 chain_command_block 5},{id:MinecartCommandBlock,Command:fill ~7 ~-2 ~1 ~5 ~-2 ~1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 3},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ repeating_command_block 5},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~1 {auto:1,Command:/scoreboard players set @a defuse 0}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~1 {auto:1,Command:/scoreboard players set @a[score_dtimer_min=100] dtimer 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~1 {auto:1,Command:/execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /kill @e[type=ArmorStand,name=light]}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~ {auto:1,Command:/execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /scoreboard players remove @e[type=ArmorStand,name=bomb] btimer 1000}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~ {auto:1,Command:"/execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /execute @e[type=ArmorStand,name=bomb] ~ ~ ~ /summon ArmorStand ~ ~1.61 ~ {CustomName:\\\"defused\\\",NoGravity:1b,ShowArms:1,Small:1,Invisible:1,Invulnerable:1,NoBasePlate:1,HandItems:[{id:skull,Damage:3,Count:1,tag:{SkullOwner:{Id:\\\"eb2e049e-5563-4df7-be8a-1c89123a79a1\\\",Properties:{textures:[{Value:\\\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWU0ODYxNWRmNmI3ZGRmM2FkNDk1MDQxODc2ZDkxNjliZGM5ODNhM2ZhNjlhMmFjYTEwN2U4ZjI1MWY3Njg3In19fQ==\\\"}]}}}},{}],DisabledSlots:2039583}"}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~ {auto:1,Command:"/execute @a[score_defuse_min=1,score_dtimer_min=100] ~ ~ ~ /tellraw @p [\\\"\\\",{\\\"text\\\":\\\"Bomb Has Been Defused\\\",\\\"color\\\":\\\"green\\\"}]"}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~ {auto:1,Command:/execute @e[type=ArmorStand,name=bomb] ~ ~ ~ /execute @a[r=2,score_defuse_min=1,rx=90,rxm=90] ~ ~ ~ /scoreboard players add @a dtimer 1}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~ {auto:1,Command:"/scoreboard players set @p defuse 1 {SelectedItem:{id:minecraft:shears,tag:{display:{Name:\\\"Defuse Kit\\\"}}}}"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 0 {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
Add Comment
Please, Sign In to add comment