Games : make player inable to deal damage to someone minecraft

Ok so I made a mechanism where if you get hit, you get hit by lightning. However all the redstone freezes and stays on if you spam it. Because it test if you have stat.damageTaken and if it is 1 or higher it executes lightning at all players with score of one or higher. However I can't do /scoreboard players reset @a isHit fast enough because I need a delay for the lightning going away. However during the delay, a player can hit the other player again and spam it freezing the redstone. Is there away to make it reset instantly or make the player unable to hit for a few ticks? I prefer the 2nd one becuase it makes it less OP for a custom PVP map I am making


0 comments:

Post a Comment