Minecart

A minecart is a train-like vehicle entity that runs on rails.

Obtaining
Minecarts can be retrieved by them for some time. A minecart is also destroyed if it makes contact with a cactus, or if shot with a bow and arrow.

Other minecarts
Minecarts with chests, minecarts with hoppers, minecarts with furnaces, and minecarts with TNT, drop 1 minecart and the block put in it when destroyed, Minecart with Command Blocks can only be given to the player with the /give command. Minecarts with Spawners, and Minecarts with Command Blocks drop 1 minecart when broken, and can only be obtained using commands.

Usage


A minecart can be placed in the same manner as most blocks, but can only be placed on top of a rail. Once placed, it may be derailed by pushing it off the end of the track. After this, it can be railed again by placing a rail directly below it, or pushing it onto a track.

Transportation


Minecarts can be ridden by on them. Once inside, an external impulse may be needed to make the minecart start moving. The player can slowly move the minecart forwards while riding it, by pressing. If a mob walks in front of an empty minecart, it is pulled into the cart.

Players can exit the minecart by pressing, however if there is only one block of headroom above the cart, the player takes of suffocation damage. When a minecart is exited, it searches for an adjacent or diagonal 2×2×3 area to put the player 1.5 blocks away from the cart. If none are available, the player is deposited directly above the minecart. Consequently, the player falls inside the minecart.

After rolling off of the end of a track, a minecart can be pushed around on open blocks. If a minecart is pushed onto or falls onto tracks, it "snaps" to those tracks. When riding a minecart, if the minecart lands on a rail, the player does not take any fall damage.

Speed
Minecarts have a predefined speed limit of 8 m/s per axis of travel. (1 block = 1 meter; 8 m/s = 28.8 km/hr.) A minecart traveling diagonally can therefore travel up to 11.314 m/s (i.e. the square root of the quantity 82 + 82) When a minecart comes to a turn it moves diagonally across that turn.

Powered rails powered by redstone give minecarts a boost of speed. Speed is gradually decreased if there are no powered rails to assist its movement. The speed decreases at a faster rate when going uphill, compared to when moving horizontally. A minecart does not need powered rails to assist its movement down a hill.

Anything in the way of the minecart brings it to a stop. Once a minecart has left the track, it rapidly decelerates within one or two blocks. When mobs touch a minecart, they affect it in the same way a player would, i.e. mobs that move up against a still cart set it in motion.

If a minecart is moving fast enough, it can skip across one block without a track and reattach to track on the other side, at significantly reduced energy and speed.

$$, minecarts are much faster than $$.

Merged minecarts
Merged minecarts are two or more minecarts merged. Their special feature is their odd way of losing speed. When coming off a track, merged minecarts initially lose their speed to around walking speed. But after first contact, they won't lose their speed anymore.

This way they can be used to cross certain distances when the player's only goal is to not actively walk towards the player's goal / target. Or when the player doesn't have enough resources to cover the complete distance, this measure can be considered. Note: for this concept to work, at least 3 minecarts must be merged. Doing this can detach the minecarts by pushing one off of the rails, or the one the player is riding might get stuck on a tight turn. Speed may decrease when merged. This can be used to get the "On A Rail" achievement.

Unoccupied carts, incline with boost
This table shows the distance traveled by an unoccupied minecart on an incline, with a boost (or no boost). The most efficient way is to use only 1 boost at the bottom of the incline on the flat surface. Using 2 increases distance by about 20% or 1.5m. All distance trends based on the height seem to be logarithmic. The carts started from rest, on an incline (at Height).

Collision
Minecarts are about the same size as a block (1×1). Because of this, a ladder, door or trapdoor prevents it from falling down a 1×1 hole.

Carts on rails also ignore collision in certain situations. A cart traveling uphill, downhill, or on a curve with a block placed in front of it, goes through the block.

A player or mob riding in a minecart does not collide with or suffocate in any transparent blocks, but suffocate inside opaque blocks.

Minecarts are completely unaffected by ice, blue ice and packed ice.

Mobs
Most mobs can ride minecarts, but only some types of mobs can control them. Mobs cannot exit the minecart unless the minecart is destroyed or moves onto an active activator rail. Endermen therefore are unable to teleport out of minecarts.

A mob can ride a minecart by pushing the mob onto a minecart, or by the mob moving into the minecart's space. Some mobs are able to nudge minecarts while in them, like players.

The player can bump a medium slime in a minecart, rendering it unable to attack. However, a large slime can still attack.

A spider jockey riding a minecart automatically accelerates the minecart.

Boats
When a boat rides in a minecart, the minecart travels faster on rails, approximately as fast as on powered rails. The movement in the boat minecart is glitchy and moving forward with the W key moves the cart backwards relative to the player, and vice versa for moving backward with the S key. The minecart also moves on rail-less ground at a crawling speed, but it does not float in water despite being in a boat.

Using this glitch can be far more resource efficient, since the boat minecart can move at the speed of a powered rail track on flat ground and on slopes. Another physics glitch with the boat minecart is the extreme reduction in friction when the minecart is on rails, which is similar to the lack of friction when a boat is riding on ice. This glitch can be done in survival without cheats simply by pushing a minecart into a boat on the track.

Entity data
Minecarts have entity data associated with them that contain various properties of the entity.

Trivia

 * Minecarts appear to float above the track, as their model has no wheels.
 * If you view your inventory while riding in a minecart you appear sitting down in mid-air.
 * You are able to teleport to another minecart while sitting in a minecart by right clicking a minecart in your range.
 * If the sound is muted in the options while riding a minecart, and then turned back up, the minecart no longer make noise in your client until you exit the minecart.
 * If a saddled pig is riding a minecart, the player can ride the pig. Doing so causes the minecart to be able to ride freely at the player's walking speed. It is unknown whether this is a glitch.
 * It seems that hunger does not deplete while inactive in a minecart (at least in normal difficulty).