Jump to content

Itz_Yuseix

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Itz_Yuseix

  1. ClientProxy.javaDemonSlayerMain.javaCommonProxy.javaespada.json espada.obj espada.mtl
  2. this is my item class package addon.dsm.items; import addon.dsm.armor.model.ModeloRopas; import addon.dsm.main.DemonSlayerMain; import addon.dsm.main.IHasModel; import net.minecraft.client.model.ModelBiped; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class DSMRopa1 extends ItemArmor implements IHasModel{ public DSMRopa1(String name, CreativeTabs tab, ArmorMaterial materialIn, EntityEquipmentSlot equipmentSlotIn) { super(materialIn, 1, equipmentSlotIn); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); setMaxStackSize(1); ModItems.ITEMS.add(this); } @Override public void registerModels() { DemonSlayerMain.proxy.registerItemRenderer(this, 0, "inventory"); } @SideOnly(Side.CLIENT) @Override public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default) { if(!itemStack.isEmpty()) { if(itemStack.getItem() instanceof ItemArmor) { ModeloRopas armorModel = new ModeloRopas(0.25f); ModeloRopas armorModelLegs = new ModeloRopas(0.25f); armorModel.bipedBody.showModel = (armorSlot == EntityEquipmentSlot.CHEST) || (armorSlot == EntityEquipmentSlot.CHEST); armorModel.bipedRightArm.showModel = armorSlot == EntityEquipmentSlot.CHEST; armorModel.bipedLeftArm.showModel = armorSlot == EntityEquipmentSlot.CHEST; armorModelLegs.bipedRightLeg.showModel = (armorSlot == EntityEquipmentSlot.LEGS) || (armorSlot == EntityEquipmentSlot.FEET); armorModelLegs.bipedLeftLeg.showModel = (armorSlot == EntityEquipmentSlot.LEGS) || (armorSlot == EntityEquipmentSlot.FEET); armorModel.isSneak = _default.isSneak; armorModel.isRiding = _default.isRiding; armorModel.isChild = _default.isChild; armorModel.rightArmPose = _default.rightArmPose; armorModel.leftArmPose = _default.leftArmPose; armorModelLegs.isSneak = _default.isSneak; armorModelLegs.isRiding = _default.isRiding; armorModelLegs.isChild = _default.isChild; armorModelLegs.rightArmPose = _default.rightArmPose; armorModelLegs.leftArmPose = _default.leftArmPose; return armorModel; } } return null; } }
  3. i dont know why m y obj model not loading help meDemonSlayerMain.java ClientProxy.java ItemSword.java Espada.mtl Espada.obj Espada.json
  4. I wanna make something to similar to this (not is a skin)
  5. any idea? pls i wanna create my mod of Dragon ball, i want to create majin race
  6. i wanna make an armor similar to a normal skin
  7. i wanna make an armor similar to a normal skin
  8. If you have an idea tell me pls. Example: an armor glued to the body
  9. @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); } @SubscribeEvent public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for(Item item : ModItems.ITEMS) { if(item instanceof IHasModel) { ((IHasModel)item).registerModels(); } } for(Block block : ModBlocks.BLOCKS) { if(block instanceof IHasModel) { ((IHasModel)block).registerModels(); } } } }
  10. my json file: { "parent": "item/generated", "textures": { "layer0": "dsm:items/Prueba" } }
  11. hello, idk why my custom mob model is bug if you to know the fix answer me
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.