aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item/general
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-11-06 05:19:58 +1000
committerAlkalus <draknyte1@hotmail.com>2017-11-06 05:19:58 +1000
commitcb098bdcd95723ee8a60ae28ca826c80295fcf6d (patch)
tree22fac8f6cd1b7362f7234ff89d64970045898a14 /src/Java/gtPlusPlus/core/item/general
parentf848812aea5b469b63c021992a357c50d1665ef2 (diff)
downloadGT5-Unofficial-cb098bdcd95723ee8a60ae28ca826c80295fcf6d.tar.gz
GT5-Unofficial-cb098bdcd95723ee8a60ae28ca826c80295fcf6d.tar.bz2
GT5-Unofficial-cb098bdcd95723ee8a60ae28ca826c80295fcf6d.zip
$ Fixed a small issue with the Sulfuric acid potion.
+ Added a throwable HF potion, which is far nastier. + Added Fluid canner recipes for HF potions. % Rebalanced fluid amount gained from extracting raisins. $ Fixed raisin juice not having a proper recipe.
Diffstat (limited to 'src/Java/gtPlusPlus/core/item/general')
-rw-r--r--src/Java/gtPlusPlus/core/item/general/throwables/ItemHydrofluoricAcidPotion.java28
-rw-r--r--src/Java/gtPlusPlus/core/item/general/throwables/ItemSulfuricAcidPotion.java (renamed from src/Java/gtPlusPlus/core/item/general/ItemSulfuricAcidPotion.java)7
2 files changed, 29 insertions, 6 deletions
diff --git a/src/Java/gtPlusPlus/core/item/general/throwables/ItemHydrofluoricAcidPotion.java b/src/Java/gtPlusPlus/core/item/general/throwables/ItemHydrofluoricAcidPotion.java
new file mode 100644
index 0000000000..1ed49760c0
--- /dev/null
+++ b/src/Java/gtPlusPlus/core/item/general/throwables/ItemHydrofluoricAcidPotion.java
@@ -0,0 +1,28 @@
+package gtPlusPlus.core.item.general.throwables;
+
+import gtPlusPlus.core.creative.AddToCreativeTab;
+import gtPlusPlus.core.entity.projectile.EntityHydrofluoricAcidPotion;
+import gtPlusPlus.core.item.base.CoreItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.EnumRarity;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.world.World;
+
+public class ItemHydrofluoricAcidPotion extends CoreItem {
+
+ public ItemHydrofluoricAcidPotion(String unlocalizedName, String displayName, String description) {
+ super(unlocalizedName, displayName, AddToCreativeTab.tabMisc, 16, 0, description, EnumRarity.uncommon, EnumChatFormatting.GRAY, false, null);
+ }
+
+ public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer player) {
+ if (!player.capabilities.isCreativeMode) {
+ --item.stackSize;
+ }
+ world.playSoundAtEntity(player, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
+ if (!world.isRemote) {
+ world.spawnEntityInWorld(new EntityHydrofluoricAcidPotion(world, player));
+ }
+ return item;
+ }
+} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/core/item/general/ItemSulfuricAcidPotion.java b/src/Java/gtPlusPlus/core/item/general/throwables/ItemSulfuricAcidPotion.java
index bd730448c8..60e3550b5c 100644
--- a/src/Java/gtPlusPlus/core/item/general/ItemSulfuricAcidPotion.java
+++ b/src/Java/gtPlusPlus/core/item/general/throwables/ItemSulfuricAcidPotion.java
@@ -1,14 +1,9 @@
-package gtPlusPlus.core.item.general;
+package gtPlusPlus.core.item.general.throwables;
-import gregtech.api.enums.GT_Values;
import gtPlusPlus.core.creative.AddToCreativeTab;
import gtPlusPlus.core.entity.projectile.EntitySulfuricAcidPotion;
-import gtPlusPlus.core.item.ModItems;
import gtPlusPlus.core.item.base.CoreItem;
-import gtPlusPlus.core.util.fluid.FluidUtils;
-import gtPlusPlus.core.util.item.ItemUtils;
import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.init.Items;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;