Skip to content
Minecraft Command List

Minecraft /misc Commands — Copy & Paste (2026)

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Utility commands that don't fit a single category — gamemode switches, difficulty changes, killing mobs, and more. All verified for the latest version.

Become nearly invincible

/effect give @p resistance 999999 255 true

Switch yourself into Creative mode

/gamemode creative

Instantly remove every mob from the world except players

/kill @e[type=!player]

Give yourself XP levels for enchanting

/experience add @p 30 levels

Switch to Peaceful mode so hostile mobs don't spawn

/difficulty peaceful
Find the Nearest Village
Find the Nearest Village Awaiting in-game verification
Both

Get coordinates of the nearest village structure

/locate structure village
Find the Nearest Stronghold
Find the Nearest Stronghold Awaiting in-game verification
Both

Locate the stronghold with the end portal

/locate structure stronghold
Add Experience Levels
Add Experience Levels Awaiting in-game verification
Both

Give yourself or a player XP levels

/xp add @s 10L
Clear Your Inventory
Clear Your Inventory Awaiting in-game verification
Both

Delete all items in your inventory instantly

/clear @s
Set World Border Size
Set World Border Size Awaiting in-game verification
Java

Create or resize the world border boundary

/worldborder set 500
Set Your Spawn Point
Set Your Spawn Point Awaiting in-game verification
Both

Mark your current location as where you respawn

/spawnpoint @s
Start a Thunder Storm
Start a Thunder Storm Awaiting in-game verification
Both

Trigger a thunderstorm with lightning

/weather thunder 600
Set Time to Night
Set Time to Night Awaiting in-game verification
Both

Make it nighttime immediately

/time set night
Display World Seed
Display World Seed Awaiting in-game verification
Java

See the world seed for reproducibility or map info

/seed