Posted June 15, 20232 yr Ive been making a trident type spear weapon for the past couple of months, and before i was stuck with rendering the model, but after some searching i was able to figure it out. (hopefully my code can be a resource to anyone struggling with that). but now, i can't properly figure out why my spear isnt throwing my spear entity, and is throwing regular tridents. any help is greatly appreciated! (all code i believe to be relevant is pasted below) EDIT: alterations to the spear item and entity classes, now the problem is different. now i just throw nothing EDIT 2: figured it out, simple constructor issues, dm me for code NetheriteSpearItem: https://pastebin.com/VB03SNKW ThrownNetheriteSpear (entity): https://pastebin.com/viPiRKYf ThrownNetheriteSpearRenderer (bit of a mouthfull i know): https://pastebin.com/rarxjBTf modentities: https://pastebin.com/mSJsEvh3 moditems: https://pastebin.com/aCsbLksK SpearModel: https://pastebin.com/rarxjBTf TestMod: https://pastebin.com/EQ5Q4fpa clientsetup: https://pastebin.com/hktF77Da Edited June 17, 20232 yr by ICanDoodle version
June 16, 20232 yr I don't understand much of the code(i do it with blender and nbt data), but i found that Spear-model/ and -render are the same... maybe its the same also in your mod?
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.