kd2bwzgen

deconstructor create and destroy

Oct 28th, 2017
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. execute @e[name=GM4_CustomCrafter] ~ ~ ~ testforblock ~ ~ ~ dropper -1 {CustomName:"Custom Crafter",Items:[{Slot:1b,id:"minecraft:book",Count:1b,Damage:0s},{Slot:3b,id:"minecraft:gold_ingot",Count:1b,Damage:0s},{Slot:4b,id:"minecraft:diamond",Count:1b,Damage:0s},{Slot:5b,id:"minecraft:iron_ingot",Count:1b,Damage:0s},{Slot:6b,id:"minecraft:crafting_table",Count:1b,Damage:0s},{Slot:7b,id:"minecraft:crafting_table",Count:1b,Damage:0s},{Slot:8b,id:"minecraft:crafting_table",Count:1b,Damage:0s}]}
  2.  
  3. [Cond] execute @e[type=ArmorStand,name=GM4_CustomCrafter,score_GM4_crafting_min=1] ~ ~ ~ blockdata ~ ~ ~ {Items:[],CustomName:"Deconstructor"}
  4.  
  5. [Cond] execute @e[type=ArmorStand,name=GM4_CustomCrafter,score_GM4_crafting_min=1] ~ ~ ~ entitydata @e[type=ArmorStand,name=GM4_CustomCrafter,score_GM4_crafting_min=1,r=0] {ArmorItems:[{},{},{},{id:"minecraft:written_book",Count:1b}]}
  6.  
  7. execute @e[type=ArmorStand,tag=GM4_broken] ~ ~ ~ testfor @e[c=1,r=0,type=ArmorStand] {ArmorItems:[{},{},{},{id:"minecraft:written_book"}]}
  8.  
  9. execute @e[type=ArmorStand,name=GM4_CustomCrafter,score_GM4_crafting_min=1,tag=GM4_broken] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:"redstone",Count:1b},Passengers:[{id:Item,Item:{id:"cobblestone",Count:7}},{id:Item,Item:{id:"stone",Count:1}},{id:Item,Item:{id:"minecraft:crafting_table",Count:1,tag:{display:{Lore:["slightly damaged workbench"]}}}},{id:"Item",Item:{id:"minecraft:diamond",Count:1}},{id:"Item",Item:{id:"minecraft:crafting_table",Count:3}},{id:"Item",Item:{id:"minecraft:iron_ingot",Count:1}},{id:"Item",Item:{id:"minecraft:gold_ingot",Count:1}},{id:"Item",Item:{id:"minecraft:book",Count:1}}]}
  10.  
  11. execute @e[type=ArmorStand,name=GM4_CustomCrafter,score_GM4_crafting_min=1,tag=GM4_broken] ~ ~ ~ kill @e[type=ArmorStand,name=GM4_CustomCrafter,c=1]
Advertisement
Add Comment
Please, Sign In to add comment