I made a test mob in MCP to test to see if the old way with ModLoader works, because when I tried to update a mob in one of my mods it crashed, but this time with the test mob it didn't, so I guess it was actually another problem.
The game doesn't crash, however, the mob is invisible.I know its there because I made a custom spawn egg for it, because I couldn't hear the noise it makes without it, and when I spawn it, I heard the noise I made it make.(It made zombie noises, and I knew it wasn't a real zombie because it was day time and I heard them after I spawned them.) Its invisible, and there's no shadow, and it seems I can't hurt it, because I spawn one and when I punch in the place I spawned it I don't hear the hurting noise.(I made the sound it makes when it gets hurt as the normal player hurt noise.)
I searched for tutorials to help and couldn't find any for 1.3.1.I found on one thread in this forum you replace "ModLoader.getUniqueEntityID" with an ID for the mob, and I did that, and then the mob spawned where I wouldn't need a spawn egg, but the mob is still invisible.I know the texture is in the right place because I made it use the char.png texture "/mob/char.png"
“Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.”
- Linus Torvalds (Finnish American, software engineer and hacker, principal force behind the development of the Linux kernel)
The problem is modloader if you bothered to read rasugami's post it states that Everything is updated BUT EXPECT some issues and sadly those issues are affecting the mobs and until modloader is completely fixed expect no mobs until rasugami has sorted out as he stated "annoyances" with the new update.
The linked posted before is a perfect reason why it isn't working.
Rollback Post to RevisionRollBack
V---------------------------------Right Here-------------------------------- Hit that up arrow if I helped you or if you just like me
The game doesn't crash, however, the mob is invisible.I know its there because I made a custom spawn egg for it, because I couldn't hear the noise it makes without it, and when I spawn it, I heard the noise I made it make.(It made zombie noises, and I knew it wasn't a real zombie because it was day time and I heard them after I spawned them.) Its invisible, and there's no shadow, and it seems I can't hurt it, because I spawn one and when I punch in the place I spawned it I don't hear the hurting noise.(I made the sound it makes when it gets hurt as the normal player hurt noise.)
I searched for tutorials to help and couldn't find any for 1.3.1.I found on one thread in this forum you replace "ModLoader.getUniqueEntityID" with an ID for the mob, and I did that, and then the mob spawned where I wouldn't need a spawn egg, but the mob is still invisible.I know the texture is in the right place because I made it use the char.png texture "/mob/char.png"
Anyone know how to fix this?
My mod_ file:
import java.util.Map;
public class mod_EntityTest extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(EntityTest.class, "Test Mob", 171);
ModLoader.addSpawn(EntityTest.class, 5, 7, 9, EnumCreatureType.creature);
}
public void addRenderer(Map map)
{
map.put(EntityTest.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.3.1";
}
}
My Entity file:
import java.util.Random;
public class EntityTest extends EntityCreature
{
public EntityTest(World world)
{
super(world);
texture = "/mob/char.png";
moveSpeed = 2.0F;
}
public int getMaxHealth()
{
return 10;
}
protected String getLivingSound()
{
return "mob.zombie";
}
protected String getHurtSound()
{
return "damage.hurtflesh";
}
protected String getDeathSound()
{
return "ambient.weather.thunder";
}
protected int getDropItemId()
{
return Item.ingotIron.shiftedIndex;
}
protected boolean canDespawn()
{
return false;
}
}
The texture is the char.png, also, how would making a new texture that's completely transparent make it non-invisible?It would still be invisible :/
- Linus Torvalds (Finnish American, software engineer and hacker, principal force behind the development of the Linux kernel)
No
That doesn't really say anything about invisible mobs.
The linked posted before is a perfect reason why it isn't working.