
Yakman3
Members-
Posts
19 -
Joined
-
Last visited
Everything posted by Yakman3
-
That worked, thanks!
-
It's not that difficult. Just access C:\your modding source directory\src\main\resources\assets outside of eclipse and make a new folder called "lang," inside make a new blank text file called en_US.lang. make sure it is a .lang file and not a .txt.
-
I'm trying to make a sword which applies a certain potion effect to anything it hits, but I don't know where to start. Is there an OnHit method? Also, what package is the standard sword class contained in in Referenced Libraries?
-
I hate to put down Mr. Crayfish, but I would recommend a total restart here. I started out with Mr. Crayfish too and got no farther than you did - an untextured purple and black cube. Plus, his turoials stop abruptly. I would recommend going and checking out Bedrock_Miner here: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-8/ With his help, I now have a mod with many items, blocks, tools, armor sets, even a dimension and an entity (those last two needed some external research.)
-
First, you need to make sure you have a line like this in what ever case of the dimension you are generating it in: generateSurface(random, chunkX, chunkZ, world, chunkGenerator, chunkProvider); inside a constructor like this: public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { } then, you need to generate the ore: public void generateSurface(Random random, int chunkX, int chunkZ, World world, IChunkProvider ChunkGenerator, IChunkProvider chunkProvider){ for(int i = 0; i < 2; i++){ //rarity int startX = chunkX * 16 + random.nextInt(16); int startZ = chunkZ * 16 + random.nextInt(16); int startY = random.nextInt(32) + 16; //height spawning BlockPos start = new BlockPos(startX, startY, startZ); (new WorldGenMinable(your block class.your ore.getDefaultState(), random.nextInt(2) + 10)).generate(world, random, start); //vein size and block to generate }
-
I'm trying to make a mob that has the ability of flight instead of walking, but I don't know where to start: do i use @override or a this. inside the constructor? I can create the rest of the mob, but I don't know where to start with making it fly.
-
I've read over Wuppy's tutorials on updating, but he didnt say anything about ore generation.
-
That would work if i was using 1.7, but 1.8 doesn't work with that. any other way to make a worldgenMineable for end stone?
-
[1.8] Custom glass block won't render as transparent
Yakman3 replied to xStuffAndThingz's topic in Modder Support
Thanks, both of you. -
[1.8] Custom glass block won't render as transparent
Yakman3 replied to xStuffAndThingz's topic in Modder Support
I had the same problem with glass, but when i used that code I could use the glass like an x-ray: the bottom and top of the block allowed me to see through the world... -
I've been trying to make an ore generate iin the end, and while I can get ores to generate in the overworld, i assume the code is different? this generation code isn't working... public void generateOre(Random random, int chunkX, int chunkZ, World world, IChunkProvider ChunkGenerator, IChunkProvider chunkProvider){ for(int i = 0; i < 100; i++){ int startX = chunkX * 16 + random.nextInt(16); int startZ = chunkZ * 16 + random.nextInt(16); int startY = random.nextInt(48) + 7; BlockPos start = new BlockPos(startX, startY, startZ); (new WorldGenMinable(BlockManager.Essence_Ore.getDefaultState(), random.nextInt(10) + 1)).generate(world, random, start); }
-
[1.8] dimension generates with wrong biome types
Yakman3 replied to Yakman3's topic in Modder Support
I mean, that helped me find out that i can make my whole dimension one block. But i don't really want that, and the lakes and spawning would still be off. -
[1.8] dimension generates with wrong biome types
Yakman3 replied to Yakman3's topic in Modder Support
Uh, where would i find those chunk providers? i know its referencedLibraries\forgesrc but then what? -
I have been trying for a while now to make my dimension one biome, and I recently made what i thought was a breakthrough. Basically, with my fix, all the blocks and "filler" blocks are correct, but pressing f3 reveals that I am actually going through different biomes with properties i don't want in tmy dimension like snow. If i get lucky, my actual biome will spawn, and not just the blocks. How can i make it so that the only biome spawning is mine? (and as a side note, can i make it so the biome doesn't spwan in the overworld?) here's the link to my "CustomChunkProvider" code http://pastebin.com/phMvgJir
-
[1.8] Stairs Facing the Wrong way in Generated Structure
Yakman3 replied to Yakman3's topic in Modder Support
I checked, and while I found some duplicate code for the stairs, deleting it didn't change anything. -
[1.8] Stairs Facing the Wrong way in Generated Structure
Yakman3 replied to Yakman3's topic in Modder Support
Sorry, My bad: for(y = 7; y< 8; y++){ for(int x = 0; x<7; x++){ // BlockPos corner = pos; for(int z=0; z<8; z++){ pos = new BlockPos(startX + x, startY + y, startZ + z); if(x == 0){ // Set edge blocks to brick world.setBlockState(pos, Blocks.nether_brick_stairs.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.EAST)); } else if(z == 0){ // Set edge blocks to brick world.setBlockState(pos, Blocks.nether_brick_stairs.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.SOUTH)); } else if(z == 7){ // Set edge blocks to brick world.setBlockState(pos, Blocks.nether_brick_stairs.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.NORTH)); } else if(x == 7){ // Set edge blocks to brick world.setBlockState(pos, Blocks.nether_brick_stairs.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.WEST)); } else{ // Leave other blocks as air world.setBlockState(pos, Blocks.air.getDefaultState()); } } } -
[1.8] Stairs Facing the Wrong way in Generated Structure
Yakman3 replied to Yakman3's topic in Modder Support
Thanks, I just had to modify it to this: world.setBlockState(pos, Blocks.nether_brick_stairs.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.SOUTH)); and my structure now generates a staircase roof. However, the x == 0 side isn't generating? any ideas? -
So in my dimension, I have been coding a structure, just a simple little house with a stair-peak roof. Unfortuantely, when I add the stairs, they all face the same direction. I know this has to do with blockstates but I have no idea how to use those in 1.8. Any help? -Corey P.S. also I'd like to make my own custom stairs but have no idea how to do the blockstates or whatever. would extends some staircase class do it?
-
Hello! I have been creating a mod for a while, and one of the things I wanted to include was a custom dimension with one single custom biome over all of it. I created the biome and the dimension succesfully, and I can visit the dimension. However, when I tried to make my biome the only one it completely messed up the chunk generation, creating a world all copied from a single chunk (the biomes still changed though). The CustomChunkProvider class and the DyingMoonBiome Class are pasted below. Also, THIS IS USING THE LATEST VERSION OF 1.8 AND FORGE. http://pastebin.com/gPmyXmJW http://pastebin.com/ft7JgM83 Thanks!