SHARE
TWEET

TreeFeller [V1.0] (by AgentM)

a guest Mar 5th, 2016 162 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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 ~-2 ~8 ~2 ~2 bedrock 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~1 ~2 stained_glass 15 replace bedrock"},{id:MinecartCommandBlock,Command:"/give @p diamond_axe 1 0 {ench:[{id:32,lvl:10}],display:{Name:\"Lumber Chopper\",Lore:[\"Fells an entire tree!\"]}}"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add mineWood stat.mineBlock.minecraft.log"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add mineWood2 stat.mineBlock.minecraft.log2"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add log dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add mode dummy"},{id:MinecartCommandBlock,Command:"/tellraw @a {\"color\":\"yellow\",\"text\":\"[TreeFeller] Succesfully installed AgentM's TreeFeller Vanilla Plugin\\n\",\"extra\":[{\"color\":\"blue\",\"text\":\"Modes: 0 = Require Special Axe + Mining Fatigue III; Default\\n         1 = Require Any Axe + Mining Fatigue II\\n         2 = Require Any Axe\\n         3 = Any Tool\"}]}"},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Give Lumber Axe\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/give @p diamond_axe 1 0 {ench:[{id:32,lvl:10}],display:{Name:\\\\\\\"Lumber Chopper\\\\\\\",Lore:[\\\\\\\"Fells an entire tree!\\\\\\\"]}}\\\"},\\\"italic\\\":true}",Text2:"{\\\"text\\\":\\\"by clicking this\\\",\\\"color\\\":\\\"dark_blue\\\"}",Text3:"{\\\"text\\\":\\\"Made by AgentM\\\",\\\"color\\\":\\\"dark_purple\\\",\\\"italic\\\":true}",Text4:"{\\\"text\\\":\\\"Tree Feller\\\",\\\"color\\\":\\\"aqua\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Click this sign\\\",\\\"color\\\":\\\"black\\\",\\\"italic\\\":true}",Text2:"{\\\"text\\\":\\\"to destroy\\\",\\\"color\\\":\\\"black\\\",\\\"italic\\\":true}",Text3:"{\\\"text\\\":\\\"the machine\\\",\\\"color\\\":\\\"black\\\",\\\"italic\\\":true}",Text4:"{\\\"text\\\":\\\"[No undo]\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-3 ~-2 ~7 ~2 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"[Cycle Modes]\\\",\\\"color\\\":\\\"dark_green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/scoreboard players set @a[score_mode_min=3,score_mode=3] mode -1\\\"}}",Text2:"{\\\"text\\\":\\\"Manual mode set:\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/scoreboard players set @a[score_mode_min=2,score_mode=2] mode 3\\\"}}",Text3:"{\\\"text\\\":\\\"/scoreb. players\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/scoreboard players set @a[score_mode_min=1,score_mode=1] mode 2\\\"}}",Text4:"{\\\"text\\\":\\\"set @p mode 0-4\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/scoreboard players set @a[score_mode_min=0,score_mode=0] mode 1\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ kill @e[r=1,c=1,type=ArmorStand,tag=decay4]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ kill @e[r=1,c=1,type=ArmorStand,tag=!inLog]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ detect ~ ~ ~ log2 -1 scoreboard players tag @e[type=ArmorStand,tag=treeBreak,c=1,r=0] add inLog"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ detect ~ ~ ~ log -1 scoreboard players tag @e[type=ArmorStand,tag=treeBreak,c=1,r=0] add inLog"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ detect ~ ~ ~ leaves2 -1 scoreboard players tag @e[type=ArmorStand,tag=treeBreak,c=1,r=0] add inLog"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=treeBreak] ~ ~ ~ detect ~ ~ ~ leaves -1 scoreboard players tag @e[type=ArmorStand,tag=treeBreak,c=1,r=0] add inLog"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/tp @e[name=PYselector,type=ArmorStand,tag=treeBreak] ~ ~1 ~"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 1 replace {auto:1,Command:"/tp @e[name=PXselector,type=ArmorStand,tag=treeBreak] ~1 ~ ~"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/tp @e[name=PZselector,type=ArmorStand,tag=treeBreak] ~ ~ ~1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/tp @e[name=NXselector,type=ArmorStand,tag=treeBreak] ~-1 ~ ~"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/tp @e[name=NZselector,type=ArmorStand,tag=treeBreak] ~ ~ ~-1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[tag=treeBreak,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ log2 -1 fill ~ ~ ~ ~ ~ ~ air 0 destroy"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[tag=treeBreak,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ log -1 fill ~ ~ ~ ~ ~ ~ air 0 destroy"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=treeBreak,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ leaves2 -1 fill ~ ~ ~ ~ ~ ~ air 0 destroy"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=treeBreak,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ leaves -1 fill ~ ~ ~ ~ ~ ~ air 0 destroy"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nzsel3] ~ ~ ~ summon ArmorStand ~ ~ ~-1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nzsel4\\\",\\\"pxsel4\\\",\\\"decay4\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nxsel3] ~ ~ ~ summon ArmorStand ~-1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nxsel4\\\",\\\"nzsel4\\\",\\\"decay4\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pzsel3] ~ ~ ~ summon ArmorStand ~ ~ ~1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pzsel4\\\",\\\"nxsel4\\\",\\\"decay4\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pxsel3] ~ ~ ~ summon ArmorStand ~1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pxsel4\\\",\\\"pzsel4\\\",\\\"decay4\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nzsel2] ~ ~ ~ summon ArmorStand ~ ~ ~-1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nzsel3\\\",\\\"pxsel3\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nxsel2] ~ ~ ~ summon ArmorStand ~-1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nxsel3\\\",\\\"nzsel3\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pzsel2] ~ ~ ~ summon ArmorStand ~ ~ ~1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pzsel3\\\",\\\"nxsel3\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pxsel2] ~ ~ ~ summon ArmorStand ~1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pxsel3\\\",\\\"pzsel3\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nzsel1] ~ ~ ~ summon ArmorStand ~ ~ ~-1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nzsel2\\\",\\\"pxsel2\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=nxsel1] ~ ~ ~ summon ArmorStand ~-1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nxsel2\\\",\\\"nzsel2\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pzsel1] ~ ~ ~ summon ArmorStand ~ ~ ~1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pzsel2\\\",\\\"nxsel2\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=pxsel1] ~ ~ ~ summon ArmorStand ~1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pxsel2\\\",\\\"pzsel2\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=origin] ~ ~ ~ summon ArmorStand ~ ~ ~-1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nzsel1\\\",\\\"pxsel1\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=origin] ~ ~ ~ summon ArmorStand ~-1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"nxsel1\\\",\\\"nzsel1\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"NXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=origin] ~ ~ ~ summon ArmorStand ~ ~ ~1 {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pzsel1\\\",\\\"nxsel1\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PZselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,tag=origin] ~ ~ ~ summon ArmorStand ~1 ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pxsel1\\\",\\\"pzsel1\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PXselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @e[type=ArmorStand,tag=inLog] remove inLog"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @a[score_mineWood2_min=1] mineWood2 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @a[score_mineWood_min=1] mineWood 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @a[tag=fellTree] ~ ~ ~ execute @e[type=Item,r=6,c=1,score_log_min=1,score_log=1] ~ ~ ~ summon ArmorStand ~ ~ ~ {Tags:[\\\"temp\\\",\\\"treeBreak\\\",\\\"pysel\\\",\\\"origin\\\"],Invulnerable:1b,Marker:1b,Invisible:1b,NoGravity:1b,CustomName:\\\"PYselector\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @e[type=Item] log 1 {Item:{id:\\\"minecraft:log2\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @e[type=Item] log 1 {Item:{id:\\\"minecraft:log\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/scoreboard players tag @a[score_mineWood2_min=1,tag=holdAxe] add fellTree"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @a[score_mineWood_min=1,tag=holdAxe] add fellTree"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/effect @a[tag=holdAxe,score_mode_min=1,score_mode=1] minecraft:mining_fatigue 1 1 true"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/effect @a[tag=holdAxe,score_mode_min=0,score_mode=0] minecraft:mining_fatigue 1 2 true"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=3,score_mode=3] add holdAxe"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=1,score_mode=2] add holdAxe {SelectedItem:{id:\\\"minecraft:golden_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=1,score_mode=2] add holdAxe {SelectedItem:{id:\\\"minecraft:iron_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=1,score_mode=2] add holdAxe {SelectedItem:{id:\\\"minecraft:stone_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=1,score_mode=2] add holdAxe {SelectedItem:{id:\\\"minecraft:wooden_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=1,score_mode=2] add holdAxe {SelectedItem:{id:\\\"minecraft:diamond_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/scoreboard players tag @a[score_mode_min=0,score_mode=0] add holdAxe {SelectedItem:{id:\\\"minecraft:diamond_axe\\\",tag:{ench:[{id:32,lvl:10}],display:{Name:\\\"Lumber Chopper\\\",Lore:[\\\"Fells an entire tree!\\\"]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @a remove fellTree"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @a remove holdAxe"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a[score_mode=-1] mode 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/scoreboard players add @a mode 0"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top