Quantcast
Channel: MythicCraft
Viewing all articles
Browse latest Browse all 11417

Reset Hit Cooldown option for damage mechanic

$
0
0
The Problem
So you guys probably know that Minecraft has a built-in "system"
Which prevent players from taking damage too frequently.
After a player is being hit,
He will be immune to all sort of damage for the next 5 ticks. (Player turns red during this period)
So problem arise when I code like this

- damage{amount=20;repeat=3;repeatInterval=1}

Due to that 5 ticks immunity, the...

Reset Hit Cooldown option for damage mechanic

Viewing all articles
Browse latest Browse all 11417

Trending Articles