If I decompile a clean minecraft.jar - then I get no errors at all and all the .java files are placed into /src/ folder.
When I follow these steps:
1. Add Basemod.class, ModTexture.class and Modloader.class to your clean minecraft.jar.
2. Add spawnlist.class to your minecraft.jar.
(using mcp29a, Modloader ver4 and spawnlist 1.3v1)
I get a ton of hunk errors and /src/ folder is empty.
I also tried the updates to the /conf/reob.conf file and still got the same hunk errors.
Am I missing something?
Rollback Post to RevisionRollBack
Any Mac friends having trouble installing forge on your minecraft_server.jar files? Check out my script that lets you do it easily with one simple click! For more info look here http://www.minecraft...-click-install/
i get the same error. been searching for it on internet. no luck =(
help us! ****
Being rude won't get you help, I don't gain from this thread at all, friend.
To everyone having issues, I'm sorry to say but I'm not really huge into the modding world anymore, this tutorial seems to be quite a bit behind the newest versions of modloader and spawnlist, both of which have changed quite a bit. The OP has been updated with all the fixes I know of, and if anyone comes forward with the answers people need I will update the OP with the fixes, but I can not and will not promise to keep up with modloader and spawnlist's every change, I simply don't have the time. Sorry.
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.
How do you make models for your own mobs?
also what does the 0.4b and stuff like that mean? Is there a place where I can go to translate that into what I need?
plus for making an item. I'm trying to make food but how do I change the amount of health it heals? thanks in advance if you answer these questions!
Rollback Post to RevisionRollBack
A signature was supposed to be here but your computer decided not to show it.
Ok, first of all did you put modloader into the minecraft.jar file before decompiling? If so that might be causing some of your problems, you want to start with a clean slate. When you downloaded the MCP files inside there should be a text file named readme_ml, if you read that it will explain how to decompile correctly like above ^^, once you do that get back to me and tell me how it went/if you have another problem. Also I'm having the same trouble with your 3rd error.
For some reason when I attack my mob it sends me flying away, it knocks me back and does constant damage, instead of just when I'm attacked.
Here's the code:
I dont have anything in my final_out/minecraft folder.
halp?
EDIT: also i dont think i listed every file for step 16. im not sure what to put there all i put is mod_Zombie and thats it
EDIT 2: i did it again and i get this:
*** Minecraft Coder Pack Version 2.9 ***
MCP 2.9 running in C:\Users\toshiba\Desktop\L4D Zombie
Compiling Minecraft
sources\minecraft\net\minecraft\src\ModLoader.java:525: not a statement
exception;
^
1 error
*** minecraft_server.jar was not found, skipping
=== MCP 2.9 recompile script finished ===
Press any key to continue . . .
and i checked every file to see for capitalization errors and spelling errors and nothin. i think my error was that it asked me if i wanted to replace entitylist with the entitlylist already in mcp, i put yes.. so any help?
Im SO close to accomplishing the "getting them on the map" part of the development of my mod :happy.gif:
th nks to these tutorials.
one problem though, I've created two mobs. one of them is visible on the map in game and the other is not. I can spawn the second one with SSP commands and see its shadow but not its body texture
in attempting to fix this I have:
went over the coding 0var 9,000 times
made sure its in the minecraft.jar file in the mobs folder
made sure the png files were sized and named correctly (they are only just recolors of each other)
what else can I do? here is my mod_mob.class
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_stonit extends BaseMod
{
public String Version()
{
return "mod_stonit version 0.3";
}
public mod_stonit()
{
ModLoader.RegisterEntityID(Entitystonit.class, "Stonit", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", spawnlist.CREATURE, new Object[] {"Stonit", Entitystonit.class});
ModLoader.RegisterEntityID(Entitystonitb.class, "BlueStonit", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", spawnlist.CREATURE, new Object[] {"BlueStonit", Entitystonitb.class});
}
public void AddRenderer(Map map)
{
map.put(Entitystonit.class, new Renderstonit(new Modelstonit(), 0.5F));
map.put(Entitystonitb.class, new Renderstonitb(new Modelstonitb(), 0.5F));
}
}
I compiled and reobfuscated the code, but when I put it in minecraft.jar with modloader and spawnlist, it freezes on loading the world.
Here's my code:
EntityHumanTest.java
package net.minecraft.src;
public class EntityHumanTest extends EntityCreature
{
public EntityHumanTest(World world)
{
super(world);
//This is the texture for your mob
texture = "/mob/HumanTest.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Block.blockDiamond.blockID;
}
public boolean getCanSpawnHere()
{
if(worldObj.countEntities(this.getClass()) >= 20){
return false;
}
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);
}
}
mod_HumanTest.java
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_HumanTest extends BaseMod
{
public String Version()
{
//not sure exactly what this does, but I know that you can write pretty much anything you want in there.
return "mod_HumanTest version 0.1";
}
public mod_HumanTest()
{
ModLoader.RegisterEntityID(EntityHumanTest.class, "HumanTest", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", spawnlist.CREATURE, new Object[] {"HumanTest", EntityHumanTest.class});
}
//this part gives your mob a human model. This part is necessary if you want your mob to be able to carry stuff.
public void AddRenderer(Map map)
{
map.put(EntityHumanTest.class, new RenderBiped(new ModelBiped(), 0.5F));
}
}
EDIT: Odd... it works when I put it in my existing minecraft.jar with different mods. I had this issue with putting "You are the Creeper" in a clean .jar too...
FINALLY got it all compiled with no problems (Thanks to many of you), but I can't seem to find my mob anywhere. Not in test_game or if I reobf and place the class files into minecraft.jar, I've made sure I have the textures in the right place so can anyone help?
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.
could you tell me please how to add sounds to my mobs ? they are not modloader heres the link:
i added the sounds but when i go to game i dont hear them help me ! im using normal mob with no modloader and i used your code what should i do help please what names should i put and in which folder ? if not using modloader?
my mob works but i cant see him i know it is there couse when i hit the air with my diamond sword i can see he is dieng + pickaxes dont just fall from the sky i change the texture i added the texture to mobs folder and i cant see him he is invisiable (sorry for bad english)
If I decompile a clean minecraft.jar - then I get no errors at all and all the .java files are placed into /src/ folder.
When I follow these steps:
1. Add Basemod.class, ModTexture.class and Modloader.class to your clean minecraft.jar.
2. Add spawnlist.class to your minecraft.jar.
(using mcp29a, Modloader ver4 and spawnlist 1.3v1)
I get a ton of hunk errors and /src/ folder is empty.
I also tried the updates to the /conf/reob.conf file and still got the same hunk errors.
Am I missing something?
Being rude won't get you help, I don't gain from this thread at all, friend.
To everyone having issues, I'm sorry to say but I'm not really huge into the modding world anymore, this tutorial seems to be quite a bit behind the newest versions of modloader and spawnlist, both of which have changed quite a bit. The OP has been updated with all the fixes I know of, and if anyone comes forward with the answers people need I will update the OP with the fixes, but I can not and will not promise to keep up with modloader and spawnlist's every change, I simply don't have the time. Sorry.
also what does the 0.4b and stuff like that mean? Is there a place where I can go to translate that into what I need?
plus for making an item. I'm trying to make food but how do I change the amount of health it heals? thanks in advance if you answer these questions!
please help me.
Still have the same error.
I added the latest spawnlist mapping to my minecraft.rgs, yet it still gave me that error! Am I not adding the mappings properly or something?
Here's the code:
What would be causing this?
halp?
EDIT: also i dont think i listed every file for step 16. im not sure what to put there all i put is mod_Zombie and thats it
EDIT 2: i did it again and i get this:
and i checked every file to see for capitalization errors and spelling errors and nothin. i think my error was that it asked me if i wanted to replace entitylist with the entitlylist already in mcp, i put yes.. so any help?
th nks to these tutorials.
one problem though, I've created two mobs. one of them is visible on the map in game and the other is not. I can spawn the second one with SSP commands and see its shadow but not its body texture
in attempting to fix this I have:
went over the coding 0var 9,000 times
made sure its in the minecraft.jar file in the mobs folder
made sure the png files were sized and named correctly (they are only just recolors of each other)
what else can I do? here is my mod_mob.class
Here's my code:
EntityHumanTest.java
mod_HumanTest.java
EDIT: Odd... it works when I put it in my existing minecraft.jar with different mods. I had this issue with putting "You are the Creeper" in a clean .jar too...
could you tell me please how to add sounds to my mobs ? they are not modloader heres the link:
viewtopic.php?f=1032&t=214673&p=3097638#p3097638
please help...
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->Latest mappings for ModLoader v5
And for those of you with spawnlist problems:
Latest mappings for spawnlist
Don't ask what PigZombieAbove is lol. anyway, that is my only error! PLEASE HELP!
Lots More Humans (Beta 1.5_01)
I had that same problem man.
You need to do this:
Dont' let the "Spawnlist 1.2_02v2 for MCP 1.7+" fool you either. It actually works even though it says it's for older versions.
Far out. My first mob mod! :biggrin.gif: