Implemented the ItemMeshDefinition for the Sentient Sword, allowing for me to make the sword enchantable while still allowing the texture to change. This may be expanded to other items.

This commit is contained in:
WayofTime 2016-01-10 18:31:48 -05:00
parent cb77b7821f
commit 1abae8e4ee
5 changed files with 66 additions and 9 deletions

View file

@ -132,7 +132,7 @@ public class ModItems
public static Item sentientArmourGem;
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);
public static Item.ToolMaterial soulToolMaterial = EnumHelper.addToolMaterial("SoulToolMaterial", 4, 520, 7, 8, 50);
public static void init()
{
@ -327,8 +327,8 @@ public class ModItems
renderHelper.itemRender(soulGem, 4);
renderHelper.itemRender(soulSnare);
renderHelper.itemRender(sentientSword, 0);
renderHelper.itemRender(sentientSword, 1);
renderHelper.customItemRender(sentientSword, 0);
renderHelper.customItemRender(sentientSword, 1);
renderHelper.itemRender(sentientBow, 0, "ItemSentientBow");
renderHelper.itemRender(sentientBow, 1, "ItemSentientBow_pulling_0");
renderHelper.itemRender(sentientBow, 2, "ItemSentientBow_pulling_1");