Zeldaboy111

Honey Meter! ]|[ Skript #297

Mar 26th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 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, color2: String, color3: String, color4: 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 ("%{_color2}% glass pane" parsed as an item) named "&k"
  20. set slot 8+9*loop-value of {_p}'s current inventory to ("%{_color4}% 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 ("%{_color3}% glass pane" parsed as an item) named "&k"
  24.  
  25. function honeyMeter(p: Player):
  26. loop 4 times:
  27. set slot 3+9*loop-value of {_p}'s current inventory to white stained glass named "&fHoney Meter" with lore "" and "&8• &7Honey&8: &70%%"
  28.  
  29. function combMeter(p: Player):
  30. loop 4 times:
  31. set slot 5+9*loop-value of {_p}'s current inventory to white stained glass named "&fComb Meter" with lore "" and "&8• &7Honey&8: &70%%"
  32.  
  33.  
  34. function openHive(p: Player):
  35. wait 2 ticks
  36. open chest with 6 rows named "&8&lBeehive" to {_p}
  37. wait 2 ticks
  38. formatOutline({_p}, 6, "dark gray", "white", "dark gray", "white")
  39. honeyMeter({_p})
  40. combMeter({_p})
  41.  
  42. command /bees [<text>]:
  43. trigger:
  44. if arg-1 is set:
  45. if arg-1 is "help" or "/h":
  46. send "&7&m &8[ &eBees+ &8]&7&m "
  47. send "<ttp:&7Get the help page><cmd:/bees help>&6/bees help"
  48. send "<ttp:&7Get information about &eBees+><cmd:/bees info>&6/bees info"
  49. send "&7&oTry hovering over and clicking them."
  50. send "&7&m &8[ &eBees+ &8]&7&m "
  51.  
  52. else if arg-1 is "info" or "information":
  53. send "&7&m &8[ &eBees+ &8]&7&m "
  54. send "&7Creator: &eZeldaboy111"
  55. send "&7Version: &e1.0"
  56. send "&7Description: &eA Skript made for extra bees fun!"
  57. send "&7&m &8[ &eBees+ &8]&7&m "
  58.  
  59. else:
  60. send "{@logo} Do &e/bees help &7for more info."
  61.  
  62. else:
  63. send "{@logo} Do &e/bees help &7for more info."
  64.  
  65. on rightclick on beehive:
  66. if player is not sneaking:
  67. cancel event
  68. openHive(player)
  69.  
  70. on inventory click:
  71. if type of clicked inventory is chest inventory:
  72. if inventory name of player's current inventory is "&8&lBeehive":
  73. cancel event
Add Comment
Please, Sign In to add comment