Sams Teach Yourself Mod Development for Minecraft in 24 Hours by Jimmy Koene

Sams Teach Yourself Mod Development for Minecraft in 24 Hours by Jimmy Koene

Author:Jimmy Koene [Koene, Jimmy]
Language: eng
Format: azw3
Publisher: Pearson Education
Published: 2014-09-12T04:00:00+00:00


* * *

Try It Yourself: Nether Ore Generation

Add Sam’s Stone to the nether by adding an addOreSpawn line to the generateNether method. Make sure you change Blocks.stone into Blocks.netherrack, or it will not work.

* * *

SamEventHandler should now look like Listing 13.4.

LISTING 13.4 Finished SamEventHandler

Click here to view code image

* * *

package com.wuppy.samsmod;

import java.util.Random;

import net.minecraft.block.Block;

import net.minecraft.init.Blocks;

import net.minecraft.world.World;

import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.feature.WorldGenMinable;

import cpw.mods.fml.common.IWorldGenerator;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.