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

I managed to make working custom tridents with it's own models but the enchant glow doesn't work properly. Both enchanted and disenchanted always glow under water and never glow on land. Also the custom model does not work at all when holding the item in hand and while plying the throwing animation.
Code: https://github.com/Kuwujii/RakCraft

2020-09-13_15.54.52.png

2020-09-13_15.55.10.png

2020-09-13_15.54.21.png

2020-09-13_15.54.34.png

A lot of this seems like copy-paste code. I'm not going to search through your code since I'm guessing based on how it looks that pretty much the only difference is the textures. So let's go over the few things. First, you need an ISTER (ItemStackTileEntityRenderer) for your item to render as a 3d model in that sense. You can also just make the 3d model using a json file since it's literally the same exact thing. Second, keep your client and server code separated. Third, if you do end up making a custom entity for whatever reason, you will probably have to sync the data from the server to the client using IEntityAdditionalSpawnData and override the packet handling to forge's within NetworkHooks. Finally, don't copy-paste code. You don't learn anything and end up wondering what went wrong when it doesn't it work the same as vanilla.

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.