Advertisement
AdamLam

Untitled

Jan 15th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. on script load:
  2. send "&7[&6IslePvPbuildings&7] loaded &asuccessfuly." to console
  3. on first join:
  4. set {buildTime.%player%} to true
  5. command /ipbship1:
  6. trigger:
  7. if player has permission "ship.admin":
  8. give a paper named "&9Ship I &aSchematic" with lore "||&6>> &7Click on &9Blue &7wool to build a ship||||&6>> &7Requirements:||&6>> &7Wood: &a500||&6>> &7Stone: &a250||&6>> &7Clay Block: &a250" to player
  9. send "&7[&6IslePvPbuildings&7] &6>> &cYou received &aShip Schematic&c!"
  10. stop
  11. else:
  12. send ""
  13. send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
  14. send "&7/ipb - List of available commands."
  15. send "&7/ipbs - List of available buildings"
  16. send ""
  17. send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
  18. stop
  19. command /ipb:
  20. trigger:
  21. send ""
  22. send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
  23. send "&7/ipb - List of available commands."
  24. send "&7/ipbs - List of available buildings"
  25. send ""
  26. send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
  27. stop
  28. command /ipbs:
  29. trigger:
  30. send ""
  31. send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
  32. send "&7/ipbship1 - First level of Ship"
  33. send ""
  34. send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
  35. stop
  36. command /ipbtrue <text>:
  37. trigger:
  38. if arg 1 is set:
  39. set {buildTime.%arg 1%} to true
  40. send "&7[&6IslePvPbuildings&7] &6>> &7%arg 1%'s &atrue!"
  41. else:
  42. send "&7[&6IslePvPbuildings&7] &6>> &7Arg 1 is empty!"
  43. command /ipbfalse <text>:
  44. trigger:
  45. if arg 1 is set:
  46. set {buildTime.%arg 1%} to false
  47. send "&7[&6IslePvPbuildings&7] &6>> &7%arg 1%'s &cfalse!"
  48. else:
  49. send "&7[&6IslePvPbuildings&7] &6>> &7Arg 1 is empty!"
  50. command /ipbcheck <text>:
  51. trigger:
  52. send "&7[&6IslePvPbuildings&7] &6>> &7 %arg 1% is %{buildTime.%arg 1%}% !"
  53.  
  54. on rightclick on blue wool:
  55. if "%world of player%" is "islepvp":
  56. if block below event-block is anvil:
  57. if player's held item is paper named "&9Ship I &aSchematic" with lore "||&6>> &7Click on &9Blue &7wool to build a ship||||&6>> &7Requirements:||&6>> &7Wood: &a500||&6>> &7Stone: &a250||&6>> &7Clay Block: &a250":
  58. if {buildTime.%player%} is true:
  59. if player has 10 dirt and 5 diamond:
  60. remove 10 dirt and 5 diamond from player's inventory
  61. remove 1 of player's held item from player's inventory
  62. send "&7[&6IslePvPbuildings&7] &6>> &7Building &9Ship I &7started!"
  63. set event-block to sign
  64. set line 1 of event-block to "Time: 30"
  65. set {buildTime.%player%} to false
  66. set {buildTimeTime.%player%} to 30
  67. loop 30 times:
  68. wait 2 secounds
  69. set {buildTimeTime.%player%} to {buildTimeTime.%player%}-1
  70. set czas to {buildTimeTime.%player%}
  71. set event-block to sign
  72. set line 1 of event-block to "Time: %czas%"
  73. set {loc} to location of event-block
  74. set {loc} to location of block 1 down 1 north event-block
  75. paste schem "ship1.schematic" at {loc}
  76. wait 2 seconds
  77. send "&7[&6IslePvPbuildings&7] &9Ship I &7has been built!"
  78. broadcast "&7[&6IslePvPbuildings&7] &a%player% &7has just built &9Ship &7level &aI"
  79. set {buildTime.%player%} to true
  80. else:
  81. send "&7[&6IslePvPbuildings&7] &6>> &cYou dont have enough items yet!"
  82. else:
  83. send "&7[&6IslePvPbuildings&7] &6>> &c*******MESSAGE*******!"
  84. else:
  85. send "&7[&6IslePvPbuildings&7] &6>> &aYou can build &9Ship I &ahere!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement