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
  • World generation help.
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
REDX36

World generation help.

By REDX36, December 12, 2012 in General Discussion

  • Reply to this topic
  • Start new topic

Recommended Posts

REDX36    1

REDX36

REDX36    1

  • Tree Puncher
  • REDX36
  • Forge Modder
  • 1
  • 36 posts
Posted December 12, 2012

I have code that DOES generate the ore (In the END), but only in one spot in the island. Nowhere else. Code:

 

package redx36.enderite;

import java.util.Random;

import net.minecraft.src.BiomeGenBase;
import net.minecraft.src.IChunkProvider;
import net.minecraft.src.World;

import cpw.mods.fml.common.IWorldGenerator;

public class EnderiteWorldGenerator implements IWorldGenerator {

@Override public void generate (final Random random, final int X, final int Z, final World world, final IChunkProvider chunkGenerator, final IChunkProvider chunkProvider) {

	if (world.getBiomeGenForCoords(X, Z).biomeName.equalsIgnoreCase(BiomeGenBase.sky.biomeName)) {

		for (int i = 0; i < 10; i++) {

			new WorldGenEndMinable(Enderite.enderiteOre.blockID, 4).generate(world, random, X + random.nextInt(16), random.nextInt(128), Z + random.nextInt(16));

		}

	}

}

}

 

WorldGenEndMineable is exactly the same as WorldGenMineable except is uses end stone instead of stone as the replaceable block. And the finals you see dont change code function at all.

  • Quote

Share this post


Link to post
Share on other sites

opssemnik    40

opssemnik

opssemnik    40

  • Diamond Finder
  • opssemnik
  • Members
  • 40
  • 269 posts
Posted December 13, 2012

-snip- sorry

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1616

LexManos

LexManos    1616

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1616
  • 8923 posts
Posted December 13, 2012

OFC it will only gen in the island... it doesnt replace AIR, it replace ENDSTONE, which is only in the island...

  • Quote

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

REDX36    1

REDX36

REDX36    1

  • Tree Puncher
  • REDX36
  • Forge Modder
  • 1
  • 36 posts
Posted December 15, 2012

I never said it was only on the island, its only in about a chunks area on the island, now here else on the island.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • kiou.23
      [1.16] Custom Sign won't render

      By kiou.23 · Posted just now

      Did the classes, now the edit screen shows up, and if I use a vanilla WoodType for the sign, the texture shows up in the edit screen (not in the actual block tho, it still won't render) the changes are on github. How should I go about rendering the Sign again? I'll need to write my own TileEntityRenderer?
    • PedreHenrry
      my minecraft crashed by "rendering overlay"

      By PedreHenrry · Posted 4 minutes ago

      i fixed it re instaling the forge after delete it  
    • Somonestolemyusername
      [1.15.2] How Would I make a custom bow?

      By Somonestolemyusername · Posted 15 minutes ago

      but if I use the snowball class it will be like im shooting snowballs not bullets. you know mr crayfishes gun mod? i want my gun to be somewhat like that also i figured out how to connect my registered object to the class
    • e2rifia
      (1.16.2) Making a new capability(2)

      By e2rifia · Posted 16 minutes ago

      .OrElse(null) worked! Thanks!
    • diesieben07
      [1.16] Custom Sign won't render

      By diesieben07 · Posted 17 minutes ago

      Override getType.
  • Topics

    • kiou.23
      14
      [1.16] Custom Sign won't render

      By kiou.23
      Started 10 hours ago

    • PedreHenrry
      5
      my minecraft crashed by "rendering overlay"

      By PedreHenrry
      Started Yesterday at 01:06 PM

    • Somonestolemyusername
      13
      [1.15.2] How Would I make a custom bow?

      By Somonestolemyusername
      Started Tuesday at 09:30 PM

    • e2rifia
      2
      (1.16.2) Making a new capability(2)

      By e2rifia
      Started 32 minutes ago

    • Bailym
      12
      Cant Get a Config File Working 1.16.5

      By Bailym
      Started 2 hours ago

  • Who's Online (See full list)

    • Bailym
    • Choonster
    • Danebi
    • Greenshark3D
    • MaxAnimator
    • Olympicfox998
    • PedreHenrry
    • Alexalien
    • diesieben07
    • Somonestolemyusername
    • vemerion
    • Boetam
    • Telmoun
    • loordgek
    • kiou.23
    • tf2_mandeokyi
    • e2rifia
    • Tolecampa
    • Redpo
    • JackRaidenPH
  • All Activity
  • Home
  • Minecraft Forge
  • General Discussion
  • World generation help.
  • Theme

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