Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TeeAgeSee

Members
  • Joined

  • Last visited

  1. 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
  2. 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?
  3. 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 ^^
  4. 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
  5. i mean i kinda dont get what you mean right now, what should i do?
  6. Oh thank you! But where are they located?
  7. 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
  8. can you please just help me with that one? im not gonna learn java for just one single mod
  9. like this? GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {ModItems.texotek_helmet, new ItemStack(ModItems.texotek_element).OreDictionary.WILDCARD_VALUE});
  10. with the OreDictionary.WILDCARD_VALUE where do i put that in my code?
  11. yea but i have no idea what that means could u explain that pls?
  12. 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
  13. sry i wanna continue with 1.7.10, cant you help me with that potion effect?
  14. 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.