• 0

    posted a message on Custom NPCs
    Quick question...
    I know you're busy adding other things into your mod, but will you ever implement a way for bots to move on their own? Maybe a way for the user to say the NPC should walk in a certain direction for X blocks, and then another direction for X blocks. Or maybe upon stepping on a certain block makes the NPC turn and walk in another direction. I figure this would be important to people's adventure maps.

    I just wanted to know if you've ever thought of implementing these ideas. I just figured since you have a major lead way over me if I was to program this from scratch. I've been on and off this post for the last couple months, so I know it may not be a priority but I just thought I'd pass the idea. :) Keep up the great work, I wish your mod was open source! ;)
    Posted in: Minecraft Mods
  • 0

    posted a message on Custom NPCs
    Quote from Foxtrot217

    IF anyone is wanting ideas for what models to make, i would greatly recommend making a spider one, with the resize option and being able to 'shoot', i would finally be able to make giant poison-spitting spiders for boss fights :D


    I think he's only accepting biped (humanoid) type models.
    Posted in: Minecraft Mods
  • 0

    posted a message on Custom NPCs
    Are there any models you were looking to eventually make?
    Posted in: Minecraft Mods
  • 0

    posted a message on Custom NPCs
    Do you take submissions for any models?
    I'm not sure if new models are easy to implement in your code or not. Just thought I'd help if I could. Ex: Dragon, Centaur, whatever else. I've been getting into making a lot of WoW-ish type models.
    I just love this mod and want to help in any way I can. :)
    Posted in: Minecraft Mods
  • 0

    posted a message on Small Problem With Custom Mob.
    I feel like I've tried everything in that post and still no luck. :(
    Posted in: Modification Development
  • 0

    posted a message on Small Problem With Custom Mob.
    Thank you, I'll look into this. My entity is invisible at the moment but I'll read your other article on that.
    Posted in: Modification Development
  • 0

    posted a message on Small Problem With Custom Mob.
    Bump.
    Hopefully we can get an answer from someone!
    Posted in: Modification Development
  • 0

    posted a message on Small Problem With Custom Mob.
    I've looked this over about a thousand times now and I just don't understand what's wrong. Basically, my mob is spawning as a Biped and not the custom model that I made in Techne. If anyone can help I'd really appreciate it.

    Here's my code. (and yes, I am using addRender)

    mod_ File


    package net.minecraft.src;

    import java.util.Map;

    public class mod_boxmob extends BaseMod
    {

    @Override
    public String getVersion() {
    return "Tets";
    }

    public void addRenderer(Map map)
    {
    map.put(TRBLST_BoxEntity.class, new TRBLST_BoxRender(new TRBLST_BoxModel(), 0.5F));
    }

    @Override
    public void load() {
    ModLoader.registerEntityID(TRBLST_BoxEntity.class, "Boxlol",
    ModLoader.getUniqueEntityId());
    ModLoader.addSpawn(TRBLST_BoxEntity.class, 12, 4, 4, EnumCreatureType.creature);
    }
    }
    Model File


    package net.minecraft.src;

    public class TRBLST_BoxModel extends ModelBase
    {
    //fields
    ModelRenderer Body;
    ModelRenderer RLEG;
    ModelRenderer LLEG;

    public TRBLST_BoxModel()
    {
    textureWidth = 512;
    textureHeight = 512;
    Body = new ModelRenderer(this, 0, 0);
    Body.addBox(0F, 0F, 0F, 10, 10, 10);
    Body.setRotationPoint(-5F, 7F, -5F);
    Body.setTextureSize(512, 512);
    Body.mirror = true;
    setRotation(Body, 0F, 0F, 0F);
    RLEG = new ModelRenderer(this, 0, 0);
    RLEG.addBox(0F, 0F, 0F, 3, 7, 3);
    RLEG.setRotationPoint(-4F, 17F, -2F);
    RLEG.setTextureSize(512, 512);
    RLEG.mirror = true;
    setRotation(RLEG, 0F, 0F, 0F);
    LLEG = new ModelRenderer(this, 0, 0);
    LLEG.addBox(0F, 0F, 0F, 3, 7, 3);
    LLEG.setRotationPoint(1F, 17F, -2F);
    LLEG.setTextureSize(512, 512);
    LLEG.mirror = true;
    setRotation(LLEG, 0F, 0F, 0F);
    }

    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);
    Body.render(f5);
    RLEG.render(f5);
    LLEG.render(f5);
    }

    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
    }

    public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
    {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
    }

    }

    Entity File (I'm aware that it's cow.png, I'm just trying to get the model to load, texture is second priority.)


    package net.minecraft.src;

    import java.util.Random;

    public class TRBLST_BoxEntity extends EntityAnimal
    {
    public TRBLST_BoxEntity(World par1World)
    {
    super(par1World);
    texture = "/mob/cow.png";
    setSize(0.9F, 1.3F);
    }

    public boolean isAIEnabled()
    {
    return false;
    }

    public int getMaxHealth()
    {
    return 1;
    }


    public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
    {
    super.writeEntityToNBT(par1NBTTagCompound);
    }


    public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
    {
    super.readEntityFromNBT(par1NBTTagCompound);
    }


    protected String getLivingSound()
    {
    return "mob.cow";
    }


    protected String getHurtSound()
    {
    return "mob.cowhurt";
    }


    protected String getDeathSound()
    {
    return "mob.cowhurt";
    }


    protected float getSoundVolume()
    {
    return 0.4F;
    }


    protected int getDropItemId()
    {
    return Item.diamond.shiftedIndex;
    }


    protected void dropFewItems(boolean par1, int par2)
    {

    }

    public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
    {
    return new TRBLST_BoxEntity(worldObj);
    }
    }

    Render File


    package net.minecraft.src;

    import org.lwjgl.opengl.GL11;

    public class TRBLST_BoxRender extends RenderLiving
    {
    public TRBLST_BoxRender(ModelBase par1ModelBase, float par2)
    {
    super(par1ModelBase, par2);
    }

    public void renderBox(TRBLST_BoxEntity par1TRBLST_BoxEntity, double par2, double par4, double par6, float par8, float par9)
    {
    super.doRenderLiving(par1TRBLST_BoxEntity, par2, par4, par6, par8, par9);
    }

    public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
    {
    renderBox((TRBLST_BoxEntity)par1EntityLiving, par2, par4, par6, par8, par9);
    }

    public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
    {
    renderBox((TRBLST_BoxEntity)par1Entity, par2, par4, par6, par8, par9);
    }
    }

    I appreciate any help that anyone can give. This has stopped my mod cold and I can't do anything until I know what's wrong.
    Posted in: Modification Development
  • 0

    posted a message on Custom NPCs
    Hello Noppes, I just wanted to thank you for working on this mod, it has saved me a lot of time coding. I just wanted to let you know about this bug I've been getting. I'm not sure why I'm getting it.
    Here are two screenshots:
    http://i.imgur.com/yMe7M.jpg - For some reason my NPC was duplicated but the second one doesn't move at all.
    Here as well:
    http://i.imgur.com/PbUXp.jpg - Every NPC that was created is duplicated.

    If I log off and log back in (or go into a netherportal and back), the duplicated ones disappear.

    Looking forward to your next patch.
    -Tribalist
    Posted in: Minecraft Mods
  • To post a comment, please .