Gain effect when underwater

Started by dbm1234 on

Topic category: Help with modding (Java Edition)

Last seen on 23:54, 12. May 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gain effect when underwater

I wanted to do something like a devil fruit from one piece, when we enter the water we would sink, but I don't know how to do that.
Someone can help me?

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can check if the player…
Tue, 06/27/2023 - 23:43

You can check if the player is underwater by checking whether the block at their position is water. Then you might be able to set the player's velocity to downwards? I don't know if there is a block for that.

Last seen on 23:54, 12. May 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to do what I…
Sun, 07/02/2023 - 22:39
I managed to do what I wanted. Thank you for your availability.