Compare armor test #11
@@ -129,7 +129,7 @@ public class ModItems {
|
||||
public static Item longbow;
|
||||
|
||||
|
||||
//public static Item testleggings;
|
||||
public static Item testleggings;
|
||||
|
||||
//public static Item forgingmanual;
|
||||
|
||||
@@ -249,7 +249,7 @@ public class ModItems {
|
||||
/**********
|
||||
ARMOR
|
||||
**********/
|
||||
//testleggings=new CustomLeggings(PrimalMaterials.ARMOR_ADAMANT, 3, EntityEquipmentSlot.LEGS, "testleggings");
|
||||
testleggings=new CustomLeggings(PrimalMaterials.ARMOR_ADAMANT, 3, EntityEquipmentSlot.CHEST, "testleggings");
|
||||
//registerItem(312, "diamond_leggings", (new ItemArmor(ItemArmor.ArmorMaterial.DIAMOND, 3, EntityEquipmentSlot.LEGS)).setUnlocalizedName("leggingsDiamond"));
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ public class ModItems {
|
||||
/**********
|
||||
ARMOR
|
||||
**********/
|
||||
//GameRegistry.register(testleggings);
|
||||
GameRegistry.register(testleggings);
|
||||
|
||||
|
||||
|
||||
@@ -470,7 +470,7 @@ public class ModItems {
|
||||
/**********
|
||||
ARMOR
|
||||
**********/
|
||||
//registerRender(testleggings);
|
||||
registerRender(testleggings);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
package nmd.primal.forgecraft.items.armor;
|
||||
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import nmd.primal.forgecraft.ModInfo;
|
||||
|
||||
import static nmd.primal.forgecraft.ForgeCraft.proxy;
|
||||
|
||||
/**
|
||||
* Created by mminaie on 7/3/17.
|
||||
*/
|
||||
@@ -27,4 +34,6 @@ public class CustomLeggings extends ItemArmor{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
package nmd.primal.forgecraft.models;
|
||||
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
/**
|
||||
* Created by mminaie on 7/3/17.
|
||||
*/
|
||||
|
||||
public class AwesomeSauceModel extends ModelBiped
|
||||
{
|
||||
ModelRenderer basehorn;
|
||||
ModelRenderer horn1;
|
||||
ModelRenderer rightshoulder;
|
||||
ModelRenderer leftshoulder;
|
||||
|
||||
public AwesomeSauceModel(float expand) {
|
||||
|
||||
super(expand, 0, 64, 64);
|
||||
|
||||
basehorn = new ModelRenderer(this, 38, 0);
|
||||
basehorn.addBox(-1F, -9F, -4.5F, 2, 2, 2, expand);
|
||||
basehorn.setRotationPoint(0F, 0F, 0F);
|
||||
basehorn.setTextureSize(64, 32);
|
||||
basehorn.mirror = true;
|
||||
setRotation(basehorn, 0F, 0F, 0F);
|
||||
|
||||
horn1 = new ModelRenderer(this, 33, 0);
|
||||
horn1.addBox(-0.5F, -14.5F, 0.7666667F, 1, 5, 1, expand/3);
|
||||
horn1.setRotationPoint(0F, 0F, 0F);
|
||||
horn1.setTextureSize(64, 32);
|
||||
horn1.mirror = true;
|
||||
setRotation(horn1, 0.5576792F, 0F, 0F);
|
||||
|
||||
rightshoulder = new ModelRenderer(this, 0, 33);
|
||||
rightshoulder.addBox(-3.5F, -3F, -2.5F, 5, 5, 5, expand/1.2F);
|
||||
rightshoulder.setRotationPoint(0F, 0F, 0F);
|
||||
rightshoulder.setTextureSize(64, 32);
|
||||
rightshoulder.mirror = true;
|
||||
setRotation(rightshoulder, 0F, 0F, 0F);
|
||||
|
||||
leftshoulder = new ModelRenderer(this, 0, 33);
|
||||
leftshoulder.addBox(-1.5F, -3F, -2.5F, 5, 5, 5, expand/1.2F);
|
||||
leftshoulder.setRotationPoint(0F, 0F, 0F);
|
||||
leftshoulder.setTextureSize(64, 32);
|
||||
leftshoulder.mirror = true;
|
||||
setRotation(leftshoulder, 0F, 0F, 0F);
|
||||
|
||||
basehorn.addChild(horn1);
|
||||
this.bipedHead.addChild(basehorn);
|
||||
|
||||
this.bipedRightArm.addChild(rightshoulder);
|
||||
this.bipedLeftArm.addChild(leftshoulder);
|
||||
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
||||
{
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package nmd.primal.forgecraft.proxy;
|
||||
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
||||
import nmd.primal.forgecraft.init.ModBlocks;
|
||||
import nmd.primal.forgecraft.init.ModItems;
|
||||
@@ -44,4 +45,6 @@ public class ClientProxy implements CommonProxy {
|
||||
// new ResourceLocation(ModInfo.MOD_ID, "stonetongs_emptyhot"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package nmd.primal.forgecraft.proxy;
|
||||
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
|
||||
/**
|
||||
* Created by kitsu on 11/26/2016.
|
||||
*/
|
||||
@@ -18,4 +20,7 @@ public class ServerProxy implements CommonProxy {
|
||||
public void registerModelBakeryVariants(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user