How can I make an entity ride a minecart?

Started by Rukreep on Sun, 05/29/2022 - 11:29

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make an entity ride a minecart?
Sun, 05/29/2022 - 11:29

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 19:18, 4. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:27, 19. Jun 2022
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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