Posted January 30, 20187 yr Sry if im just being dumb or blind but i cant seem to find a render tutorial thats not completly outdated. So if someone could point me in the right direction i'd be thankful. Right now im looking to render a custom projectile if that matters. Thanks in advance.
February 1, 20187 yr First it depends what you mean by "outdated". A projectile is an entity and I think entity rendering and models haven't changed like forever. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
February 1, 20187 yr I've just been doing this Robertusxd. You first need an item class which will represent in inventory the projectile. It may have public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) if you hand it to be thrown like a snowball. You will use the World.spawnEntity() function to summon your entity. Then you need an entity class which extends at least EntityThrowable. You may need a model but I'm not sure this is crucial. Finally you need a render class which extends Render<YourProjectileEntityClass> for example. Don't forget to register the render, the entity and the item. Also take a look at existing classes like Arrow and Snowball ones.
June 10, 20187 yr Mob rendering code from 1.6 or 1.7 (or earlier?) will still work. Then there's the issue of block rendering, when has changed several times. This tutorial series doesn't contain any episodes purely about rendering, but I think it covers some of it when make mobs, items, etc. (linking first episode, not specific / relevant content) : Edited June 10, 20187 yr by JaredBGreat slight ommision. Developer of Doomlike Dungeons.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.