The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2017
Posts:
60
Member Details
I am making a mod, and want armor. In Eclipse, the model works perfectly well. However, when I use the mod in actual Minecraft, it just shows as the missing texture purple/black thing. Help plz.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2017
Posts:
60
Member Details
I tried this same code out, but it says that EntityEquipmentSlot cannot be resolved to a type. Is this a new class in Minecraft 1.8+? Would I have to update Forge to get access to it?
The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2017
Posts:
60
Member Details
Do you remember what it was from 1.8? Also, even though it shows up as an error, everything works perfectly fine in eclipse, including the armor model. But, it doesn't let me build.bat it, so I can't try it in regular Minecraft. I'm guessing it's the error that's stopping it. So, I'm guessing to make it work, I need the 1.8 code.
I am making a mod, and want armor. In Eclipse, the model works perfectly well. However, when I use the mod in actual Minecraft, it just shows as the missing texture purple/black thing. Help plz.
package items;
import dev.theenderminer.vanillaevolved.init.VanillaEvolvedItems;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class ItemEnderiteArmor extends ItemArmor {
public final String name;
public ItemEnderiteArmor(ArmorMaterial armorMaterial, int renderIndex, int armorType, String name) {
super(armorMaterial, renderIndex, armorType);
this.name = name;
}
public String getName(){
return name;
}
@Override
public boolean getIsRepairable(ItemStack armor, ItemStack stack){
return stack.getItem() == VanillaEvolvedItems.enderite;
}
}
It seems to be missing the function that tells it what texture to give the model, so how does it even work in Eclipse?
I don't know how it works. Also, I'm pretty new to modding, so could you tell me the function for the model?
What I use currently (for Minecraft 1.11.2) is the following...
I tried this same code out, but it says that EntityEquipmentSlot cannot be resolved to a type. Is this a new class in Minecraft 1.8+? Would I have to update Forge to get access to it?
The example code I gave you works with Minecraft 1.11.2. I think I had to change it after I updated from 1.8.9 to 1.11.2.
Do you remember what it was from 1.8? Also, even though it shows up as an error, everything works perfectly fine in eclipse, including the armor model. But, it doesn't let me build.bat it, so I can't try it in regular Minecraft. I'm guessing it's the error that's stopping it. So, I'm guessing to make it work, I need the 1.8 code.
Actually, I think the problem is this:
if(this.armorType == EntityEquipmentSlot.LEGS)
What do I replace LEGS with, or do I keep it like that.