Minecraft Data Packs / Game Mechanic

Better Minecarts | Fast minecarts and automated rail placing!

  • check_circle Advancements
  • check_circle Functions
  • check_circle Recipes
  • 10,029 views, 20 today
  • 1,736 downloads, 4 today
  • 35
  • 39
  • 46
brisai's Avatar brisai
Level 41 : Master Engineer
14
This datapack is the standalone version of a feature made for Minecarft, my survival rebalance. Check it out here!

Better Minecarts overhauls vanilla minecarts to be a viable transportation option for survival minecraft. Over the years minecarts have been pretty heavily overshadowed by other transportation options and so I wanted to fix that. I recommend trying out building your tracks in the overworld, I find it to be a lot more fun. Better Minecarts is multiplayer compatible.

Features:

Minecarts are much faster, traveling slightly faster than blue ice boats
Minecarts automatically slow down for corners and bends to prevent visual clipping and derailment
Minecarts accelerate and decelerate much more smoothly
Rails now craft to 32, and powered rails craft to 16
Chest minecarts now can automatically place rails and powered rails
Furnace minecarts now load the chunks they are in while fueled



How to use Chest Minecarts
Insert rails for it to place, and put in ingots to program how the chest minecart will place them. Insert iron ingots to place rails, insert gold ingots to place powered rails, and if both ingot types are present then the amount of each ingot will determine how many rails/powered rails are placed consecutively before swapping to the other rail-type.

The chest minecart will automatically start laying tracks on the ground in the direction you push it, spending the tracks in its inventory while (generally) adhering to the same rules as the player when placing tracks. Pairs great with a furnace minecart.

The chest minecart can go up and down hills automatically, but cannot detect when it should turn. However, if you place rails ahead of time to create a curved rail at each intended corner of the track (pictured below) it will follow the change in direction. Use this to your advantage.

Better Minecarts | Fast minecarts and automated rail placing! Minecraft Data Pack


More Details (optional)
A fresh chest minecart will start its pattern with whatever rail-ingot combo is first inserted. For example, if a chest minecart has both rails and powered rails and you put a gold ingot in before putting in an iron ingot then the pattern will start with powered rails first.

You can swap what rail type the chest minecart starts with by making the other rail type invalid. For example, for a chest minecart with both rails and powered rails and both types of ingots, you could remove and reinsert the gold ingots (or powered rails) to get the pattern to start with regular rails.

If the chest minecart cannot fulfill its current pattern (ie it runs out of powered rails/rails when it needs to place a powered rail/rail) it will stop placing any tracks until it's inventory is replenished for that rail type. Once the chest minecarts inventory is replenished it will start placing rails again and resume the pattern.  
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

2 Update Logs

Update #2 : by brisai 02/11/2024 2:50:34 amFeb 11th

revamped minecart velocity system (buttery smooth the most buttery youve ever seen)
LOAD MORE LOGS

Create an account or sign in to comment.

1
04/28/2024 12:13 pm
Level 1 : New Miner
Lumin0us
Lumin0us's Avatar
does this work on 1.20.4?
1
04/28/2024 3:54 pm
Level 41 : Master Engineer
brisai
brisai's Avatar
yes!



minecarts will work in 1.20.5 as well, but the chest minecart mechanics are currently broken
2
04/13/2024 3:49 amhistory
Level 64 : High Grandmaster Technomancer
flashteens
flashteens's Avatar
I like your design on making minecarts much faster, especially how you dealt with each minecart when approaching curved rails to avoid derailment even if it's at the full speed of about 85m/s (or 306 km/h.)

But unfortunately looks like it doesn't work as expected on PaperMC server environments. I was testing it on PaperMC 1.20.4 and the minecart stops immediately instead of going faster when it goes onto a powered rail. 😅

I actually have designed a similar datapack called BulletCart for building high-speed railway lines, and I encountered the same issue as well. Finally I have figured out that /tp command in PaperMC 1.16+ automatically reset the Motion NBT tag of the minecart, so I guess you might need to "backup" the Motion NBT before performing the /tp command, and then restore it after the teleportation to fix the issue.
2
04/14/2024 5:30 pm
Level 41 : Master Engineer
brisai
brisai's Avatar
Wow that is super helpful, thank you so much! Lots of people have noted this issue and I've never been able to figure out why this would happen. Will be releasing a papermc version soon :)
2
03/16/2024 1:47 pm
Level 1 : New Miner
Amelia-chan
Amelia-chan's Avatar
THANK YOU!!!!
1
03/14/2024 4:30 pm
Level 2 : Apprentice Crafter
RainyPuddle
RainyPuddle's Avatar
doesnt seem to work on 1.20.1
1
02/24/2024 4:49 am
Level 1 : New Miner
CoolEnderman15
CoolEnderman15's Avatar
Someone send this to Camman
1
02/11/2024 4:01 am
Level 33 : Artisan Engineer
traincrisis
traincrisis's Avatar
can you add compatibility with the On a Rail datapack
1
02/07/2024 3:31 amhistory
Level 1 : New Miner
blaizius_
blaizius_'s Avatar
Hiya, how is momentum built, preserved, and dissipated? In vanilla a spacing of 20 blocks between single powered rails is seen as the most efficient (according to this testing anyway), however I'm not able to find a consistent interval between powered rails to achieve consistent speeds.

In some rough testing I've done, max speed (all powered rails) is 88m/s, which decreases in increments of 20m/s down to the default Minecart speed of 8m/s.
(Note: A quirky detail I've found is when two minecarts are travelling together, by pressing forward on the back minecart you can "lock" the two which seems to provide infinite speed for free. Maybe a bug?"

Is there some code as to when the minecarts lose their speed in these intervals (by distance or by some internal timer), and how many powered rails does it take to boost to each speed increment?

Edit: Minecarts also slow down around corner, uphill, and on diagonals when not powered. I assume this is a bug?
Basically the setup would be:



StartNumberOfPoweredRails --> NumberOfRegularRails --> NumberOfPoweredRailsToMaintainSpeed --> NumberOfRegularRails --. etc...
1
02/11/2024 3:08 am
Level 41 : Master Engineer
brisai
brisai's Avatar
Its been done. New velocity system is out now, reach consistent speeds at any speeds, I think.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome