Infinite Potion Ticks

Started by xmor on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Infinite Potion Ticks
Fri, 04/05/2024 - 15:44 (edited)

I've been searching around for an answer, but I just cant find one. I'm trying to make my potion effects infinite, and I have changed the 0 value in ticks to be a large number, and it turns to infinity, however after saving, I get an error which doesn't allow me to open Minecraft. I've also tried setting it to other high numbers, but again to no avail, it gives me an error. Does anybody know how to fix this?

 

My code simply has:

Event trigger

Followed by:

Add potion REGENERATION with level "2" for "0" ticks ambient "true" particles "false" to 'event/target entity'

Edited by xmor on Fri, 04/05/2024 - 15:44
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Write "-1" ticks, it should…
Fri, 04/05/2024 - 23:19

Write "-1" ticks, it should help

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
-1?! What does that mean?
Sat, 04/06/2024 - 14:06

-1?! What does that mean?

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually it works, just type…
Thu, 12/05/2024 - 15:48

actually it works, just type:

Add potion REGENERATION with level "2" for "-1" ticks ambient "true" particles "false" to 'event/target entity'

ive tested it and it really works. thanks to Wabbaka :)