How to make an entity that's rideable by mobs and animals

Started by AwesomeOwl on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity that's rideable by mobs and animals

Hey guys, I'm working on an entity that only chickens can ride. I was wondering how could I make it so that when a chicken touches it, it rides it (like for instance a boat or a minecart)? If this isn't a feature then it would be great if you guys could add it.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What you can do with…
Wed, 12/09/2020 - 22:52

What you can do with procedures, it test if there is a chicken mob within in certain radius around your mob using the "get nearest entity at x y z in square cube with size 4 of type mob_name." Then, set that chicken to be the passenger of the mob you want.

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I set the chicken to…
Wed, 12/09/2020 - 22:59

How do I set the chicken to be the passenger? Sorry, I'm a noob at mcreator.

Also, is it possible to make it so that players can't ride it? Because it's going to be a chicken coop, and it would be weird if players could sit in it too :P

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make it ride using…
Wed, 12/09/2020 - 23:15

You can make it ride using the procedure block "Make source entity ride target entity". And to make it so that nothing else can ride it, 1. make the mob unridable. If it's a vanilla mob, this shouldn't be a problem. 2. Make an if statement to check if the mob is the type of mob you want to start riding.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do 2, its probably going to…
Thu, 12/10/2020 - 00:14

do 2, its probably going to be the most efficient