Tutorials/Command blocks and functions

WARNING: I created this page with good intentions, but it may be subject to deletion or relocation the near future(Possibly to Command Block ?). Please help me add as much info and content as possible to it; I cannot do this alone.

MrRedstone 22:17, 23 September 2012 (UTC)

The Command Block is a new block that was introduced in 12w32a and will be officially released in Minecraft 1.4. It was introduced as a way to help support Adventure Mode and custom maps.

To find out more in detail, visit the Command Block page.

Singleplayer Applications (SSP)
This section details the applications of the Command Block in singleplayer.

Multiplayer Applications (SMP)
This section details the applications of the Command Block in multiplayer.

Through the /tp command, one can create teleporters for public use on a server. Can be applied to a range of scenarios.
 * Teleportation/Transport

Through @r and /give, one can create a lottery (self-explanatory) Keep in mind that in the most recent snapshot/1.4 that /give will directly put items into one's inventory, instead of throwing them on the ground in front of the character.
 * Lottery

By using /tp a whole bunch, you can force a player to stay at a certain place. If you do this it would be advisable to either turn off commands in your chat settings or do /gamerule commandBlockOutput false.
 * Jails

By inputing the parameter [m=1], only players in creative will be affected by the command block. Hopefully only ops are in creative on your server.
 * Admin Only

By using /me in a command block one can create announcements that could play even when the admin/owner wasn't there.
 * Announcements

By using /clear, you can scan people for items. If you only want to remove certain items, use /clear @p(or playername) itemid.
 * Security Scan

Application in Custom Maps
This section details the applications of the Command Block in custom maps.

One map that takes advantage of a lot of the features of the Command Block is SethBling's TF2 Map "Dustbowl" in Minecraft. Video:[ http://www.youtube.com/watch?v=_f2brU8hBWc&feature=plcp]

using pressure plates or tripwire, make areas (like a castle for instance) a different difficulty (for this instance I will use peaceful). the doors could have tripwire hooked to a command block that changes ones difficulty to peaceful, creating a sort of "Safe Haven". one could also do it the other way around, creating a more dangerous zone, such as arenas having the difficulty of hard, rather than normal or easy.
 * Safe Haven/Arena Fight Zone

Related Pages

 * Command Block
 * Multiplayer
 * Adventure Mode

Ideas
This section details some ideas that you may submit to this section via editing. Please add ideas as you wish!

1.

2.

3.