- 128
- 12
Здравствуйте пользователи этого форума, у меня появился вопрос, а как-же импортировать уже готовый .obj шлем в майнкрафт?
Большая просьба помочь.
P.S Модель можно скачать тут https://cdn.discordapp.com/attachments/324814803837386752/377033275442724864/had_1.obj
Большая просьба помочь.
Код:
package com.example.examplemod;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class FArmor extends ItemArmor{
private String texturePath = "blockj:textures/model/armor/";
public FArmor(int id, int armorType) {
super(ArmorMaterial.DIAMOND, id, armorType);
this.setCreativeTab(CreativeTabs.tabCombat);
this.setMaxStackSize(1);
this.setTextureName();
}
public void setTextureName ()
{
if(armorType == 0||armorType == 1||armorType == 3){
this.texturePath += "FArmor_" + 1 + ".png";
}
else {
this.texturePath += "FArmor_" + 2 + ".png";
}
}
@Override
public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type){
return this.texturePath;
}
}
P.S Модель можно скачать тут https://cdn.discordapp.com/attachments/324814803837386752/377033275442724864/had_1.obj