Started by
DanilkaD
on
Topic category: Help with Minecraft modding (Java Edition)
Literally what the title says. I need to make an "intoxication" effect but I want the effect to deal damage every 600 ticks (30 seconds) while the effect is active. When the effect runs out, it will not deal damage anymore
Well i would do something that says 3 percent of the time (theres a templete for % of time in templete area), give targe 1 geniune damage.
Have an nbt tag attached to the player that increases on the player tick update, then check if that nbt tag is greater than or equal to 600. If it is, deal damage and reset it to zero.
So, to do it I needed some Java coding, so I edited with some of the code from the effect and it works. But the response above is very interesting and I recommend it for people who don't know Java coding, like me.
Like, how?
Because i've been searching on how to do this thing for 1 day straight and i still can't figure out the code.