public class mod_gman extends BaseMod
{
public mod_gman()
{
}
public String Version()
{
return "1.2_02";
}
public void AddEntityID()
{
//This defines your entity. Class name, entity name, and then the entity ID.
EntityList.addMapping(Entitygman.class, "gman", ModLoader.getUniqueEntityId());
//This adds your mob to the spawn list.
spawnlist.addCreaturesToSpawnList("Surface biomes", Entitygman.class);
}
}
with this
public class mod_vaultboy extends BaseMod
{
public String Version()
{
return "mod_gman version 0.1";
}
public mod_gman()
{
ModLoader.RegisterEntityID(Entitygman.class, "gman", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
Entitygman.class
});
}
}
Rollback Post to RevisionRollBack
GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
*** Minecraft Coder Pack Version 2.7 ***
Finding java.exe... if you want to speed this up, add it to your PATH
Finding javac.exe... if you want to speed this up, add it to your PATH
Path set.
Compiling Minecraft
sources\minecraft\net\minecraft\src\mod_gman.java:10: cannot find symbol
symbol : class Entitygman
location: class mod_gman
ModLoader.RegisterEntityID(Entitygman.class, "gman", ModLoader.getUnique
EntityId());
^
sources\minecraft\net\minecraft\src\mod_gman.java:12: cannot find symbol
symbol : class Entitygman
location: class mod_gman
Entitygman.class
^
2 errors
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
atleast only 2 more errors until it finally works :biggrin.gif:
YESSS!!!!
it ****en compiled and obfusticated :biggrin.gif: it dint crash minecraft client, ima test if it spawns properly tommorow cuz i have school tmmrw -.-
i have just one last question, which line can you edit your mobs health and setting of the brightness where it can spawn
Under:
public Entitygman(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/gman.png";
}
anywhere in that little group, add
health = 100;
change 100 to whatever you want I guess, 100 is pretty high.
Also I need to edit what I said earlier, to make you mobs carry items add this code to mod_
public void AddRenderer(Map map)
{
map.put(Entitygman.class, new RenderBiped(new ModelBiped(), 0.5F));
}
as for the brightness, add this to your code somewhere in Entitygman
public boolean getCanSpawnHere()
{
int i = MathHelper.floor_double(posX);
int j = MathHelper.floor_double(boundingBox.minY);
int k = MathHelper.floor_double(posZ);
int l = worldObj.getBlockId(i, j - 1, k);
return worldObj.checkIfAABBIsClear(boundingBox) && worldObj.getCollidingBoundingBoxes(this, boundingBox).size() == 0 && worldObj.getBlockLightValue(i, j, k) > 8 && !worldObj.getIsAnyLiquid(boundingBox)
}
change the 8 to whatever, i've never played with that value so idk how to help you there.
Rollback Post to RevisionRollBack
GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
since irc isnt helping me may i ask one a few more questions? Where can you add/edit damage?
Are we talking mob strength? Well idk if it will work for you because your mob extends EntityCreature, but for mobs that extend EntityMobs you can use this code
attackStrength = 4;
that would go directly under your health code. But again, idk if it will work for EntityCreature. If not, you might just want to change your mob to extend EntityMobs anyways, the only con to that being they wont spawn on peaceful. And might attack you if they don't already.
Rollback Post to RevisionRollBack
GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
atleast only 2 more errors until it finally works :biggrin.gif:
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
just base mod modlaoder and spawnlist
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
It's easy to miss that's why I ask.
omg -tripple facepalm- im so stupid -.- forgot to put that it in
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
it ****en compiled and obfusticated :biggrin.gif: it dint crash minecraft client, ima test if it spawns properly tommorow cuz i have school tmmrw -.-
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
no homo
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
Under:
anywhere in that little group, add change 100 to whatever you want I guess, 100 is pretty high.
Also I need to edit what I said earlier, to make you mobs carry items add this code to mod_
as for the brightness, add this to your code somewhere in Entitygman
change the 8 to whatever, i've never played with that value so idk how to help you there.
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps
Are we talking mob strength? Well idk if it will work for you because your mob extends EntityCreature, but for mobs that extend EntityMobs you can use this code
that would go directly under your health code. But again, idk if it will work for EntityCreature. If not, you might just want to change your mob to extend EntityMobs anyways, the only con to that being they wont spawn on peaceful. And might attack you if they don't already.
http://www.minecraftforum.net/viewtopic.php?f=25&t=157176 list of my maps