How to make entities spawn that rides another entitie

Started by Erikas123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entities spawn that rides another entitie

ok, so the title could be confusing, but i want to make a custom mob ,,Orc,, that automaticly spaws with a hoglin. orc automaticly rides on hog.

is there a way to do that ?

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I suggest you to use this…
Sat, 08/21/2021 - 21:20

I suggest you to use this page, make an entity ride another entity, get the code and then change the IDs for the IDs of your entities.

 

https://www.digminecraft.com/generators/summon_mob.php

 

Then use a procedure to run that command.

I hope I've been clear, I'm not a native English speaker.

Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The command works, but only…
Sat, 02/19/2022 - 07:03

The command works, but only spawn the rideable entity, the jockey don´t spawn if not are vanilla mob
Do you know how to set the mod entities in the command?

 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On entity spawn, check if it…
Tue, 05/31/2022 - 20:51

On entity spawn, check if it is the entity you want ridden, then for whatever percentage you want the entity to spawn ridden by another, set that entity to ride yours. You may need some custom code or some other stuff there to grab the entity you spawned and return the value, but that's the concept.