The Meaning of Life, the Universe, and Everything.
Join Date:
6/30/2014
Posts:
54
Minecraft:
ElementKnight13
Member Details
hey everyone i need some major help ive been trying to figure this out for a week but nothing ive been watching neale gamings tutorials and i got up to armors everything went great until i tested it in game and the armor for whatever reason was iron no matter what i do the armor texture always looks like iron armor in game here's the code
case 0:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 1:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 2:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 3:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
}
}
public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type)
{
if(itemstack.getItem() == Mercy_Mod.HyperHelm || itemstack.getItem() == Mercy_Mod.HyperChest || itemstack.getItem() == Mercy_Mod.HyperBoots )
{return Mercy_Mod.modid + ":textures/model/armor/hyper_armor.png";} (I have already tryed this with and without the png no difference)
The Meaning of Life, the Universe, and Everything.
Join Date:
6/30/2014
Posts:
54
Minecraft:
ElementKnight13
Member Details
The armor is created in the main class also I'm getting errors on the @sided proxy it says that it can't find the clientproxy and common proxy as variables
package net.mcMercy.mod.armor;
import com.sun.xml.internal.stream.Entity;
import net.mcMercy.mod.Mercy_Mod;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class HyperArmor extends ItemArmor {
public HyperArmor(ArmorMaterial material, int id, int slot) {
super(material, id, slot);
this.setCreativeTab(Mercy_Mod.mercytab);
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
switch(slot) {
case 0:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 1:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 2:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
case 3:
this.setTextureName(Mercy_Mod.modid + ":" + getUnlocalizedName().substring(5));
}
}
public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type)
{
if(itemstack.getItem() == Mercy_Mod.HyperHelm || itemstack.getItem() == Mercy_Mod.HyperChest || itemstack.getItem() == Mercy_Mod.HyperBoots )
{return Mercy_Mod.modid + ":textures/model/armor/hyper_armor.png";} (I have already tryed this with and without the png no difference)
else if(itemstack.getItem() == Mercy_Mod.HyperLegs)
{return Mercy_Mod.modid + ":textures/model/armor/hyper_armor2.png";}
else
{
return null;}
}
}
HyperHelm = new HyperArmor(HyperMaterial, HyperHelmId, 0).setUnlocalizedName("hyper_helm");
HyperChest = new HyperArmor(HyperMaterial, HyperChestId, 1).setUnlocalizedName("hyper_chest");
HyperLegs = new HyperArmor(HyperMaterial, HyperLegsId, 2).setUnlocalizedName("hyper_legs");
HyperBoots = new HyperArmor(HyperMaterial, HyperBootsId, 3).setUnlocalizedName("hyper_boots");
GameRegistry.registerItem(HyperHelm,"hyper_helm");
GameRegistry.registerItem(HyperChest,"hyper_chest");
GameRegistry.registerItem(HyperLegs,"hyper_legs");
GameRegistry.registerItem(HyperBoots,"hyper_boots");
also the int HyperInt = proxy.addArmor("HyperArmor");
what is proxy cause i dont have it
also ive never used @sidedProxy
and one of the ways to make a new proxy is over your block vars:
IMPORTANT: public static YourCommonProxy proxy;
public static Block shinyRobotButt;
public static Item shinyRobotArm;
Then, to "activate" the proxy, add the registering methods on the main class. Like this:
proxy.registerRenderers()
Put that anywhere. Since you need armor, use the armor method you are using instead of registerRenderers()
Note your method can be named any way.
CommonProxy can not be resolved to a variable
ClientProxy can not be resolved to a variable
You need to give it the path to your proxies aswell.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
You need to give it the path to your proxies aswell.
That's the package your proxies are located in, therefore that's the path to them...
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his