Add cooldowns (using the vanilla mechanic) to various consumable items
This commit is contained in:
@@ -29,6 +29,8 @@ public class ItemSmokeBomb extends Item {
|
||||
|
||||
player.playSound(WizardrySounds.ENTITY_SMOKE_BOMB_THROW, 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
|
||||
|
||||
player.getCooldownTracker().setCooldown(this, 20);
|
||||
|
||||
if(!world.isRemote){
|
||||
EntitySmokeBomb smokebomb = new EntitySmokeBomb(world);
|
||||
smokebomb.aim(player, 1);
|
||||
|
||||
Reference in New Issue
Block a user