TECHNICAL REFERENCE
Command Cheat Sheet
Quick-copy common Java Edition commands for building, testing and server administration.
Items
3 commands/give @p minecraft:diamond 64Give 64 diamonds/clear @p minecraft:diamondRemove diamonds/item replace entity @p weapon.mainhand with minecraft:diamond_swordReplace main-hand itemTeleport
3 commands/tp @p 0 100 0Teleport to coordinates/spreadplayers 0 0 10 100 false @aSpread players around a point/execute as @a at @s run tp @s 0 100 0Execute a teleport as each playerWorld
4 commands/time set daySet daytime/weather clearClear weather/gamerule keepInventory trueKeep inventory after death/difficulty hardSet difficultyMobs
3 commands/summon minecraft:zombie ~ ~ ~Summon a zombie/kill @e[type=minecraft:item]Remove dropped items/effect give @p minecraft:speed 60 1 trueApply SpeedBuilding
3 commands/fill ~ ~ ~ ~10 ~10 ~10 minecraft:stoneFill an area/setblock ~ ~ ~ minecraft:diamond_blockPlace a block/clone ~ ~ ~ ~5 ~5 ~5 ~10 ~ ~Clone a region