Bleeding confusion?

Started by ClumsyAlien on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bleeding confusion?

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.