Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

my mob is on the game because i can hear him and i can even hit him but its invisible  :( i just need to know where the texture goes and if im missing a code can i know here is the entity of my mob i think you dont need more

 

[embed=425,349]package medieval.medievalentities;

 

import net.minecraft.entity.EnumCreatureAttribute;

import net.minecraft.entity.monster.EntityMob;

import net.minecraft.world.World;

 

 

public class Pixie_Entity extends EntityMob

{

private float moveSpeed;

private String texture;

public Pixie_Entity(World par1World)

{

super(par1World);

this.moveSpeed = 0.5F;

this.texture = "medieval:pixietexture";

}

public int getMaxHealth()

{

return 10;

}

public EnumCreatureAttribute getCreatureAttribute()

{

return EnumCreatureAttribute.UNDEFINED;

}

/**

    * Returns the sound this mob makes while it's alive.

    */

    protected String getLivingSound()

    {

        return "mob.zombiepig.zpig";

    }

 

    /**

    * Returns the sound this mob makes when it is hurt.

    */

    protected String getHurtSound()

    {

        return "mob.zombie.hurt";

    }

 

    /**

    * Returns the sound this mob makes on death.

    */

    protected String getDeathSound()

    {

        return "mob.zombie.death";

    }

 

}

 

[/embed]

 

PS: yes i made the model and render dont ask if i made them cause they are

 

I like helping people because i was also in a same problem and i do not like unfinished work, so a thank you will be enough for the people im helping and a thank you to the people that helped me :)

Assuming you are on 1.6, the render class should ask you for a RessourceLocation in a new method.

You can return RessourceLocation("modid","texturepath.png") to set your texture.

  • Author

about the path i finally got it to atleast tell me that the texture localization is wrong where should i put them and yes the pixie does appear and since there is no texture it appears pink

I like helping people because i was also in a same problem and i do not like unfinished work, so a thank you will be enough for the people im helping and a thank you to the people that helped me :)

With RessourceLocation("modid","texturepath.png"), it leads to assets/"modid"/"path...".png.

So in dev, put corresponding texture in mcp/src/minecraft/assets/modid/...

  • Author

ty :) for that but i got it to work another way

I like helping people because i was also in a same problem and i do not like unfinished work, so a thank you will be enough for the people im helping and a thank you to the people that helped me :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.