Pets

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

Mich

Active Member
Jul 15, 2020
148
6
18
23
Important:
You need sk bee add on for this script to work.
There is an error on line 485 to spawn a toast rabbit I don't know yet how to fix it but is not a problem for the script.


Screen shoots pets:

Screen shoots GUI
Admin GUI

This GUI is only if the player has permission "pet.admin". To open this GUI damage the pet and the GUI is going to open
View attachment 6853

Rabbit pet GUI

This GUI opens when the player choose a rabbit. The permission is "pet.use". This GUI allow the player to choose a rabbit type.

Sheep pet GUI

This GUI opens when the player choose a sheep. The permission is "pet.use". This GUI allow the player to choose a wool color.

View attachment 6859

Commands:

/pet or /pets
opens a GUI to choose a pet
permission pet.use


Description:

This script allow users to spawn a entity that will follow the player and if the distance between the player and the pet is more than 15 the pet is goin to teleport to the player.

If you want to disable the pets because the player for example join a game you have 2 options remove pet.use permission from the player or call the fuction petDisable(player) and called again to allow the player to spawn a pet again. if you call this fuction the pet dies.

if you want to kill a pet you can call this function killPet(player).

Hostile pets dont attack the player like zombie and creeper.


You can chance some options from the pets.sk in the options like messages of no permissions. You can modify the code as you like just dont uploaded. For example add more permissions for each pet because I won't do it.
 
  • Like
Reactions: Tacord