Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.