Mods Functional

The Train Mod

  • 1.3k views 3 today
  • save_alt 341 downloads 1 today
Game Version
Minecraft 1.21.8
Progress
100% complete
  • 2
  • 2
  • 1
AboodTube
Lvl 18Journeyman Miner
4
This is the latest train mod for Minecraft 1.21.8. Trains mods for Mincraft have barely been developed these days and so I decided to create one of my own. This mod comes with the following

- Passenger Train
- Passenger Train Car
- Steam Train
- Passenger Car
- Cargo Train
- Cargo Car

Now you may notice that there is no coupler item, and creating one is hard. So you should type in these commands , one for the propmt, and one for the command block:


EXAMPLE:

At the front, of the train, paste in this example:

  • /tag @e[type=train_mod:passenger_train,limit=1,distance=..5] add front
    And for the first car:


  • /tag @e[type=train_mod:passenger_train,limit=1,distance=..5] add car1Then:


  • /tag @e[type=train_mod:passenger_train,limit=1,distance=..5] add car2And so on...


    Then get a command block with this command:
    give @p command_block

    Open it up, ensure it is set to Repeat and Always Active, and then paste in the following:



  • execute as @e[tag=car1] at @e[tag=front] run tp @s ^10 ^ ^NOTE: For more than one carriage, repeat the same command by placing more command blocks with the same settings above, and paste like this example here:

    execute as @e[tag=car2] at @e[tag=car1] run tp @s ^10 ^ ^

execute as @e[tag=car3] at @e[tag=car2] run tp @s ^10 ^ ^
And so on.

And since repated output from the command blocks can be annoying, use this command:

/gamerule commandBlockOutput false

Have fun! Any suggestions for this mod to improve? Let me know in the comments!

More like this

  Have something to say?

User6381710G
05/01/2026 9:01 pm
Level 1 : New Miner
Can put in bedrock edition please 😄 if it works and download link to
1

Welcome