1

Potion Effect Code

JimboPanda123's Avatar JimboPanda1233/29/15 4:40 am
1 emeralds 189
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
Posted by JimboPanda123's Avatar
JimboPanda123
Level 41 : Master Enderdragon
21

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome