First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type /give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Comments
Comments
New comment
Show source commands
# Adds 2 scoreboards
INIT:scoreboard objectives add 42rdclk dummy
INIT:scoreboard objectives add 42rdclkdl dummy
# Floor crafting commands
scoreboard players set @e[type=Item] 42rdclk 1 {Item:{id:"minecraft:redstone",Count:3b},OnGround:1b}
scoreboard players set @e[type=Item] 42rdclk 2 {Item:{id:"minecraft:repeater"},OnGround:1b}
scoreboard players set @e[type=Item] 42rdclk 3 {Item:{id:"minecraft:stone"},OnGround:1b}
scoreboard players set @e[type=Item] 42rdclk 4 {Item:{id:"minecraft:redstone_torch"},OnGround:1b}
execute @e[type=Item,score_42rdclk_min=4,score_42rdclk=4] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=3,score_42rdclk=3,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=2,score_42rdclk=2,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=1,score_42rdclk=1,r=1] ~ ~ ~ summon Item ~ ~ ~ {CustomName:"Redstone Clock",CustomNameVisible:1,Item:{id:spawn_egg,Damage:96,Count:1,tag:{display:{Name:"Redstone_Clock"},EntityTag:{id:"MushroomCow",NoAI:1}}}}
execute @e[type=Item,score_42rdclk_min=4,score_42rdclk=4] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=3,score_42rdclk=3,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=2,score_42rdclk=2,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=1,score_42rdclk=1,r=1] ~ ~ ~ summon FireworksRocketEntity ~ ~ ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[16711680],FadeColors:[16711680]}]}}}}
execute @e[type=Item,score_42rdclk_min=4,score_42rdclk=4] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=3,score_42rdclk=3,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=2,score_42rdclk=2,r=1] ~ ~ ~ execute @e[type=Item,score_42rdclk_min=1,score_42rdclk=1,r=1] ~ ~ ~ kill @e[type=Item,score_42rdclk_min=1,score_42rdclk=4,r=1]
# End of floor crafting commands
#When spawn egg is used, a block is placed, an armor stand is summoned and has its scoreboards set up, and the mooshroom is removed.
execute @e[name=Redstone_Clock,type=MushroomCow] ~ ~ ~ setblock ~ ~ ~ stained_glass 14
execute @e[name=Redstone_Clock,type=MushroomCow] ~ ~ ~ summon ArmorStand ~ ~-1.25 ~ {CustomName:"42rdclk",NoGravity:1b,Invisible:1,Invulnerable:1,Equipment:[{},{},{},{},{id:skull,Damage:3,Count:1,tag:{SkullOwner:{Id:"a8f5a413-8ff3-4d04-a3b9-35585460bf8e",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJiMGEyNzA5YWQyN2M1NzgzYmE3YWNiZGFlODc4N2QxNzY3M2YwODg4ZjFiNmQ0ZTI0ZWUxMzI5OGQ0In19fQ=="}]}}}}]}
execute @e[name=Redstone_Clock,type=MushroomCow] ~ ~-1.25 ~ scoreboard players set @e[name=42rdclk,type=ArmorStand,c=1] 42rdclkdl 2
execute @e[name=Redstone_Clock,type=MushroomCow] ~ ~-1.25 ~ scoreboard players set @e[name=42rdclk,type=ArmorStand,c=1] 42rdclk 0
tp @e[name=Redstone_Clock,type=MushroomCow] ~ ~-512 ~
# Removes 1 from the armor stand's 42rdclk score every tick
scoreboard players remove @e[name=42rdclk,score_42rdclk_min=1] 42rdclk 1
# Replaces stained glass with redstone and vice versa when 42rdclk score is 0.
execute @e[name=42rdclk,score_42rdclk=0] ~ ~ ~ fill ~ ~2 ~ ~ ~2 ~ minecraft:stone 0 replace minecraft:redstone_block 0
execute @e[name=42rdclk,score_42rdclk=0] ~ ~ ~ fill ~ ~2 ~ ~ ~2 ~ minecraft:redstone_block 0 replace minecraft:stained_glass 14
execute @e[name=42rdclk,score_42rdclk=0] ~ ~ ~ fill ~ ~2 ~ ~ ~2 ~ minecraft:stained_glass 14 replace minecraft:stone 0
# Sets 42rdclk score to 42rdclkdl
execute @e[name=42rdclk,score_42rdclk=0] ~ ~ ~ scoreboard players operation @e[name=42rdclk,c=1] 42rdclk = @e[name=42rdclk,c=1] 42rdclkdl
# Summons item if removed
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~2 ~ air 0 summon Item ~ ~2 ~ {CustomName:"Redstone Clock",CustomNameVisible:1,Item:{id:spawn_egg,Damage:96,Count:1,tag:{display:{Name:"Redstone_Clock"},EntityTag:{id:"MushroomCow",NoAI:1}}}}
# Removes armor stand if clock is removed
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~2 ~ air 0 tp @e[name=42rdclk,c=1] ~ ~-512 ~
# If a redstone torch is above, adds 1 to 42rdclkdl
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~3 ~ redstone_torch 5 scoreboard players add @e[name=42rdclk,c=1] 42rdclkdl 1
# Destroys the redstone torch if on top
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~3 ~ redstone_torch 5 setblock ~ ~3 ~ air 0 destroy
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~3 ~ unlit_redstone_torch 5 setblock ~ ~3 ~ air 0 destroy
# If cobblestone is on top, 42rdclkdl is decreased by 1
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~3 ~ cobblestone 0 scoreboard players remove @e[name=42rdclk,c=1] 42rdclkdl 1
# Any cobblestone on top is destroyed
execute @e[name=42rdclk] ~ ~ ~ detect ~ ~3 ~ cobblestone 0 setblock ~ ~3 ~ air 0 destroy