mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Added the Tectonic Gridle.
This commit is contained in:
1 parent
b086311a76
commit
fc7cf4f38c
5 files changed
+57
No files matched your search
@@ -94,6 +94,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addItem(ModItems.manaRingGreater);
|
||||
addItem(ModItems.auraRingGreater);
|
||||
addItem(ModItems.travelBelt);
|
||||
addItem(ModItems.knockbackBelt);
|
||||
addItem(ModItems.icePendant);
|
||||
|
||||
addItem(ModItems.manaTablet);
|
||||
|
||||
@@ -27,6 +27,7 @@ import vazkii.botania.common.item.equipment.bauble.ItemAuraRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGreaterAuraRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGreaterManaRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemIcePendant;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemKnockbackBelt;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemManaRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemTinyPlanet;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemTravelBelt;
|
||||
@@ -122,6 +123,7 @@ public final class ModItems {
|
||||
manaRingGreater = new ItemGreaterManaRing();
|
||||
auraRingGreater = new ItemGreaterAuraRing();
|
||||
travelBelt = new ItemTravelBelt();
|
||||
knockbackBelt = new ItemKnockbackBelt();
|
||||
icePendant = new ItemIcePendant();
|
||||
|
||||
OreDictionary.registerOre(LibOreDict.LEXICON, lexicon);
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* 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 @ [Apr 26, 2014, 7:08:53 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.item.equipment.bauble;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
import baubles.api.BaubleType;
|
||||
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
public class ItemKnockbackBelt extends ItemBauble {
|
||||
|
||||
static Multimap attributes = HashMultimap.create();
|
||||
static {
|
||||
attributes.put(SharedMonsterAttributes.knockbackResistance.getAttributeUnlocalizedName(), new AttributeModifier(new UUID(2745708 /** Random number **/, 43743), "Bauble modifier", 1.0, 0));
|
||||
}
|
||||
|
||||
public ItemKnockbackBelt() {
|
||||
super(LibItemNames.KNOCKBACK_BELT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEquippedOrLoadedIntoWorld(ItemStack stack, EntityLivingBase player) {
|
||||
player.getAttributeMap().applyAttributeModifiers(attributes);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
|
||||
player.getAttributeMap().removeAttributeModifiers(attributes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaubleType getBaubleType(ItemStack itemstack) {
|
||||
return BaubleType.BELT;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -294,6 +294,7 @@ item.botania:auraRing.name=Band of Aura
|
||||
item.botania:manaRingGreater.name=Greater Band of Mana
|
||||
item.botania:auraRingGreater.name=Greater Band of Aura
|
||||
item.botania:travelBelt.name=Soujourner's Sash
|
||||
item.botania:knockbackBelt.name=Tectonic Gridle
|
||||
item.botania:icePendant.name=Snowflake Pendant
|
||||
|
||||
# GUI TEXT
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Reference in new issue
Block a user