-
Entity attacking
Hey everyone, i have a bigger problem here where a few of my entitys dont get spawned by command, i mean lets explain: My Alpha Spider doesnt attack, i have every attack function in the Alpha Spider class that the normal EntitySpider has why doesnt it work? On the Alpha Zombie and the Alpha Skeleton it works, they attack, but not the spider or the enderman Here i have the codeEntityAlphaSpider.java
-
Explosionradius on Creeper
Hey guys, i made a new Entity called Alpha Creeper now i tried to override the function where the Creeper explodes, it didnt work , my code: private void func_146077_cc() { if (!this.worldObj.isRemote) { boolean flag = this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing"); if (this.getPowered()) { this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)(30 * 2), flag); } else { this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)30, flag); } this.setDead(); } } The Creeper exploded but always had the same Radius, any help?
-
Custom Drops on custom Entitys
//closed
-
Custom Drops on custom Entitys
nvm i think protected void dropFewItems(boolean p_70628_1_, int p_70628_2_) { int j; int k; j = this.rand.nextInt(3 + p_70628_2_); for (k = 0; k < j; ++k) { this.dropItem(ModItems.alpha_nugget, 2); } } is totally good enough for me, thanks for your help anyways tho ^^
-
Custom Drops on custom Entitys
Well i already searched in EntitySkeleton for Loot but i didnt find anything, maybe its because im coding on 1.7.10. I really dont want to change to newer versions because me and all my friends play on 1.7.10 modpacks so yea
-
Custom Drops on custom Entitys
i mean i kinda dont get what you mean right now, what should i do?
-
Custom Drops on custom Entitys
Oh thank you! But where are they located?
-
Custom Drops on custom Entitys
Hey everyone, so i need help on making the entity drop an item, first of all i made an entity called AlphaSkeleton, now i want it to drop an item with the amount that i choose. I tried a lots of things, like: public EntityItem entityDropItem(ItemStack p_70099_1_, float p_70099_2_) { EntityItem entityitem = new EntityItem(this.worldObj, this.posX, this.posY + (double)p_70099_2_, this.posZ, new ItemStack(ModItems.alpha_nugget)); entityitem.delayBeforeCanPickup = 10; if (captureDrops) { capturedDrops.add(entityitem); } else { this.worldObj.spawnEntityInWorld(entityitem); } return entityitem; } but on that i cant choose the amount, also that one: protected void dropFewItems(boolean p_70628_1_, int p_70628_2_) { int j; int k; if (this.getSkeletonType() == 1) { j = this.rand.nextInt(3 + p_70628_2_) - 1; for (k = 0; k < j; ++k) { this.dropItem(Items.coal, 2); } } else { j = this.rand.nextInt(3 + p_70628_2_); for (k = 0; k < j; ++k) { this.dropItem(Items.arrow, 1); } } j = this.rand.nextInt(3 + p_70628_2_); for (k = 0; k < j; ++k) { this.dropItem(Items.bone, 1); } j = this.rand.nextInt(3 + p_70628_2_); for (k = 0; k < j; ++k) { this.dropItem(ModItems.alpha_nugget, 1); } } here the problem is that he doesnt always drop that things... can anyone help me? Thanks in advance and i apolgize for my english im a bit in stress right now
-
How to use durability right in crafting recipes
can you please just help me with that one? im not gonna learn java for just one single mod
-
How to use durability right in crafting recipes
like this? GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {ModItems.texotek_helmet, new ItemStack(ModItems.texotek_element).OreDictionary.WILDCARD_VALUE});
-
How to use durability right in crafting recipes
with the OreDictionary.WILDCARD_VALUE where do i put that in my code?
-
How to use durability right in crafting recipes
yea but i have no idea what that means could u explain that pls?
-
How to use durability right in crafting recipes
I'm wondering how i can make that my texotek_element can repair my texotek armor, here is the code what i tried: GameRegistry.addRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {"###", "# #", '#', ModItems.texotek_plate}); GameRegistry.addRecipe(new ItemStack(ModItems.texotek_chestplate), new Object[] {"# #", "###", "###", '#', ModItems.texotek_plate}); GameRegistry.addRecipe(new ItemStack(ModItems.texotek_leggings), new Object[] {"###", "# #", "# #", '#', ModItems.texotek_plate}); GameRegistry.addRecipe(new ItemStack(ModItems.texotek_boots), new Object[] {"# #", "# #", '#', ModItems.texotek_plate}); but it doesn't work since that recipe only allows full durability armor to take so i wondered how i could do that also damaged armor parts would work for the recipe
-
Potion Effects on Zombie Pigmen
sry i wanna continue with 1.7.10, cant you help me with that potion effect?
-
Potion Effects on Zombie Pigmen
Hey guys, i have made an armor, that gives me potion effects... code is here: public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { if (itemStack.getItem().equals(ModItems.binosingum_helmet) || itemStack.getItem().equals(ModItems.texotek_helmet)) { player.addPotionEffect(new PotionEffect(Potion.nightVision.id, 40)); player.addPotionEffect(new PotionEffect(Potion.waterBreathing.id, 40)); } if (itemStack.getItem().equals(ModItems.binosingum_chestplate)){ player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 40, 2)); player.addPotionEffect(new PotionEffect(Potion.resistance.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.texotek_chestplate)){ player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 40, 5)); player.addPotionEffect(new PotionEffect(Potion.resistance.id, 40, 10)); player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.binosingum_leggings) || itemStack.getItem().equals(ModItems.texotek_leggings)){ player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.binosingum_boots) || itemStack.getItem().equals(ModItems.texotek_boots)){ player.addPotionEffect(new PotionEffect(Potion.jump.id, 40)); } } i want to do the same for Zombie Pigmensso if they pickup my armor that they get the potion effects too i tried this: public void onArmorTick(World world, EntityMob entity, ItemStack itemStack) { if (itemStack.getItem().equals(ModItems.binosingum_helmet) || itemStack.getItem().equals(ModItems.texotek_helmet)) { entity.addPotionEffect(new PotionEffect(Potion.nightVision.id, 40)); entity.addPotionEffect(new PotionEffect(Potion.waterBreathing.id, 40)); } if (itemStack.getItem().equals(ModItems.binosingum_chestplate)){ entity.addPotionEffect(new PotionEffect(Potion.regeneration.id, 40, 2)); entity.addPotionEffect(new PotionEffect(Potion.resistance.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.texotek_chestplate)){ entity.addPotionEffect(new PotionEffect(Potion.regeneration.id, 40, 5)); entity.addPotionEffect(new PotionEffect(Potion.resistance.id, 40, 10)); entity.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.binosingum_leggings) || itemStack.getItem().equals(ModItems.texotek_leggings)){ entity.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 40, 2)); } if (itemStack.getItem().equals(ModItems.binosingum_boots) || itemStack.getItem().equals(ModItems.texotek_boots)){ entity.addPotionEffect(new PotionEffect(Potion.jump.id, 40)); } } but that doesn't work
IPS spam blocked by CleanTalk.