Minecraft Data Packs / Game Mechanic

Better Minecarts | Fast minecarts and automated rail placing!

    • 16,955 views, 22 today
    • 3,056 downloads, 2 today
    • 45
    • 48
    • 77
    brisai
    Level 45 : Master Engineer
    19
    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.21
    Tags

    5 Update Logs

    Update #5 : by brisai 06/14/2024 9:37:04 pmJun 14th, 2024

    updated to 1.21!
    LOAD MORE LOGS

    Create an account or sign in to comment.

    spaceyboi
    12/14/2024 8:16 pm
    Level 1 : New Miner
    hey OP, it seems like the datapack has broken for 1.21.4, can you please fix it?
    1
    adduckfeet
    12/02/2024 6:36 pm
    Level 1 : New Miner
    op hasn't explained how to increase max speed with his new momentum system.
    you need to change the values on lines 3-7 of each motion.mcfunction script. there's a script for each direction of travel.

    I am not familiar with the process of creating datapacks. Maybe this is impossible in the scripting language used here, but its the easiest solution I can think of.

    Could you not use variables and keep the tp commands in one file? Instead of passing the tp commands hard coded values (ie. ~-0.035) you can pass it variables that are assigned the hard-coded values in the if statements on lines 1-4 of apply_motion.mcfunction.

    That way you can change the hard coded values in only one place and the code is easier to read and iterate on later

    sorry for the unsolicited advice, I don't know this language otherwise I'd change it myself. I could be completely wrong and the separate files are essential to the function. Thanks for the pack!
    1
    brisai
    12/03/2024 5:15 pm
    Level 45 : Master Engineer
    youve probably got the best way to go about it, theres an easier way specific to how the pack functions but its much less intuitive.

    you bring up a valid point and i think ultimately my ideal goal would be to just get it to a point where you could type the max speed you want in a scoreboard command but datapacks are in the back seat in my life rn
    1
    User5278165G
    07/27/2024 9:06 am
    Level 1 : New Miner
    Hey, I recently downloaded this pack and put it on a Java Realm. It does however stop working randomly after a while. If I then disable and enable it again, it works for a while again. Any idea what's causing this and how to remedy it?
    1
    SaltB0mb
    07/19/2024 2:29 pm
    Level 1 : New Miner
    does this datapack affect minecarts that arent ridable such as hopper minecarts? I wanna make sure if it affects any farms that utilize minecarts
    1
    brisai
    07/20/2024 6:27 pm
    Level 45 : Master Engineer
    only the default minecart has changes to its physics. The furnace minecart technically has a small change to prevent (reduce) the times where a chest minecart gets randomly stuck when getting pushed uphill. Hopper, tnt, command block and spawner carts are completely untouched.
    1
    User5252609G
    07/13/2024 7:36 pm
    Level 1 : New Miner
    The speed part of this datapack seems completely broken on my friend's server, running vanilla 1.21...



    Everything's back to vanilla speed.

    The rail placing works ok though.
    1
    brisai
    07/13/2024 8:58 pm
    Level 45 : Master Engineer
    any speed bonuses get disabled when the cart changes directions (including diagonal to flat, etc). If you have a bumpy track that might be whats causing this

    otherwise i cant say i know what could be causing this. Ive been using this pack on my vanilla 1.21 server as well and have had no issues. It may be worth confirming that he isnt running the server on paper? Paper servers break the minecart speed mechanics.
    2
    User5252609G
    07/26/2024 3:32 pm
    Level 1 : New Miner
    history
    I have resolved the issue! I think the problem was that we used the old version of your datapack before the update, and there was residual scoreboad information that wasn't uninstalled properly. Using the uninstall function may have contributed, but the final thing I had to do was manually remove the "minecarts.init", "minecarts.xSpeed" and "minecarts.zSpeed" objectives.

    These were not removed with the uninstall function but once manually removed, the carts move at the correct speed!
    1
    kyodoru
    07/06/2024 10:43 pm
    Level 1 : New Explorer
    i love this datapack but the minecart its so fast it keeps lagging my server

    is there any way i could slow it down? i was reading something you said about changing tp commands in the motion handler but i have no idea what that is or means
    1

    Welcome