mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
Added the Rod of the Highlands.
This commit is contained in:
1 parent
e8ad9fffd7
commit
d158340c35
11 files changed
+106
-5
No files matched your search
@@ -62,6 +62,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addItem(ModItems.rune);
|
||||
|
||||
addItem(ModItems.dirtRod);
|
||||
addItem(ModItems.skyDirtRod);
|
||||
addItem(ModItems.terraformRod);
|
||||
addItem(ModItems.laputaShard);
|
||||
addItem(ModItems.grassHorn);
|
||||
|
||||
@@ -167,6 +167,7 @@ public final class ModCrafingRecipes {
|
||||
public static IRecipe recipeVirusZombie;
|
||||
public static IRecipe recipeVirusSkeleton;
|
||||
public static IRecipe recipeReachRing;
|
||||
public static IRecipe recipeSkyDirtRod;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1023,6 +1024,10 @@ public final class ModCrafingRecipes {
|
||||
'E', LibOreDict.ELEMENTIUM);
|
||||
recipeReachRing = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Rod of the Highlands Recipe
|
||||
addShapelessOreDictRecipe(new ItemStack(ModItems.skyDirtRod), new ItemStack(ModItems.dirtRod), LibOreDict.PIXIE_DUST, LibOreDict.RUNE[3]);
|
||||
recipeSkyDirtRod = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Mana and Terrasteel Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -25,14 +25,18 @@ import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemDirtRod extends ItemMod implements IManaUsingItem {
|
||||
|
||||
private static final int COST = 75;
|
||||
static final int COST = 75;
|
||||
|
||||
public ItemDirtRod() {
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
setUnlocalizedName(LibItemNames.DIRT_ROD);
|
||||
this(LibItemNames.DIRT_ROD);
|
||||
}
|
||||
|
||||
public ItemDirtRod(String name) {
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
setUnlocalizedName(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
|
||||
if(ManaItemHandler.requestManaExact(par1ItemStack, par2EntityPlayer, COST, false)) {
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 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 23, 2014, 1:06:51 AM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.item;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemSkyDirtRod extends ItemDirtRod {
|
||||
|
||||
public ItemSkyDirtRod() {
|
||||
super(LibItemNames.SKY_DIRT_ROD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if(!world.isRemote && ManaItemHandler.requestManaExact(stack, player, COST * 2, false)) {
|
||||
Vector3 playerVec = Vector3.fromEntityCenter(player);
|
||||
Vector3 lookVec = new Vector3(player.getLookVec()).multiply(3);
|
||||
Vector3 placeVec = playerVec.copy().add(lookVec);
|
||||
|
||||
int x = (int) MathHelper.floor_double(placeVec.x);
|
||||
int y = (int) MathHelper.floor_double(placeVec.y) + 1;
|
||||
int z = (int) MathHelper.floor_double(placeVec.z);
|
||||
|
||||
int entities = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1)).size();
|
||||
|
||||
if(entities == 0) {
|
||||
ItemStack stackToPlace = new ItemStack(Blocks.dirt);
|
||||
stackToPlace.tryPlaceItemIntoWorld(player, world, x, y, z, 0, 0F, 0F, 0F);
|
||||
|
||||
if(stackToPlace.stackSize == 0) {
|
||||
ManaItemHandler.requestManaExact(stack, player, COST * 2, true);
|
||||
for(int i = 0; i < 6; i++)
|
||||
Botania.proxy.sparkleFX(world, x + Math.random(), y + Math.random(), z + Math.random(), 0.35F, 0.2F, 0.05F, 1F, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(world.isRemote)
|
||||
player.swingItem();
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -135,6 +135,7 @@ public final class ModItems {
|
||||
public static Item laputaShard;
|
||||
public static Item virus;
|
||||
public static Item reachRing;
|
||||
public static Item skyDirtRod;
|
||||
|
||||
public static void init() {
|
||||
lexicon = new ItemLexicon();
|
||||
@@ -211,7 +212,8 @@ public final class ModItems {
|
||||
laputaShard = new ItemLaputaShard();
|
||||
virus = new ItemVirus();
|
||||
reachRing = new ItemReachRing();
|
||||
|
||||
skyDirtRod = new ItemSkyDirtRod();
|
||||
|
||||
OreDictionary.registerOre(LibOreDict.LEXICON, lexicon);
|
||||
for(int i = 0; i < 16; i++) {
|
||||
OreDictionary.registerOre(LibOreDict.PETAL[i], new ItemStack(petal, 1, i));
|
||||
|
||||
@@ -135,6 +135,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry vineBall;
|
||||
public static LexiconEntry laputaShard;
|
||||
public static LexiconEntry virus;
|
||||
public static LexiconEntry skyDirtRod;
|
||||
|
||||
public static LexiconEntry baublesIntro;
|
||||
public static LexiconEntry tinyPlanet;
|
||||
@@ -462,6 +463,9 @@ public final class LexiconData {
|
||||
virus = new ALexiconEntry(LibLexicon.TOOL_VIRUS, categoryTools);
|
||||
virus.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeVirusZombie), new PageCraftingRecipe("2", ModCrafingRecipes.recipeVirusSkeleton));
|
||||
|
||||
skyDirtRod = new ALexiconEntry(LibLexicon.TOOL_SKY_DIRT_ROD, categoryTools);
|
||||
skyDirtRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeSkyDirtRod));
|
||||
|
||||
// BAUBLES ENTRIES
|
||||
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
|
||||
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
|
||||
|
||||
@@ -87,6 +87,7 @@ public final class LibItemNames {
|
||||
public static final String LAPUTA_SHARD = "laputaShard";
|
||||
public static final String VIRUS = "virus";
|
||||
public static final String REACH_RING = "reachRing";
|
||||
public static final String SKY_DIRT_ROD = "skyDirtRod";
|
||||
|
||||
public static final String[] LENS_NAMES = new String[] {
|
||||
"lensNormal",
|
||||
|
||||
@@ -112,6 +112,7 @@ public final class LibLexicon {
|
||||
public static final String TOOL_VINE_BALL = "vineBall";
|
||||
public static final String TOOL_LAPUTA_SHARD = "laputaShard";
|
||||
public static final String TOOL_VIRUS = "virus";
|
||||
public static final String TOOL_SKY_DIRT_ROD = "skyDirtRod";
|
||||
|
||||
public static final String BAUBLE_INTRO = "bIntro";
|
||||
public static final String BAUBLE_TINY_PLANET = "tinyPlanet";
|
||||
|
||||
@@ -612,6 +612,7 @@ item.botania:prismarineShard.name=Prismarine Shard
|
||||
item.botania:laputaShard.name=Shard of Laputa
|
||||
item.botania:virus0.name=Necrodermal Virus
|
||||
item.botania:virus1.name=Nullodermal Virus
|
||||
item.botania:skyDirtRod.name=Rod of the Highlands
|
||||
|
||||
# GUI TEXT
|
||||
botania.gui.lexicon.header=Lexica Botania, %s Edition's Index - Pick which category you would like to study:
|
||||
@@ -1215,6 +1216,11 @@ botania.page.virus0=Through the mixing of some ingredients, a type of virus that
|
||||
botania.page.virus1=No ponies here
|
||||
botania.page.virus2=None here either
|
||||
|
||||
# -- ROD OF THE HIGHLANDS
|
||||
botania.entry.skyDirtRod=Rod of the Highlands
|
||||
botania.page.skyDirtRod0=While the &1Rod of the Lands&0 is all well and good, being able to place &1Dirt&0 without something to hold it would be great.<br>The &1Rod of the Highlands&0 does just that, while maintaining the original power of the &1Rod of the Lands&0, it can also place &1Dirt&0 in mid air, for an increased &4Mana&0 cost.
|
||||
botania.page.skyDirtRod1=Dirty Stick mk2
|
||||
|
||||
# - BAUBLES
|
||||
# -- AN INTRODUCTION TO BAUBLES
|
||||
botania.entry.bIntro=An Introduction to Baubles
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"animation": {
|
||||
"frames": [
|
||||
{
|
||||
"index": 0,
|
||||
"time": 25
|
||||
},
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user