When item in inventory regenerate player

Started by myxical on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When item in inventory regenerate player

If I make a procedure to apply the regeneration effect and put it on "When in inventory tick" on an item, it won't work. That is because the effect is given each tick, so it constantly resets, meaning it doesn't have time to regenerate hearts. I also tried adding half a heart each second, but it makes it so each tick wait a second before giving half a heart, meaning you will get a delayed 1 tick = 1 heart regeneration. Can anyone help me? Thanks

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is an easy fix, when…
Tue, 05/18/2021 - 15:09

this is an easy fix,

when item in inventory tick;

IF: NOT event/target entity has effect regeneration
||| Add potion effect level: and: ticks type: regeneration

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Tue, 05/18/2021 - 15:10

:)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, worked
Tue, 05/18/2021 - 18:04

thanks, worked