28 juin 2019, 08:31
Comment on ajoute un enchantement en 1.14.3 car
player.addPotionEffect(new PotionEffect(Potion.getPotionByID()));
ne marche plus
Comment on ajoute un enchantement en 1.14.3 car
player.addPotionEffect(new PotionEffect(Potion.getPotionByID()));
ne marche plus
Ok beh j’ai trouvé, c’est :
player.addPotionEffect(new EffectInstance(Effect.get(5), 40));
Ok beh j’ai trouvé, c’est :
player.addPotionEffect(new EffectInstance(Effect.get(5), 40));