Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • General Discussion
  • Generating a custom village?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
zombiekiller222

Generating a custom village?

By zombiekiller222, October 24, 2012 in General Discussion

  • Start new topic

Recommended Posts

zombiekiller222    0

zombiekiller222

zombiekiller222    0

  • Tree Puncher
  • zombiekiller222
  • Members
  • 0
  • 9 posts
Posted October 24, 2012

I've copied all of the appropriate appropriate classes for Village, but unfortunately, I cannot even get the DEFAULT village to spawn. I understand there is a % chance, but in superflat after flying a long time I've yet to find one (with default MC structures disabled). Here is my code:

package plantony.lotrcraft;

import java.util.Random;
import net.minecraft.src.IChunkProvider;
import net.minecraft.src.MapGenVillage;
import net.minecraft.src.World;
import net.minecraft.src.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;

public class WorldGeneratorLotrCraft implements IWorldGenerator 
{
MapGenVillage mapGenVillage = new MapGenVillage(1);
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
	switch (world.provider.dimensionId)
	{
		case -1: generateNether(world, random, chunkX*16, chunkZ*16);
		case 0: generateSurface(world, random, chunkX*16, chunkZ*16);
	}
}


private void generateSurface(World world, Random random, int blockX, int blockZ) 
{
	//int Xcoord1 = blockX + random.nextInt(16);
	//int Ycoord1 = random.nextInt(80);
	//int Zcoord1 = blockZ + random.nextInt(16);
	mapGenVillage.generate(world.getChunkProvider(), world, blockX, blockZ, new byte[32768]);
}

private void generateNether(World world, Random random, int blockX, int blockZ) 
{
}

}

Share this post


Link to post
Share on other sites

Master4902    5

Master4902

Master4902    5

  • Tree Puncher
  • Master4902
  • Members
  • 5
  • 9 posts
Posted October 25, 2012

Replace MapGenVillage with your custom village

Share this post


Link to post
Share on other sites

zombiekiller222    0

zombiekiller222

zombiekiller222    0

  • Tree Puncher
  • zombiekiller222
  • Members
  • 0
  • 9 posts
Posted October 25, 2012

The reason I have MapGenVillage is to get the default MC village to generate at my command before trying my own.

Share this post


Link to post
Share on other sites

Eastonium    1

Eastonium

Eastonium    1

  • Creeper Killer
  • Eastonium
  • Members
  • 1
  • 151 posts
Posted June 9, 2014

Have you figured this out?

Share this post


Link to post
Share on other sites

JusticeOF666    0

JusticeOF666

JusticeOF666    0

  • Tree Puncher
  • JusticeOF666
  • Members
  • 0
  • 7 posts
Posted July 30, 2014

Interested in this as well to be honest .

Share this post


Link to post
Share on other sites

MC    0

MC

MC    0

  • Tree Puncher
  • MC
  • Members
  • 0
  • 5 posts
Posted July 30, 2014

I am also interested in seeing this hopefully you get an answer.

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8954 posts
Posted July 30, 2014

This is a 2 year old thread quit fucking bumping it -.-

Its even in the wrong section of the forums -.-


I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      The game crashed whilst rendering overlay

      By diesieben07 · Posted 1 hour ago

      In the future please make your own thread instead of posting in an old, unrelated thread.   Delete this file.
    • FactionsFire
      Exit code 0 Sorry for inconvenience

      By FactionsFire · Posted 1 hour ago

      I am trying to lanuch 1.8.9 forge and i get "An unexpected issue happened and the game has crashed exit sorry for inconvenience exit code 0"" And this has happened for about a week. 
    • Merken
      The game crashed whilst rendering overlay

      By Merken · Posted 1 hour ago

      The game crashed whilst rendering overlay Error: net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file forge-client.toml of type CLIENT for modid forge Exit Code: -1
    • Merken
      The game crashed whilst rendering overlay

      By Merken · Posted 1 hour ago

      The game crashed whilst rendering overlay Error: net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file forge-client.toml of type CLIENT for modid forge Exit Code: -1
    • diesieben07
      My game keeps crashing

      By diesieben07 · Posted 2 hours ago

      You do not. In the future please make your own thread instead of posting in some random thread that looks vaguely similar.   Your Optifine version is outdated and not listed as compatible with your version of Forge. Refer to the Optifine downloads page regarding compatibility with Forge.
  • Topics

    • Merken
      2
      The game crashed whilst rendering overlay

      By Merken
      Started 1 hour ago

    • FactionsFire
      0
      Exit code 0 Sorry for inconvenience

      By FactionsFire
      Started 1 hour ago

    • seekR4621
      1
      My game keeps crashing

      By seekR4621
      Started 3 hours ago

    • NorthWestWind
      2
      [1.16.x] Stop Held Item blobbing in Hand

      By NorthWestWind
      Started 3 hours ago

    • ehbean
      1
      1.16.x Custom Furnace/Brewing Stand

      By ehbean
      Started 12 hours ago

  • Who's Online (See full list)

    • diesieben07
    • Nanook
    • NorthWestWind
    • Ginge
    • Differentiation
    • Luis_ST
    • Ghost0nLinéaire
    • charlie121kkt
  • All Activity
  • Home
  • Minecraft Forge
  • General Discussion
  • Generating a custom village?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community