Added white dandelions.

This commit is contained in:
Matt Caughey 2013-05-07 07:31:20 -04:00
parent 22d8ac0ac7
commit bb72175452
8 changed files with 17 additions and 3 deletions

View file

@ -115,6 +115,7 @@ public class BlockReferences {
yucca (Blocks.flowers, 12), yucca (Blocks.flowers, 12),
portobello (Blocks.flowers, 13), portobello (Blocks.flowers, 13),
bluemilk (Blocks.flowers, 14), bluemilk (Blocks.flowers, 14),
dandelion (Blocks.flowers, 15),
holyTallGrass (Blocks.plants, 4), holyTallGrass (Blocks.plants, 4),
desertSprouts (Blocks.plants, 2), desertSprouts (Blocks.plants, 2),
duneGrass (Blocks.plants, 3), duneGrass (Blocks.plants, 3),

View file

@ -142,6 +142,7 @@ public class BiomeDecoratorBOP extends BiomeDecorator
/** Field that holds one of the plantYellow WorldGenFlowers */ /** Field that holds one of the plantYellow WorldGenFlowers */
protected WorldGenerator plantYellowGen; protected WorldGenerator plantYellowGen;
protected WorldGenerator dandelionGen;
/** Field that holds one of the plantRed WorldGenFlowers */ /** Field that holds one of the plantRed WorldGenFlowers */
protected WorldGenerator plantRedGen; protected WorldGenerator plantRedGen;
@ -358,6 +359,7 @@ public class BiomeDecoratorBOP extends BiomeDecorator
this.diamondGen = new WorldGenMinable(Block.oreDiamond.blockID, 7); this.diamondGen = new WorldGenMinable(Block.oreDiamond.blockID, 7);
this.lapisGen = new WorldGenMinable(Block.oreLapis.blockID, 6); this.lapisGen = new WorldGenMinable(Block.oreLapis.blockID, 6);
this.plantYellowGen = new WorldGenBOPFlowers(Block.plantYellow.blockID, 0); this.plantYellowGen = new WorldGenBOPFlowers(Block.plantYellow.blockID, 0);
this.dandelionGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 15);
this.plantRedGen = new WorldGenBOPFlowers(Block.plantRed.blockID, 0); this.plantRedGen = new WorldGenBOPFlowers(Block.plantRed.blockID, 0);
this.plantWhiteGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 9); this.plantWhiteGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 9);
this.plantBlueGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 1); this.plantBlueGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 1);
@ -721,6 +723,14 @@ public class BiomeDecoratorBOP extends BiomeDecorator
var4 = this.randomGenerator.nextInt(128); var4 = this.randomGenerator.nextInt(128);
var5 = this.chunk_Z + this.randomGenerator.nextInt(16) + 8; var5 = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.plantYellowGen.generate(this.currentWorld, this.randomGenerator, var3, var4, var5); this.plantYellowGen.generate(this.currentWorld, this.randomGenerator, var3, var4, var5);
if (this.randomGenerator.nextInt(6) == 0)
{
var3 = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
var4 = this.randomGenerator.nextInt(128);
var5 = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.dandelionGen.generate(this.currentWorld, this.randomGenerator, var3, var4, var5);
}
if (this.randomGenerator.nextInt(4) == 0) if (this.randomGenerator.nextInt(4) == 0)
{ {

View file

@ -22,7 +22,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockBOPFlower extends BlockFlower public class BlockBOPFlower extends BlockFlower
{ {
private static final String[] plants = new String[] {"clover", "swampflower", "deadbloom", "glowflower", "hydrangea", "daisy", "tulip", "wildflower", "violet", "anemone", "toadstool", "cactus", "yucca", "portobello", "bluemilk"}; private static final String[] plants = new String[] {"clover", "swampflower", "deadbloom", "glowflower", "hydrangea", "daisy", "tulip", "wildflower", "violet", "anemone", "toadstool", "cactus", "yucca", "portobello", "bluemilk", "dandelion"};
private Icon[] textures; private Icon[] textures;
protected BlockBOPFlower(int blockID, Material material) protected BlockBOPFlower(int blockID, Material material)

View file

@ -282,6 +282,7 @@ public class BOPBlocks {
LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,12), "Yucca"); LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,12), "Yucca");
LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,13), "Portobello"); LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,13), "Portobello");
LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,14), "Blue Milk Cap"); LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,14), "Blue Milk Cap");
LanguageRegistry.addName(new ItemStack(Blocks.flowers.get(),1,15), "Dandelion");
LanguageRegistry.addName(new ItemStack(Blocks.saplings.get(),1,6), "Fir Sapling"); LanguageRegistry.addName(new ItemStack(Blocks.saplings.get(),1,6), "Fir Sapling");
LanguageRegistry.addName(new ItemStack(Blocks.colorizedSaplings.get(),1,3), "Redwood Sapling"); LanguageRegistry.addName(new ItemStack(Blocks.colorizedSaplings.get(),1,3), "Redwood Sapling");
LanguageRegistry.addName(new ItemStack(Blocks.colorizedSaplings.get(),1,2), "Palm Sapling"); LanguageRegistry.addName(new ItemStack(Blocks.colorizedSaplings.get(),1,2), "Palm Sapling");
@ -412,6 +413,7 @@ public class BOPBlocks {
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 7, 5); MinecraftForge.addGrassPlant(Blocks.flowers.get(), 7, 5);
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 8, 5); MinecraftForge.addGrassPlant(Blocks.flowers.get(), 8, 5);
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 9, 5); MinecraftForge.addGrassPlant(Blocks.flowers.get(), 9, 5);
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 15, 20);
MinecraftForge.addGrassPlant(Blocks.foliage.get(), 5, 10); MinecraftForge.addGrassPlant(Blocks.foliage.get(), 5, 10);
} }

View file

@ -28,7 +28,7 @@ public class BOPCrafting
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 13), new Object[] {new ItemStack(Blocks.flowers.get(),1,7)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 13), new Object[] {new ItemStack(Blocks.flowers.get(),1,7)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 14), new Object[] {new ItemStack(Blocks.flowers.get(),1,5)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 14), new Object[] {new ItemStack(Blocks.flowers.get(),1,5)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 9), new Object[] {new ItemStack(Blocks.flowers.get(),1,6)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 9), new Object[] {new ItemStack(Blocks.flowers.get(),1,6)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 7), new Object[] {new ItemStack(Blocks.flowers.get(),1,9)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 7), new Object[] {new ItemStack(Blocks.flowers.get(),1,15)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 12), new Object[] {new ItemStack(Blocks.flowers.get(),1,4)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 12), new Object[] {new ItemStack(Blocks.flowers.get(),1,4)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 5), new Object[] {new ItemStack(Blocks.flowers.get(),1,8)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 5), new Object[] {new ItemStack(Blocks.flowers.get(),1,8)});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 8), new Object[] {new ItemStack(Items.miscItems.get(), 1, 1)}); GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 8), new Object[] {new ItemStack(Items.miscItems.get(), 1, 1)});

View file

@ -163,6 +163,7 @@ public class ThaumcraftIntegration {
ThaumcraftApi.registerObjectTag(getBID("swampFlower"), getBMeta("swampFlower"), (new ObjectTags()).add(EnumTag.FLOWER, 4)); ThaumcraftApi.registerObjectTag(getBID("swampFlower"), getBMeta("swampFlower"), (new ObjectTags()).add(EnumTag.FLOWER, 4));
ThaumcraftApi.registerObjectTag(getBID("wildFlower"), getBMeta("wildFlower"), (new ObjectTags()).add(EnumTag.FLOWER, 4)); ThaumcraftApi.registerObjectTag(getBID("wildFlower"), getBMeta("wildFlower"), (new ObjectTags()).add(EnumTag.FLOWER, 4));
ThaumcraftApi.registerObjectTag(getBID("daisy"), getBMeta("daisy"), (new ObjectTags()).add(EnumTag.FLOWER, 4)); ThaumcraftApi.registerObjectTag(getBID("daisy"), getBMeta("daisy"), (new ObjectTags()).add(EnumTag.FLOWER, 4));
ThaumcraftApi.registerObjectTag(getBID("dandelion"), getBMeta("dandelion"), (new ObjectTags()).add(EnumTag.FLOWER, 4));
ThaumcraftApi.registerObjectTag(getBID("tulip"), getBMeta("tulip"), (new ObjectTags()).add(EnumTag.FLOWER, 4)); ThaumcraftApi.registerObjectTag(getBID("tulip"), getBMeta("tulip"), (new ObjectTags()).add(EnumTag.FLOWER, 4));
ThaumcraftApi.registerObjectTag(getBID("yucca"), getBMeta("yucca"), (new ObjectTags()).add(EnumTag.FLOWER, 4).add(EnumTag.PLANT, 4)); ThaumcraftApi.registerObjectTag(getBID("yucca"), getBMeta("yucca"), (new ObjectTags()).add(EnumTag.FLOWER, 4).add(EnumTag.PLANT, 4));
ThaumcraftApi.registerObjectTag(getBID("clover"), getBMeta("clover"), (new ObjectTags()).add(EnumTag.FLOWER, 1).add(EnumTag.PLANT, 1)); ThaumcraftApi.registerObjectTag(getBID("clover"), getBMeta("clover"), (new ObjectTags()).add(EnumTag.FLOWER, 1).add(EnumTag.PLANT, 1));

View file

@ -10,7 +10,7 @@ import net.minecraft.world.World;
public class ItemBOPFlower extends ItemBlock public class ItemBOPFlower extends ItemBlock
{ {
private static final String[] plants = new String[] {"clover", "swampflower", "deadbloom", "glowflower", "hydrangea", "daisy", "tulip", "wildflower", "violet", "anemone", "toadstool", "cactus", "yucca", "portobello", "bluemilk"}; private static final String[] plants = new String[] {"clover", "swampflower", "deadbloom", "glowflower", "hydrangea", "daisy", "tulip", "wildflower", "violet", "anemone", "toadstool", "cactus", "yucca", "portobello", "bluemilk", "dandelion"};
public ItemBOPFlower(int par1) public ItemBOPFlower(int par1)
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B