Solved why thrown potion isn't a projectile?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

lglg4141

Member
Feb 19, 2017
12
0
0
zv0HLmk.png

0jYrXuJ.png

whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy?
 
Last edited:
code_language.skript:
On Projectile Hit:
    Projectile is a thrown potion
    broadcast "ABC"
 
Try this.
code_language.skript:
on shoot:
    "%projectile%" is "thrown potion"
    broadcast "ABC"
 
Is very easy, "on projectile hit" is when the projectile hit any entity or block, but the "on shoot" is when the projectile is pushed.
 
You can use that without any problem
code_language.skript:
on projectile hit:
Just do
code_language.skript:
on projectile hit:
    "%projectile%" is "thrown potion"
    broadcast "ABC"
 
You should be able to compare the projectile with an item (the potion item in this case)
 
Status
Not open for further replies.