Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • 4 months later...
Posted (edited)

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 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.