Gain effect when underwater

Started by dbm1234 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

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.