Added Glimmering Flowers. Closes #76.

This commit is contained in:
Vasco Lavos committed 2014-06-02 20:38:57 +01:00
1 parent 683ed0c683
commit 29eacc9550
9 files changed
+88 -1

No files matched your search

@@ -43,8 +43,12 @@ public class BlockModFlower extends BlockFlower implements ILexiconable {
public static IIcon[] icons;
protected BlockModFlower() {
this(LibBlockNames.FLOWER);
}
protected BlockModFlower(String name) {
super(0);
setBlockName(LibBlockNames.FLOWER);
setBlockName(name);
setHardness(0F);
setStepSound(soundTypeGrass);
setBlockBounds(0.3F, 0.0F, 0.3F, 0.8F, 1, 0.8F);
@@ -52,6 +56,7 @@ public class BlockModFlower extends BlockFlower implements ILexiconable {
setCreativeTab(BotaniaCreativeTab.INSTANCE);
}
@Override
public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
for(int i = 0; i < 16; i++)
@@ -0,0 +1,45 @@
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
*
* File Created @ [Jun 2, 2014, 8:15:49 PM (GMT)]
*/
package vazkii.botania.common.block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.common.lexicon.LexiconData;
import vazkii.botania.common.lib.LibBlockNames;
public class BlockShinyFlower extends BlockModFlower {
public BlockShinyFlower() {
super(LibBlockNames.SHINY_FLOWER);
setLightLevel(1F);
}
@Override
public void registerBlockIcons(IIconRegister par1IconRegister) {
// NO-OP
}
@Override
public IIcon getIcon(int par1, int par2) {
return ModBlocks.flower.getIcon(par1, par2);
}
@Override
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
return LexiconData.shinyFlowers;
}
}
@@ -91,6 +91,7 @@ public final class ModBlocks {
public static Block forestEye;
public static Block storage;
public static Block forestDrum;
public static Block shinyFlower;
public static void init() {
flower = new BlockModFlower();
@@ -116,6 +117,7 @@ public final class ModBlocks {
forestEye = new BlockForestEye();
storage = new BlockStorage();
forestDrum = new BlockForestDrum();
shinyFlower = new BlockShinyFlower();
for(int i = 0; i < 16; i++)
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower, 1, i));
@@ -73,6 +73,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
addBlock(ModBlocks.runeAltar);
addBlock(ModBlocks.pylon);
addBlock(ModBlocks.pistonRelay);
addBlock(ModBlocks.shinyFlower);
addBlock(ModBlocks.unstableBlock);
addBlock(ModBlocks.manaBeacon);
addItem(ModItems.signalFlare);
@@ -11,6 +11,7 @@
*/
package vazkii.botania.common.crafting;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.init.Blocks;
@@ -120,6 +121,7 @@ public final class ModCrafingRecipes {
public static IRecipe recipeTerraPick;
public static IRecipe recipeDivaCharm;
public static IRecipe recipeFlightTiara;
public static List<IRecipe> recipesShinyFlowers;
public static void init() {
// Lexicon Recipe
@@ -656,6 +658,11 @@ public final class ModCrafingRecipes {
'F', new ItemStack(Items.feather));
recipeFlightTiara = BotaniaAPI.getLatestAddedRecipe();
// Glimmering Flowers Recipes
for(int i = 0; i < 16; i++)
addShapelessOreDictRecipe(new ItemStack(ModBlocks.shinyFlower, 1, i), new ItemStack(Items.glowstone_dust), new ItemStack(Items.glowstone_dust), LibOreDict.FLOWER[i]);
recipesShinyFlowers = BotaniaAPI.getLatestAddedRecipes(16);
// Mana and Terrasteel Block Recipes
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
"III", "III", "III",
@@ -137,6 +137,7 @@ public final class LexiconData {
public static LexiconEntry unstableBlocks;
public static LexiconEntry decorativeBlocks;
public static LexiconEntry dispenserTweaks;
public static LexiconEntry shinyFlowers;
public static void init() {
BotaniaAPI.addCategory(categoryBasics = new LexiconCategory(LibLexicon.CATEGORY_BASICS));
@@ -432,5 +433,8 @@ public final class LexiconData {
dispenserTweaks = new BLexiconEntry(LibLexicon.MISC_DISPENSER_TWEAKS, categoryMisc);
dispenserTweaks.setLexiconPages(new PageText("0"));
shinyFlowers = new BLexiconEntry(LibLexicon.MISC_SHINY_FLOWERS, categoryMisc);
shinyFlowers.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesShinyFlowers));
}
}
@@ -37,6 +37,7 @@ public final class LibBlockNames {
public static final String FOREST_EYE = "forestEye";
public static final String STORAGE = "storage";
public static final String FOREST_DRUM = "forestDrum";
public static final String SHINY_FLOWER = "shinyFlower";
public static final String SPECIAL_FLOWER_PREFIX = FLOWER + ".";
@@ -118,5 +118,6 @@ public final class LibLexicon {
public static final String MISC_UNSTABLE_BLOCKS = "unstableBlocks";
public static final String MISC_DECORATIVE_BLOCKS = "decorativeBlocks";
public static final String MISC_DISPENSER_TWEAKS = "dispenserTweaks";
public static final String MISC_SHINY_FLOWERS = "shinyFlowers";
}
+21
View File
@@ -165,6 +165,22 @@ tile.botania:forestEye.name=Eye of the Ancients
tile.botania:storage0.name=Block of Manasteel
tile.botania:storage1.name=Block of Terrasteel
tile.botania:forestDrum.name=Drum of the Wild
tile.botania:shinyFlower0.name=Glimmering White Flower
tile.botania:shinyFlower1.name=Glimmering Orange Flower
tile.botania:shinyFlower2.name=Glimmering Magenta Flower
tile.botania:shinyFlower3.name=Glimmering Light Blue Flower
tile.botania:shinyFlower4.name=Glimmering Yellow Flower
tile.botania:shinyFlower5.name=Glimmering Lime Flower
tile.botania:shinyFlower6.name=Glimmering Pink Flower
tile.botania:shinyFlower7.name=Glimmering Gray Flower
tile.botania:shinyFlower8.name=Glimmering Light Gray Flower
tile.botania:shinyFlower9.name=Glimmering Cyan Flower
tile.botania:shinyFlower10.name=Glimmering Purple Flower
tile.botania:shinyFlower11.name=Glimmering Blue Flower
tile.botania:shinyFlower12.name=Glimmering Brown Flower
tile.botania:shinyFlower13.name=Glimmering Green Flower
tile.botania:shinyFlower14.name=Glimmering Red Flower
tile.botania:shinyFlower15.name=Glimmering Black Flower
# FLOWER NAMES
tile.botania:flower..name=Botania Flower
@@ -949,3 +965,8 @@ botania.page.decorativeBlocks9=Glimmering livingwood
# -- DISPENSER TWEAKS
botania.entry.dispenserTweaks=Dispenser Tweaks
botania.page.dispenserTweaks0=&1Dispensers&0, among their normal abilities, can also plant all sorts of crops, from &1Seeds&0, &1Potatos&0 or &1Carrots&0 to even &1Nether Wart&0. The crop is planted in the block right in front of the dispenser.<br>The &1Dispensers&0 can also use the &1Wand of the Forest&0 for some specific tasks such as triggering a &1Runic Altar&0.
# -- GLIMMERING FLOWERS
botania.entry.shinyFlowers=Glimmering Flowers
botania.page.shinyFlowers0=By combining your typical &1Mystical Flowers&0 with some &1Glowstone Dust&0, you can make them sparkle even brighter, and emit actual physical light, of the same brightness as a &1Glowstone Block&0.
botania.page.shinyFlowers1=Pretty Pretty Shiny Shiny