#Does anyone know how to make a item throw fireballs like the ones from ghast?
1 messages · Page 1 of 1 (latest)
Copy the ghost file ball entity into your addon, and change it so that it is summable. Then use the shooter and projectile components or a custom component to fire the projectile.
Use throwable not shooter
ok thnx!
i did this, but does anyone know if it's possible to make the player not interact with the fireball? as it's hitting me if im not moving very quickly
So not hitting you? You will have to change its collisions but idk. A question like that is better suited for https://discord.com/channels/523663022053392405/1067869022273667152
Nvm fixed with ignore_entities
Thanks tho
However I do have one more question
In survival, the item gets used up upon firing it
Is there a way to either make it infinite or remove durability?
Either way works for me, but the durability thing would be cool lol
I did that for one of my things, I had to use script to throw and make it lose durability because when you use the throwable component, it removes it from the hand, and shooter needs ammo. So a custom component that uses an onUse event would help with that
Ah I see
Alright thanks for the help