mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-12 16:27:37 +00:00
Added Fancy floating flowers.
This commit is contained in:
1 parent
c4e45a9088
commit
ffba78011d
15 files changed
+408
-2
No files matched your search
@@ -30,6 +30,7 @@ import vazkii.botania.client.gui.lexicon.GuiLexiconEntry;
|
||||
import vazkii.botania.client.gui.lexicon.GuiLexiconIndex;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.client.render.block.RenderAltar;
|
||||
import vazkii.botania.client.render.block.RenderMiniIsland;
|
||||
import vazkii.botania.client.render.block.RenderPool;
|
||||
import vazkii.botania.client.render.block.RenderPylon;
|
||||
import vazkii.botania.client.render.block.RenderSpecialFlower;
|
||||
@@ -40,6 +41,7 @@ import vazkii.botania.client.render.item.RenderLexicon;
|
||||
import vazkii.botania.client.render.tile.RenderTileAlfPortal;
|
||||
import vazkii.botania.client.render.tile.RenderTileAltar;
|
||||
import vazkii.botania.client.render.tile.RenderTileEnchanter;
|
||||
import vazkii.botania.client.render.tile.RenderTileMiniIsland;
|
||||
import vazkii.botania.client.render.tile.RenderTilePool;
|
||||
import vazkii.botania.client.render.tile.RenderTilePylon;
|
||||
import vazkii.botania.client.render.tile.RenderTileRuneAltar;
|
||||
@@ -47,6 +49,7 @@ import vazkii.botania.client.render.tile.RenderTileSpreader;
|
||||
import vazkii.botania.common.block.tile.TileAlfPortal;
|
||||
import vazkii.botania.common.block.tile.TileAltar;
|
||||
import vazkii.botania.common.block.tile.TileEnchanter;
|
||||
import vazkii.botania.common.block.tile.TileMiniIsland;
|
||||
import vazkii.botania.common.block.tile.TilePylon;
|
||||
import vazkii.botania.common.block.tile.TileRuneAltar;
|
||||
import vazkii.botania.common.block.tile.mana.TilePool;
|
||||
@@ -87,12 +90,14 @@ public class ClientProxy extends CommonProxy {
|
||||
LibRenderIDs.idSpreader = RenderingRegistry.getNextAvailableRenderId();
|
||||
LibRenderIDs.idPool = RenderingRegistry.getNextAvailableRenderId();
|
||||
LibRenderIDs.idPylon = RenderingRegistry.getNextAvailableRenderId();
|
||||
LibRenderIDs.idMiniIsland = RenderingRegistry.getNextAvailableRenderId();
|
||||
|
||||
RenderingRegistry.registerBlockHandler(new RenderAltar());
|
||||
RenderingRegistry.registerBlockHandler(new RenderSpecialFlower(LibRenderIDs.idSpecialFlower));
|
||||
RenderingRegistry.registerBlockHandler(new RenderSpreader());
|
||||
RenderingRegistry.registerBlockHandler(new RenderPool());
|
||||
RenderingRegistry.registerBlockHandler(new RenderPylon());
|
||||
RenderingRegistry.registerBlockHandler(new RenderMiniIsland());
|
||||
|
||||
MinecraftForgeClient.registerItemRenderer(ModItems.lens, new RenderLens());
|
||||
if(ConfigHandler.lexicon3dModel)
|
||||
@@ -105,6 +110,7 @@ public class ClientProxy extends CommonProxy {
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TilePylon.class, new RenderTilePylon());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEnchanter.class, new RenderTileEnchanter());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileAlfPortal.class, new RenderTileAlfPortal());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileMiniIsland.class, new RenderTileMiniIsland());
|
||||
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityPixie.class, new RenderPixie());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityVineBall.class, new RenderSnowball(ModItems.vineBall));
|
||||
|
||||
@@ -18,5 +18,6 @@ public final class LibRenderIDs {
|
||||
public static int idSpreader = -1;
|
||||
public static int idPool = -1;
|
||||
public static int idPylon = -1;
|
||||
public static int idMiniIsland = -1;
|
||||
|
||||
}
|
||||
@@ -71,6 +71,7 @@ public final class LibResources {
|
||||
public static final String MODEL_ELEMENTIUM_0 = PREFIX_MODEL + "elementium0.png";
|
||||
public static final String MODEL_ELEMENTIUM_1 = PREFIX_MODEL + "elementium1.png";
|
||||
public static final String MODEL_PIXIE = PREFIX_MODEL + "pixie.png";
|
||||
public static final String MODEL_MINI_ISLAND = PREFIX_MODEL + "miniIsland.png";
|
||||
|
||||
public static final String MODEL_CAPE = "/assets/botania/textures/model/cape.png";
|
||||
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* 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 @ [Jul 8, 2014, 10:07:54 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelMiniIsland extends ModelBase {
|
||||
|
||||
ModelRenderer island;
|
||||
|
||||
public ModelMiniIsland() {
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
setTextureOffset("island.Shape0", 0, 0);
|
||||
setTextureOffset("island.Shape1-1", 8, 0);
|
||||
setTextureOffset("island.Shape1-2", 16, 0);
|
||||
setTextureOffset("island.Shape1-3", 24, 0);
|
||||
setTextureOffset("island.Shape1-4", 32, 0);
|
||||
setTextureOffset("island.Shape2-1", 8, 6);
|
||||
setTextureOffset("island.Shape2-2", 16, 6);
|
||||
setTextureOffset("island.Shape2-3", 24, 6);
|
||||
setTextureOffset("island.Shape2-4", 32, 6);
|
||||
setTextureOffset("island.Shape2-5", 8, 11);
|
||||
setTextureOffset("island.Shape2-6", 16, 11);
|
||||
setTextureOffset("island.Shape2-7", 24, 11);
|
||||
setTextureOffset("island.Shape2-8", 32, 11);
|
||||
setTextureOffset("island.Shape3-1", 8, 16);
|
||||
setTextureOffset("island.Shape3-2", 16, 16);
|
||||
setTextureOffset("island.Shape3-3", 24, 16);
|
||||
setTextureOffset("island.Shape3-4", 32, 16);
|
||||
setTextureOffset("island.Shape3-5", 8, 20);
|
||||
setTextureOffset("island.Shape3-6", 16, 20);
|
||||
setTextureOffset("island.Shape3-7", 24, 20);
|
||||
setTextureOffset("island.Shape3-8", 32, 20);
|
||||
setTextureOffset("island.Shape4-1", 8, 24);
|
||||
setTextureOffset("island.Shape4-2", 16, 24);
|
||||
setTextureOffset("island.Shape4-3", 24, 24);
|
||||
setTextureOffset("island.Shape4-4", 32, 24);
|
||||
|
||||
island = new ModelRenderer(this, "island");
|
||||
island.setRotationPoint(0F, 16F, 0F);
|
||||
// island.mirror = true;
|
||||
island.addBox("Shape0", -1F, 0F, -1F, 2, 5, 2);
|
||||
island.addBox("Shape1-1", -1F, 0F, -3F, 2, 4, 2);
|
||||
island.addBox("Shape1-2", 1F, 0F, -1F, 2, 4, 2);
|
||||
island.addBox("Shape1-3", -1F, 0F, 1F, 2, 4, 2);
|
||||
island.addBox("Shape1-4", -3F, 0F, -1F, 2, 4, 2);
|
||||
island.addBox("Shape2-1", -1F, 0F, -5F, 2, 3, 2);
|
||||
island.addBox("Shape2-2", 3F, 0F, -1F, 2, 3, 2);
|
||||
island.addBox("Shape2-3", -1F, 0F, 3F, 2, 3, 2);
|
||||
island.addBox("Shape2-4", -5F, 0F, -1F, 2, 3, 2);
|
||||
island.addBox("Shape2-5", 1F, 0F, -3F, 2, 3, 2);
|
||||
island.addBox("Shape2-6", 1F, 0F, 1F, 2, 3, 2);
|
||||
island.addBox("Shape2-7", -3F, 0F, 1F, 2, 3, 2);
|
||||
island.addBox("Shape2-8", -3F, 0F, -3F, 2, 3, 2);
|
||||
island.addBox("Shape3-1", 1F, 0F, -5F, 2, 2, 2);
|
||||
island.addBox("Shape3-2", 3F, 0F, 1F, 2, 2, 2);
|
||||
island.addBox("Shape3-3", -3F, 0F, 3F, 2, 2, 2);
|
||||
island.addBox("Shape3-4", -5F, 0F, -3F, 2, 2, 2);
|
||||
island.addBox("Shape3-5", 3F, 0F, -3F, 2, 2, 2);
|
||||
island.addBox("Shape3-6", 1F, 0F, 3F, 2, 2, 2);
|
||||
island.addBox("Shape3-7", -5F, 0F, 1F, 2, 2, 2);
|
||||
island.addBox("Shape3-8", -3F, 0F, -5F, 2, 2, 2);
|
||||
island.addBox("Shape4-1", 3F, 0F, -5F, 2, 1, 2);
|
||||
island.addBox("Shape4-2", 3F, 0F, 3F, 2, 1, 2);
|
||||
island.addBox("Shape4-3", -5F, 0F, 3F, 2, 1, 2);
|
||||
island.addBox("Shape4-4", -5F, 0F, -5F, 2, 1, 2);
|
||||
}
|
||||
|
||||
public void render() {
|
||||
island.render(1F / 16F);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 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 @ [Jul 8, 2014, 11:05:38 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.client.render.tile.RenderTileMiniIsland;
|
||||
import vazkii.botania.client.render.tile.RenderTilePool;
|
||||
import vazkii.botania.common.block.tile.TileMiniIsland;
|
||||
import vazkii.botania.common.block.tile.mana.TilePool;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderMiniIsland implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
float s = 1.4F;
|
||||
GL11.glScalef(s, s, s);
|
||||
GL11.glRotatef(-5F, 1F, 0F, 0F);
|
||||
RenderTileMiniIsland.forcedMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileMiniIsland(), 0.0D, 0.0D, 0.0D, 0.0F);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return LibRenderIDs.idMiniIsland;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* 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 @ [Jul 8, 2014, 10:58:46 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.render.tile;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import vazkii.botania.client.model.ModelMiniIsland;
|
||||
import vazkii.botania.common.block.BlockModFlower;
|
||||
|
||||
public class RenderTileMiniIsland extends TileEntitySpecialRenderer {
|
||||
|
||||
private static final ResourceLocation texture = new ResourceLocation(LibResources.MODEL_MINI_ISLAND);
|
||||
private static final ModelMiniIsland model = new ModelMiniIsland();
|
||||
|
||||
public static int forcedMetadata = 0;
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tile, double d0, double d1, double d2, float t) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glColor4f(1F, 1F, 1F, 1F);
|
||||
GL11.glTranslated(d0, d1, d2);
|
||||
|
||||
int worldTime = (int) (tile.getWorldObj() == null ? 0 : tile.getWorldObj().getTotalWorldTime());
|
||||
if(tile.getWorldObj() != null)
|
||||
worldTime += new Random(tile.xCoord ^ tile.yCoord ^ tile.zCoord).nextInt(360);
|
||||
|
||||
GL11.glTranslatef(0.5F, 0F, 0.5F);
|
||||
GL11.glRotatef(-((float) worldTime * 0.5F), 0F, 1F, 0F);
|
||||
GL11.glTranslatef(-0.5F, 0F, -0.5F);
|
||||
|
||||
if(tile.getWorldObj() != null) {
|
||||
GL11.glTranslatef(0F, (float) Math.sin((double) worldTime * 0.05F) * 0.1F, 0F);
|
||||
GL11.glRotatef(4F * (float) Math.sin((double) worldTime * 0.04F), 1F, 0F, 0F);
|
||||
}
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(0.5F, 1.4F, 0.5F);
|
||||
GL11.glScalef(1F, -1F, -1F);
|
||||
model.render();
|
||||
GL11.glPopMatrix();
|
||||
|
||||
int meta = tile.getWorldObj() == null ? forcedMetadata : tile.getBlockMetadata();
|
||||
IIcon icon = BlockModFlower.icons[meta];
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
float f = icon.getMinU();
|
||||
float f1 = icon.getMaxU();
|
||||
float f2 = icon.getMinV();
|
||||
float f3 = icon.getMaxV();
|
||||
GL11.glTranslatef(0.25F, 0.4F, 0.5F);
|
||||
GL11.glScalef(0.5F, 0.5F, 0.5F);
|
||||
ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, icon.getIconWidth(), icon.getIconHeight(), 1F / 32F);
|
||||
GL11.glColor3f(1F, 1F, 1F);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
* 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 @ [Jul 8, 2014, 10:16:53 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.block;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.passive.EntitySheep;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.block.tile.TileMiniIsland;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.item.block.ItemBlockWithMetadataAndName;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class BlockMiniIsland extends BlockModContainer implements ILexiconable {
|
||||
|
||||
public BlockMiniIsland() {
|
||||
super(Material.ground);
|
||||
setBlockName(LibBlockNames.MINI_ISLAND);
|
||||
setHardness(0.5F);
|
||||
setStepSound(soundTypeGravel);
|
||||
setTickRandomly(true);
|
||||
setLightLevel(1F);
|
||||
|
||||
float f = 0.1F;
|
||||
setBlockBounds(f, f, f, 1F - f, 1F - f, 1F - f);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldRegisterInNameSet() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setBlockName(String par1Str) {
|
||||
GameRegistry.registerBlock(this, ItemBlockWithMetadataAndName.class, par1Str);
|
||||
return super.setBlockName(par1Str);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
int meta = par1World.getBlockMetadata(par2, par3, par4);
|
||||
float[] color = EntitySheep.fleeceColorTable[meta];
|
||||
|
||||
if(par5Random.nextDouble() < ConfigHandler.flowerParticleFrequency)
|
||||
Botania.proxy.sparkleFX(par1World, par2 + 0.3 + par5Random.nextFloat() * 0.5, par3 + 0.5 + par5Random.nextFloat() * 0.5, par4 + 0.3 + par5Random.nextFloat() * 0.5, color[0], color[1], color[2], par5Random.nextFloat(), 5);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister par1IconRegister) {
|
||||
// NO-OP
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubBlocks(Item par1, CreativeTabs par2, List par3) {
|
||||
for(int i = 0; i < 16; i++)
|
||||
par3.add(new ItemStack(par1, 1, i));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(int par1) {
|
||||
return par1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
return Blocks.dirt.getIcon(par1, par2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return LibRenderIDs.idMiniIsland;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileMiniIsland();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.shinyFlowers;
|
||||
}
|
||||
}
|
||||
@@ -82,6 +82,7 @@ import vazkii.botania.common.block.tile.TileBifrost;
|
||||
import vazkii.botania.common.block.tile.TileEnchanter;
|
||||
import vazkii.botania.common.block.tile.TileForestEye;
|
||||
import vazkii.botania.common.block.tile.TileManaBeacon;
|
||||
import vazkii.botania.common.block.tile.TileMiniIsland;
|
||||
import vazkii.botania.common.block.tile.TileOpenCrate;
|
||||
import vazkii.botania.common.block.tile.TilePlatform;
|
||||
import vazkii.botania.common.block.tile.TilePylon;
|
||||
@@ -135,6 +136,7 @@ public final class ModBlocks {
|
||||
public static Block buriedPetals;
|
||||
public static Block prismarine;
|
||||
public static Block seaLamp;
|
||||
public static Block miniIsland;
|
||||
|
||||
public static Block livingwoodStairs;
|
||||
public static Block livingwoodSlab;
|
||||
@@ -224,6 +226,7 @@ public final class ModBlocks {
|
||||
buriedPetals = new BlockBuriedPetals();
|
||||
prismarine = new BlockPrismarine();
|
||||
seaLamp = new BlockSeaLamp();
|
||||
miniIsland = new BlockMiniIsland();
|
||||
|
||||
livingwoodStairs = new BlockLivingwoodStairs();
|
||||
livingwoodSlab = new BlockLivingwoodSlab(false);
|
||||
@@ -360,6 +363,7 @@ public final class ModBlocks {
|
||||
registerTile(TilePlatform.class, LibBlockNames.PLATFORM);
|
||||
registerTile(TileAlfPortal.class, LibBlockNames.ALF_PORTAL);
|
||||
registerTile(TileBifrost.class, LibBlockNames.BIFROST);
|
||||
registerTile(TileMiniIsland.class, LibBlockNames.MINI_ISLAND);
|
||||
|
||||
BotaniaAPI.registerSubTile(LibBlockNames.SUBTILE_PUREDAISY, SubTilePureDaisy.class);
|
||||
BotaniaAPI.registerSubTile(LibBlockNames.SUBTILE_MANASTAR, SubTileManastar.class);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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 @ [Jul 8, 2014, 10:17:28 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.block.tile;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileMiniIsland extends TileEntity {
|
||||
|
||||
@Override
|
||||
public boolean canUpdate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -85,6 +85,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addBlock(ModBlocks.pylon);
|
||||
addBlock(ModBlocks.pistonRelay);
|
||||
addBlock(ModBlocks.shinyFlower);
|
||||
addBlock(ModBlocks.miniIsland);
|
||||
addBlock(ModBlocks.unstableBlock);
|
||||
addBlock(ModBlocks.manaBeacon);
|
||||
addItem(ModItems.signalFlare);
|
||||
|
||||
@@ -159,6 +159,7 @@ public final class ModCrafingRecipes {
|
||||
public static IRecipe recipeLensInfluence;
|
||||
public static IRecipe recipeLensWeight;
|
||||
public static IRecipe recipeLensPaint;
|
||||
public static List<IRecipe> recipesMiniIsland;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -959,6 +960,15 @@ public final class ModCrafingRecipes {
|
||||
'L', new ItemStack(ModItems.lens));
|
||||
recipeLensPaint = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Mini Island Recipes
|
||||
for(int i = 0; i < 16; i++)
|
||||
GameRegistry.addRecipe(new ItemStack(ModBlocks.miniIsland, 1, i),
|
||||
"F", "S", "D",
|
||||
'F', new ItemStack(ModBlocks.shinyFlower, 1, i),
|
||||
'S', new ItemStack(ModItems.grassSeeds),
|
||||
'D', new ItemStack(Blocks.dirt));
|
||||
recipesMiniIsland = BotaniaAPI.getLatestAddedRecipes(16);
|
||||
|
||||
// Mana and Terrasteel Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -518,7 +518,7 @@ public final class LexiconData {
|
||||
dispenserTweaks.setLexiconPages(new PageText("0"));
|
||||
|
||||
shinyFlowers = new BLexiconEntry(LibLexicon.MISC_SHINY_FLOWERS, categoryMisc);
|
||||
shinyFlowers.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesShinyFlowers));
|
||||
shinyFlowers.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesShinyFlowers), new PageCraftingRecipe("2", ModCrafingRecipes.recipesMiniIsland));
|
||||
|
||||
prismarine = new BLexiconEntry(LibLexicon.MISC_PRISMARINE, categoryMisc);
|
||||
prismarine.setLexiconPages(new PageText("0"), new PageText("1"), new PageManaInfusionRecipe("2", ModManaAlchemyRecipes.prismarineRecipe), new PageCraftingRecipe("3", ModCrafingRecipes.recipePrismarine), new PageCraftingRecipe("4", ModCrafingRecipes.recipePrismarineBrick), new PageCraftingRecipe("5", ModCrafingRecipes.recipeDarkPrismarine), new PageCraftingRecipe("6", ModCrafingRecipes.recipeSeaLamp));
|
||||
|
||||
@@ -47,6 +47,7 @@ public final class LibBlockNames {
|
||||
public static final String BURIED_PETALS = "buriedPetals";
|
||||
public static final String PRISMARINE = "prismarine";
|
||||
public static final String SEA_LAMP = "seaLamp";
|
||||
public static final String MINI_ISLAND = "miniIsland";
|
||||
|
||||
public static final String SPECIAL_FLOWER_PREFIX = FLOWER + ".";
|
||||
|
||||
|
||||
@@ -315,6 +315,22 @@ tile.botania:prismarine1Slab.name=Prismarine Brick Slab
|
||||
tile.botania:prismarine2Stairs.name=Dark Prismarine Stairs
|
||||
tile.botania:prismarine2Slab.name=Dark Prismarine Slab
|
||||
tile.botania:seaLamp.name=Sea Lantern
|
||||
tile.botania:miniIsland0.name=Floating White Flower
|
||||
tile.botania:miniIsland1.name=Floating Orange Flower
|
||||
tile.botania:miniIsland2.name=Floating Magenta Flower
|
||||
tile.botania:miniIsland3.name=Floating Light Blue Flower
|
||||
tile.botania:miniIsland4.name=Floating Yellow Flower
|
||||
tile.botania:miniIsland5.name=Floating Lime Flower
|
||||
tile.botania:miniIsland6.name=Floating Pink Flower
|
||||
tile.botania:miniIsland7.name=Floating Gray Flower
|
||||
tile.botania:miniIsland8.name=Floating Light Gray Flower
|
||||
tile.botania:miniIsland9.name=Floating Cyan Flower
|
||||
tile.botania:miniIsland10.name=Floating Purple Flower
|
||||
tile.botania:miniIsland11.name=Floating Blue Flower
|
||||
tile.botania:miniIsland12.name=Floating Brown Flower
|
||||
tile.botania:miniIsland13.name=Floating Green Flower
|
||||
tile.botania:miniIsland14.name=Floating Red Flower
|
||||
tile.botania:miniIsland15.name=Floating Black Flower
|
||||
|
||||
# FLOWER NAMES
|
||||
tile.botania:flower..name=Botania Flower
|
||||
@@ -1302,8 +1318,9 @@ botania.page.dispenserTweaks0=&1Dispensers&0, among their normal abilities, can
|
||||
|
||||
# -- 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.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.<br>With some &1Dirt&0 and &1Pasture Seeds&0 it's possible to turn them into a miniature floating island that will, not only emit light, but also look very fancy indeed.
|
||||
botania.page.shinyFlowers1=Pretty Pretty Shiny Shiny
|
||||
botania.page.shinyFlowers2=Like Laputa but (a lot) tinier
|
||||
|
||||
# -- PRISMARINE
|
||||
botania.entry.prismarine=Prismarine
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
Reference in new issue
Block a user