
crystalhero05
Members-
Posts
48 -
Joined
-
Last visited
Everything posted by crystalhero05
-
Look up the Blockpiston class, it uses the same thing.
-
What about armor textures? How do I make a rendering texture?
-
Thanks. I didn't realize that it was that simple.
-
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.
-
[SOLVED]Ore not generating and not accepting texture
crystalhero05 replied to crystalhero05's topic in Modder Support
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. -
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
-
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");
-
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.
-
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
-
Why don't you just put id 2621?
-
[SOLVED]Ore not generating and not accepting texture
crystalhero05 replied to crystalhero05's topic in Modder Support
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"); } } } -
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
-
Armor definition explanation [SOLVED]
crystalhero05 replied to crystalhero05's topic in Modder Support
Ok. Thanks. -
Armor definition explanation [SOLVED]
crystalhero05 replied to crystalhero05's topic in Modder Support
Can I add more numbers or how do I do it then? -
Armor definition explanation [SOLVED]
crystalhero05 replied to crystalhero05's topic in Modder Support
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? -
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?
-
[1.5.1] FurnaceRecipes.getSmeltingResult always null
crystalhero05 replied to epicsquare's topic in Modder Support
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 -
[1.5.1] FurnaceRecipes.getSmeltingResult always null
crystalhero05 replied to epicsquare's topic in Modder Support
im serious btw, this might be a huge problem Block class has the onBlockDestroyedByPlayer.