Jump to content

[1.12.2]Render Tutorial


Robertusxd

Recommended Posts

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.

Link to comment
Share on other sites

  • 4 months later...

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.

Link to comment
Share on other sites

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.