Zeldaboy111

Honey Meter! ]|[ Skript #297

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