Jump to content

[1.12.2] Time-Dependent Attack Damage in Sword


Recommended Posts

Posted (edited)

Hi, so I'm trying to make a sword that has an attack damage dependant on the world time.

From what I understand, it is too early to get the world time as early as the preInit, so I was thinking of initially setting the "timeAD" to something irrelevant, then replacing it with the actual "time attack damage" after the getWorldTime() is callable.

This is my first mod, so how do I do that?

 

The mechanic that I'm trying to achieve is the sword having the following attack damage: 0 at midnight, increasing tick by tick towards 50 at noon, then decreasing back to 0.

image.png

Edited by d3us
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.