Command block machine: Rainbow Parrot

Command block machine rainbow parrot, command-block.com

Description:
Rainbow Parrot making machine, with lever on/off

Compiled:

summon falling_block ~ ~1 ~ { "Time":1, "BlockState":{ "Name":"redstone_block" }, "Passengers":[ { "id":"falling_block", "Passengers":[ { "id":"falling_block", "Time":1, "BlockState":{ "Name":"activator_rail" }, "Passengers":[ { "id":"command_block_minecart", "Command":"gamerule commandBlockOutput false" }, { "id":"command_block_minecart", "Command":"data merge block ~ ~-2 ~ {auto:0}" }, { "id":"command_block_minecart", "Command":"fill ~1 ~ ~2 ~3 ~4 ~16 yellow_stained_glass" }, { "id":"command_block_minecart", "Command":"fill ~1 ~ ~2 ~3 ~ ~16 yellow_concrete" }, { "id":"command_block_minecart", "Command":"fill ~1 ~4 ~2 ~3 ~4 ~16 yellow_concrete" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~3 minecraft:hopper[facing=south] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~4 minecraft:hopper[facing=north]{Items:[{Slot:0b,id:\"minecraft:dirt\",Count:1b}]} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~5 minecraft:comparator[facing=north] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~6 command_block[facing=south]{Command: \"execute at @e[type=minecraft:parrot,nbt={Variant:0}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:0}] Variant set value 1\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~7 minecraft:repeater[facing=north] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~8 command_block[facing=south]{Command: \"execute at @e[type=minecraft:parrot,nbt={Variant:1}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:1}] Variant set value 2\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~9 minecraft:repeater[facing=north] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~10 command_block[facing=south]{Command: \"execute at @e[type=minecraft:parrot,nbt={Variant:2}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:2}] Variant set value 3\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~11 minecraft:repeater[facing=north] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~12 command_block[facing=south]{Command: \"execute at @e[type=minecraft:parrot,nbt={Variant:3}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:3}] Variant set value 4\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~13 minecraft:repeater[facing=north] replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~14 command_block[facing=south]{Command: \"execute at @e[type=minecraft:parrot,nbt={Variant:4}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:4}] Variant set value 0\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~15 red_concrete replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~2 lever replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~3 red_concrete replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~4 command_block[facing=up]{Command:\"say Machine disabled...\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~5 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~6 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~7 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~8 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~9 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~10 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~11 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~12 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~13 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~14 redstone_lamp replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~15 command_block[facing=south]{Command:\"say ....\"} replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~3 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~4 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~5 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~6 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~7 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~8 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~9 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~10 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~11 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~12 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~13 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~14 redstone_wire replace" }, { "id":"command_block_minecart", "Command":"setblock ~ ~1 ~ command_block{auto:1,Command:\"fill ~ ~ ~ ~ ~-2 ~ air\"}" }, { "id":"command_block_minecart", "Command":"kill @e[type=command_block_minecart,distance=..1]" } ] } ] } ] }
summon falling_block ~ ~1 ~ { "Time":1, "BlockState":{ "Name":"redstone_block" }, "Passengers":[ { "id":"falling_block", "Passengers":[ { "id":"falling_block", "Time":1, "BlockState":{ "Name":"activator_rail" }, "Passengers":[ { "id":"command_block_minecart", "Command":"gamerule commandBlockOutput false" }, { "id":"command_block_minecart", "Command":"data merge block ~ ~-2 ~ {auto:0}" },

{ "id":"command_block_minecart", "Command":"fill ~1 ~ ~2 ~3 ~4 ~16 yellow_stained_glass" },
{ "id":"command_block_minecart", "Command":"fill ~1 ~ ~2 ~3 ~ ~16 yellow_concrete" },
{ "id":"command_block_minecart", "Command":"fill ~1 ~4 ~2 ~3 ~4 ~16 yellow_concrete" },

{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~3 minecraft:hopper[facing=south] replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~4 minecraft:hopper[facing=north]{Items:[{Slot:0b,id:\"minecraft:dirt\",Count:1b}]} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~5 minecraft:comparator[facing=north] replace" },

{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~6 command_block[facing=south]{Command:
    \"execute at @e[type=minecraft:parrot,nbt={Variant:0}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:0}] Variant set value 1\"} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~7 minecraft:repeater[facing=north] replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~8 command_block[facing=south]{Command:
    \"execute at @e[type=minecraft:parrot,nbt={Variant:1}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:1}] Variant set value 2\"} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~9 minecraft:repeater[facing=north] replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~10 command_block[facing=south]{Command:
    \"execute at @e[type=minecraft:parrot,nbt={Variant:2}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:2}] Variant set value 3\"} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~11 minecraft:repeater[facing=north] replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~12 command_block[facing=south]{Command:
    \"execute at @e[type=minecraft:parrot,nbt={Variant:3}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:3}] Variant set value 4\"} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~13 minecraft:repeater[facing=north] replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~14 command_block[facing=south]{Command:
    \"execute at @e[type=minecraft:parrot,nbt={Variant:4}] run data modify entity @e[limit=1,type=minecraft:parrot,nbt={Variant:4}] Variant set value 0\"} replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~1 ~15 red_concrete replace" },

{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~2 lever replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~3 red_concrete replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~4 command_block[facing=up]{Command:\"say Machine disabled...\"} replace" },

{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~5 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~6 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~7 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~8 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~9 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~10 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~11 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~12 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~13 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~14 redstone_lamp replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~2 ~15 command_block[facing=south]{Command:\"say ....\"} replace" },

{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~3 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~4 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~5 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~6 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~7 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~8 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~9 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~10 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~11 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~12 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~13 redstone_wire replace" },
{ "id":"command_block_minecart", "Command":"setblock ~2 ~3 ~14 redstone_wire replace" },

{ "id":"command_block_minecart","Command":"setblock ~ ~1 ~ command_block{auto:1,Command:\"fill ~ ~ ~ ~ ~-2 ~ air\"}" },
{ "id":"command_block_minecart", "Command":"kill @e[type=command_block_minecart,distance=..1]" }
]}]}]}