Zeldaboy111

Functiongebruik ]|[ Skript #296

Mar 22nd, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
  2. #- Do not edit it and upload it as your own
  3. #- While using it in a video, please feature everything under "Video"
  4. #
  5. #Video:
  6. #Skript made by Zeldaboy111
  7. #More content of the creator: https://forums.skunity.com/search/26443679/
  8.  
  9. options:
  10. logo: &eBees+ &8:&7
  11.  
  12.  
  13.  
  14. function formatOutline(p: Player, size: Number, color: String):
  15. loop 9 times:
  16. set slot -1+loop-value of {_p}'s current inventory to ("%{_color}% glass pane" parsed as an item) named "&k"
  17.  
  18. loop {_size}-2 times:
  19. set slot 9*loop-value of {_p}'s current inventory to ("%{_color}% glass pane" parsed as an item) named "&k"
  20. set slot 8+9*loop-value of {_p}'s current inventory to ("%{_color}% glass pane" parsed as an item) named "&k"
  21.  
  22. loop 9 times:
  23. set slot ({_size}-1)*9-1+loop-value of {_p}'s current inventory to ("%{_color}% glass pane" parsed as an item) named "&k"
  24.  
  25.  
  26. function openHive(p: Player):
  27. open chest with 6 rows named "&8&lBeeHive" to {_p}
  28. formatOutline({_p}, 6, "orange")
  29.  
  30.  
  31. command /bees [<text>]:
  32. trigger:
  33. if arg-1 is set:
  34. if arg-1 is "help" or "/h":
  35. send "&7&m &8[ &eBees+ &8]&7&m "
  36. send "<ttp:&7Get the help page><cmd:/bees help>&6/bees help"
  37. send "<ttp:&7Get information about &eBees+><cmd:/bees info>&6/bees info"
  38. send "&7&oTry hovering over and clicking them."
  39. send "&7&m &8[ &eBees+ &8]&7&m "
  40.  
  41. else if arg-1 is "info" or "information":
  42. send "&7&m &8[ &eBees+ &8]&7&m "
  43. send "&7Creator: &eZeldaboy111"
  44. send "&7Version: &e1.0"
  45. send "&7Description: &eA Skript made for extra bees fun!"
  46. send "&7&m &8[ &eBees+ &8]&7&m "
  47.  
  48. else:
  49. send "{@logo} Do &e/bees help &7for more info."
  50.  
  51. else:
  52. send "{@logo} Do &e/bees help &7for more info."
  53.  
  54. on rightclick on beehive:
  55. if player is not sneaking:
  56. cancel event
  57. openHive(player)
Add Comment
Please, Sign In to add comment