Added Soul Bow textures and localization, as well as rudimentary function.
This commit is contained in:
parent
9329dd12f4
commit
c5dec61351
|
@ -0,0 +1,44 @@
|
|||
package WayofTime.bloodmagic.item.soul;
|
||||
|
||||
import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBow;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
|
||||
public class ItemSoulBow extends ItemBow
|
||||
{
|
||||
public ItemSoulBow()
|
||||
{
|
||||
super();
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".soulBow");
|
||||
this.setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining)
|
||||
{
|
||||
if (player.getItemInUse() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
int i = stack.getMaxItemUseDuration() - player.getItemInUseCount();
|
||||
|
||||
if (i >= 18)
|
||||
{
|
||||
return new ModelResourceLocation("bloodmagic:ItemSoulBow_pulling_2", "inventory");
|
||||
} else if (i > 13)
|
||||
{
|
||||
return new ModelResourceLocation("bloodmagic:ItemSoulBow_pulling_1", "inventory");
|
||||
} else if (i > 0)
|
||||
{
|
||||
return new ModelResourceLocation("bloodmagic:ItemSoulBow_pulling_0", "inventory");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -47,6 +47,7 @@ import WayofTime.bloodmagic.item.sigil.ItemSigilVoid;
|
|||
import WayofTime.bloodmagic.item.sigil.ItemSigilWater;
|
||||
import WayofTime.bloodmagic.item.sigil.ItemSigilWhirlwind;
|
||||
import WayofTime.bloodmagic.item.soul.ItemMonsterSoul;
|
||||
import WayofTime.bloodmagic.item.soul.ItemSoulBow;
|
||||
import WayofTime.bloodmagic.item.soul.ItemSoulGem;
|
||||
import WayofTime.bloodmagic.item.soul.ItemSoulSnare;
|
||||
import WayofTime.bloodmagic.item.soul.ItemSoulSword;
|
||||
|
@ -117,6 +118,7 @@ public class ModItems
|
|||
public static Item soulSnare;
|
||||
|
||||
public static Item soulSword;
|
||||
public static Item soulBow;
|
||||
|
||||
public static Item.ToolMaterial boundToolMaterial = EnumHelper.addToolMaterial("BoundToolMaterial", 4, 0, 10, 8, 50);
|
||||
public static Item.ToolMaterial soulToolMaterial = EnumHelper.addToolMaterial("SoulToolMaterial", 4, 0, 7, 8, 50);
|
||||
|
@ -194,6 +196,7 @@ public class ModItems
|
|||
soulSnare = registerItem(new ItemSoulSnare());
|
||||
|
||||
soulSword = registerItem(new ItemSoulSword());
|
||||
soulBow = registerItem(new ItemSoulBow());
|
||||
}
|
||||
|
||||
public static void initRenders()
|
||||
|
@ -302,6 +305,11 @@ public class ModItems
|
|||
|
||||
renderHelper.itemRender(soulSword, 0);
|
||||
renderHelper.itemRender(soulSword, 1);
|
||||
renderHelper.itemRender(soulBow, 0, "ItemSoulBow");
|
||||
renderHelper.itemRender(soulBow, 1, "ItemSoulBow_pulling_0");
|
||||
renderHelper.itemRender(soulBow, 2, "ItemSoulBow_pulling_1");
|
||||
renderHelper.itemRender(soulBow, 3, "ItemSoulBow_pulling_2");
|
||||
|
||||
}
|
||||
|
||||
private static Item registerItem(Item item, String name)
|
||||
|
|
|
@ -166,8 +166,5 @@ public class ModRecipes
|
|||
SoulForgeRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_AFFINITY), 300, 30, ModItems.sigilWater, ModItems.sigilAir, ModItems.sigilLava, Blocks.obsidian);
|
||||
SoulForgeRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_SUPPRESSION), 500, 50, ModBlocks.teleposer, Items.water_bucket, Items.lava_bucket, Items.blaze_rod);
|
||||
SoulForgeRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), 400, 10, "dustGlowstone", "dustRedstone", "nuggetGold", Items.gunpowder);
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(ItemComponent.getStack(ItemComponent.REAGENT_SUPPRESSION), "wtl", "wrl", "wol", 't', new ItemStack(ModBlocks.teleposer), 'w', new ItemStack(Items.water_bucket), 'l', new ItemStack(Items.lava_bucket), 'o', OrbRegistry.getOrbStack(ModItems.orbMaster)));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,6 +116,7 @@ item.BloodMagic.soulGem.common.name=Common Soul Gem
|
|||
item.BloodMagic.soulGem.greater.name=Greater Soul Gem
|
||||
item.BloodMagic.soulGem.grand.name=Grand Soul Gem
|
||||
item.BloodMagic.soulSnare.base.name=Rudimentary Soul Snare
|
||||
item.BloodMagic.soulBow.name=Soul Bow
|
||||
|
||||
# Blocks
|
||||
tile.BloodMagic.fluid.lifeEssence.name=Life Essence
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"parent": "builtin/generated",
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/SoulBow"
|
||||
},
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 5, 80, -45 ],
|
||||
"translation": [ 0.75, 0, 0.25 ],
|
||||
"scale": [ 1, 1, 1 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"parent": "builtin/generated",
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/SoulBow_pulling_0"
|
||||
},
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 5, 80, -45 ],
|
||||
"translation": [ 0.75, 0, 0.25 ],
|
||||
"scale": [ 1, 1, 1 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"parent": "builtin/generated",
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/SoulBow_pulling_1"
|
||||
},
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 5, 80, -45 ],
|
||||
"translation": [ 0.75, 0, 0.25 ],
|
||||
"scale": [ 1, 1, 1 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"parent": "builtin/generated",
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/SoulBow_pulling_2"
|
||||
},
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 5, 80, -45 ],
|
||||
"translation": [ 0.75, 0, 0.25 ],
|
||||
"scale": [ 1, 1, 1 ]
|
||||
},
|
||||
"firstperson": {
|
||||
"rotation": [ 0, -135, 25 ],
|
||||
"translation": [ 0, 4, 2 ],
|
||||
"scale": [ 1.7, 1.7, 1.7 ]
|
||||
}
|
||||
}
|
||||
}
|
BIN
src/main/resources/assets/bloodmagic/textures/items/SoulBow.png
Normal file
BIN
src/main/resources/assets/bloodmagic/textures/items/SoulBow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 708 B |
Binary file not shown.
After Width: | Height: | Size: 712 B |
Binary file not shown.
After Width: | Height: | Size: 697 B |
Binary file not shown.
After Width: | Height: | Size: 687 B |
Loading…
Reference in a new issue