Actions

Difference between revisions of "Command Block"

From Zedwiki

Line 14: Line 14:
 
;[[Command:achievement|achievement]]:{{#dpl:title=Command:achievement|include=#}}
 
;[[Command:achievement|achievement]]:{{#dpl:title=Command:achievement|include=#}}
 
;[[Command:blockdata|blockdata]]:{{#dpl:title=Command:blockdata|include=#}}
 
;[[Command:blockdata|blockdata]]:{{#dpl:title=Command:blockdata|include=#}}
;[[Command:clear|clear]]:
+
;[[Command:clear|clear]]:{{#dpl:title=Command:clear|include=#|noresultsheader=\n}}
;[[Command:clone|clone]]:
+
;[[Command:clone|clone]]:{{#dpl:title=Command:clone|include=#|noresultsheader=\n}}
;[[Command:defaultgamemode|defaultgamemode]]:
+
;[[Command:defaultgamemode|defaultgamemode]]:{{#dpl:title=Command:defaultgamemode|include=#|noresultsheader=\n}}
;[[Command:difficulty|difficulty]]:
+
;[[Command:difficulty|difficulty]]:{{#dpl:title=Command:difficulty|include=#|noresultsheader=\n}}
;[[Command:effect|effect]]:
+
;[[Command:effect|effect]]:{{#dpl:title=Command:effect|include=#|noresultsheader=\n}}
;[[Command"enchant|enchant]]:
+
;[[Command"enchant|enchant]]:{{#dpl:title=Command:enchant|include=#|noresultsheader=\n}}
;[[Command:entitydata|entitydata]]:
+
;[[Command:entitydata|entitydata]]:{{#dpl:title=Command:entitydata|include=#|noresultsheader=\n}}
;[[Command:execute|execute]]:
+
;[[Command:execute|execute]]:{{#dpl:title=Command:execute|include=#|noresultsheader=\n}}
;[[Command:fill|fill]]:
+
;[[Command:fill|fill]]:{{#dpl:title=Command:fill|include=#|noresultsheader=\n}}
;[[Command:gamemode|gamemode]]:
+
;[[Command:gamemode|gamemode]]:{{#dpl:title=Command:gamemode|include=#|noresultsheader=\n}}
;[[Command:gamerule|gamerule]]:
+
;[[Command:gamerule|gamerule]]:{{#dpl:title=Command:gamerule|include=#|noresultsheader=\n}}
;[[Command:give|give]]:
+
;[[Command:give|give]]:{{#dpl:title=Command:give|include=#|noresultsheader=\n}}
;[[Command:kill|kill]]:
+
;[[Command:kill|kill]]:{{#dpl:title=Command:kill|include=#|noresultsheader=\n}}
;[[Command:me|me]]:
+
;[[Command:me|me]]:{{#dpl:title=Command:me|include=#|noresultsheader=\n}}
;[[Command:particle|particle]]:
+
;[[Command:particle|particle]]:{{#dpl:title=Command:particle|include=#|noresultsheader=\n}}
;[[Command:playsound|playsound]]:
+
;[[Command:playsound|playsound]]:{{#dpl:title=Command:playsound|include=#|noresultsheader=\n}}
;[[Command:replaceitem|replaceitem]]:
+
;[[Command:replaceitem|replaceitem]]:{{#dpl:title=Command:replaceitem|include=#|noresultsheader=\n}}
;[[Command:say|say]]:
+
;[[Command:say|say]]:{{#dpl:title=Command:say|include=#|noresultsheader=\n}}
;[[Command:scoreboard|scoreboard]]:
+
;[[Command:scoreboard|scoreboard]]:{{#dpl:title=Command:scoreboard|include=#|noresultsheader=\n}}
;[[Command:setblock|setblock]]:
+
;[[Command:setblock|setblock]]:{{#dpl:title=Command:setblock|include=#|noresultsheader=\n}}
;[[Command:setidletimeout|setidletimeout]]:
+
;[[Command:setidletimeout|setidletimeout]]:{{#dpl:title=Command:setidletimeout|include=#|noresultsheader=\n}}
;[[Command:setworldspawn|setworldspawn]]:
+
;[[Command:setworldspawn|setworldspawn]]:{{#dpl:title=Command:setworldspawn|include=#|noresultsheader=\n}}
;[[Command:spawnpoint|spawnpoint]]:
+
;[[Command:spawnpoint|spawnpoint]]:{{#dpl:title=Command:spawnpoint|include=#|noresultsheader=\n}}
;[[Command:spreadplayers|spreadplayers]]:
+
;[[Command:spreadplayers|spreadplayers]]:{{#dpl:title=Command:spreadplayers|include=#|noresultsheader=\n}}
;[[Command:stats|stats]]:
+
;[[Command:stats|stats]]:{{#dpl:title=Command:stats|include=#|noresultsheader=\n}}
;[[Command:stopsound|stopsound]]:
+
;[[Command:stopsound|stopsound]]:{{#dpl:title=Command:stopsound|include=#|noresultsheader=\n}}
;[[Command:summon|summon]]:
+
;[[Command:summon|summon]]:{{#dpl:title=Command:summon|include=#|noresultsheader=\n}}
;[[Command:teleport|teleport]]:
+
;[[Command:teleport|teleport]]:{{#dpl:title=Command:teleport|include=#|noresultsheader=\n}}
;[[Command:tell|tell]]:
+
;[[Command:tell|tell]]:{{#dpl:title=Command:tell|include=#|noresultsheader=\n}}
;[[Command:tellraw|tellraw]]:
+
;[[Command:tellraw|tellraw]]:{{#dpl:title=Command:tellraw|include=#|noresultsheader=\n}}
;[[Command:testfor|testfor]]:
+
;[[Command:testfor|testfor]]:{{#dpl:title=Command:testfor|include=#|noresultsheader=\n}}
;[[Command:testforblock|testforblock]]:
+
;[[Command:testforblock|testforblock]]:{{#dpl:title=Command:testforblock|include=#|noresultsheader=\n}}
;[[Command:testforblocks|testforblocks]]:
+
;[[Command:testforblocks|testforblocks]]:{{#dpl:title=Command:testforblocks|include=#|noresultsheader=\n}}
;[[Command:time|time]]:
+
;[[Command:time|time]]:{{#dpl:title=Command:time|include=#|noresultsheader=\n}}
;[[Command:title|title]]:
+
;[[Command:title|title]]:{{#dpl:title=Command:title|include=#|noresultsheader=\n}}
;[[Command:toggledownfall|toggledownfall]]:
+
;[[Command:toggledownfall|toggledownfall]]:{{#dpl:title=Command:toggledownfall|include=#|noresultsheader=\n}}
;[[Command:tp|tp]]:
+
;[[Command:tp|tp]]:{{#dpl:title=Command:tp|include=#|noresultsheader=\n}}
;[[Command:trigger|trigger]]:
+
;[[Command:trigger|trigger]]:{{#dpl:title=Command:trigger|include=#|noresultsheader=\n}}
;[[Command:weather|weather]]:
+
;[[Command:weather|weather]]:{{#dpl:title=Command:weather|include=#|noresultsheader=\n}}
;[[Command:worldborder|worldborder]]:
+
;[[Command:worldborder|worldborder]]:{{#dpl:title=Command:worldborder|include=#|noresultsheader=\n}}
;[[Command:xp|xp]]:
+
;[[Command:xp|xp]]:{{#dpl:title=Command:xp|include=#|noresultsheader=\n}}
  
 
=== [[Command Block Tutorials|Tutorials]] ===
 
=== [[Command Block Tutorials|Tutorials]] ===
 
[[Holograms with Command Blocks Tutorial]]
 
[[Holograms with Command Blocks Tutorial]]

Revision as of 12:24, 10 August 2016

A Command Block is a special kind of block which can be activated to run a Minecraft command. When combined together in chains or as part of redstone contraptions, these can be used to create simple or complex systems. Many of Zedwork's custom ZestyGames run on Command Blocks

Usage

There are 3 types of command block:

Impulse
When powered this Command Block will run its command, and all those in the chain following it, once per activation.
Chain
This special Command Block does not run on its own, but will run its command when activated as part of a chain of Command Blocks.
Repeating
When powered this Command Block will run its command, and all those in the chain following it, 20 times per second.

Commands

The following commands are available for use in Command Blocks:

achievement
Give/take an achievement to/from a player.
blockdata
Modifies the data tag of a block.[1]
clear
By default will clear all items from a player's inventory. Can also clear specific items when using optional arguments.
clone
Copy the blocks and entities from within the selected area to the specified destination.
defaultgamemode
Sets the default gamemode (Survival, Creative, Adventure or Spectator) a player will be in when joining a server for the first time.[2]
difficulty
Sets the server's difficulty level.
effect
The effect command manages status effects on players and other entities.[3]
enchant
Adds an enchantment to a player's selected item, subject to the same restrictions as an anvil.[4]
entitydata
Modifies the data tag of an entity.[5]
execute
Executes a command on behalf of one or more other entities, with originating permissions, optionally on condition that a single-block /testforblock-style check [6]
fill
Fills all or parts of a region with a specific block.[7]
gamemode
Set the gamemode (survival, creative, adventure or spectator) for the specified player.
gamerule
Sets or queries a game rule value.[8]
give
kill
me
particle
playsound
replaceitem
Replaces items in the inventories of blocks (chest, furnaces, etc.) or entities (players or mobs) with the given item(s).[9]
say
scoreboard
setblock
setidletimeout
setworldspawn
spawnpoint
spreadplayers
stats
stopsound
summon
Spawns a specified entity. If provided, will spawn with custom data.
teleport
tell
tellraw
testfor
testforblock
testforblocks
time
title
toggledownfall
tp
trigger
weather
worldborder
xp

Tutorials

Holograms with Command Blocks Tutorial
  1. Minecraft:Commands#blockdata
  2. Minecraft:Commands#defaultgamemode
  3. Minecraft:Commands#effect
  4. Minecraft:Commands#enchant
  5. Minecraft:Commands#entitydata
  6. Minecraft:Commands#execute
  7. Minecraft:Commands#fill
  8. Minecraft:Commands#gamerule
  9. Minecraft:Commands#gamerule