Any command you enter in single player will need to be prefixed by forward slash (/); multiplayer commands will not work with this prefix. Now it’s just a simple case of typing in the desired command and hitting the “Enter” key.
Adds item to player’s inventory, in specified quantity if item is stackable.
/gamerule keepInventory true
Keep your inventory items after you die, replace true with false to reverse
/summon [x y z]
Spawns the entity at the player’s location, or optional specified coordinates if entered.
Produces a seed code so you can recreate your world later
/setworldspawn [x y z]
Set the world spawn location to the player’s current position, or optional specified coordinates if entered
Sets the game mode type (use survival, creative, adventure, or spectator) for yourself or an optional player
Queries the value of a game rule, or amends it if an optional value is entered. A list of rule codes is here
Sets the difficulty level (use peaceful, easy, normal, or hard)
Sets the world game time, use 0 (Dawn), 1000 (Morning), 6000 (Midday), 12000 (Dusk), or 18000 (Night) as the value
/gamerule doDaylightCycle false
Turn off the day/night cycle, replace false with true to reactivate
Sets the weather type (use clear, rain, or thunder) for an optional duration in seconds
/gamerule doWeatherCycle false
Turn off weather changes, replace false with true to reactivate
Clones the blocks in the region between coordinates and, then places them with coordinates in the lower northwest corner
- Player Minecraft Dungeons Commands
Kill yourself (or specified player)
Teleport yourself (or specified player) to the coordinates entered
/effect <player|entity> [duration]
Applies the effect to the specified player or entity, for an option duration in seconds.
/effect clear <player|entity> [effect]
Clear all effects, or optionally just the specified effect, from the player or entity.
Apply the enchantment to the specified player’s selected item, at an optional level.
Adds the stated amount of experience points to the specified player. Put the word levels on the end to add experience levels instead