mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Added the Mana Void.
This commit is contained in:
1 parent
0063c3ff10
commit
eef3471064
12 files changed
+112
-1
No files matched your search
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 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 @ [Mar 5, 2014, 12:55:47 AM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.block;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.common.block.tile.TileManaVoid;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockIDs;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockManaVoid extends BlockModContainer implements ILexiconable {
|
||||
|
||||
protected BlockManaVoid() {
|
||||
super(LibBlockIDs.idManaVoid, Material.rock);
|
||||
setHardness(2.0F);
|
||||
setResistance(10.0F);
|
||||
setStepSound(soundStoneFootstep);
|
||||
setUnlocalizedName(LibBlockNames.MANA_VOID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world) {
|
||||
return new TileManaVoid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.manaVoid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -26,6 +26,7 @@ import vazkii.botania.common.block.subtile.generating.SubTileHydroangeas;
|
||||
import vazkii.botania.common.block.tile.TileAltar;
|
||||
import vazkii.botania.common.block.tile.TileDistributor;
|
||||
import vazkii.botania.common.block.tile.TileManaBeacon;
|
||||
import vazkii.botania.common.block.tile.TileManaVoid;
|
||||
import vazkii.botania.common.block.tile.TilePool;
|
||||
import vazkii.botania.common.block.tile.TilePylon;
|
||||
import vazkii.botania.common.block.tile.TileRuneAltar;
|
||||
@@ -51,6 +52,7 @@ public final class ModBlocks {
|
||||
public static Block pistonRelay;
|
||||
public static Block distributor;
|
||||
public static Block manaBeacon;
|
||||
public static Block manaVoid;
|
||||
|
||||
public static void init() {
|
||||
flower = new BlockModFlower();
|
||||
@@ -66,6 +68,7 @@ public final class ModBlocks {
|
||||
pistonRelay = new BlockPistonRelay();
|
||||
distributor = new BlockDistributor();
|
||||
manaBeacon = new BlockManaBeacon();
|
||||
manaVoid = new BlockManaVoid();
|
||||
|
||||
for(int i = 0; i < 16; i++)
|
||||
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower.blockID, 1, i));
|
||||
@@ -86,6 +89,7 @@ public final class ModBlocks {
|
||||
GameRegistry.registerTileEntity(TilePylon.class, LibBlockNames.PYLON);
|
||||
GameRegistry.registerTileEntity(TileDistributor.class, LibBlockNames.DISTRIBUTOR);
|
||||
GameRegistry.registerTileEntity(TileManaBeacon.class, LibBlockNames.MANA_BEACON);
|
||||
GameRegistry.registerTileEntity(TileManaVoid.class, LibBlockNames.MANA_VOID);
|
||||
|
||||
BotaniaAPI.registerSubTile(LibBlockNames.SUBTILE_PUREDAISY, SubTilePureDaisy.class);
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 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 @ [Mar 5, 2014, 12:59:27 AM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.block.tile;
|
||||
|
||||
import vazkii.botania.api.mana.IManaReceiver;
|
||||
|
||||
public class TileManaVoid extends TileMod implements IManaReceiver {
|
||||
|
||||
@Override
|
||||
public int getCurrentMana() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFull() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void recieveMana(int mana) {
|
||||
// All your mana is belong to the void
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRecieveManaFromBursts() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -63,6 +63,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
|
||||
addBlock(ModBlocks.pool);
|
||||
addBlock(ModBlocks.distributor);
|
||||
addBlock(ModBlocks.manaVoid);
|
||||
addBlock(ModBlocks.spreader);
|
||||
addItem(ModItems.lens);
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ public final class ConfigHandler {
|
||||
LibBlockIDs.idPistonRelay = loadBlock(LibBlockNames.PISTON_RELAY, LibBlockIDs.idPistonRelay);
|
||||
LibBlockIDs.idDistributor = loadBlock(LibBlockNames.DISTRIBUTOR, LibBlockIDs.idDistributor);
|
||||
LibBlockIDs.idManaBeacon = loadBlock(LibBlockNames.MANA_BEACON, LibBlockIDs.idManaBeacon);
|
||||
LibBlockIDs.idManaVoid = loadBlock(LibBlockNames.MANA_VOID, LibBlockIDs.idManaVoid);
|
||||
|
||||
// Item IDs
|
||||
LibItemIDs.idLexicon = loadItem(LibItemNames.LEXICON, LibItemIDs.idLexicon);
|
||||
|
||||
@@ -63,6 +63,7 @@ public final class ModCrafingRecipes {
|
||||
public static IRecipe livingwoodDecorRecipe4;
|
||||
public static List<IRecipe> recipesManaBeacons;
|
||||
public static List<IRecipe> recipesSignalFlares;
|
||||
public static IRecipe recipeManaVoid;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -247,6 +248,13 @@ public final class ModCrafingRecipes {
|
||||
'I', "ingotIron",
|
||||
'W', LibOreDict.LIVING_WOOD);
|
||||
recipesSignalFlares = BotaniaAPI.getLatestAddedRecipes(16);
|
||||
|
||||
// MANA VOID RECIPE
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.manaVoid),
|
||||
"SSS", "O O", "SSS",
|
||||
'S', LibOreDict.LIVING_ROCK,
|
||||
'O', new ItemStack(Block.obsidian));
|
||||
recipeManaVoid = BotaniaAPI.getLatestAddedRecipe();
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
|
||||
@@ -48,6 +48,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry spreader;
|
||||
public static LexiconEntry pool;
|
||||
public static LexiconEntry distributor;
|
||||
public static LexiconEntry manaVoid;
|
||||
public static LexiconEntry lensVelocity;
|
||||
public static LexiconEntry lensPotency;
|
||||
public static LexiconEntry lensResistance;
|
||||
@@ -141,6 +142,9 @@ public final class LexiconData {
|
||||
lensDamaging = new BLexiconEntry(LibLexicon.MANA_LENS_DAMAGING, categoryMana);
|
||||
lensDamaging.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeLensDamaging));
|
||||
|
||||
manaVoid = new BLexiconEntry(LibLexicon.MANA_VOID, categoryMana);
|
||||
manaVoid.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeManaVoid));
|
||||
|
||||
// FUNCTIONAL FLOWERS ENTRIES
|
||||
functionalIntro = new BLexiconEntry(LibLexicon.FFLOWER_INTRO, categoryFunctionalFlowers);
|
||||
functionalIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"));
|
||||
|
||||
@@ -26,5 +26,6 @@ public final class LibBlockIDs {
|
||||
public static int idPistonRelay = 1965;
|
||||
public static int idDistributor = 1966;
|
||||
public static int idManaBeacon = 1967;
|
||||
public static int idManaVoid = 1968;
|
||||
|
||||
}
|
||||
@@ -28,6 +28,7 @@ public final class LibBlockNames {
|
||||
public static final String PISTON_RELAY = LibResources.PREFIX_MOD + "pistonRelay";
|
||||
public static final String DISTRIBUTOR = LibResources.PREFIX_MOD + "distributor";
|
||||
public static final String MANA_BEACON = LibResources.PREFIX_MOD + "manaBeacon";
|
||||
public static final String MANA_VOID = LibResources.PREFIX_MOD + "manaVoid";
|
||||
|
||||
public static final String SPECIAL_FLOWER_PREFIX = FLOWER + ".";
|
||||
|
||||
|
||||
@@ -42,7 +42,8 @@ public final class LibLexicon {
|
||||
public static final String MANA_LENS_GRAVITY = "lensGravity";
|
||||
public static final String MANA_LENS_BORE = "lensBore";
|
||||
public static final String MANA_LENS_DAMAGING = "lensDamaging";
|
||||
|
||||
public static final String MANA_VOID = "manaVoid";
|
||||
|
||||
public static final String FFLOWER_INTRO = "fIntro";
|
||||
public static final String FFLOWER_JADED_AMARANTHUS = "jadedAmaranthus";
|
||||
public static final String FFLOWER_BELLETHORNE = "bellethorne";
|
||||
|
||||
@@ -97,6 +97,7 @@ tile.botania:manaBeacon12.name=Brown Unstable Beacon
|
||||
tile.botania:manaBeacon13.name=Green Unstable Beacon
|
||||
tile.botania:manaBeacon14.name=Red Unstable Beacon
|
||||
tile.botania:manaBeacon15.name=Black Unstable Beacon
|
||||
tile.botania:manaVoid.name=Mana Void
|
||||
|
||||
# FLOWER NAMES
|
||||
tile.botania:flower..name=Botania Flower
|
||||
@@ -301,6 +302,11 @@ botania.entry.distributor=Mana Distributor
|
||||
botania.page.distributor0=Any botanist will eventually reach a point where a single &1Mana Pool&0 setup is not enough.<br>The &1Mana Distributor&0 will fix all those issues. By placing it adjacently to a few &1Mana Pools&0 on it's sides, when it receives &4Mana&0 through &4Mana Bursts&0 it'll equally spread it to the adjacent pools.
|
||||
botania.page.distributor1=Crafting the distributor
|
||||
|
||||
# -- MANA VOID
|
||||
botania.entry.manaVoid=Mana Void
|
||||
botania.page.manaVoid0=The &1Mana Void&0 is, in layman's terms, the grave for &4Mana&0. Any &4Mana&0 shot into this block will simply vanish into the void, never to be seen again.
|
||||
botania.page.manaVoid1=Crafting the void block
|
||||
|
||||
# -- MANA LENS: VELOCITY
|
||||
botania.entry.lensVelocity=Mana Lens: Velocity
|
||||
botania.page.lensVelocity0=The &1Velocity Lens&0 will drastically increase the speed at which a &4Mana Burst&0 travels, but not only does the beam start to lose it's &4Mana&0 a lot faster, it can also carry a bit less.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Reference in new issue
Block a user