Posted June 1, 201411 yr So i made a fluid.But now i want to add that any entity that touch it gets damage including player.How could i do that. I am new to minecraft modding so dont know all the funcs yet.
June 2, 201411 yr Author Thanks i have found the solution @Override public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) { entity.attackEntityFrom(DamageSource.magic, 3); //((EntityLiving)entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 200, 1)); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.