Solved Fish an entity

  • 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 comminuty!

    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.

YK_DZ

Member
Jan 14, 2022
24
0
1
24
Hi, I am trying to replace the fish caught by the rod with a sheep, I have tried the following two methods:

Code:
on fish:
    if fish state = caught fish:
        set entity type of last spawned entity to sheep

Code:
on fish:
    if fish state = caught fish:
        set entity of caught entity to sheep
But none of them worked well.
So how can I achieve my goal?

I have SKBee and Skellett Addons
 
Last edited:
You want a sheep in player's inventory or a sheep that spawn in front of the player?
 
You want a sheep in player's inventory or a sheep that spawn in front of the player?

Thanks for your reply. XD

I actually want the sheep to be "fished up", which means I can see a sheep "hang" on the retracted hook and fly towards me.
[doublepost=1648701386,1648563263][/doublepost]Up*1
[doublepost=1649333825][/doublepost]Up*2
[doublepost=1649423937][/doublepost]Ok, I do not know how to achieve this, so I finally decide to use "push" effect and "direction from player to fish hook" to push the entity towards the player, just like it was "hang" on the fish hook.
 
Status
Not open for further replies.