Posted March 23, 201411 yr Hello guys i was trying to make my entity to spawn a group of lightnings but i cant seem to make it work. Here is my code anyways public void updateTask(){ if(e.set() == 10){ MHFCLightning l = new MHFCLightning(e.worldObj); MHFCLightning l1 = new MHFCLightning(e.worldObj); l.setLocationAndAngles(e.posX + 4, target.posY, e.posZ + 4, 0, 0); l1.setLocationAndAngles(e.posX + 5, target.posY, e.posZ + 5, 0, 0); e.worldObj.spawnEntityInWorld(l); e.worldObj.spawnEntityInWorld(l1); } Please help and i appreciated it
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.