TransWikia.com

Can I add an enchanted apple cooldown?

Arqade Asked by RandomP on February 4, 2021

Is there a way to add a cooldown for eating enchanted apples? I don’t want the player to be able to eat a lot at once in my PVP game.

One Answer

There are a few ways you can achieve that effect but most of the ways I can think of are kind of ugly, but this one is probably the cleanest.

Concept

Every few seconds, the player will get an enchanted golden apple. They will not be given one if they already have one.

Commands

Place a repeating always active command block with the command:

clear @a appleenchanted -1 1

Then a chain always active:

give @a appleenchanted

Set the delay of the first command block to how many seconds the cooldown should be multiplied by 20 (i.e. 10 seconds = 200).

Answered by Penguin on February 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP