mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Recipe/docs for the Spark Tinkerer.
This commit is contained in:
1 parent
3d1212bd8e
commit
98bf5306db
7 files changed
+33
-2
No files matched your search
@@ -23,15 +23,18 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.core.helper.IconHelper;
|
||||
import vazkii.botania.common.block.tile.TileSimpleInventory;
|
||||
import vazkii.botania.common.block.tile.TileSparkChanger;
|
||||
import vazkii.botania.common.block.tile.TileTerraPlate;
|
||||
import vazkii.botania.common.block.tile.string.TileRedStringDispenser;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockSparkChanger extends BlockModContainer {
|
||||
public class BlockSparkChanger extends BlockModContainer implements ILexiconable {
|
||||
|
||||
IIcon[] icons;
|
||||
Random random;
|
||||
@@ -156,5 +159,10 @@ public class BlockSparkChanger extends BlockModContainer {
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileSparkChanger();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.sparkChanger;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
package vazkii.botania.common.block.tile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -52,6 +53,9 @@ public class TileSparkChanger extends TileSimpleInventory {
|
||||
ItemStack sparkStack = upg == 0 ? null : new ItemStack(ModItems.sparkUpgrade, 1, upg - 1);
|
||||
int newUpg = changeStack == null ? 0 : changeStack.getItemDamage() + 1;
|
||||
spark.setUpgrade(newUpg);
|
||||
Collection transfers = spark.getTransfers();
|
||||
if(transfers != null)
|
||||
transfers.clear();
|
||||
setInventorySlotContents(0, sparkStack);
|
||||
markDirty();
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeHourglass;
|
||||
public static IRecipe recipeGhostRail;
|
||||
public static IRecipe recipeCanopyDrum;
|
||||
public static IRecipe recipeSparkChanger;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1765,6 +1766,14 @@ public final class ModCraftingRecipes {
|
||||
'H', new ItemStack(ModItems.grassHorn, 1, 1));
|
||||
recipeCanopyDrum = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Spark Changer Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.sparkChanger),
|
||||
"ESE", "SRS",
|
||||
'S', LibOreDict.LIVING_ROCK,
|
||||
'E', LibOreDict.ELEMENTIUM,
|
||||
'R', new ItemStack(Items.redstone));
|
||||
recipeSparkChanger = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Storage Block/Nugget Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -318,7 +318,6 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
@Override
|
||||
public Collection<ISparkEntity> getTransfers() {
|
||||
Collection<ISparkEntity> removals = new ArrayList();
|
||||
new NBTTagList();
|
||||
|
||||
for(ISparkEntity e : transfers) {
|
||||
ISparkEntity spark = e;
|
||||
|
||||
@@ -89,6 +89,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry rfGenerator;
|
||||
public static LexiconEntry prism;
|
||||
public static LexiconEntry poolCart;
|
||||
public static LexiconEntry sparkChanger;
|
||||
|
||||
public static LexiconEntry functionalIntro;
|
||||
public static LexiconEntry flowerShrinking;
|
||||
@@ -398,6 +399,9 @@ public final class LexiconData {
|
||||
poolCart = new BLexiconEntry(LibLexicon.MANA_POOL_CART, categoryMana);
|
||||
poolCart.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipePoolCart), new PageCraftingRecipe("4", ModCraftingRecipes.recipePump));
|
||||
|
||||
sparkChanger = new ALexiconEntry(LibLexicon.MANA_SPARK_CHANGER, categoryMana);
|
||||
sparkChanger.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeSparkChanger));
|
||||
|
||||
// FUNCTIONAL FLOWERS ENTRIES
|
||||
functionalIntro = new BLexiconEntry(LibLexicon.FFLOWER_INTRO, categoryFunctionalFlowers);
|
||||
functionalIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageCraftingRecipe("4", ModCraftingRecipes.recipeRedstoneRoot)).setIcon(null);;
|
||||
|
||||
@@ -59,6 +59,7 @@ public final class LibLexicon {
|
||||
public static final String MANA_SPARK_UPGRADES = "sparkUpgrades";
|
||||
public static final String MANA_PRISM = "prism";
|
||||
public static final String MANA_POOL_CART = "poolCart";
|
||||
public static final String MANA_SPARK_CHANGER = "sparkChanger";
|
||||
|
||||
public static final String FFLOWER_INTRO = "fIntro";
|
||||
public static final String FFLOWER_SHRINKING = "flowerShrinking";
|
||||
|
||||
@@ -1676,6 +1676,12 @@ botania.page.poolCart2=The side of the pump where the &4Mana&0 will go towards i
|
||||
botania.page.poolCart3=I like trains
|
||||
botania.page.poolCart4=This is not a pipe
|
||||
|
||||
# -- SPARK TINKERER
|
||||
botania.entry.sparkChanger=Spark Tinkerer
|
||||
botania.page.sparkChanger0=The &1Spark Tinkerer&0 is a block with the ability to modify the &1Augments&0 placed on &1Sparks&0. Placing it adjacent to &1Mana Pools&0 or other blocks with a &1Spark&0 attached will connect it to those blocks.<br>Right clicking the &1Spark Tinkerer&0 with a &1Spark Augment&0 will put the augment in the block, it can be removed by right clicking again.
|
||||
botania.page.sparkChanger1=When the &1Spark Tinkerer&0 gets a redstone signal it'll randomly pick a &1Spark&0, between all of those it's connected to that have a different augment from the one stored in it, and swap the augment in that &1Spark&0 with the one stored in the block.<br>The stored augment can be withdrawn or deposited with &1Hoppers&0 or other automation methods.
|
||||
botania.page.sparkChanger2=Hahahaha, water fire...
|
||||
|
||||
# - FUNCTIONAL FLOWERS
|
||||
# -- AN INTRODUCTION TO FUNCTION
|
||||
botania.entry.fIntro=An Introduction to Function
|
||||
|
||||
Reference in new issue
Block a user