Trying to create underwater mount (how can I make it not dismount me?)

Started by Brade1210 on

Topic category: Help with modding (Java Edition)

Last seen on 20:20, 18. Dec 2021
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to create underwater mount (how can I make it not dismount me?)

I made a creature I wanted to be an underwater mount. Is there anyway to make it not dismount me when it goes underwater? (using Mcreator 2021.1)

I set it to be a water entity and water attribute creature, and only way I managed to simi accomplish my goal was to make it forcefully make the player mount the creature on collision. But this came with a whole lot of issues as it is constantly dismounting and then mounting. 

 

Last seen on 23:57, 8. Dec 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you manage to figure…
Sun, 11/21/2021 - 00:16

Did you manage to figure this out?

Last seen on 15:11, 18. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can't at the moment
Sun, 11/21/2021 - 08:05

you can't at the moment

Last seen on 19:15, 25. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
open the code of the entity…
Sun, 11/21/2021 - 17:27

open the code of the entity and at the bottom of the code put 

@Override
		public boolean canBeRiddenInWater() {
			return true;


		}