Player

From the Minecraft Beta 1.7.3 Wiki
Player
Player

The player is the entity a person controls.

Spawning

A player first appears at the world spawn point.

A player who dies respawns beside the bed last slept in, or at the world spawn point without one. A player who dies in the Nether respawns in the Overworld.

On a server, a player placed at the world spawn point, on first joining or on respawning, lands at a random spot up to 10 blocks from it along x and along z. For 60 ticks (3 seconds) after joining or respawning, a player on a server cannot be hurt.

Behaviour

Body

A player is 0.6 blocks wide and 1.8 tall, with eyes 1.62 blocks above the feet. A player can mine or use a block up to 4 blocks from the eyes, and hit an entity up to 3 blocks away.

A distance measured to a player, such as a mob's reach, runs to the eyes in singleplayer and to the feet on a server.

Health

A player has 20 health. Eating food restores it, and on Peaceful it regenerates at 1 point a second.

A player catches alight only after 20 ticks in fire. A lightning strike does not set a player alight.

A hit that deals no damage, such as a snowball, an egg or a fishing bobber, does nothing to a player, knockback included.

Movement

Movement Blocks per second
Walking 4.3
Sneaking 1.3, or 1.8 diagonally
In water 2.0
In lava 0.8

Moving diagonally is no faster than moving straight, except while sneaking.

A jump rises 1.25 blocks. A player walks up a rise of half a block, such as a slab, without jumping. In water, a player rises at 2 blocks per second while holding jump, and sinks at 2 otherwise.

A sneaking player does not walk off the edge of a block.

Air

A player has 300 ticks (15 seconds) of air with the head underwater, shown as ten bubbles, and then drowns. Air refills in full as soon as the head leaves the water.

Inventory

A player has 36 inventory slots, the bottom row of 9 being the hotbar, plus 4 armour slots and a 2×2 crafting grid.

The drop key, Q by default, throws one of the held item forward as a dropped item.

An open chest, furnace, dispenser or crafting table screen closes when the player is more than 8 blocks from the block's centre, or the block is gone.

Death

A player dies at 0 health, and drops everything in the inventory and armour slots, scattered around the body. In singleplayer, a player with the username Notch also drops an apple.

The death screen offers Respawn and Title menu, and shows a score, which is always 0.

In multiplayer

A server with PvP turned off stops players hurting each other, by hits or by arrows. PvP is on by default.

Other players see a player's name above the head from up to 64 blocks away, through blocks. A sneaking player's name shows only within 32 blocks, and not through blocks.

Data values

The player has no entity network ID. Singleplayer saves the player in the world's level.dat, and a server saves each player as players/<name>.dat in the world folder.