Is there a way to make a kill cooldown in Minecraft?
I am building a murder mystery type map, and I was wondering if there was a way to make a 25-second kill-cooldown. I am giving the murderer team strength 127. I need this to be where when one person (murderer) kills someone from the other team (innocent), their effect goes away, and after 25 seconds, comes back.
Best Answer
How Can I Do This
Have a command block system check when someone dies. For more info check this answer. (It’s for the bedrock edition but should still work, instead of testfor use /execute if). Obviously change the selector form an @e zombie one to an @a. When someone dies you can then run a command that is to take away the strength. You can then use a comparator and repeaters to make a delay and then give the selected player strength again. A repeater set to 4 ticks gives a 0.4 delay, so use 62 4-tick repeaters and 1 2-tick repeater for 25 seconds.
Limitations
If someone leaves the kill cooldown will reset.
Pictures about "Is there a way to make a kill cooldown in Minecraft?"



How do you change the kill cooldown?
To kill the player executing the command: kill @s. To kill the player Steve: kill Steve. To kill item entities: kill @e[type=item]What is kill @s in Minecraft?
Kill Command In all Minecraft editions, the command for killing everything in the world is \u201c /kill <target> \u201d. Typing \u201c /kill \u201d any target in the console will destroy pretty much everything that can be removed, including the player.What is kill all command in Minecraft?
With a 1-tile-thick destructable ceiling (like dirt which occurs naturally in caves), and a large volume of sand/gravel above it the process goes like this: TNT goes off, hopefully several blocks of it get him in their direct damage radius killing him instantly.How to make Among Us Kill Cooldown in Minecraft PE
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Milada Vigerova, Rachel Claire, Tim Samuel, Maria Orlova
