Started by
AwesomeOwl
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
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
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.
do 2, its probably going to be the most efficient