Problem with my effect procedure

Started by mfaka on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 11:16, 7. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem with my effect procedure

So I have problem with my procedure, I want to make when Player gets damage, with 10% chance give Player my effect "Bleeding" that gives damage to Player for 10 seconds, but effect "Bleeding" gives damage! So procedure going again making loop, so my effect "Bleeding" goes infinite. I don't know how to fix this.. I would appreciate any help!

There's exactly how procedure looks:

Event trigger - triggered by external call
or when (global trigger): Entity attacked
If is Current entity (sub)type of EntityPlayer
do if Random [0,1) < 0.1
do Add potion with level 0 duration 200 ambient false particles false to provided entity: CUSTOM:Bleeding

And also my effect procedure that works: on active tick:

Event trigger - triggered by external call
or when (global trigger): No global trigger
Deal 0.5 damage to provided entity, type: GENERIC

P.S.: MCreator version 2020.2 (Minecraft 1.12.2)
 

Last seen on 16:02, 10. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a custom damage type,…
Fri, 08/16/2024 - 00:41

make a custom damage type, then make it so the effect only deals your custom type of damage and modify the procedure that gives the effect to the player to activate only if the player is damaged by something that is NOT your custom damage

Last seen on 11:16, 7. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bo_bo umm, i tried but didn…
Fri, 08/16/2024 - 03:21

bo_bo umm, i tried but didn't figure out how to do that, can you help if you know how?

Last seen on 11:16, 7. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bo_bo I have older version…
Fri, 08/16/2024 - 14:05

bo_bo I have older version of MCreator, that means I dont have that blocks. Unfortunately I can't do that, and the newest MCreator version for 1.12.2 doesn't have that blocks too, so I can't just update it, only way to do is make mod at newer MCreator version with newer Minecraft version. But thanks for help anyway!