/**
* Defines what float the third param in setRotationAngles of ModelBase is
*/
protected float handleRotationFloat(EntityLiving par1EntityLiving, float par2)
{
return getWingRotation((EntityGroosling)par1EntityLiving, par2);
}
/**
* Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
* handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
* (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
renderGroosling((EntityGroosling)par1Entity, par2, par4, par6, par8, par9);
}
}
And finally here is my ModelGroosling.java class:
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class ModelGroosling extends ModelBase
{
public ModelRenderer head;
public ModelRenderer body;
public ModelRenderer rightLeg;
public ModelRenderer leftLeg;
public ModelRenderer rightWing;
public ModelRenderer leftWing;
public ModelRenderer bill;
public ModelRenderer chin;
public ModelGroosling()
{
int i = 16;
head = new ModelRenderer(this, 0, 0);
head.addBox(-2F, -6F, -2F, 4, 6, 3, 0.0F);
head.setRotationPoint(0.0F, -1 + i, -4F);
bill = new ModelRenderer(this, 14, 0);
bill.addBox(-2F, -4F, -4F, 4, 2, 2, 0.0F);
bill.setRotationPoint(0.0F, -1 + i, -4F);
chin = new ModelRenderer(this, 14, 4);
chin.addBox(-1F, -2F, -3F, 2, 2, 2, 0.0F);
chin.setRotationPoint(0.0F, -1 + i, -4F);
body = new ModelRenderer(this, 0, 9);
body.addBox(-3F, -4F, -3F, 6, 8, 6, 0.0F);
body.setRotationPoint(0.0F, i, 0.0F);
rightLeg = new ModelRenderer(this, 26, 0);
rightLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
rightLeg.setRotationPoint(-2F, 3 + i, 1.0F);
leftLeg = new ModelRenderer(this, 26, 0);
leftLeg.addBox(-1F, 0.0F, -3F, 3, 5, 3);
leftLeg.setRotationPoint(1.0F, 3 + i, 1.0F);
rightWing = new ModelRenderer(this, 24, 13);
rightWing.addBox(0.0F, 0.0F, -3F, 1, 4, 6);
rightWing.setRotationPoint(-4F, -3 + i, 0.0F);
leftWing = new ModelRenderer(this, 24, 13);
leftWing.addBox(-1F, 0.0F, -3F, 1, 4, 6);
leftWing.setRotationPoint(4F, -3 + i, 0.0F);
}
I'm back and I need some help. I have made a minor mod with just a recipe and another mod with a santa mob but none of them are loading. I use MC patcher to install my mods but none of them seem to work. Any help would be great
Edit: Here are the two mods I have loaded and their files.
Secret Extras Mod
mod_SecretExtras.java
package net.minecraft.src;
import java.util.Map;
public class mod_SecretExtra extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(EntitySanta.class, "Santa", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntitySanta.class, 2, 1, 4, EnumCreatureType.creature, new BiomeGenBase[]
{
BiomeGenBase.taiga,
BiomeGenBase.jungle,
BiomeGenBase.jungleHills,
BiomeGenBase.hell
});
}
public void addRenderer(Map map)
{
map.put(EntitySanta.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Have you tried just using the chicken texture already in the jar?
texture = "/mob/chicken.png";
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
A class is a file, such as your mod file, block file, or item file. addCrafting and addSmelting are methods, which are contained within the load method of your mod file.
That not at all answered my question. I know what a class is, I am wondering where I would put the code for the Smelting and Crafting. Would I put it in a new class? If so, what would I name it?
That not at all answered my question. I know what a class is, I am wondering where I would put the code for the Smelting and Crafting. Would I put it in a new class? If so, what would I name it?
You just put them in the load() method of your existing mod_ class.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
That not at all answered my question. I know what a class is, I am wondering where I would put the code for the Smelting and Crafting. Would I put it in a new class? If so, what would I name it?
I said, the code for the crafting and smelting goes within the load method of your mod class. Please read what I typed.
Oh, yeah, I guess. I looked for one and I can't find any besides youtube videos, and I hate learning by that... got any tutorials? and is that item problem going to keep happening, do you know? Thanks
Look in the Tutorials sub forum, because there are probably some in there. I do not know of any written tutorials I can specify to you. I actually saw the problem in your code. You have package.net.minecraft.src instead of package net.minecraft.src, that is what is causing problems.Hey TechGuy, are you sure you don't want me to write tutorials for you? These people need to have information on tools, and naturally generating ores, and the like. I really don't want to make a new page that will rival yours, but I want to get this info out there.
First off, you didn't register your blocks. Use the ModLoader.registerBlock method. Second, please post your error report, so we can see what exactly does not work.
I dont HAVE an error report, because i was wondering what i was missing, as i knew i was missing something.
They can? My bad :S but I didn't think that was the issue
That is not the issue, I was just correcting a misunderstanding. His issue is that he did not properly type package net.minecraft.src; which was causing the references to be incorrect.
the public static final for the item declaration in mod_ class doesnt work eclipse makes me get rid of the public static in public static final. what do i do??
Look in the Tutorials sub forum, because there are probably some in there. I do not know of any written tutorials I can specify to you. I actually saw the problem in your code. You have package.net.minecraft.src instead of package net.minecraft.src, that is what is causing problems.
Hey TechGuy, are you sure you don't want me to write tutorials for you? These people need to have information on tools, and naturally generating ores, and the like. I really don't want to make a new page that will rival yours, but I want to get this info out there.
I think that actually worked, Thank you so much, and I really hope you make a tutorial on tools! I'm making a "More Everything" mod, tools/weapons included, and I'm not sure if TechGuy by himself can make so many tutorials so fast; I hope you can help! Keep it up TechGuy, and thanks; I'm sure I'm going to run into another problem somewhere... XD
If I want to make a mob with the shape of a pig, can I just use the vanilla pig's model and render file? And if so, where could I make him wear an iron helmet
I was having trouble on the Block blockname= Blockblockname(160,0). Here is the code
[/CODE]
public static final Block AwesomeBlock = BlockAwesomeBlock(160,0).setBlockName("AwesomeBlock").setHardness(4F).setResistance(10F).setLightValue(1F);
[/CODE]
I don't know how to do spoilers sorry for the inconvenience, but please help.
I was having trouble on the Block blockname= Blockblockname(160,0). Here is the code
[/CODE]
public static final Block AwesomeBlock = BlockAwesomeBlock(160,0).setBlockName("AwesomeBlock").setHardness(4F).setResistance(10F).setLightValue(1F);
[/CODE]
I don't know how to do spoilers sorry for the inconvenience, but please help.
Unless you are using the second class, I assume you forgot to put it's type (iron, wood, etc.)
Uhmm, this looks like a good tutorial because I just started today. I decompiled the jars succesfully. And I wanted to download Eclipse because you said its recommended. I have one question though, in here http://www.eclipse.org/downloads/. It has lots of dowloads, which should I pick, Eclipse IDE for Java EE Developers, or Eclipse IDE for Java Developers? I surely don't want to be downloading the wrong thing. Thank you in advanced.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
package net.minecraft.src; import java.util.Random; public class ItemPokeball extends Item { public ItemPokeball(int par1) { super(par1); maxStackSize = 16; } /** * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer */ public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { par1ItemStack.stackSize--; par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntityPokeball(par2World, par3EntityPlayer)); } return par1ItemStack; }{ if (isPokemon() = true){ } } }I don't use or know about MCPatcher so I don't know.
Have you tried just using the chicken texture already in the jar?
together they are powerful beyond imagination."
I'll try that thanks
That not at all answered my question. I know what a class is, I am wondering where I would put the code for the Smelting and Crafting. Would I put it in a new class? If so, what would I name it?
You just put them in the load() method of your existing mod_ class.
together they are powerful beyond imagination."
I said, the code for the crafting and smelting goes within the load method of your mod class. Please read what I typed.
Look in the Tutorials sub forum, because there are probably some in there. I do not know of any written tutorials I can specify to you. I actually saw the problem in your code. You have package.net.minecraft.src instead of package net.minecraft.src, that is what is causing problems.Hey TechGuy, are you sure you don't want me to write tutorials for you? These people need to have information on tools, and naturally generating ores, and the like. I really don't want to make a new page that will rival yours, but I want to get this info out there.
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI dont HAVE an error report, because i was wondering what i was missing, as i knew i was missing something.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI would suggest mod development...
PhantomJedi said what the error was caused by
They can? My bad :S but I didn't think that was the issue
That is not the issue, I was just correcting a misunderstanding. His issue is that he did not properly type package net.minecraft.src; which was causing the references to be incorrect.
Ok. As I said before, just add registerBlock methods for each of your blocks.
what do i do??
Nope still invisible!! Argh!
I think that actually worked, Thank you so much, and I really hope you make a tutorial on tools! I'm making a "More Everything" mod, tools/weapons included, and I'm not sure if TechGuy by himself can make so many tutorials so fast; I hope you can help! Keep it up TechGuy, and thanks; I'm sure I'm going to run into another problem somewhere... XD
Ya my mobs spawn fine and drop the told items when killed but they are completely invisible
[/CODE]
public static final Block AwesomeBlock = BlockAwesomeBlock(160,0).setBlockName("AwesomeBlock").setHardness(4F).setResistance(10F).setLightValue(1F);
[/CODE]
I don't know how to do spoilers sorry for the inconvenience, but please help.
Unless you are using the second class, I assume you forgot to put it's type (iron, wood, etc.)