Energy Orb now adds the speed effect when held.
This commit is contained in:
parent
a958f31454
commit
0eecbc5f3e
1 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ public class TickHandler implements IScheduledTickHandler
|
|||
player.fallDistance = 0.0F;
|
||||
}
|
||||
|
||||
if (itemstack != null && itemstack.itemID == ItemHandler$1.energyOrb.itemID){
|
||||
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void tickEnd(EnumSet<TickType> type, Object... tickData){
|
||||
|
|
|
|||
Loading…
Reference in a new issue