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
gamerule commandBlockOutput false
scoreboard objectives add tell dummy
scoreboard objectives add hold dummy
scoreboard players set @a hold 0
scoreboard players set @a hold 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:1,Inventory:[{Slot:1b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:2,Inventory:[{Slot:2b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:3,Inventory:[{Slot:3b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:4,Inventory:[{Slot:4b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:5,Inventory:[{Slot:5b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:6,Inventory:[{Slot:6b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:7,Inventory:[{Slot:7b,id:"minecraft:torch"}]}
scoreboard players set @a hold 1 {SelectedItemSlot:8,Inventory:[{Slot:8b,id:"minecraft:torch"}]}
execute @a[score_hold_min=1] ~ ~ ~ detect ~ ~ ~ minecraft:air 0 /summon ArmorStand ~ ~ ~ {CustomName:"torch",Invisible:1,NoGravity:1}
execute @a[score_hold_min=1] ~ ~ ~ detect ~ ~ ~ minecraft:air 0 setblock ~ ~ ~ minecraft:torch
execute @a[score_hold_min=1] ~ ~ ~ execute @e[name=torch,r=0] ~ ~ ~ kill @e[type=Item,r=1] {Item:{id:minecraft:torch}}
execute @a[score_hold_min=1] ~ ~ ~ execute @e[name=torch,r=3,rm=1] ~ ~ ~ setblock ~ ~ ~ air
execute @a[score_hold_min=1] ~ ~ ~ kill @e[name=torch,r=3,rm=1]
execute @a[score_hold=0] ~ ~ ~ execute @e[name=torch,r=0] ~ ~ ~ setblock ~ ~ ~ air
execute @a[score_hold=0] ~ ~ ~ kill @e[name=torch,r=0]
/tellraw @a[score_tell=0,score_tell_min=0] ["",{"text":"Handheld Torches","color":"yellow","underlined":true},{"text":" has now finished installing.","color":"green","underlined":false}]
/tellraw @a[score_tell=0,score_tell_min=0] ["",{"text":"Created by ","color":"green"},{"text":"bigbeard1717","color":"red","bold":true}]
/tellraw @a[score_tell=0,score_tell_min=0] ["",{"text":"6159","color":"gold","bold":true},{"text":" Characters!","color":"green","bold":false}]
/scoreboard players set @a[score_tell=0] tell 1