Jump to content

LTLightning

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by LTLightning

  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. 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.
  6. http://pastebin.com/WHufRkfV Can anyone help? Game crashes whenever I try to make a new world.
  7. Yup, that's what I meant! What should I put in the switch()?
  8. That works, but then the copper sword can be repaired with a steel ingot and a copper ingot. Same thing with a steel sword.
  9. 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?
  10. Nevermind! All fixed! Sorry about that.
  11. 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.
  12. Also, Littleblocks mod isn't compatible with Gullliver mod. They said so on the mod's page.
  13. 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.
  14. Nothing at all. Mods folder and coremods folder is empty. I disabled all mods in Magic Launcher too. Also, I tried installing Forge the old way (copy-pasting into the jar), and same thing happens. Where would I find an fml log? Is it in the crash-reports folder? If it is, then it's not there. EDIT: When using with mods, Minecraft crashes at start. Just so you know.
  15. Anything I can do? And how am I not installing it correctly? I downloaded it from files.minecraftforge.net and did what you would do when installing a mod using Magic Launcher. Also, I don't wanna use another launcher because I like Magic Launcher.
  16. Not using anything else but Forge. Coremods folder is empty. Any forge related config are deleted, but Minecraft crashes when creating a new world. It doesn't without Forge. More info: I'm using 1.5.2. Magic Launcher also says that Forge is not compatible (but I don't trust it that much). This also happens on older versions, including recommended version. I'll add more info if you guys need.
×
×
  • Create New...

Important Information

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