Skip to content

Commands

Explanation

Target

  • @a = all players
  • @e = all entities
  • @p = nearest player
  • @r = random player
  • @s = self

Most used

Give something to target

Give something to target
/give @s cooked_beef 2 # (1)!
  1. make sure you qquantify it, otherwise you get a full stack

Give a player free experience points

Enchant something
/experience add <player> <amount> # (1)!
  1. You need to have the item selected in your Hotbar

Enchant something

Enchant something
/enchant @s backpacked:marksman # (1)!
  1. You need to have the item selected in your Hotbar

Teleport somewhere

Teleport to Gundral
/tp Gundral # (1)!
  1. Will teleport me to the Player Gundral
Teleport to Location
/tp -64 76 1973 # (1)!
  1. Will teleport me to the coordinates X Y Z

Change game mode

/gamemode <type> [player] # (1)!
  1. Change the game mode type to either survival, creative, adventure, or spectator.

Change world time

/time set day # (1)!
  1. Change the world game time with the following values:
    1000 = day
    6000 = noon
    13000 = night
    18000 = midnight

Keep Inventory after death

/gamerule keepInventory true # (1)!
  1. You do not lose your inventory items after dying. Again, replace true with false to undo.

daw


Other Commands

Stop day/night cycle

/gamerule doDaylightCycle false # (1)!
  1. Turn the day/night cycle off, and change false to true to restart it.

Set Worldspawn

/setworldspawn # (1)!
  1. Sets the Worldspawn to your current location

Change difficulty level

/difficulty normal # (1)!
  1. Change the difficulty level to either peaceful, easy, normal, or hard

Summon entities

/summon <entity> [x y z] # (1)!
  1. Spawns the mod or other entity at the player's location, or chosen coordinates.

Effects

/effect give @s [effect] <time> # (1)!
  1. Gives you an effect
    time is in seconds

Locate

/locate poi #minecraft:village // (1)!
  1. locates things
    Can also locate
    biome
    structure

Server Commands

OP

/op <playername> # (1)!
  1. mkaes the player OP
/deop <playername>

Whitelist

/whitelist add/remove <playername>
/whitelist on/off
/whitelist list
/whitelist reload #(1)!

  1. Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft).

Save

/save-all #(1)!
  1. Forces the server to write all pending changes to the world to disk.
/save-off #(1)!
  1. Disables the server writing to the world files. All changes will temporarily be queued.
/save-on #(1)!
  1. Enables the server writing to the world files. This is the default behavior.