r/MinecraftMod • • 5d ago

[NeoForge][1.21.1] Trying to make a new trident texture for my mod, but can't figure out why it doens't appear on hand and when thrown. Need help

Enable HLS to view with audio, or disable this notification

Please help :<

3 Upvotes

8 comments sorted by

3

u/adrcook 5d ago

From what I googled, there seems to be two other json files, models/item/trident_in_hand.json and models/item/trident_throwing.json

2

u/KndRds 5d ago

Yeah I searched that aswell, but I cant find anywhere that tells me how to make a proper "_in_hand.json", because if a use the same code as the normal .json, it just doesn't work. Do u know how, or someone or somewhere I can check to help me?

1

u/skyrim090211 5d ago

You changed the model of the object, not the tool or the entity

1

u/KndRds 5d ago

yup i looked that up. and, would u mind helping me fixing it if u know how to?

1

u/SCRbts 5d ago

yeah the trident uses a separate renderer, like it has its own special case. You have to use mixins for the entity renderer and hand renderer iirc

1

u/KndRds 5d ago

yeah i looked that up, but i cant find how to do it anywhere. would u mind on helping me, if u know how to do it?

1

u/SCRbts 4d ago

I was going down the rabbit hole but had to stop halfway cuz finals is coming up

1

u/SCRbts 4d ago

ok figured it out, there might be a better way to do it but here is what I did: you need to override both trident_in_hand.json and trident_throwing.json, You need a custom entity renderer for the thrown version you can register it on EntityRenderersEvent.RegisterRenderers, then you need a ItemRendererMixin to get it not to use a special renderer for the trident. However I was using a 2D sprite, you might be able to get away with just modifying the two json files with a 3D model, idk don't quote me but that's where I would start