When item in inventory regenerate player

Started by myxical on Tue, 05/18/2021 - 14:58

Topic category: Help with modding (Java Edition)

Last seen on 10:04, 18. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When item in inventory regenerate player
Tue, 05/18/2021 - 14:58

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

Last seen on 20:26, 25. Jul 2021
Joined Nov 2020
Points:

User statistics:

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

Last seen on 20:26, 25. Jul 2021
Joined Nov 2020
Points:

User statistics:

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

:)

Last seen on 10:04, 18. Jul 2021
Joined May 2021
Points:

User statistics:

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

thanks, worked