SHARE
TWEET

Planter GM4 Module

JannisX11 Feb 21st, 2017 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /summon falling_block ~ ~1 ~ {Block:clay,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 ~ ~-3 ~ ~11 ~-3 ~ chain_command_block 5 replace {TrackOutput:0b,auto:1b}},{id:commandblock_minecart,Command:setblock ~ ~-3 ~ repeating_command_block 5 1 {auto:1,Command:scoreboard players set @e[type=item] x11_planter 0 {Item:{id:minecraft:iron_hoe,Damage:0s}},TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~1 ~-3 ~ {Command:stats entity @e[type=item,score_x11_planter=0] set SuccessCount @e[c=1,type=item] x11_planter}},{id:commandblock_minecart,Command:blockdata ~2 ~-3 ~ {Command:execute @e[type=item,score_x11_planter=0] ~ ~ ~ testforblock ~ ~-.1 ~ dispenser * {Items:[{Slot:6b,id:minecraft:iron_ingot,Count:1b},{Slot:7b,id:minecraft:iron_bars,Count:1b},{Slot:8b,id:minecraft:iron_ingot,Count:1b}]}}},{id:commandblock_minecart,Command:blockdata ~3 ~-3 ~ {Command:scoreboard players tag @e[type=item,score_x11_planter_min=1,score_x11_planter=1] add x11_vp}},{id:commandblock_minecart,Command:setblock ~4 ~-3 ~ chain_command_block 13 1 {auto:1,Command:blockdata ~-4 ~ ~-1 {auto:1},TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~5 ~-3 ~ {Command:execute @e[type=armor_stand,name=x11_planter] ~ ~.4 ~ scoreboard players tag @e[type=item,c=1,r=1,tag=!x11_seeditem] add x11_seeditem {Item:{Count:1b},PickupDelay:0s,Age:0s}}},{id:commandblock_minecart,Command:blockdata ~6 ~-3 ~ {Command:testfor @e[type=item,tag=x11_seeditem]}},{id:commandblock_minecart,Command:setblock ~7 ~-3 ~ chain_command_block 13 1 {auto:1,Command:blockdata ~-7 ~ ~-2 {auto:1},TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~8 ~-3 ~ {Command:scoreboard players tag @e[type=armor_stand,name=x11_planter] remove x11_vpos}},{id:commandblock_minecart,Command:blockdata ~9 ~-3 ~ {Command:execute @e[type=armor_stand,name=x11_planter] ~ ~ ~ detect ~ ~ ~ dispenser * /scoreboard players tag @e[type=armor_stand,name=x11_planter,c=1] add x11_vpos}},{id:commandblock_minecart,Command:blockdata ~10 ~-3 ~ {Command:"execute @e[type=armor_stand,name=x11_planter,tag=!x11_vpos] ~ ~ ~ summon item ~ ~ ~ {Motion:[-0.04,0.24,0.01],Item:{id:iron_bars,Count:1b},PickupDelay:10,Passengers:[{id:\\\"item\\\",Item:{id:iron_hoe,Count:1b,Damage:128},PickupDelay:10,Passengers:[{id:\\\"item\\\",Item:{id:iron_ingot,Count:2b},PickupDelay:10}]}]}"}},{id:commandblock_minecart,Command:blockdata ~11 ~-3 ~ {Command:kill @e[type=armor_stand,name=x11_planter,tag=!x11_vpos]}},{id:commandblock_minecart,Command:fill ~ ~-3 ~-1 ~5 ~-3 ~-1 chain_command_block 5 replace {TrackOutput:0b,auto:1b}},{id:commandblock_minecart,Command:setblock ~ ~-3 ~-1 command_block 5 1 {Command:blockdata ~ ~ ~ {auto:0},TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~1 ~-3 ~-1 {Command:execute @e[type=item,tag=x11_vp] ~ ~ ~ summon leash_knot ~ ~ ~ {CustomName:x11_vp}}},{id:commandblock_minecart,Command:blockdata ~2 ~-3 ~-1 {Command:kill @e[type=item,tag=x11_vp]}},{id:commandblock_minecart,Command:blockdata ~3 ~-3 ~-1 {Command:execute @e[type=leash_knot,name=x11_vp] ~ ~ ~ summon armor_stand ~ ~-1.4 ~ {CustomName:x11_planter,Small:1b,NoGravity:1,Invulnerable:1,DisabledSlots:2039583,ArmorItems:[{},{},{},{id:farmland,Count:1b}]}}},{id:commandblock_minecart,Command:blockdata ~4 ~-3 ~-1 {Command:execute @e[type=leash_knot,name=x11_vp] ~ ~ ~ blockdata ~ ~-1 ~ {Items:[],CustomName:Planting Dispenser}}},{id:commandblock_minecart,Command:blockdata ~5 ~-3 ~-1 {Command:kill @e[type=leash_knot,name=x11_vp]}},{id:commandblock_minecart,Command:fill ~ ~-3 ~-2 ~43 ~-3 ~-2 chain_command_block 5 replace {TrackOutput:0b,auto:1b}},{id:commandblock_minecart,Command:setblock ~ ~-3 ~-2 command_block 5 1 {Command:blockdata ~ ~ ~ {auto:0},TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~1 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 7 {Item:{id:minecraft:sapling,Damage:0s}}}},{id:commandblock_minecart,Command:blockdata ~2 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 8 {Item:{id:minecraft:sapling,Damage:1s}}}},{id:commandblock_minecart,Command:blockdata ~3 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 9 {Item:{id:minecraft:sapling,Damage:2s}}}},{id:commandblock_minecart,Command:blockdata ~4 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 10 {Item:{id:minecraft:sapling,Damage:3s}}}},{id:commandblock_minecart,Command:blockdata ~5 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 11 {Item:{id:minecraft:sapling,Damage:4s}}}},{id:commandblock_minecart,Command:blockdata ~6 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 12 {Item:{id:minecraft:sapling,Damage:5s}}}},{id:commandblock_minecart,Command:blockdata ~7 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 13 {Item:{id:minecraft:wheat_seeds}}}},{id:commandblock_minecart,Command:blockdata ~8 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 14 {Item:{id:minecraft:melon_seeds}}}},{id:commandblock_minecart,Command:blockdata ~9 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 15 {Item:{id:minecraft:pumpkin_seeds}}}},{id:commandblock_minecart,Command:blockdata ~10 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 16 {Item:{id:minecraft:beetroot_seeds}}}},{id:commandblock_minecart,Command:blockdata ~11 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 17 {Item:{id:minecraft:potato}}}},{id:commandblock_minecart,Command:blockdata ~12 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 18 {Item:{id:minecraft:carrot}}}},{id:commandblock_minecart,Command:blockdata ~13 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 19 {Item:{id:minecraft:nether_wart}}}},{id:commandblock_minecart,Command:blockdata ~14 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 20 {Item:{id:minecraft:dye,Damage:3s}}}},{id:commandblock_minecart,Command:blockdata ~15 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 21 {Item:{id:minecraft:chorus_flower}}}},{id:commandblock_minecart,Command:blockdata ~16 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 22 {Item:{id:minecraft:red_mushroom}}}},{id:commandblock_minecart,Command:blockdata ~17 ~-3 ~-2 {Command:scoreboard players set @e[type=item,tag=x11_seeditem] x11_planter 23 {Item:{id:minecraft:brown_mushroom}}}},{id:commandblock_minecart,Command:blockdata ~18 ~-3 ~-2 {Command:scoreboard players tag @e[type=item,tag=x11_seeditem] remove x11_seeditem}},{id:commandblock_minecart,Command:blockdata ~19 ~-3 ~-2 {Command:execute @e[type=item,score_x11_planter_min=7] ~ ~ ~ detect ~ ~ ~ air 0 /scoreboard players tag @e[type=item,c=1] add x11_seeditem}},{id:commandblock_minecart,Command:blockdata ~20 ~-3 ~-2 {Command:stats entity @e[type=item,tag=x11_seeditem] set SuccessCount @e[c=1,type=item] x11_planter}},{id:commandblock_minecart,Command:blockdata ~21 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=7,score_x11_planter=7] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 0}},{id:commandblock_minecart,Command:blockdata ~22 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=8,score_x11_planter=8] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 1}},{id:commandblock_minecart,Command:blockdata ~23 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=9,score_x11_planter=9] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 2}},{id:commandblock_minecart,Command:blockdata ~24 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=10,score_x11_planter=10] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 3}},{id:commandblock_minecart,Command:blockdata ~25 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=11,score_x11_planter=11] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 4}},{id:commandblock_minecart,Command:blockdata ~26 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=12,score_x11_planter=12] ~ ~ ~ detect ~ ~-1 ~ grass * /setblock ~ ~ ~ sapling 5}},{id:commandblock_minecart,Command:blockdata ~27 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=13,score_x11_planter=13] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ wheat}},{id:commandblock_minecart,Command:blockdata ~28 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=14,score_x11_planter=14] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ melon_stem}},{id:commandblock_minecart,Command:blockdata ~29 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=15,score_x11_planter=15] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ pumpkin_stem}},{id:commandblock_minecart,Command:blockdata ~30 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=16,score_x11_planter=16] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ beetroots}},{id:commandblock_minecart,Command:blockdata ~31 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=17,score_x11_planter=17] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ potatoes}},{id:commandblock_minecart,Command:blockdata ~32 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=18,score_x11_planter=18] ~ ~ ~ detect ~ ~-1 ~ farmland 7 /setblock ~ ~ ~ carrots}},{id:commandblock_minecart,Command:blockdata ~33 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=19,score_x11_planter=19] ~ ~ ~ detect ~ ~-1 ~ soul_sand 0 /setblock ~ ~ ~ nether_wart}},{id:commandblock_minecart,Command:blockdata ~34 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=20,score_x11_planter=20] ~ ~ ~ detect ~ ~ ~1 log variant=jungle /setblock ~ ~ ~ cocoa 0}},{id:commandblock_minecart,Command:blockdata ~35 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=20,score_x11_planter=20] ~ ~ ~ detect ~-1 ~ ~ log variant=jungle /setblock ~ ~ ~ cocoa 1}},{id:commandblock_minecart,Command:blockdata ~36 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=20,score_x11_planter=20] ~ ~ ~ detect ~ ~ ~-1 log variant=jungle /setblock ~ ~ ~ cocoa 2}},{id:commandblock_minecart,Command:blockdata ~37 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=20,score_x11_planter=20] ~ ~ ~ detect ~1 ~ ~ log variant=jungle /setblock ~ ~ ~ cocoa 3}},{id:commandblock_minecart,Command:blockdata ~38 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=21,score_x11_planter=21] ~ ~ ~ detect ~ ~-1 ~ end_stone 0 /setblock ~ ~ ~ chorus_flower}},{id:commandblock_minecart,Command:blockdata ~39 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=22,score_x11_planter=22] ~ ~ ~ detect ~ ~-1 ~ mycelium 0 /setblock ~ ~ ~ red_mushroom}},{id:commandblock_minecart,Command:blockdata ~40 ~-3 ~-2 {Command:execute @e[type=item,tag=x11_seeditem,score_x11_planter_min=23,score_x11_planter=23] ~ ~ ~ detect ~ ~-1 ~ mycelium 0 /setblock ~ ~ ~ brown_mushroom}},{id:commandblock_minecart,Command:blockdata ~41 ~-3 ~-2 {Command:kill @e[type=item,score_x11_planter_min=1,score_x11_planter=1,tag=x11_seeditem]}},{id:commandblock_minecart,Command:blockdata ~42 ~-3 ~-2 {Command:scoreboard players reset @e[score_x11_planter_min=7] x11_planter}},{id:commandblock_minecart,Command:blockdata ~43 ~-3 ~-2 {Command:scoreboard players tag @e[type=item,tag=x11_seeditem] remove x11_seeditem}},{id:commandblock_minecart,Command:fill ~ ~-3 ~-3 ~1 ~-3 ~-3 chain_command_block 5 replace {TrackOutput:0b,auto:1b}},{id:commandblock_minecart,Command:setblock ~ ~-3 ~-3 command_block 5 1 {auto:1,Command:scoreboard objectives add x11_planter dummy,TrackOutput:0b}},{id:commandblock_minecart,Command:blockdata ~1 ~-3 ~-3 {Command:fill ~-1 ~ ~ ~ ~ ~ air}},{id:commandblock_minecart,Command:setblock ~ ~1 ~ command_block 0 0 {auto:1,Command:/fill ~ ~-3 ~ ~ ~ ~ air}},{id:commandblock_minecart,Command:kill @e[type=commandblock_minecart,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