Sorry guy, I think something like this requires intense coding that no one has done yet.
I know Actionscript 3 and some java
So...how would I begin?
It's good that you're willing to try but with no experience modding at all, you wont have much luck. He doesn't mean that nobody has tried to do it, he means nobody can get it to work yet.
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.
Is there a way to add multiple mobs to the same mod_name file? I was going to copy the same mob code in the file, but looking at sources of other mods(such as mo creatures) it didn't seem like the thing to do, so thought i'd ask here, also, great tutorial, works perfectly :biggrin.gif:
To have multiple mobs run through the same mod_ file, simply replicate this code:
Ok this is annoying the hell out of me, I've been trying to get a single mob to appear for a full week or two now. Today I noticed the spawnlist adding thing is different since I had no other way to know that till I was told. Still not working. I even used the tutorial files and modified them with a small test of extra code.
EntityPigman.java
package net.minecraft.src;
public class EntityPigman extends EntityCreature
{
public EntityPigman(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/mymob.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.porkCooked.shiftedIndex;
}
}
mod_Pigman.java
package net.minecraft.src;
import java.lang.reflect.Method;
public class mod_Pigman extends BaseMod
{
public mod_Pigman()
{
}
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(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
//This adds your mob to the spawn list.
ModLoader.RegisterEntityID(EntityPigman.class, "Pigman", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
EntityPigman.class
});
}
}
I purposely left both the old and new coding for the UniqueID thing cause I wasn't sure if anything was even working.
No matter what I've tried I NEVER EVER see a new mob ANYWHERE.
Any ideas?
I'm kind of short on time so I can't read through your code but I rewrote this guide here: viewtopic.php?f=25&t=165582
i fixed the things that were missing and wrote it step by step so you should find whats wrong there. Hope I helped.
Israphel is unknown, so i guess unknown... for now.
No i need the actual skin .png's, not pictures of what they look like. find those and I will put this mod up, the coding is already done.
Edit*:Didn't see the post above, you want more than one of each to spawn? Cause I made it so only one of each will spawn at any given time. Which would u prefer?
replace "mob" with the name of the folder your sounds are in, and after the period comes the name of the sound. if you have a couple different sounds for each thing, just name them the same with 2, 3, 4, etc. that should work. anyways the folder path should be .minecraft/resources/mod/sound/yourfolder.
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.
0
good luck getting someone to help you with a pirated game.
Edit: looks like she's since bought the game to anyone that cares.
0
It's good that you're willing to try but with no experience modding at all, you wont have much luck. He doesn't mean that nobody has tried to do it, he means nobody can get it to work yet.
0
0
0
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.
0
To have multiple mobs run through the same mod_ file, simply replicate this code:
and this code
replacing the names as needed.
ex:
0
I'm kind of short on time so I can't read through your code but I rewrote this guide here: viewtopic.php?f=25&t=165582
i fixed the things that were missing and wrote it step by step so you should find whats wrong there. Hope I helped.
0
Lol you can have it, I'm working on a couple mods right now, I was just gonna give him basic mobs.
0
Alright I'll touch up and post this mod tomorrow, I'm tired as hell lol. Those are the right png's.
0
0
No i need the actual skin .png's, not pictures of what they look like. find those and I will put this mod up, the coding is already done.
Edit*:Didn't see the post above, you want more than one of each to spawn? Cause I made it so only one of each will spawn at any given time. Which would u prefer?
0
Yes and I will add it to the OP at some point. put this in EntityYourmob
replace "mob" with the name of the folder your sounds are in, and after the period comes the name of the sound. if you have a couple different sounds for each thing, just name them the same with 2, 3, 4, etc. that should work. anyways the folder path should be .minecraft/resources/mod/sound/yourfolder.
0
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.
0
0