Minecraft Commands
Get a command block
Bedrock:
/give @a command_block
Java:
/give @p command_block
Clear your inventory
/clear
Teleport
Teleport yourself to the x y z location:
/teleport @s x y z
Teleport a friend to the x y z location:
/teleport PlayerName x y z
Teleport everyone to the x y z location:
/teleport @a x y z
Set the time of day
Day:
/time set day
Night:
/time set night
Give items
Put 10 carpets in your own inventory:
/give @a blue_carpet 10
Give yourself a minecart:
/give @a minecart
Give yourself a command block:
/give @a command_block
Give yourself a command block minecart:
/give @a command_block_minecart
Give yourself a command block:
/give @a chain_command_block
Give yourself a debug stick:
/give @a debug_stick
Kill players or animals
Kill yourself:
/kill @s
Kill a friend:
/kill PlayerName
Kill all players:
/kill @a
Kill all players and animals:
/kill @e
Summon
Summon a mob like a zombie at x y z location:
/summon minecraft:zombie x y z