Tweaked the Land of Lakes biome, added wild rice

This commit is contained in:
Matt Caughey 2015-04-07 16:26:39 -04:00
parent 4eae73fe11
commit 846b456b07
14 changed files with 26 additions and 17 deletions

View file

@ -48,6 +48,7 @@ public class OverworldBiomeFeatures extends BiomeFeaturesBase
@BiomeFeature public int berryBushesPerChunk = 0;
@BiomeFeature public int portobellosPerChunk = 0;
@BiomeFeature public int koruPerChunk = 0;
@BiomeFeature public int wildRicePerChunk = 0;
@BiomeFeature public int blueMilksPerChunk = 0;
@BiomeFeature public int cattailsPerChunk = 0;
@BiomeFeature public int highCattailsPerChunk = 0;

View file

@ -19,7 +19,7 @@ import biomesoplenty.common.world.features.trees.WorldGenOriginalTree;
public class BiomeGenLandOfLakes extends BOPOverworldBiome
{
private static final Height biomeHeight = new Height(0.1F, 0.3F);
private static final Height biomeHeight = new Height(0.1F, 0.2F);
public BiomeGenLandOfLakes(int id)
{
@ -41,6 +41,7 @@ public class BiomeGenLandOfLakes extends BOPOverworldBiome
this.theBiomeDecorator.sandPerChunk = -999;
this.theBiomeDecorator.sandPerChunk2 = -999;
this.theBiomeDecorator.bopFeatures.wildRicePerChunk = 2;
this.theBiomeDecorator.bopFeatures.gravelPerChunk = 9;
this.theBiomeDecorator.bopFeatures.waterReedsPerChunk = 30;
this.theBiomeDecorator.bopFeatures.seaweedPerChunk = 15;

View file

@ -6,8 +6,6 @@ import net.minecraft.block.Block;
import net.minecraft.entity.monster.EntitySlime;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase.Height;
import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import net.minecraft.world.gen.feature.WorldGenTaiga2;
import biomesoplenty.api.content.BOPCBlocks;
@ -24,7 +22,7 @@ public class BiomeGenLandOfLakesMarsh extends BOPSubBiome
super(id);
this.zoom = 0.5D;
this.threshold = 0.5D;
this.threshold = 0.25D;
this.setHeight(biomeHeight);
this.setColor(6725742);
@ -35,14 +33,14 @@ public class BiomeGenLandOfLakesMarsh extends BOPSubBiome
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3));
this.theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.treesPerChunk = 1;
this.theBiomeDecorator.flowersPerChunk = 3;
this.theBiomeDecorator.grassPerChunk = 25;
this.theBiomeDecorator.sandPerChunk = 1;
this.theBiomeDecorator.sandPerChunk2 = 1;
this.theBiomeDecorator.bopFeatures.gravelPerChunk = 4;
this.theBiomeDecorator.bopFeatures.wildRicePerChunk = 8;
this.theBiomeDecorator.bopFeatures.mudPerChunk = 9;
this.theBiomeDecorator.bopFeatures.waterLakesPerChunk = 10;
this.theBiomeDecorator.bopFeatures.waterReedsPerChunk = 15;

View file

@ -35,7 +35,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockBOPPlant extends BOPBlockWorldDecor implements IShearable
{
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "spectralfern", "thorn", "barley", "cattail", "rivercane", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart", "reed", "root"};
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "spectralfern", "thorn", "wildrice", "cattail", "rivercane", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart", "reed", "root"};
private IIcon[] textures;
public IIcon reedbottom;
@ -148,7 +148,7 @@ public class BlockBOPPlant extends BOPBlockWorldDecor implements IShearable
case 5: // Thorns
return block == Blocks.grass|| block == Blocks.dirt || block == Blocks.soul_sand || block.canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, this);
case 6: // Barley
case 6: // Wild Rice
return block == Blocks.grass || block == Blocks.dirt || block.canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, this);
case 7: // Cattail

View file

@ -219,9 +219,6 @@ public class BOPCrafting
GameRegistry.addRecipe(new ItemStack(BOPCItems.flowerBand, 1, 2), new Object [] {"CDC", "V V", "CDC", Character.valueOf('C'), new ItemStack(BOPCBlocks.flowers, 1, 0),Character.valueOf('D'), new ItemStack(BOPCBlocks.flowers, 1, 5), Character.valueOf('V'), new ItemStack(BOPCBlocks.flowers, 1, 8)});
GameRegistry.addRecipe(new ItemStack(BOPCItems.flowerBand, 1, 3), new Object [] {"CDT", "V V", "TDC", Character.valueOf('C'), new ItemStack(BOPCBlocks.flowers, 1, 0),Character.valueOf('D'), new ItemStack(BOPCBlocks.flowers, 1, 5), Character.valueOf('V'), new ItemStack(BOPCBlocks.flowers, 1, 8), Character.valueOf('T'), new ItemStack(BOPCBlocks.flowers, 1, 6)});
//Other
GameRegistry.addRecipe(new ItemStack(Items.wheat, 1), new Object[] {"###", '#', new ItemStack(BOPCBlocks.plants,1,6)});
/*if (BOPConfigurationMisc.staffCrafting)
{
GameRegistry.addRecipe(new ItemStack(BOPItemHelper.get("ancientStaff"), 1, 0), new Object[] {"T", "P", "H", 'T', new ItemStack(BOPItemHelper.get("ancientStaff"), 1, 3), 'P', new ItemStack(BOPItemHelper.get("ancientStaff"), 1, 2), 'H', new ItemStack(BOPItemHelper.get("ancientStaff"), 1, 1)});
@ -271,6 +268,7 @@ public class BOPCrafting
//Plants
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.food, 2, 1), new Object[] {new ItemStack(BOPCBlocks.mushrooms,1,0)});
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.jarFilled, 1, 1), new Object[] {new ItemStack(BOPCBlocks.foliage,1,7), new ItemStack(BOPCItems.jarEmpty,1, 0)});
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.food, 1, 13), new Object[] {Items.bowl, new ItemStack(BOPCBlocks.plants, 1, 6)});
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.food, 1, 4), new Object[] {Items.bowl, new ItemStack(BOPCItems.food, 1, 0), Items.apple, Items.melon});
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.food, 1, 5), new Object[] {Items.bowl, new ItemStack(BOPCItems.food, 1, 2), Items.carrot, Items.potato});
GameRegistry.addShapelessRecipe(new ItemStack(BOPCItems.food, 1, 6), new Object[] {Items.bowl, new ItemStack(BOPCBlocks.mushrooms, 1, 0), new ItemStack(BOPCBlocks.mushrooms, 1, 1), new ItemStack(BOPCBlocks.mushrooms, 1, 2)});

View file

@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ItemBlockPlant extends ItemBlock
{
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "spectralfern", "thorn", "barley", "cattail", "rivercane", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart", "reed", "root"};
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "spectralfern", "thorn", "wildrice", "cattail", "rivercane", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart", "reed", "root"};
@SideOnly(Side.CLIENT)
private IIcon[] textures;
@ -39,7 +39,7 @@ public class ItemBlockPlant extends ItemBlock
{
textures = new IIcon[6];
textures[0] = iconRegister.registerIcon("biomesoplenty:item_barley");
textures[0] = iconRegister.registerIcon("biomesoplenty:item_wildrice");
textures[1] = iconRegister.registerIcon("biomesoplenty:item_cattail");
textures[2] = iconRegister.registerIcon("biomesoplenty:item_rivercane");
textures[3] = iconRegister.registerIcon("biomesoplenty:item_witherwart");

View file

@ -21,9 +21,9 @@ import biomesoplenty.api.content.BOPCBlocks;
public class ItemBOPFood extends ItemFood
{
private static final String[] foodTypes = new String[] {"berries", "shroompowder", "wildcarrots", "peach", "saladfruit", "saladveggie", "saladshroom", "earth", "persimmon", "filledhoneycomb", "ambrosia", "turnip", "pear"};
private static final int[] foodHunger = new int[] {1, 1, 3, 5, 6, 6, 6, 0, 5, 3, 6, 3, 5};
private static final float[] foodSaturation = new float[] {0.1F, 0.1F, 0.5F, 0.2F, 0.6F, 0.6F, 0.6F, 0.0F, 0.2F, 0.4F, 0.8F, 0.4F, 0.3F};
private static final String[] foodTypes = new String[] {"berries", "shroompowder", "wildcarrots", "peach", "saladfruit", "saladveggie", "saladshroom", "earth", "persimmon", "filledhoneycomb", "ambrosia", "turnip", "pear", "ricebowl"};
private static final int[] foodHunger = new int[] {1, 1, 3, 5, 6, 6, 6, 0, 5, 3, 6, 3, 5, 2};
private static final float[] foodSaturation = new float[] {0.1F, 0.1F, 0.5F, 0.2F, 0.6F, 0.6F, 0.6F, 0.0F, 0.2F, 0.4F, 0.8F, 0.4F, 0.3F, 0.1F};
private IIcon[] textures;
public ItemBOPFood(int healAmount)
@ -134,6 +134,11 @@ public class ItemBOPFood extends ItemFood
if (!player.inventory.addItemStackToInventory(new ItemStack(Items.glass_bottle)))
player.dropPlayerItemWithRandomChoice(new ItemStack(Items.glass_bottle, 1, 0), false);
break;
case 13:
if (!player.inventory.addItemStackToInventory(new ItemStack(Items.bowl)))
player.dropPlayerItemWithRandomChoice(new ItemStack(Items.bowl, 1, 0), false);
break;
}
return itemstack;
@ -169,6 +174,10 @@ public class ItemBOPFood extends ItemFood
{
return 1;
}
if (itemStack.getItem() == this && itemStack.getItemDamage() == 13)
{
return 1;
}
return 64;
}

View file

@ -84,6 +84,7 @@ public class WorldGenFieldAssociation
associateFeature("wildCarrotsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 11));
associateFeature("poisonIvyPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 7));
associateFeature("berryBushesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 8));
associateFeature("wildRicePerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 6));
associateFeature("portobellosPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 1));
associateFeature("koruPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 12));
associateFeature("toadstoolsPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 0));

View file

@ -31,7 +31,7 @@ tile.plants.desertsprouts.name=Desert Sprouts
tile.plants.dunegrass.name=Dune Grass
tile.plants.spectralfern.name=Spectral Fern
tile.plants.thorn.name=Thorns
tile.plants.barley.name=Barley
tile.plants.wildrice.name=Wild Rice
tile.plants.cattail.name=Cattail
tile.plants.cattailtop.name=Cattail
tile.plants.cattailbottom.name=Cattail
@ -330,6 +330,7 @@ item.food.filledhoneycomb.name=Filled Honeycomb
item.food.ambrosia.name=Ambrosia
item.food.turnip.name=Turnip
item.food.pear.name=Pear
item.food.ricebowl.name=Bowl of Rice
item.turnipSeeds.name=Turnip Seeds

Binary file not shown.

Before

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B