I'm At school right now so i can't try it out. But from what I am hearing this is awesome~! oh and do you know how to find out the positions for the textures when making a mob? like the 0.7f and what not?
Rollback Post to RevisionRollBack
A signature was supposed to be here but your computer decided not to show it.
do you know how to find out the positions for the textures when making a mob? like the 0.7f and what not?
I will try to explain... The positions for the textures are counted from the upper left corner of the texture image. For example, most mobs have the texture for their head at the top left, so they start at (0, 0). In the model file this is written as
head = new ModelRenderer(0, 0);
Each pixel (in the default texture size, HD textures don't apply here) corresponds to a unit in the box model.
If you imagine a rectangle that encloses each body part, you count from the upper left corner of the image to the upper left corner of the body part 'rectangle'. As you can see, it is OK if the rectangles overlap as long as the textures themselves do not.
If you can believe it, the texturing is the easy part. Getting the boxes themselves to show up in the right places when you render is the hard part.
This makes a box that has it's pivot/origin centered on the bottom and it will render based on the origin 24 units off the ground (1.5 blocks). I think this corresponds to eye level, it's the only reason I can see why 0, 0, 0 doesn't start at ground level. To move it down and back you increase the Y and Z values respectively.
Unfortunately, all of this is hard to explain/visualize and really you just have to mess around with the numbers to get an idea of how they affect the models. As an added headache, the body boxes are flipped 90 degrees forward so the Y dimension ends up being how long the body is instead of it's height like every other part. I think Notch just took the biped model and bent it over on all fours to create the quadrupeds.
add to the mod that you can give the baby animals something they like and they will think your their "mommy" and then they will follow you and not despawn plz it would make the mod even more epic than it already is :smile.gif:
add to the mod that you can give the baby animals something they like and they will think your their "mommy" and then they will follow you and not despawn plz it would make the mod even more epic than it already is :smile.gif:
Agreed, I'd have an army of baby animals following me :smile.gif:
I can't make any promises, but I have already been playing around with this :wink.gif:
add to the mod that you can give the baby animals something they like and they will think your their "mommy" and then they will follow you and not despawn plz it would make the mod even more epic than it already is :smile.gif:
Agreed, I'd have an army of baby animals following me :smile.gif:
I can't make any promises, but I have already been playing around with this :wink.gif:
It's in! I'm pretty happy with the way things work now and have fulfilled the goals I set - to add baby animals that you could interact with - so other than fixes for the inevitable updates and/or bugs I won't be spending a lot of time on this anymore. Thanks everyone for your feedback :smile.gif:
They stop despawn if you sign out?
Do they why don't you make wheat do both?
It seems that the flags that are set when you feed them are not carried over when you sign out. So if you have a baby following you and you sign off, when you sign back in it will not be following you anymore. This also means that if you have a barn or pasture set up, you need to feed the babies when you sign back in before you leave the area or they will despawn. I'm utilizing the same tagging system that tells if a sheep has been sheared or a pig saddled, etc. I tried to see what keeps the squid from despawning, but most of it's code is still obfuscated and I'm pretty sure that it's a bug anyway, so it's probably not obvious.
Until I figure out if/how I can make things permanent, I'm OK with the idea that you have to take care of the babies to keep them in the game. It reminds me of Harvest Moon. (There's an idea...)
You can still take them all with you if you decide to relocate, just go City Slickers style and cross the lands with a herd of baby animals in tow.
Also,A question...
If you get an army of piglets and lambs and such following you wherever you go,wouldnt that bring down the risk of an attack from behind,since the animals would just keep shoving the creeper (or any other enemy,I prefer creepers because it would be kind of stupid to go spelunking at night) around??
Like,you would hear the footsteps and they would be shoved around enough that you can realize it before they explode? :L
I would download and will be great for my city of animal base city but am new to modding and t is to demanding 4 download after i od serevel times i prob download it
Also,A question...
If you get an army of piglets and lambs and such following you wherever you go,wouldnt that bring down the risk of an attack from behind,since the animals would just keep shoving the creeper (or any other enemy,I prefer creepers because it would be kind of stupid to go spelunking at night) around??
Like,you would hear the footsteps and they would be shoved around enough that you can realize it before they explode? :L
The babies crowd all around you and make it really hard to do much of anything if you don't stay ahead of them. I think if a creeper approached it would just be another creature trying to get at you, although having a mob of little babies with a creeper in the middle following you would be hilarious.
Besides the despawning issue, I need to figure out a way to mark the ones you have already fed wheat. Maybe a little bell or bow or something... what have I gotten myself into?
This works with Modloader V4, because I'm using it right now and it works.
Also, I was using the Charlotte mod, and Charlotte tried to kill my baby animals as they were following me. So I "broke up with her" by deleting the files from my minecraft.jar, because she can be VERY annoying. xD
OT: Super-awesome mod
Visit my YouTube Channel for a variety of videos including Minecraft videos.
Link Removed
Link Removed
I will try to explain... The positions for the textures are counted from the upper left corner of the texture image. For example, most mobs have the texture for their head at the top left, so they start at (0, 0). In the model file this is written as
Each pixel (in the default texture size, HD textures don't apply here) corresponds to a unit in the box model.
If you imagine a rectangle that encloses each body part, you count from the upper left corner of the image to the upper left corner of the body part 'rectangle'. As you can see, it is OK if the rectangles overlap as long as the textures themselves do not.
If you can believe it, the texturing is the easy part. Getting the boxes themselves to show up in the right places when you render is the hard part.
This makes a box that has it's pivot/origin centered on the bottom and it will render based on the origin 24 units off the ground (1.5 blocks). I think this corresponds to eye level, it's the only reason I can see why 0, 0, 0 doesn't start at ground level. To move it down and back you increase the Y and Z values respectively.
Unfortunately, all of this is hard to explain/visualize and really you just have to mess around with the numbers to get an idea of how they affect the models. As an added headache, the body boxes are flipped 90 degrees forward so the Y dimension ends up being how long the body is instead of it's height like every other part. I think Notch just took the biped model and bent it over on all fours to create the quadrupeds.
I can't make any promises, but I have already been playing around with this :wink.gif:
It's in! I'm pretty happy with the way things work now and have fulfilled the goals I set - to add baby animals that you could interact with - so other than fixes for the inevitable updates and/or bugs I won't be spending a lot of time on this anymore. Thanks everyone for your feedback :smile.gif:
Do they why don't you make wheat do both?
Minecraft Epic Noob
#2090 on onemillionemincrafters.
It seems that the flags that are set when you feed them are not carried over when you sign out. So if you have a baby following you and you sign off, when you sign back in it will not be following you anymore. This also means that if you have a barn or pasture set up, you need to feed the babies when you sign back in before you leave the area or they will despawn. I'm utilizing the same tagging system that tells if a sheep has been sheared or a pig saddled, etc. I tried to see what keeps the squid from despawning, but most of it's code is still obfuscated and I'm pretty sure that it's a bug anyway, so it's probably not obvious.
Until I figure out if/how I can make things permanent, I'm OK with the idea that you have to take care of the babies to keep them in the game. It reminds me of Harvest Moon. (There's an idea...)
You can still take them all with you if you decide to relocate, just go City Slickers style and cross the lands with a herd of baby animals in tow.
NOW FOR MINI DOLPHINS AND ZOMBIES! lol
AWWWWWWWW :3
If you get an army of piglets and lambs and such following you wherever you go,wouldnt that bring down the risk of an attack from behind,since the animals would just keep shoving the creeper (or any other enemy,I prefer creepers because it would be kind of stupid to go spelunking at night) around??
Like,you would hear the footsteps and they would be shoved around enough that you can realize it before they explode? :L
The babies crowd all around you and make it really hard to do much of anything if you don't stay ahead of them. I think if a creeper approached it would just be another creature trying to get at you, although having a mob of little babies with a creeper in the middle following you would be hilarious.
Besides the despawning issue, I need to figure out a way to mark the ones you have already fed wheat. Maybe a little bell or bow or something... what have I gotten myself into?
Also, I was using the Charlotte mod, and Charlotte tried to kill my baby animals as they were following me. So I "broke up with her" by deleting the files from my minecraft.jar, because she can be VERY annoying. xD
Visit my YouTube Channel for a variety of videos including Minecraft videos.
Link Removed
Link Removed