Lesson 4: /give, /tp, and /effect — The Quality of Life Commands
/give, /tp, and /effect — The Quality of Life Commands
These three commands will change how you play. Together they let you equip yourself instantly, travel anywhere in seconds, and apply any status effect in the game.
The /give Command
/give playername itemname amount
Or give to yourself:
/give @s itemname amount
Examples:
/give @s minecraft:diamond_sword 1
/give @s minecraft:cooked_beef 64
/give @s minecraft:oak_log 999
Item Names
Every item in Minecraft has an internal name. The pattern is usually minecraft:item_name with underscores instead of spaces. Some examples:
minecraft:diamond_pickaxeminecraft:elytraminecraft:totem_of_undyingminecraft:enchanted_golden_appleminecraft:command_blockminecraft:structure_block
Tip: in Java Edition, type /give @s minecraft: and press Tab to autocomplete and browse all items.
Enchanted Items with NBT
Give yourself an enchanted sword:
/give @s minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5},{id:"minecraft:unbreaking",lvl:3}]} 1
Notice the NBT data in curly braces again — same pattern as /summon. NBT is Minecraft's way of storing extra data on items and entities.
The /tp Command
/tp playername x y z
Or teleport yourself:
/tp @s x y z
Teleport to spawn:
/tp @s 0 64 0
Teleport to another player:
/tp @s PlayerName
Teleport everyone to you:
/tp @a @s
Teleporting with Facing Direction
Add rotation so you face the right way when you arrive:
/tp @s 100 64 200 90 0
The 90 0 is yaw (horizontal rotation) and pitch (vertical). 90 = facing West, 0 = looking straight ahead.
The /effect Command
/effect give playername effectname duration amplifier
- duration — seconds the effect lasts
- amplifier — power level (0 = level I, 1 = level II, etc.)
Useful effects:
/effect give @s minecraft:speed 60 2
Speed III for 60 seconds.
/effect give @s minecraft:night_vision 600 0
Night vision for 10 minutes.
/effect give @s minecraft:jump_boost 30 9
Insane jump boost for 30 seconds.
/effect give @s minecraft:resistance 999999 4
Near-invincibility for a very long time.
/effect give @a minecraft:regeneration 10 1
Give all players regeneration.
Remove all effects:
/effect clear @s
Practice Challenges
- Give yourself a full set of enchanted netherite armor (4 separate /give commands)
- Set up a "base" at your current location, then teleport 500 blocks away and teleport back
- Give all players in your world Speed II and Jump Boost II for 5 minutes
- Create a "god mode" sequence: resistance V, regeneration II, strength II, all for 9999 seconds
- Give yourself a written book using /give with NBT data