Everything posted by 314owen
- Poison Entity on Hit
-
Poison Entity on Hit
I am currently working on an item that will poison an entity on hit and I'm not sure why everything I have tried has not worked. I am using this code at the moment, but it does not work: public boolean hitEntity(ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving) { par2EntityLiving.addPotionEffect(new PotionEffect(Potion.poison.id, 200, 1)); return true; Thanks for Any Help or Suggestions
-
Throw Snowball on Key Press
Can you tell me some code I need to do, right now im really confused, is there any tutorials for this and if not can you step by step tell me the code a bit, btw Love the CameraCraft mod, see your a developer of it
-
Throw Snowball on Key Press
Ehhhh..... What about this? public void keyPressed(KeyEvent arg0, World par2World, EntityPlayer par3EntityPlayer) { if (arg0.getKeyChar() == 'p') { if (teleport == 1){ System.out.println("Test"); par2World.spawnEntityInWorld(new EntityEnderPearl(par2World, par3EntityPlayer));
-
Throw Snowball on Key Press
Need Help Throwing a Snowball on a Key Press (For Example: P) Please Help, Been trying tons of different things for hours
-
Teleport on Right Click?
Anyone? Please?
-
Teleport on Right Click?
How would i make a player teleport on right click? Please Help, been trying to figure it out all day
-
Full Armor Set Potion Effect
First of all, i want to test for a full set of armor. Second of all, if (player.getCurrentArmor(0) == ZealCraft.quickBoots) {, this whole line had a error when i change your item to mine.
-
Full Armor Set Potion Effect
nope, didn't work
-
Full Armor Set Potion Effect
Anyone know?
-
Full Armor Set Potion Effect
How would I give someone a potion effect if they had a full set of armor on?