Jump to content

crystalhero05

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by crystalhero05

  1. Look up the Blockpiston class, it uses the same thing.
  2. What about armor textures? How do I make a rendering texture?
  3. Thanks. I didn't realize that it was that simple.
  4. I understand that everything in Minecraft is in 16x16 px textures per block but I saw in some mods textures that are not 16x16 but more than that almost like they were HD maybe not 720px but more pixels than 16. My question is: Is it possible and if yes how? Don't explain it to me in code but explain in general how is it possible please.
  5. Would this workout? private void generateSurface(World world, Random rand, int chunkX, int chunkZ) { int firstBlockXCoord = chunkX + rand.nextInt(16); int firstBlockYCoord = rand.nextInt(32); int firstBlockZCoord = chunkZ + rand.nextInt(16); if (world.getBiomeGenForCoords(firstBlockXCoord, firstBlockZCoord) == BiomeGenBase.ocean){ for(int k = 0; k < 10; k++){ firstBlockXCoord = chunkX + rand.nextInt(16); firstBlockYCoord = rand.nextInt(32); firstBlockZCoord = chunkZ + rand.nextInt(16); (new WorldGenMinable(Base.RedOre.blockID, 15)).generate(world, rand, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord); System.out.println("spawned"); } } } The ocean is huge so I don't know how much time would it take to find it.
  6. Put the ids as you like there are really no limits to it(actually there are but those are huge numbers) but when making config file make sure you put it in so people can change it
  7. I just noticed: you defined the block and the item inside public void load. try defining it outside of it like this: public static Item Redpick = new ItemRedpick(2000, toolRed).setUnlocalizedName("Redpick"); public static Block RedOre = new RedOre(2009, Material.rock).setUnlocalizedName("RedOre");
  8. I have tried changing the itemID like you suggested, however it just generated another random number. Do you have the class of the item? If you do put it up please.
  9. That would be a block ID, not an item ID. I have block id of 2009 and an item id of 2008 I really don't understand the difference. Anyway try putting a lower id for it jibbity
  10. Why don't you just put id 2621?
  11. OK so it is spawning and accepting texture now only 1 more thing. I set up this code so it would generate in the ocean but I didn't found it anywhere. It didn't generate. Why? System.out.println is only for validating it spawned it prints it but I can't find it. private void generateSurface(World world, Random rand, int chunkX, int chunkZ) { if (world.getBiomeGenForCoords(chunkX, chunkZ) == BiomeGenBase.ocean){ for(int k = 0; k < 10; k++){ int firstBlockXCoord = chunkX + rand.nextInt(16); int firstBlockYCoord = rand.nextInt(32); int firstBlockZCoord = chunkZ + rand.nextInt(16); (new WorldGenMinable(Base.RedOre.blockID, 15)).generate(world, rand, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord); System.out.println("spawned"); } } }
  12. I have a problem with my ore being generated and it doesn't accept the texture code. First it was only the texture but I thought I will deal with it later. Then when I added water generation (like the clay generation code) it wouldn't generate. Main class: Ore class Ore generation class
  13. Can I add more numbers or how do I do it then?
  14. But then what if I want to make new kind of armor how do I define it then, or do I just do it the old way?
  15. Can someone please explain me where is it defined that (when you register the armor) 0 is helmet, 1 is chestplate, 2 are leggings and 3 are boots. In which class is it defined?
  16. im serious btw, this might be a huge problem As I said my class is extending ItemPickaxe. OnBlockDestroyed is part of ItemTool ItemPickaxe extends ItemTool
  17. im serious btw, this might be a huge problem Block class has the onBlockDestroyedByPlayer.
×
×
  • Create New...

Important Information

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