How do I make the player get hurt if they jump in 1 block or less deep water from a high altitude?

Started by Ali107 on

Topic category: Advanced modding

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make the player get hurt if they jump in 1 block or less deep water from a high altitude?

I want the player to get fall damage, if the player has jumped from a high altitude into water if the water is 1 block or less deep?

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When player tick update: If…
Mon, 11/23/2020 - 19:59

When player tick update:

  • If [Y velocity of [event / target entity] > 2.3] and [block at [x] [y - 1] [z] = water]:
    • Deal [8] attack damage to [event/target entity] type: [FALL]
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and if block at (x) (y-1) (z…
Mon, 12/14/2020 - 13:55

and if block at (x) (y-1) (z) is water,it is two or more blocks deep,don't deal damage