Zeldaboy111

Functiongebruik ]|[ Skript #296

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