How do I make an entity float on water without bouncing on water?

Started by Rukreep on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an entity float on water without bouncing on water?

Hey there,

I want to make this mod with entities that float on  the water. I've added the "Float/swim" on water task but when I check it, the entities just bounce in the water. How can I make it so that entities just go to the water top and stay there and do nothing? 

Regards,

~Rukreep

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay now I have a new…
Mon, 11/01/2021 - 18:09

Okay now I have a new problem:

The entities float on water, but they can no longer spawn on water.

I unmarked the "Is Water entity"  and now they can't sink, but as hard as I can, they can't spawn on water.

How can I do this?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you tell me how you…
Mon, 05/06/2024 - 23:41

Could you tell me how you solved the first error?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're still having…
Tue, 05/07/2024 - 07:50

If you're still having trouble with this might I suggest a quick peek at the code for an entity with a similar feature like the Strider, it spawns on and stands on lava which is a fluid block just like water, although much much hotter.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where can I find the code…
Tue, 05/07/2024 - 23:13

where can I find the code for an entity like the strider or a boat?

 

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you show how did you…
Tue, 11/05/2024 - 14:21

Could you show how did you make an entity to stop bouncing in water? I am trying to make a duck but I can't make it float on top of the water without bouncing and instead of swimming around they just float in one place