Jump to content

[SOLVED] Custom Trident-like item throwing normal tridents (1.19.4)


ICanDoodle

Recommended Posts

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 by ICanDoodle
version
  • Thanks 1
Link to comment
Share on other sites

  • ICanDoodle changed the title to Custom Trident-like item throwing normal tridents (1.19.4)
  • ICanDoodle changed the title to [SOLVED] Custom Trident-like item throwing normal tridents (1.19.4)

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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