Mods/Minecart Mania!

Minecart Mania! is a Minecraft Alpha client and server mod created by Afforess that reinvents the minecart game mechanics. It can create boosted track sections, brakes, cart dispensers and more. A video demonstration of some of the features is available here.

= Overview =

= Installation = The installation package can be downloaded from here.

Minecraft Windows Client
Note: When playing on unmodified servers, the mine carts will behave as normal.
 * 1) Open the Minecraft .jar binary with WinRAR or 7-Zip. Mind the capitalization Mincraft.jar is the laucher, minecraft.jar is the binary.
 * 2) Drag the class from the Minecart Mania! installation folder into the .jar.
 * 3) Delete the META-INF folder.
 * 4) Close the program and launch the .jar

Minecraft Linux Client

 * 1. Open a terminal.
 * 2. Change directory to the directory where the minecraft.jar binary is located. Normally this is ~/.minecraft/bin. Mind the capitalization, Minecraft.jar is the launcher and minecraft.jar is the binary.
 * 3. Extract the classes from the Minecart Mania! archive to this directory.
 * 4. Backup your minecraft.jar

cp minecraft.jar minecraft.jar.date
 * 5. Merge the classes with the minecraft.jar:

jar uvf minecraft.jar file1.class file2.class ...
 * 5. Delete the META-INF folder from minecraft.jar.
 * 6. Launch the client and try it in single player.

Note: When playing on unmodified servers, the mine carts will behave as normal.

Minecraft Macintosh Client
extra steps (if this does not work) All the above Macintosh Minecraft work was tested to work by Myself. tested and works with the current(12/25/10) Beta cycle.
 * 1) Go to Application support in your home folder.
 * 2) find The Bin folder
 * 3) Move/Copy the files to the Bin folder.
 * 4) backup minecraft.jar.
 * 5) Extract it into a folder.
 * 6) Delete the META-INF folder.
 * 7) Add .jar to the folder(note that it will still show as a folder, but don't worry, it's a jar)
 * 8) Close the Folder and launch the Native Minecraft application.
 * 1) Find original minecraft application.
 * 2) right click, show package contents.
 * 3) contents/resources/java
 * 4) Extract minecraft launcher.
 * 5) Delete META-INF
 * 6) Rename folder "MinecraftLauncher.jar"

Minecraft Server
Note: It is not required for clients to install the mod when playing on a modded server.

Windows Servers
If you use MCAdmin continue here
 * 1) Open the Minecraft .jar binary with WinRAR or 7-Zip.
 * 2) Drag the class from the Minecart Mania! Multiplayer installation folder into the .jar.
 * 3) Do not delete the META-INF folder.
 * 4) Close the program and launch the .jar.

MCAdmin
Note: This does not require editing of mincraft_server.jar. Note: If the server properties are edited later using the MCAdmin GUI, steps 3 and 4 may have to be repeated.
 * 1) Download and install the Hey0 mod.
 * 2) Launch server, then stop server.
 * 3) Open the server.properties file with a text editor. (Note: NOT in the MCAdmin GUI despite MCAdmin's warnings.)
 * 4) Scroll down to the line that says plugins= and change it to plugins=MinecartMania.
 * 5) Create a new folder in MCAdmin's root directory titled plugins.
 * 6) Copy MinecartMania.jar into this new directory.
 * 7) Restart MCAdmin. Start the server. The server output window should indicate that MincartMania loaded successfully.
 * 8) Enjoy.

Linux Servers

 * 1. Extract the class files from the downloaded zip file.
 * 2. Upload the class files to your Minecraft server directory using your favorite SFTP or Secure Copy client (such as WinSCP for Windows.)
 * 3. Make a backup copy of your working server jar:

cp minecraft_server.jar minecraft_server.jar.date
 * 4. Merge the modded class files into the server jar by running the following command:

jar uvf minecraft_server.jar file1.class file2.class ...
 * 5. Launch your server and try it out.

= Track Modifiers = Track modifiers work by placing different block types underneath (or in some cases in between) the track sections. Depending on what block is used, different effects can be achieved.

Boosters
Placing minecart tracks on top of gold ore or gold blocks (made from 9 gold ingots) will yield boosted track sections. Gold ore will only boost the minecart by 25% of its speed / momentum, while gold blocks will double it. Minecarts that are not moving will not be affected by these track sections. Boosted track sections can be disabled by applying a redstone current to them.

Brakes
Placing Soul Sand or gravel underneath a section of a minecart track will cause any minecart in motion to slow down dramatically as it passes over it. Soul Sand slows a minecart by 50%, gravel only by 20%. This means one soul sand block will undo the boost given by a gold block, while one gravel will undo the boost from a gold ore block. Additionally, hooking up a powered redstone current to the brake will disable the brake.

Pushers
Placing an iron block underneath of a track section will force any player or mob out of a cart as it passes over it, placing them directly behind where the minecart previously was. This can be disabled by applying an active redstone current.

Pressure Plates
Both wooden and stone pressure plates act as straight tracks. Although it won't be visible in the game, they will act as a combination of a plate and a track when a minecart passes over them. Pressure plates can also act as a neutral 4 way intersection. Normally, track intersections force carts to switch directions. Using a pressure plate allows minecarts to continue in their original direction. This way, intersecting lanes of track can be built that don't cause the carts to change directions.

Bouncers
Placing a wool block underneath a section of track will cause any minecart in motion to change directions and continue in the opposite direction with the same speed it had before. Additionally, hooking up a powered redstone current to the wool will disable the bouncing mechanic.

Launchers / Catchers
Obsidian can be used to launch stopped minecarts forward. Placing Obsidian underneath track, and applying an active redstone current to it will cause a stationary minecart placed on top to accelerate in the direction the track continues in. In case there is more than one direction available to launch in, the game will follow the compass rose, trying north, east, south and last, west. Their exact speed can be controlled by signs. Signs with the text "speed X%", where X is an integer between 1 and 100 affect its initial speed. 100% implies full speed, 50% half speed, etc...

Obsidian can also be used to catch moving minecarts and hold them until a redstone current launches them forward again. To make obsidian act as a catcher, an inactive redstone current must be applied to the block. No redstone, or an active current will not work. Because the catching mechanic can sometimes interfere with the launching mechanic of the block, signs can be used to disable catching. Placing a sign adjacent to the track above the obsidian with the word "Launcher" in any of the 4 lines will disable the ability for it to catch moving carts, until the sign is removed.

Obsidian can be used to stop a cars motion temporarily. Placing obsidian underneath a track, and a sign adjacent to it with the text "hold for X" will hold a cart stationary on the obsidian for X seconds. (X should be between 1 and 999). If there is room on the sign, a countdown will appear.

Dispensers
Minecarts can be automatically stored in single or double chests without the aid or intervention of a player. Placing a track up to a chest, and pushing a minecart towards it will cause the minecart to be stored in the chest, thus dissappearing from the track once it touches the chest. Giving the chest a redstone current will dispense a minecart if one is available. Used in conjunction with a minecart launcher, this can automate minecart storage. In case there is more than one direction available to dispense to, the game will follow the compass rose, trying north, east, south and last, west. Alternatively, a player can place a sign adjacent to the chest with the direction name on any of the four lines to force a specific direction.

Placing a sign next to a chest with the text "Minecarts:" on one of the lines will cause it to be updated with a total number of the minecarts present in the chest, useful for knowing whether dispensers are empty or full without looking in each one. Open the chest or apply a redstone current to update the sign.

Additionally, a sign placed to a chest with text "collect only" in one of the lines will force the chest to only collect passing carts. Chests designated as only collectors will also collect carts that pass parallel to it. Furthermore, a sign with the text "collect empty" in one of the lines will force the chest to only collect empty minecarts, ignoring those whith anything in them. This can be used in combination with the "collect only" line.

Placing a sign next to a chest with the text "parallel" will allow the chest to collect carts passing by while still allowing the chest to dispense minecarts. This can be used in combination with "collect empty" to allow the chest to collect passing minecarts that are empty and dispense minecarts unlike "collect only" which only collects and does not allow the chest to dispense minecarts.

Example sign with most switches enabled. (Order does not matter.)

Line 1: North Line 2: Minecarts: Line 3: collect only Line 4: collect empty

Stations
Station blocks are only used in SMP. When a station block is placed underneath an intersection, any minecart with a player inside will stop and prompt the user for instructions on how to continue via the chat dialog. Users then can use the chat dialog to change their direction. The accepted chat commands are "/straight", "/left", "/right", "/north", "/south", "/east", and "/west". For ease of typing, the first letter lowercase of straight, left and right can be used (straight can either be "/straight" or "/s"), and the first letter uppercase for cardinal directions (north can be "/north" or "/N"). Once players issue a command, the minecart will continue in the new direction with the previous momentum.

Kill Switch for Empty Minecarts
A kill switch for empty minecarts has also been made available in a configuration file that is automatically created the first time the mod is run, for both servers and clients. The file "MinecartManiaSettings.txt" allows the user to set a specified time period for killing empty minecarts. Intended mostly for server use (but it does work on clients), it will destroy and remove minecarts that remain empty for longer than the time allotted. Entering and exiting the minecart resets the timer for each particular minecart. Integer (whole numbers) only.

= SMP Chat Commands = Chat commands are chat entries that begin with a '/' character and are only available to users using the SMP version of the mod.

Throttle
Using "/throttle [percentage]" when inside a minecart will adjust your speed on the fly. While originally intended for autocart only, to allow users to see scenic views and vistas without whipping by everything, it also works in non-autocart servers. Stepping out of the minecart will reset the throttle to 100%.

Brake
Using "/brake" inside of a minecart will engage the braking mechanism, bringing a full speed minecart to a hard stop in several blocks. The brake will not reset when you leave the minecart, so it can be used to put minecarts in the way of other people's tracks, or use minecarts as roadblocks.

Momentum
Using "/momentum" when inside a minecart will show your minecart's X, Y, and Z momentum on the chat dialog.

Track Direction
Track direction and placement can be altered by using the "/trackdir" command. For example, using "/trackdir n-s" will force the minecart track you are standing on to switch to face north-south directions, ignoring the track around it. The total list of usable track direction commands is "/trackdir n-s", "/trackdir e-w", "/trackdir slope-s", "/trackdir slope-n", "/trackdir slope-e", "/trackdir slope-w", "/trackdir curve-sw", "/trackdir curve-nw", "/trackdir curve-se" and "/trackdir curve-ne".

Track Direction
= Version History =

= Links = Forum Thread