Difference between revisions of "Command Block"
From Zedwiki
(→Tutorials) |
m (Category) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
=== [[Command Block Tutorials|Tutorials]] === | === [[Command Block Tutorials|Tutorials]] === | ||
+ | The command block tutorial page has some hopefully helpful tutorials for people wanting to use command blocks. Some of these tutorials are listed here. | ||
[[Holograms with Command Blocks Tutorial]] | [[Holograms with Command Blocks Tutorial]] | ||
+ | |||
+ | [[Trash Item Removal Tutorial]] | ||
[[Update Commands From 1.9/1.10 To 1.11 Tutorial]] | [[Update Commands From 1.9/1.10 To 1.11 Tutorial]] | ||
Line 61: | Line 64: | ||
{{Command Definition|worldborder}} | {{Command Definition|worldborder}} | ||
{{Command Definition|xp}} | {{Command Definition|xp}} | ||
+ | |||
+ | [[Category:Minecraft_Tutorial]] |
Latest revision as of 14:43, 11 October 2020
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.
Tutorials
The command block tutorial page has some hopefully helpful tutorials for people wanting to use command blocks. Some of these tutorials are listed here.
Holograms with Command Blocks Tutorial
Update Commands From 1.9/1.10 To 1.11 Tutorial
Commands
The following commands are available for use in Command Blocks:
- Command:achievement
- Give/take an achievement to/from a player.
- Command:blockdata
- Modifies the data tag of a block.[1]
- Command:clear
- By default will clear all items from a player's inventory. Can also clear specific items when using optional arguments.
- Command:clone
- Copy the blocks and entities from within the selected area to the specified destination.
- Command:defaultgamemode
- Sets the default gamemode (Survival, Creative, Adventure or Spectator) a player will be in when joining a server for the first time.[2]
- Command:difficulty
- Sets the server's difficulty level.
- Command:effect
- The effect command manages status effects on players and other entities.[3]
- Command:enchant
- Adds an enchantment to a player's selected item, subject to the same restrictions as an anvil.[4]
- Command:entitydata
- Modifies the data tag of an entity.[5]
- Command: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] - Command:fill
- Fills all or parts of a region with a specific block.[7]
- Command:gamemode
- Set the gamemode (survival, creative, adventure or spectator) for the specified player.
- Command:gamerule
- Sets or queries a game rule value.[8]
- Command:give
- Command:kill
- Command:me
- Command:particle
- Command:playsound
- Command:replaceitem
- Replaces items in the inventories of blocks (chest, furnaces, etc.) or entities (players or mobs) with the given item(s).[9]
- Command:say
- Command:scoreboard
- Command:setblock
- Command:setidletimeout
- Command:setworldspawn
- Command:spawnpoint
- Command:spreadplayers
- Command:stats
- Command:stopsound
- Command:summon
- Spawns a specified entity. If provided, will spawn with custom data.
- Command:teleport
- Command:tell
- Command:tellraw
- Command:testfor
- Command:testforblock
- Command:testforblocks
- Command:time
- Command:title
- Command:toggledownfall
- Command:tp
- Command:trigger
- Command:weather
- Command:worldborder
- Command:xp