How to make screen shake only when effect damages player

Started by Toibithieunang on

Topic category: Help with modding (Java Edition)

Last seen on 10:27, 19. May 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make screen shake only when effect damages player

 

Hi everyone, I am making bleeding effect, it will damage 1 hp every 5 sec and wont damage player if they have 1 hp. The screen will shake every time it deals 1 damage to the player

But when i tested it, it didnt work properly

It shakes rapidly, only stop when I have 1 hp.

Here is the codes and the test video.

https://imgur.com/a/JnHgqvw

How to make it only shake when it deals damage to the player? Or better, not shaking when effect affect player?

Thank you.

 

Last seen on 11:45, 26. Jul 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is an Procedure…
Sat, 11/04/2023 - 15:09

There is an Procedure Template called "Poison like Tick rate" something like that.

You can modify it.