Hello guys I’m welcome back to the man c’mon tutorial into episode we are going to be working on some properties of our entity including making animations for the walking and rotating of the village ahead also we’re going to be changing its health and damage it can do and a Few of the properties as well as you can add some different III to it so let’s get it started before we start I would like to thank you all for 500 subscribers approaching in 550 as a record this video so thank you very much for that I’ll continue to post videos With all the support this video will be a bit short they’ll sit up that much time haven’t haven’t much time the last couple weeks but I will try and upload more videos coming up soon so firstly we’re going to work on animations for our entity in your model center here we Are going to want to control space and type set rotation angles this is a different asset rotate angle this is a function from tabula Y this is the manga function so set rotation angles has lots of these float limbs swinging float Lim Swee a mountain are obvious with Reference to these deaths up here in render just don’t really have to understand what they mean so firstly we don’t want to rotate each leg we’re gonna rotate them on angle X as that is forwards and back so this dot front left leg dot rotate angle X its Equal to math helper dot cause limbs wing x times zero point six six six to F close bracket times one point four f x limbs wing amount this all comes from the original the original cowl class but basically it’s just calculating how far how far forward and back to rotate the Leg the rear left leg will also do the same thing so copy it this dot rear left leg with hangul X limps wing x nine six six two pentalobe for handling swim out same thing and then the other two will do similar things a bit differently so this dot front right like It’s going to be a limb swing times 966 to plus then in brackets float math.pi and then also add this to the the rear right leg so that is all the legs rotating forwards and backwards for the village ahead it wants to look up and Down as well as left to right so this top village ahead dot rotate angle why it’s going to be net head your this is just a value for a how far up and down it goes times zero point zero one seven four five three to nine to F it’s a very Specific value that minecraft gives I assume it’s been calculated for some reason not sure why but then you can copy this change it to rotate angle X and change net head yo to head pitch so that’s the village ahead rotating left to right and that’s everything for the Model class done it is rotated these other things should rotate correctly now we’re going to adjust some our properties our actual entity so go into your entity fat enter center firstly in this constructor this set size if we’re going to entity cow it’s not point nine And one point for our entity is the same width not by nine but its height it will be two point eight adds about twice the height we are then going to override in it NCAI you can add any different a eyes you want though it can be found using just NCAI and then Control space and that will look at all the NTA eyes I’m gonna take all the ones from cow for now and but instead of making it tempted by wheat and it’s a bit weird I would have any other item I might make a crop sure in the future but Item in it dot in got copper I’m going to have that as is tempting thing and then apply entity attributes the ones you want to look at here or you want to leave it as super for now but this dots get entity attribute shared monster attributes dot and you look at all of These things here the ones you always want to adjust our max health so set base value the normal cows is 10 to 10 0 10 point 0 D will refer to five hearts or 10 half hearts I’m going to make it have 40 point 0 D so 20 hearts or 40 half hearts And movement speed you under once I’ll have to look at other monsters movement speeds as this value is very different if we look at entity cow its movement speed is not a basically not point two so you really don’t want an cows move pretty fast I’m gonna make mine move Around slightly faster than the cow not four to five but even minor adjustments this value can make a big difference to movement speed say this was one your cow will be running around for dick you’ll see faster we’re running everywhere and then finally the final issue thing to Get rid of the disappearing issue and get a height override it it’s eye height is going to be about two point six F just below its actual height so we can look up at its eyes at two point six F so go into resources assets Lange entity Dot center dot name equals sent off now this should all our properties should work around just now I apologize to this being such a short video my dad how much time to make it so I will be trying to make some more consistent videos in the future Now I’ve have more time but let’s go see if our properties and animations have applied I will spawn a new one as you can see here freakin punch it it runs around like a normal coward and it’s Hedrick it can move as well so all these animations are working a diamond hot Sword does seven attack damage and we said it to have 40 health so if we eat it eight times the diamond sword it took six times the damn sod 6 times 7 is 42 so we did enough damage to kill it so if you have enjoyed this Video or found it useful please hit like button down below and subscribe for more videos as I said I’ll be uploading more consistently for the next few weeks as I have more time obviously around the Christmas period and there won’t be that many videos I’ll try and prepare some Once again thank you for all the subscribers and the consistent support and thank you to my 2 people directing me on patreon if you are interested and want to help out the channel then you can go and look at the page patreon link in the description it’s not obligatory My videos will always be free so thanks for watching man has been hairy and good bye Video Information
This video, titled ‘Entities Part 2 – Minecraft Modding Tutorial 1.12.2 – Episode 11’, was uploaded by Harry Talks on 2017-12-03 15:17:50. It has garnered 11957 views and 273 likes. The duration of the video is 00:10:00 or 600 seconds.
Links GitHub: https://github.com/HarryTechRevs/MinecraftModding/tree/HarryTechRevs-1.12.2-Tutorials Patreon: https://www.patreon.com/harrytech Discord: https://discordapp.com/invite/xwg8zQJ Playlist: https://www.youtube.com/playlist?list=PLiDUvCGH5WEUEV9nc0Ll2pzUFmSFc21uR Subscribe: http://tiny.cc/sub2harrytech Twitter: https://twitter.com/harrystechrevs