Infinite Potion Ticks

Started by xmor on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Apr 2024
Points:
123

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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
Active 8 months ago
Joined Mar 2024
Points:
160

User statistics:

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

Write "-1" ticks, it should help

Active 3 days ago
Joined Dec 2023
Points:
177

User statistics:

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

-1?! What does that mean?

Active 10 months ago
Joined Sep 2023
Points:
204

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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 :)