Minecart

Minecarts are rideable entities placed on rails that can be used to carry items, mobs, and the Player. They are used as a form of transportation to cover long distances, since they are much faster than walking. Additionally, they are used for recreation — intricate roller coasters have been created through clever track placement and design.

From special minecarts
Minecarts can also be obtained by breaking special minecarts:


 * Breaking a minecart with chest or hopper drops a minecart and a chest or hopper, respectively, as well as the contents of the broken storage minecart.
 * Breaking a minecart with TNT drops a minecart and a block of TNT.
 * Breaking a minecart with furnace drops a minecart and a furnace, but no fuel.
 * Breaking a minecart with command block or spawner drops only a minecart.

Usage
Minecarts are placed in the same manner as other blocks; however, they can only be placed on top of rails. Once placed, they may be derailed by pushing them off of the end of the track. And can be railed again by putting a rail directly below it.

Once placed, minecarts can be hit, which reverts them back to an item. This can't be done while they are being ridden. Swords can do this in one hit with no decrease in durability; one arrow will do the same, but the arrow will be lost.

Transportation


Minecarts can be ridden by right-clicking them. Once inside, an external impulse (a powered minecart, powered rail, or other player) may be needed to make the minecart start moving. It is possible to push the minecart yourself and then jump in. The player can slowly move the minecart while riding it, by using the direction keys. Mobs (notably tamed ocelots) can also push minecarts. Also, if an animal gets in front of an empty minecart, the animal will be pulled in the minecart.

Players can exit the minecart by pressing the sneak key, however if there is only one block of headroom above the cart the player will take half a heart of suffocation damage as his head will be temporarily through the ceiling. When the minecart is exited, it searches for an adjacent or diagonal 2x2x3 area to put the player 1.5 blocks away from the cart. If none is available, the player is deposited directly above the minecart. Consequently, the player falls inside the minecart. It is possible to interact with the environment while riding a cart, such as shooting a bow at enemies or laying down track in front of the minecart while it is moving.

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 will "snap" to those tracks. When riding a minecart, if the minecart lands on a rail, the player will not take any fall damage.

Minecarts can be used for rapid ascent 'elevators' by derailing them onto a ladder placed against the shaft wall every 4 blocks. Players look up, hold down right click, and rapidly ascend by 'jumping' from minecart to minecart.

A minecart will stop dead when it encounters an arrow, whereas it will bounce off or fly past (if fast enough) a player.

Mobs can also ride minecarts. They can be pushed by the player into one, walk into one, or being hit by an empty cart. Passive mobs will not walk into a minecart. Hostile mobs will not try to avoid minecarts on their path and will ride it. Any mob that touches a minecart that is on an activated powered rail will instantly ride it, while a mob will NEVER ride into a minecart that is placed on an unpowered powered rail.

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) No longer works as of 1.7.5. When a minecart comes to a turn it moves diagonally across that turn.

Boosting
Powered rails powered by redstone will give minecarts a boost of speed. However, unpowered rails will severy slow, if not stop the minecart

Loss of speed
One unit of kinetic energy could be defined as the energy gained by a cart going down a one block slope, and lost by a cart when it goes up a one block slope. If a 45 degree downward slope is connected directly into an upward slope, an initial height of 60 blocks will result in a final height of 40 blocks, a loss of 20 units of potential energy. But if 20 sections of flat track are inserted between the slopes, the final height will be 35. This implies that one unit of energy is lost for every 4 sections of horizontal track traveled with an initial stored energy of between 60 and 40. At much lower speeds, much less energy is lost, implying that the energy lost is a percentage of the cart's current energy. The above gives about 0.5% energy loss per section of track. One implication of this is that more energy lost when the cart has more energy, so a gradual slope should allow you to travel much farther distances than a steep slope followed by a long flat section. (This is different from real-life physics, where friction does not increase with velocity. However, it may be an attempt to mirror air resistance, which does increase with velocity.)

Anything in the way of the minecart will take it to a dead stop, including: blocks, items, and mobs. Once a minecart has left the track, it will rapidly decelerate within one or two squares. It is possible to have a sufficiently boosted minecart "skip" over one square without a track, then rejoin the track at reduced energy later. When a mob touches a minecart they affect it in the same way a player would, i.e. mobs that move up against a still cart will set it in motion. When an empty minecart hits a mob, the mob will ride it.

Merged minecarts
Merged minecarts are two or more minecarts merged. This can be done in various ways, one of which is putting a minecart on a 1-piece slope-track and letting another minecart fall on top of it. When minecarts are merged the player can still ride them. What makes them useful, however, 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 will have to 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.

Unoccupied carts, incline and a 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 will increase 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).

Detecting minecarts
The detector rail is a switch activated by minecarts. It generates a Redstone charge the same as a Pressure Plate when a minecart is on the rail.

Minecarts can also be detected when their corners run over pressure plates as they go around a curved track. The effect is similar to the detector rail, but can only occur at curves.

Collision
Minecarts seem to have about the same size as a block; 1x1. Because of this, a ladder, door or trapdoor will prevent it from falling down a 1x1 hole. This can be utilized to make minecart dispensers, by stacking carts on top of each other and dispensing them with the help of a booster. A single cart dispenser using a door can also be made by using a sign to block the cart from falling off the door. Minecarts can also be placed directly on rails using Dispensers.

Previously, it was possible to transport carts along 1 block wide water streams without the minecarts falling by placing ladders underneath. By alternating the signs, items could still fall through. Because streams carried minecarts at a very slow rate, a trap could be made where anyone sitting in a cart would be suffocated in a block directly above the stream, and their items could then be collected below. However, since water no longer affects minecarts, this is no longer possible.

Carts on minecart tracks will also ignore collision in certain situations. A cart traveling downhill or on a curve with a block placed in front of it will go through the block. If it is going fast enough, it can skip through one block and reattach to track on the other side, at significantly reduced speed.

A player riding in a minecart will not collide with or suffocate in any transparent blocks, including glass, half slabs, and leaves.

Special minecarts
There are currently six types of special minecarts:
 * Powered Minecart - A self-propelled minecart that is powered by coal.
 * Storage Minecart - A minecart that can store items like a standard chest.
 * Hopper Minecart - A minecart that contains a Hopper and can collect items from along the track or chests placed above the track.
 * TNT Minecart - A minecart that contains a block of TNT that can explode when primed by an Activator Rail.
 * Spawner Minecart - A minecart that contains a Monster Spawner and can spawn entities wherever it goes. Cannot be created without mods or external editors, or, as of Snapshot 13w36a, NBT tags in commands, but still functions in vanilla Minecraft.
 * Minecart with Command Block - A minecart with a command block which is activated when the cart rolls over a powered Activator Rail. Using /give or /summon is the only way to get this minecart.

Mojang has also released teaser images of another potential minecart, but it is not currently in the game:
 * Dispenser Minecart - A minecart which would presumably store and dispense up to 9 item stacks when powered with activator rails.

Minecart trains


To create a train, start with a fairly short length of straight track with an open ending on one side. Put a Powered minecart on the side nearest the open end, and then add storage minecarts or ridable minecarts along the rest of the track. Then, turn on your powered minecart. It will push the other minecarts as if it were a minecart train. Placing an additional powered minecart on the other end will allow you to make a two-way train, as minecarts currently only push other carts, not pull. If you are on a superflat world, there are a fairly large number of Slimes around. Kill the Slimes until you are left with a bunch of tiny ones. Hop in a minecart and the tiny slimes will push the minecart while trying to kill you. This is completely safe because tiny Slimes do not cause damage.

Video

 * Note: This video shows only 3 varieties of minecarts, as it is out-dated. There are currently 7 varieties.

Temporary minecart changes in 1.8
In snapshot 14w11a, the physics of mine carts were drastically changed. Minecarts were made to go faster and farther - they had a new defined speed limit of 1 meter/tick or 20 m/s (or 72 km/h). They also had improved collision and position handling, meaning minecarts could no longer be merged.

One of the most significant changes is that minecarts could derail at corners if going too fast. One way to combat this is to place two unpowered powered rails, followed by a detector rail before each corner. If the minecart is going at full speed, this reduces it to a speed where the mine cart will be able to go round a corner. In addition, placing fences/glass panes around each corner will also prevent the minecart from derailing.

Minecarts could also refuse to go uphill. If a minecart was going too fast, the minecart will refuse to go uphill. This means that players had to test for the optimal speed at which a minecart was able to go uphill, and provided extra challenge. Minecarts could "fly" off rails if it is accelerating downhill. When the minecart reached terminal velocity (or its fastest possible speed), the minecart "jumped" off the rail.

In 14w17a, minecarts reverted to the old minecart physics used before 14w11a due to problems with the handling of them in the game engine. Dinnerbone stated "I think for now sadly we will be reverting the minecart changes because the engine just can't support them nicely yet :("

Trivia

 * Multiple minecarts in the same place can make them push each other, meaning that they can move without powered rails or even rails at all.
 * Endermen cannot teleport out of minecarts. They will try, but fail.
 * Minecarts appear to float above the track, as their model has no wheels.
 * Small Slimes may be used to power a minecart by hitting it from behind. This strategy works fairly well, and can be used to power long minecart trains.
 * You can bump a medium slime in a minecart, and it can't attack you. However, a large slime can.
 * The large slime, large Magma Cube and Ghast will completely cover a minecart.
 * A medium slime in a minecart has a small but powerful "Force Field" around it where you get pushed away, but not hurt.
 * Slimes in minecarts will divide if punched to death. This makes dividing slimes easy, as they can't move.
 * Minecarts automatically stored items until the storage minecart was put into the game.
 * Dropped items and skeleton arrows, if left on a track, will stop a minecart as if they were walls.
 * Tamed wolves will follow you when you are in a minecart.
 * If you view your inventory while riding in a minecart you will appear sitting down in mid-air.
 * The texture file, cart.png, features a large 'leather like' panel that used to be used as the bottom of the minecart when it contained items, back when minecarts were used to store items. However, it is now unused. MinecartStack.png
 * Minecarts can be set on fire, but the mob or player inside the minecart will not catch fire from a minecart.
 * Spiders can get "caught" in a minecart. On certain times of the day they can hurt you, but not always. A powered minecart cannot push the spider while the player and powered rails can. The spider cannot escape but it can look around.
 * The minecart can drive underwater if launched by rail and some air supplies underwater.
 * Spider Jockeys can propel themselves on flat surfaces and chase you.
 * Minecarts can be stacked onto each other.
 * Creepers can explode while in a minecart.
 * Minecarts can be dropped when the player shoots a fully charged arrow at it.
 * Ghasts can ride minecarts, even though they fly.
 * You are able to teleport to another minecart whilst sitting in a minecart by right clicking a minecart in your range.
 * If a minecart with other minecarts "stacked" on top of it falls into lava, they will sometimes drop a minecart item that can stay in the lava, yet never burn up. Note that these items can still despawn after 5 minutes, just like any item.
 * Giants riding minecarts are placed way up in the air in a sitting pose.
 * Villagers can ride on minecarts.