Everything posted by Blakexx
-
Change power of fireball?
Ho, so I used to know how to make a fireball and change the power of the fireball and everything, but I forgot how, so I had to look around for ways to do it, so I got this. Remember I already have the item working so it has nothing to do with my item not being implemented properly into the game. @Override //shoots fireball // public ItemStack onItemRightClick(ItemStack itemstack, World worldIn, EntityPlayer entityplayer) { if (!worldIn.isRemote) { Vec3 look = entityplayer.getLookVec(); EntityLargeFireball fireball2 = new EntityLargeFireball(worldIn, entityplayer, 1, 1, 1); fireball2.setPosition( entityplayer.posX + look.xCoord * 5, entityplayer.posY + look.yCoord * 5, entityplayer.posZ + look.zCoord * 5); fireball2.accelerationX = look.xCoord * 0.5; fireball2.accelerationY = look.yCoord * 0.5; fireball2.accelerationZ = look.zCoord * 0.5; worldIn.spawnEntityInWorld(fireball2); } return itemstack; }
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
alright thank you so much friend
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
I understand what you are doing but that is not exactly what I am going for, basically I intend on using something to test if they are airborne (and yes I know there already is something for that), then let them fly for a short amount of time when they double tab space bar and then boost them where they are looking, but I hit a wall and deleted all my code like an idiot because where I was going was not going to work, I had a friend who worked with bukkit servers and that is how he said to do it, but he never explained how, so now I am stuck
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
Any ideas on the double jump?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
ok I gtg now sorry for being annoying guys I am getting back into Java so it may take me a bit to grasp what you guys are saying. Thank you so much for your help
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
What do you mean?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
Whatever, the code works, I got it not to ignore armor thanks to your guy's help, so can we move onto the double jumping?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
I understand java, it is just that I already have that, I just didn't know that existed so I made it more complicated, but it works?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
I don't know where to implement getEntitywithin... in my code.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
http://pastebin.com/3Z06aq2d
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
oh and btw I am trying to switch over to world.getEntitiesWithinAABB, but I am getting a ton of errors.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
http://pastebin.com/UUchDSar
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
I fixed the error, the only problem is that it stops working for a bit occasionally, I will paste anything I find about it.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
wait, it works, but on occasion it just stops working for a bit?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
also nvm again, made custom dmg source, but it does no dmg? Instead I get a long error in console.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
wait never mind, it seems that it still ignores armor
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
nvm just did one that was already there (generic dmg) now, about double jumping...
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
idk, have not modded in a while , is this correct? DamageSource metapower = new DamageSource("Examplemod.metapower");
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
ok, but do I need a new class for it?
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
Then I would need to create a damage source, how exactly do you do that.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
No it does, I tested it, it just ignores armor, trust me.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
I am not, I am damaging all entity's inside of the zone I created, I already have what you said in there.
-
[1.8] Double jumping like they do on those server (ex: mineplex), and dmg help
So I have 2 things, one, I want to be able to add double jumping like on those servers for my mod, also, I have an ability that completely ignores armor and what mode you are in (meaning it kills people in creative). I could not find an entity.damge thing, here is the code for my ability @Override public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn) { playerIn.swingItem(); //System.out.println("swung"); for (int x = playerIn.getPosition().getX() - 3; x < playerIn.getPosition().getX() + 3; x++){ //System.out.println("inside x"); for (int y = playerIn.getPosition().getY() - 3; y < playerIn.getPosition().getY() + 3;y++){ for (int z = playerIn.getPosition().getZ() - 3; z < playerIn.getPosition().getZ() + 3; z++){ //System.out.println("Inside z"); for (Object o: worldIn.getLoadedEntityList()){ EntityLiving e; //System.out.println("Inside entity check"); try { e = (EntityLiving)o; } catch (Exception ex){ continue; } if (e.equals(playerIn)) continue; if (e.getPosition().getX() == x && e.getPosition().getY() == y && e.getPosition().getZ() == z){ e.performHurtAnimation(); e.setHealth(e.getHealth() - 8 );
IPS spam blocked by CleanTalk.