hey would you mind if i made a video tutorial for this and also would the mob work for a server
Please feel free to make a video, I'll even add it to the OP if you'd like, and no it won't work on the server.
KillNature: Thanks for helping people out, I've got a lot of projects going right now and you are taking a lot of stress off of me by working on this. Thanks.
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.
hey would you mind if i made a video tutorial for this and also would the mob work for a server
Please feel free to make a video, I'll even add it to the OP if you'd like, and no it won't work on the server.
KillNature: Thanks for helping people out, I've got a lot of projects going right now and you are taking a lot of stress off of me by working on this. Thanks.
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
hey would you mind if i made a video tutorial for this and also would the mob work for a server
Please feel free to make a video, I'll even add it to the OP if you'd like, and no it won't work on the server.
KillNature: Thanks for helping people out, I've got a lot of projects going right now and you are taking a lot of stress off of me by working on this. Thanks.
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
ps i will make video sometime tomorrow as i have got to go to bed for school soon btw check out my mod viewtopic.php?f=25&t=170604
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
ps i will make video sometime tomorrow as i have got to go to bed for school soon btw check out my mod viewtopic.php?f=25&t=170604
Does your mod_ file have this in it?
public void AddRenderer(Map map)
{
map.put(EntityPigman.class, new RenderBiped(new ModelBiped(), 0.5F));
}
if so, you might need to post your codes so I can see whats wrong.
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.
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
ps i will make video sometime tomorrow as i have got to go to bed for school soon btw check out my mod viewtopic.php?f=25&t=170604
Does your mod_ file have this in it?
public void AddRenderer(Map map)
{
map.put(EntityPigman.class, new RenderBiped(new ModelBiped(), 0.5F));
}
if so, you might need to post your codes so I can see whats wrong.
i pasted the code you gave me into the entity files and i got this error
public void AddRenderer(Map map)
{
map.put(EntityPigman.class, new RenderBiped(new ModelBiped(), 0.5F));
}
edit* wait you said put in mod_ files dont worry
So just replace them.Your mob should now wield a bow and shoot arrows.Also,as a plus the mob should get angry like zombiepigmen and shoot arrows etc.
By the way Miztakay, no problem! I'm just trying to help and also be helped :biggrin.gif: Also , miztakay.I need some help. I'm having problems trying to add new blocks and items to the game using modloader . Could you maybe make a tutorial about that.Modloader got me confusing.It is easy to mod it originally, but modloader adds new functions etc.
Nice mod.I'd like to work with you.You know what they say, two hands are better than one.By the way i have realised that i also need a worldgen tutorial along with creating new block and items WITH modloader.
Hi, I already make a human mob, but now i want something a little diferent.
I want to use another model than the biped one, so i edited the code and put something like this:
map.put(EntityJaba.class, new RenderSlime(new ModelSlime(), 0.5F));
For using the Slime model, but in gives me this error:
sources\minecraft\net\minecraft\src\mod_BB.java:24: cannot find symbol
symbol : constructor ModelSlime()
location: class net.minecraft.src.ModelSlime
map.put(EntityBB.class, new RenderSlime(new ModelSlime(), 0.5F));
^
sources\minecraft\net\minecraft\src\mod_BB.java:24: internal error; cannot insta
ntiate net.minecraft.src.RenderSlime.<init> at net.minecraft.src.RenderSlime to
()
map.put(EntityBB.class, new RenderSlime(new ModelSlime(), 0.5F));
^
Hi, I already make a human mob, but now i want something a little diferent.
I want to use another model than the biped one, so i edited the code and put something like this:
map.put(EntityJaba.class, new RenderSlime(new ModelSlime(), 0.5F));
For using the Slime model, but in gives me this error:
sources\minecraft\net\minecraft\src\mod_BB.java:24: cannot find symbol
symbol : constructor ModelSlime()
location: class net.minecraft.src.ModelSlime
map.put(EntityBB.class, new RenderSlime(new ModelSlime(), 0.5F));
^
sources\minecraft\net\minecraft\src\mod_BB.java:24: internal error; cannot insta
ntiate net.minecraft.src.RenderSlime.<init> at net.minecraft.src.RenderSlime to
()
map.put(EntityBB.class, new RenderSlime(new ModelSlime(), 0.5F));
^
Some help please???
PS:Sorry for my bad english its not my language
i dont actually know whats wrong but i suspect it may be you have wrote jaba not java in the first line of code
That is his Entity . So jaba is his entity name. Thats not the problem. See, the problem is different here.
It is all about renderentity and modelentity.For the list of all renders available, go to RenderManager in src folder.You will see a list of all mobs and their renders. Then choose a render and place it.
For example in your code we place it like this for the mob to look like a slime.
NOT:
map.put(EntityJaba.class, new RenderSlime(new ModelSlime(), 0.5F));
BUT:
map.put(EntityJaba.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
You can see that code in RenderManager.java file. So , to make it look like a zombie(as in model) you go like this:
map.put(EntityJaba.class, new RenderBiped(new ModelZombie(), 0.5F));
Also remember that these lines are placed in public void AddRenderer(Map map) title under mod_modname .
I already try this and this compile and everything, then i put the .class files and the .png filde (whit the right name in it) and then I start minecraft, but when i use Single Player Commands and spawn it new mob, it does not show, it can push me, but this is just like if the mob was invisible any help??
I already try this and this compile and everything, then i put the .class files and the .png filde (whit the right name in it) and then I start minecraft, but when i use Single Player Commands and spawn it new mob, it does not show, it can push me, but this is just like if the mob was invisible any help??
Thanks again :biggrin.gif:
That had happened to me the first time i tried.Then i checked if i threw the mob texture in to the right place.You must put the mob texture into minecraft.jar/mobs folder, not directly inside the jar.
Other than that, make sure the name of your mob texture and the mob texture in the code is the same.I'm sure that is really easy to fix for you.
So i'm having problems myself. I've followed the instructions right. Well...I guess I didn't or I wouldn't be here. I have downloaded the newest Modloader, Spawnlist, and MCP. Along with the tutorial tools from Club's page. I get a fresh minecraft and insert, Modloader.class and Basemod.class, along with spawnlist.
Then I drag the entire bin folder to the MCP "Jars" folder. It decompiles correctly and is inserted in the sources folder. I then open all sub folders until "src". Then I added the tutorial files, "EntityPigman, Mod_Pigman, and EntityList." I don't even know if "EntityList" is required to be put in the "Src" folder because its already there. But, I do it anyways.
I then edit EntityPigman.java. I replace all the "Pigman" with "troll". Code-
package net.minecraft.src;
public class Entitytroll extends EntityCreature
{
public Entitytroll(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;
}
}
I know I'm still using "mymob.png". It doesn't bother me so I just use it lol. I don't recognize any errors in the code so I then rename the file - "Entitytroll"
Next I edited the mod_Pigman.java file. I read that you need to replace all the code. So I do that. Code-
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_troll 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_troll version 0.3";
}
public mod_troll()
{
ModLoader.RegisterEntityID(Entitytroll.class, "troll", ModLoader.getUniqueEntityId());
spawnlist.add("Surface biomes", 1, new Object[] {
Entitytroll.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(Entitytroll.class, new RenderBiped(new ModelBiped(), 0.5F));
}
}
This code is where I think I maybe messed up. But I don't see anything so I press on. I rename it, "mod_troll".
So the next step is to Recompile. I click recompile.bat and get a funky error. Code-
sources\minecraft\net\minecraft\src\ModLoader.java:743: cannot find symbol
symbol : class ModTexture
location: class net.minecraft.src.ModLoader
renderengine.registerTextureFX(new ModTexture(i, j, buffered
image));
OP had stated in a pm that I had maybe altered the Modloader file. Which I know I didn't go anywhere near that file. So this made me think it had to do with the "mod_troll" file.
I figured maybe I could get away with this error. (pfft hell no). So the next step was to add my two files to the "client_obfuscation.txt" file. I added- Entitytroll
mod_troll
Both on seperate lines like the OP stated. I save the file and run "reobf.bat". And get another error. Code-
ERROR : Class file for net/minecraft/src/Entitytroll not found. Please check your compilation logs for errors.
I know I have entitytroll in those files...I have no idea what to do at this point. I know this is a freakin long post, but please any help is appreciated.
Are your files , entitytroll and mod_Troll saved as .java files? Another friend of mine saved them as a text file and he couldn't reobfuscate because of that.Otherwise, its really hard to find a fix from here.
Could you put your whole MCP folder into a zip file and upload it into 2shared.com or some place, give me the link in PM or here so i could take a look and quickly find a fix to your problem?
Please feel free to make a video, I'll even add it to the OP if you'd like, and no it won't work on the server.
KillNature: Thanks for helping people out, I've got a lot of projects going right now and you are taking a lot of stress off of me by working on this. Thanks.
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
ok no problem also how do you make your mobs hold weapons etc cos i copied the zombie pigmans code for holding and when i get ingame they hold nothing
ps i will make video sometime tomorrow as i have got to go to bed for school soon btw check out my mod
viewtopic.php?f=25&t=170604
Does your mod_ file have this in it?
if so, you might need to post your codes so I can see whats wrong.
i pasted the code you gave me into the entity files and i got this error
public void AddRenderer(Map map)
{
map.put(EntityPigman.class, new RenderBiped(new ModelBiped(), 0.5F));
}
edit* wait you said put in mod_ files dont worry
That is simple.To make your mob wield a bow just change defaultHeldItem line into this :
defaultHeldItem = new ItemStack(Item.bow, 1);
Later on, you will need some code taken from the EntitySkeleton file itself.
Change this line on your code.
This is the place where the mob hits melee.But you can notice in skeleton entity this is different.It goes like this.
So just replace them.Your mob should now wield a bow and shoot arrows.Also,as a plus the mob should get angry like zombiepigmen and shoot arrows etc.
By the way Miztakay, no problem! I'm just trying to help and also be helped :biggrin.gif:
Also , miztakay.I need some help. I'm having problems trying to add new blocks and items to the game using modloader . Could you maybe make a tutorial about that.Modloader got me confusing.It is easy to mod it originally, but modloader adds new functions etc.
check out my mod
btw im making the video tut now
EDIT* video done uploading link next edit
EDIT 2 * **** power went out upload conversion failed GRRR
viewtopic.php?f=25&t=167861
I want to use another model than the biped one, so i edited the code and put something like this:
For using the Slime model, but in gives me this error:
Some help please???
PS:Sorry for my bad english its not my language
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\Mod_Gladiator.java:14: invalid method declar
ation; return type required
public mod_Gladiator()
^
1 error
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===
Press any key to continue . . .
i figured it wasent a problem but my final_out thing is empty. PLEASE HELP MEH
i dont actually know whats wrong but i suspect it may be you have wrote jaba not java in the first line of code
It is all about renderentity and modelentity.For the list of all renders available, go to RenderManager in src folder.You will see a list of all mobs and their renders. Then choose a render and place it.
For example in your code we place it like this for the mob to look like a slime.
NOT:
BUT:
You can see that code in RenderManager.java file. So , to make it look like a zombie(as in model) you go like this:
Also remember that these lines are placed in public void AddRenderer(Map map) title under mod_modname .
Have fun with your new ... slime mob? :smile.gif:
EDIT:
I already try this and this compile and everything, then i put the .class files and the .png filde (whit the right name in it) and then I start minecraft, but when i use Single Player Commands and spawn it new mob, it does not show, it can push me, but this is just like if the mob was invisible any help??
Thanks again :biggrin.gif:
That had happened to me the first time i tried.Then i checked if i threw the mob texture in to the right place.You must put the mob texture into minecraft.jar/mobs folder, not directly inside the jar.
Other than that, make sure the name of your mob texture and the mob texture in the code is the same.I'm sure that is really easy to fix for you.
i plan to add it to my elves
Then I drag the entire bin folder to the MCP "Jars" folder. It decompiles correctly and is inserted in the sources folder. I then open all sub folders until "src". Then I added the tutorial files, "EntityPigman, Mod_Pigman, and EntityList." I don't even know if "EntityList" is required to be put in the "Src" folder because its already there. But, I do it anyways.
I then edit EntityPigman.java. I replace all the "Pigman" with "troll". Code-
I know I'm still using "mymob.png". It doesn't bother me so I just use it lol. I don't recognize any errors in the code so I then rename the file - "Entitytroll"
Next I edited the mod_Pigman.java file. I read that you need to replace all the code. So I do that. Code-
This code is where I think I maybe messed up. But I don't see anything so I press on. I rename it, "mod_troll".
So the next step is to Recompile. I click recompile.bat and get a funky error. Code-
OP had stated in a pm that I had maybe altered the Modloader file. Which I know I didn't go anywhere near that file. So this made me think it had to do with the "mod_troll" file.
I figured maybe I could get away with this error. (pfft hell no). So the next step was to add my two files to the "client_obfuscation.txt" file. I added-
Entitytroll
mod_troll
Both on seperate lines like the OP stated. I save the file and run "reobf.bat". And get another error. Code-
I know I have entitytroll in those files...I have no idea what to do at this point. I know this is a freakin long post, but please any help is appreciated.
Many thanks
-TLitten
Could you put your whole MCP folder into a zip file and upload it into 2shared.com or some place, give me the link in PM or here so i could take a look and quickly find a fix to your problem?
I remember already giving it. Anyways, just get it from zombie pigman. It isn't that hard.
any help? I think it's not finding the texture for it but idk