teleport player to [x] [y] [z] clear inventory of player heal player by [number] give items from block at [x] [y] [z] to [entity](player or last spawned entity) if player has items from block at [x] [y] [z] if player does not have items from block at [x] [y] [z] remove items from player from block at [x] [y] [z] set checkpoint [number/win] send "[text]" send title "[text]" with subtitle "[text]" make player join team "[text]" reset team of player set velocity of player to [x] [y] [z] apply [potion] [tier] to player for [timespan] milk player wait [timespan] (limit of 10 seconds, but you can add wait actions for more) set gamemode of player to [gamemode] spawn [entitytype] at [x] [y] [z] else (used for continuing the code after not meeting the last condition) toggle block at [x] [y] [z] (Works on command blocks, but toggled command blocks cannot toggle other command blocks) set block at [x] [y] [z] to block at [x] [y] [z] if block at [x] [y] [z] is block at [x] [y] [z] if block at [x] [y] [z] is not block at [x] [y] [z] fill blocks from [x] [y] [z] to [x] [y] [z] using block at [x] [y] [z] (Max 8 blocks distance between points allowed) reset all temporary blocks
| is for new line and everything is written in command blocks! Use /editblock while looking at a command block to write the code into it. To get a command block, you need to use WorldEdit command //set commandblock
Command blocks can be activated by pressure plates and buttons currently, may be more ways in the future.
Let's see some examples, so you can understand how to write it!
1. A simple heal & teleport code:
It will set health of player to 20 and will teleport the player to 37 5 -50 coordinates once player presses the button/pressure plate which activates the command block.
heal player by 20|teleport player to 37 5 -50
It will remove all potion effects from player, heal the player, set gamemode of player to adventure, give items from block at specified coordinates to player, will make player join a team(members of same team cannot attack eachother), teleport player to specified coordinates and send a message.(You probably do not need this description, the code explains itself xD)
milk player|heal player|set gamemode of player to adventure|give items from block at -1500 12 50 to player|make player join team "blue"|teleport player to -1450 12 30|send "&9You joined Blue team!"