How do I Make it so when a player touches water they take damage and gain slowness.

Started by WMan on

Topic category: Help with modding (Java Edition)

Last seen on 23:34, 4. Feb 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I Make it so when a player touches water they take damage and gain slowness.

Im new to mcreator so I would like to know how to do this. 

I suggest you check our…
Sat, 01/28/2023 - 16:39

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 00:55, 5. Oct 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This probably won't be…
Mon, 02/20/2023 - 03:43

This probably won't be useful for a while but I think an event like the one in this image would achieve what you had in mind.

I believe this would deal damage every 4 seconds the player is in water, give or take 1/20th of a second. It would deal damage faster if for some reason the player drank milk to remove slowness, but covering that would probably make this more complex than you want an On Player Tick event to be.