[Mod] Minecart [minecart]

User avatar
joe7575
Member
 
Posts: 299
Joined: Mon Apr 24, 2017 20:38
Location: Germany, in the deep south
GitHub: joe7575
In-game: JoSto

[Mod] Minecart [minecart]

by joe7575 » Sun May 12, 2019 19:08

A minecart running through unloaded areas for Minetest v5.0+

Image

Minecart is based on carts.
The minecart can "run" through unloaded areas. This is done by means of stored routes. If the area is unloaded the cart will simply follow the predefined route until an area is loaded again.
In this case the cart will be spawned and run as usual.

The main use of the Minecart is for item transport from mines to warehouses, ideally by means of an automation mod like Signs Bot: https://github.com/joe7575/signs_bot


Introduction

  • Place your rails and build a route with two ends. Junctions are allowed as long as each route has its own start and end point.
  • Place a Railway Buffer at both ends.
  • Protect your rails with the Protection Landmarks (one Landmark at least every 16 blocks)
  • Drive the route in both directions (route recording), starting at the Railway Buffers.
  • Now you can drop items into the Minecart and punch the cart to get started.
  • Sneak+click the cart to get the items back
  • Dig the empty cart with a second sneak+Click (as usual).


The code is on GitHub.

License

Code: MIT (as the original code)
Textures: CC-0 (as the original textures)

Dependencies
default, carts
optional: signs_bot
Attachments
screenshot.png
(153.88 KiB) Not downloaded yet
Last edited by joe7575 on Wed May 22, 2019 10:48, edited 2 times in total.
Sent from my Commodore 64. My Mods: TechPack, Hyperloop, Tower Crane, Lumberjack, Iron Age, Entrance, Minecart, Signs Bot.
 

Sokomine
Member
 
Posts: 3767
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Minecart [minecart]

by Sokomine » Mon May 20, 2019 18:21

Finally! Carts that can travel on their routes even if the area is unloaded. Without that, carts where usually a bit pointless. Thanks for creating the mod!

joe7575 wrote:To get the items back you have to dig the cart (as usual).

Perhaps a mechanism to unload the cart would be helpful. It could empty its content into a chest when punched from the side and not locked (maybe with right-click?). Just imagine those old tipping wagons that where actually used for mining. Removing those from the tracks in order to get their content wouldn't be a very practical approach.
A list of my mods can be found here.
 

User avatar
joe7575
Member
 
Posts: 299
Joined: Mon Apr 24, 2017 20:38
Location: Germany, in the deep south
GitHub: joe7575
In-game: JoSto

Re: [Mod] Minecart [minecart]

by joe7575 » Wed May 22, 2019 10:50

A mechanism to unload the cart is added:
1. Sneak+click the cart to get the items back
2. Dig the empty cart with a second sneak+Click (as usual).
Sent from my Commodore 64. My Mods: TechPack, Hyperloop, Tower Crane, Lumberjack, Iron Age, Entrance, Minecart, Signs Bot.
 


Return to WIP Mods



Who is online

Users browsing this forum: davidthecreator, mywaynotthehighway and 4 guests