1
Potion Effect Code
Hey,
I was making a potion effect for my armor but how do i add more than one effect?
Here is my code:
if (helmet.getItem() == minealotmod.minecraftiumHelmet && chestplate.getItem() == minealotmod.minecraftiumChestplate && leggings.getItem() == minealotmod.minecraftiumleggings && boots.getItem() == minealotmod.minecraftiumBoots) {
player.addPotionEffect(new PotionEffect(Potion.damageBoost.getId(), 1, 5 new PotionEffect(Potion.jump.getId(), 1, 3)));
I want to add another potion effect after PotionEffect(Potion.damageBoost.getId(), 1, 5 but how do i do this. My code above does not work.
Hope you can help
I was making a potion effect for my armor but how do i add more than one effect?
Here is my code:
if (helmet.getItem() == minealotmod.minecraftiumHelmet && chestplate.getItem() == minealotmod.minecraftiumChestplate && leggings.getItem() == minealotmod.minecraftiumleggings && boots.getItem() == minealotmod.minecraftiumBoots) {
player.addPotionEffect(new PotionEffect(Potion.damageBoost.getId(), 1, 5 new PotionEffect(Potion.jump.getId(), 1, 3)));
I want to add another potion effect after PotionEffect(Potion.damageBoost.getId(), 1, 5 but how do i do this. My code above does not work.
Hope you can help
Create an account or sign in to comment.