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

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

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

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?

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

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.