tutorial:enchantments
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:enchantments [2019/07/02 22:39] – draylar | tutorial:enchantments [2020/05/10 11:37] – addPotionEffect -> addStatusEffect sirwindfield | ||
---|---|---|---|
Line 14: | Line 14: | ||
public class FrostEnchantment extends Enchantment | public class FrostEnchantment extends Enchantment | ||
{ | { | ||
- | public | + | public |
{ | { | ||
super(weight, | super(weight, | ||
Line 48: | Line 48: | ||
if(target instanceof LivingEntity) | if(target instanceof LivingEntity) | ||
{ | { | ||
- | ((LivingEntity) target).addPotionEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, | + | ((LivingEntity) target).addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, |
} | } | ||
tutorial/enchantments.txt · Last modified: 2023/01/04 13:52 by datsuns