So, when 1.6 came out I tried to update my mod, but I got really irked by all the stuff that Mojang changed, and kinda stopped trying, but recently I have taken it up again, but I need to know a few things: How to do block textures.
How to do item textures.
How to do mutitextured blocks. How to render mobs. How to render snowball-like item
So if any of you know how and/or have the code for it, I would greatly appreciate you telling me
-Thank You-
They are called entities. Take a look at the snowball code. You should find everything there. One good thing to do is subclass EntitySnowball and override the methods you need/want to change. Good luck!
Rollback Post to RevisionRollBack
If I helped, press the little green arrow in the corner! Thanks!
Check out this. You might like it
1) No problem. Just search a bit there, and I bet you can find anything you need.
2) They are called entities. Take a look at the snowball code. You should find everything there. One good thing to do is subclass EntitySnowball and override the methods you need/want to change. Good luck!
1) I plan to do this, never the less, post here would be nice.
2) yes I am aware that they are entities, however I posted it like that to differentiate from mob entitys
It also briefly covers registering your Item textures, which is basically the same way block textures are registered but simpler.
Here's blockFurnace's code for registering its icons:
@SideOnly(Side.CLIENT)
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public Icon getIcon(int par1, int par2)
{
return par1 == 1 ? this.furnaceIconTop : (par1 == 0 ? this.furnaceIconTop : (par1 != par2 ? this.blockIcon : this.furnaceIconFront));
}
@SideOnly(Side.CLIENT)
/**
* When this method is called, your block should register all the icons it needs with the given IconRegister. This
* is the only chance you get to register icons.
*/
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("furnace_side");
this.furnaceIconFront = par1IconRegister.registerIcon(this.isActive ? "furnace_front_on" : "furnace_front_off");
this.furnaceIconTop = par1IconRegister.registerIcon("furnace_top");
}
How to do block textures.How to do item textures.
How to do mutitextured blocks.
How to render mobs.How to render snowball-like itemSo if any of you know how and/or have the code for it, I would greatly appreciate you telling me
-Thank You-
FIXED.
No problem. Just search a bit there, and I bet you can find anything you need.
They are called entities. Take a look at the snowball code. You should find everything there. One good thing to do is subclass EntitySnowball and override the methods you need/want to change. Good luck!
Check out this. You might like it
1) I plan to do this, never the less, post here would be nice.
2) yes I am aware that they are entities, however I posted it like that to differentiate from mob entitys
It also briefly covers registering your Item textures, which is basically the same way block textures are registered but simpler.
Here's blockFurnace's code for registering its icons:
Be sure to put them all in the right folders:
/forge/mcp/src/minecraft/assets/your_mod_id_all_lowercase/textures/blocks|items|models/armor|entity
What if I want my item to look different in the air then in my hand? (I will figure it out I guess)