Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Add this to your block class: public boolean isOpaqueCube() { return false; }
  2. That should work, but that's going 20 blocks up in a second, so you might want to add a timer.
  3. In the updateTick (right method name?) method in your block class.
  4. for(int x1 = -2; x1 < 2; x1++) { world.setBlock(x-x1,y,z, BLOCK_OF_YOUR_CHOISE.blockID) } That code will spawn a straigt line of five blocks of your choise.
  5. Why don't you use for loops for the block placement???
  6. You can use forge to modify base classes, so your mod can be used with other mods.
  7. Don't edit base classes!!! You can do all those thing without editing base classes!
  8. You can use the API of a mod if it has one, but else, you can't (i think)
  9. You can also hit Ctrl(Cmd)+Shift+O to organize all your imports, and it also imports everything you need.
  10. Try this: if(itemstack.getItem() instanceof ItemBlock) {things}
  11. I think you mean: public double getMaxRenderDistanceSquared() { return 4096.0D; } i think that if you increase that it can render further away.
  12. TileEntity code?
  13. You can also run Bearded Octo Nemesis to deobfuscate the mod and you can put it in the mods folder.
  14. GL11.glScalef(...);
  15. You need to do: world.markBlockForUpdate(x, y, z) instead of: world.markBlockForRenderUpdate(x, y, z)
  16. You need to register your tile entity for it to be calling readFromNBT and writeToNBT,so it can save the coordinates.
  17. I think that if you use a method or class that was implemented by Java 7 and someone uses that mod of you and has Java 6 installled, it crashes.
  18. if(par1ItemStack.stackTagCompound.getInteger("myRandomNumber") != null)
  19. Ok, i got this code: ArrayList<ItemStack> ores = OreDictionary.getOres(OreDictionary.getOreID("oreCopper")); but how would i get the block id for copper ore out of that?
  20. Hello, i have a grinder block and it has a tile entity, and in the updateEntity method in the tile entity, i call this code: System.out.println(OreDictionary.getOreID("oreCopper")); I have IndustrialCraft2 installed and there exists copper in the game, but it prints this in my console: 2014-01-05 20:50:47 [iNFO] [sTDOUT] 69 but that isn't the id of the copper block!!! is this a bug with the OreDictionary or am i doing something very wrong? I did all of this testing because this code works with iron and gold, but not for the ore dictionary checks: public static ItemStack getGrindingResult(ItemStack itemstack) { if (itemstack != null) { if (itemstack.getItem().itemID == Block.oreIron.blockID) return new ItemStack(TechCraftItems.DUSTS, 2, 0); if (itemstack.getItem().itemID == Block.oreGold.blockID) return new ItemStack(TechCraftItems.DUSTS, 2, 1); if (itemstack.getItem().itemID == OreDictionary.getOreID("oreCopper")) return new ItemStack(TechCraftItems.DUSTS, 2, 2); if (itemstack.getItem().itemID == OreDictionary.getOreID("oreTin")) return new ItemStack(TechCraftItems.DUSTS, 2, 3); if (itemstack.getItem().itemID == OreDictionary.getOreID("oreSilver")) return new ItemStack(TechCraftItems.DUSTS, 12, 4); if (itemstack.getItem().itemID == OreDictionary.getOreID("oreAluminium")) return new ItemStack(TechCraftItems.DUSTS, 2, 5); } return null; }
  21. That could be very nice if forge would implement that!
  22. At the independent setup, you said that you need to setup your forge folder with either "gradlew setupDecompWorkspace" or "gradlew setupDevWorkspace". Do you also need to run "gradlew eclipse" to make it work, cause i did everything you said in the post, but if i import a existing project into workspace, it can't find my project. PS: i didn't use the gradle plugin for eclipse because it seems like i don't have the eclipse marketplace...
  23. Thank you, it's solved for me now!
  24. I don't think that's in my forge folder because if i delete my whole forge folder and redownload it it still sais it's already there and that it's corrupted...
×
×
  • Create New...

Important Information

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