Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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) 
{
}

}

  • 1 year later...
  • 1 month later...

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

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.
Consider supporting the team onย Patreon

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.