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.

LTLightning

Members
  • Joined

  • Last visited

  1. Pseudo-code, put it inside your armor class: @Override public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack){ if (// check if armor is there){ // allow flight here } else { // disable flight } }
  2. Something like this should work: public boolean onBlockStartBreak(ItemStack itemstack, int x, int y, int z, EntityPlayer player){ if (!player.worldObj.isRemote){ player.worldObj.setBlockToAir(x, y, z); // spawn item here } itemstack.damageItem(1, player); return false; }
  3. I'm using this, which seems to work: public static org.apache.logging.log4j.Logger logger; @EventHandler public void preInit(FMLPreInitializationEvent event){ logger = event.getModLog(); logger.info("Something"); }
  4. One of these two: CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(result, recipe)); CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(result, recipe));
  5. Learn Java. It's: if (!world.isRemote()){ }
  6. Correct me if I'm wrong, but can't you do: Items.item.setTextureName("mod:other_texture"); Where "item" is the vanilla item, "mod" is your folder for textures, and "other_texture" is for your other texture.
  7. http://pastebin.com/WHufRkfV Can anyone help? Game crashes whenever I try to make a new world.
  8. Yup, that's what I meant! What should I put in the switch()?
  9. That works, but then the copper sword can be repaired with a steel ingot and a copper ingot. Same thing with a steel sword.
  10. Hi there! I know it's possible to add tools and armors to the anvil repair system by doing this: public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) { return ingotSomething == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack); } But I made it so that all my swords are put into one class like so: public static Item copperSword = new ItemModSword... public static Item steelSword = new ItemModSword... Which means the getIsRepairable will only allow one item to use for repairing. My question is, is there a way to use more than one item for repairing depending on what tool I put in the anvil, without making new classes?
  11. Nevermind! All fixed! Sorry about that.
  12. Tried with recommended and latest. If I open the file I downloaded, cmd opens a split second and says: Could not find or load main class If I extract it and run the .java, nothing happens. Using Java 64Bit. Help please, new to the 1.6 installation.
  13. Also, Littleblocks mod isn't compatible with Gullliver mod. They said so on the mod's page.
  14. Sorry if I'm not allowed to double post, but I think I fixed my problem. 1. I deleted minecraft.jar. 2. I force updated. 3. And everything seems fixed, no more crashing at all.

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.