Posted September 13, 20205 yr 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
September 14, 20205 yr 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.