User Tools

Site Tools


tutorial:enchantments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:enchantments [2019/12/26 22:10]
modmuss50 Fix class name
tutorial:enchantments [2020/05/10 11:37] (current)
sirwindfield addPotionEffect -> addStatusEffect
Line 48: Line 48:
     if(target instanceof LivingEntity)     if(target instanceof LivingEntity)
     {     {
-        ((LivingEntity) target).addPotionEffect(new StatusEffectInstance(StatusEffects.SLOWNESS,​ 20 * 2 * level, level - 1));+        ((LivingEntity) target).addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS,​ 20 * 2 * level, level - 1));
     }     }
  
tutorial/enchantments.txt ยท Last modified: 2020/05/10 11:37 by sirwindfield