Gives you operator permission
/op self
Most commands need this permission. Works in a single-player world; typing it again removes the permission.
/op self is the key to every command. Once you have permission, /gamemode c switches you to Creative mode and /heal refills your health. If you get stuck somewhere, /unstuck lifts you to the top of your current position. There is no separate invincibility command; in Creative mode your health does not drop anyway.
Most codes here need cheats turned on first. See the section on how to open the console.
/op self
/op self
Most commands need this permission. Works in a single-player world; typing it again removes the permission.
/gamemode c
Unlocks flying, no health loss and the creative tools. The long form is /gamemode creative.
/gamemode a
Takes you back to normal survival-style play. Hypixel calls this mode Exploration Mode; in commands it is adventure. The long form is /gamemode adventure.
/heal
Fully refills your health and stamina in an instant.
/kill
Kills your character and restarts you at the spawn point. For another player, type /kill PlayerName.
/unstuck
Teleports you to the top of the world at your current position. Useful when you are buried or stuck somewhere.
/inventory clear
Deletes every item in your inventory.
/whereami
Prints your coordinates in chat. Used together with the teleport commands.
/help
Lists the commands you can use. For the syntax of a single command, type /help commandname or add --help to the end of the command.