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 Mon, 11/23/2020 - 09:27

Topic category: Advanced modding

Last seen on 08:54, 25. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?
Mon, 11/23/2020 - 09:27

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?

Last seen on 14:43, 18. Dec 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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]
Last seen on 05:11, 23. Sep 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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