Bleeding confusion?

Started by ClumsyAlien on Tue, 03/24/2020 - 02:54

Topic category: Help with modding (Java Edition)

Last seen on 13:49, 22. Jul 2021
Joined Mar 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Bleeding confusion?
Tue, 03/24/2020 - 02:54

Hey I was needing some help, I have been trying to add a custom potion effect called BLEED, it would basicly be poison but with out the color, I tryed to make a timer that would follow the world tick rate using tutorials I found online, the timer worked with isolated testing, but actully dealing the damage was not aplicable for some reason, I could add a normal potion effect but I could not do a test of the global variable (used to keep tick rate) if it was at 20 or more (To check if the function has reached 1 second or more) then in the do part of the if statement I have deal 1 damage to provided entity. This wont work however just adding lets say slowness would work perfectly fine as long its not in any containers. If anyone has an idea to help fix please feel free to share, and Im not scared of jumping into the raw JAVA file (Code) of my project in necessary. Sorry about any spelling mistakes I had to type this fast.