Rideable Mobs With Food

Started by EvanMakesMods on

Topic category: Help with modding (Java Edition)

Last seen on 15:31, 14. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Rideable Mobs With Food

I'm trying to make a mod with different mobs(Obviously) and the mob I'm working on is a reindeer. I am trying to get it to be rideable but I also want to be able to feed it. Not breed or anything just feed it for fun. But when I try to feed it, it just makes me ride it. I've tried disabling riding and using an if, do, else procedure but that won't work. Any ideas?

Last seen on 22:37, 26. Jul 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's an idea: Change the…
Fri, 12/29/2023 - 00:23

Here's an idea:

  1. Change the settings of the Reindeer so you can't ride it by clicking on it.
  2. Create a procedure that runs when you right-click the Reindeer
  3. Make the procedure so it checks if you aren't holding the item you want to feed the Reindeer, and if you aren't, then make the Player mount the Reindeer

See if this works!

If you want, I could provide a procedure for you.

Last seen on 15:31, 14. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, so I got that to work…
Fri, 12/29/2023 - 20:29

Ok, so I got that to work and made it where if the player is holding an apple, it will feed it and if not holding an apple then it will ride it. The problem is, I can't control it. If I play with the forward control settings and strafe control settings then it does nothing. Do I have to create a keybind to control the reindeer while riding it or is there a fix?