How can I make an entity ride a minecart?

Started by Rukreep on

Topic category: Help with modding (Java Edition)

Last seen on 15:22, 31. May 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make an entity ride a minecart?

Hi,

I'm working on a railway mod and I cannot figure out how I can spawn a minecart and a custom entity inside as a passenger.

I'm using a spawn egg for the entity, so that once it spawns from the spawn egg, it summons a minecart and the train entity rides the minecart.

However, when it comes to spawning the minecart and making the train ride the minecart, I have no knowledge of making it happen. Could someone explain and if possible, give me screenshots?

Thanks.

Last seen on 13:58, 21. Jan 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is this a plugin? it will…
Sat, 06/04/2022 - 19:20

is this a plugin? it will help out to know

Last seen on 15:51, 5. Mar 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can just use command. …
Sat, 06/04/2022 - 19:40

You can just use command.

  • /summon minecraft:minecart ~ ~1 ~ {Passengers:[{id:enderman}]}

img