Command blocks

BUBBLE GUM MACHINE

Tutorial viewed            times

Command blocks to summon armor stands:


/summon armor_stand ~.2 ~-2.85 ~-.3 {CustomName:"ASCAN1",NoGravity:1b,Small:1,Invisible:1,HandItems:[{id:wool,Damage:1,Count:1b},{}],DisabledSlots:2039583,Rotation:[20f,0f]}


​/summon armor_stand ~ ~-3.5 ~ {CustomName:ASCAN2,Invisible:1,NoGravity:1,Marker:1}


Command block column:


/execute @e[name=ASCAN2] ~ ~ ~ detect ~ ~ ~-1 stone_button 12 clear @p[r=3] gold_nugget 0 1


​/execute @e[name=ASCAN2] ~ ~ ~ detect ~ ~ ~-1 stone_button 12 summon item ~ ~.2 ~-.7 {Item:{id:wool,Damage:5,Count:1b,tag:{display:{Name:"Bubble Gum"}}},Motion:[0.0,0.2,0.0]}


/execute @e[name=ASCAN2] ~ ~ ~ detect ~ ~ ~-1 stone_button 12 playsound block.iron_trapdoor.open master @a ~ ~ ~ 10 .1


​/execute @e[name=ASCAN2] ~ ~ ~ detect ~ ~ ~-1 stone_button 12 setblock ~ ~ ~-1 stone_button 4