Advertisement
AdamLam

Untitled

Jan 15th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 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 or {vipTime.%player%} is "1":
  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. wait 1 tick
  64. set {buildOwner.%player%} to true
  65. set event-block to sign:8
  66. set line 1 of event-block to "[Ship I]"
  67. set line 2 of event-block to "In Progress:"
  68. set line 3 of event-block to "Time: 30"
  69. set {buildTime.%player%} to false
  70. set {vipTime.%player%} to "0"
  71. set {buildTimeTime.%player%} to 30
  72. loop 30 times:
  73. wait 2 ticks
  74. set {buildTimeTime.%player%} to {buildTimeTime.%player%}-1
  75. set {czas} to {buildTimeTime.%player%}
  76. set event-block to sign:8
  77. set line 1 of event-block to "[Ship I]"
  78. set line 2 of event-block to "In Progress:"
  79. set line 3 of event-block to "Time: %{czas}%"
  80. set event-block to sign:8
  81. set line 1 of event-block to "[Ship I]"
  82. set line 2 of event-block to ""
  83. set line 3 of event-block to "&aCompleted!"
  84. set line 4 of event-block to "&7Rightclick me!"
  85. else:
  86. send "&7[&6IslePvPbuildings&7] &6>> &cYou dont have enough items yet!"
  87. else:
  88. send "&7[&6IslePvPbuildings&7] &6>> &cYou can't build it yet!"
  89. else:
  90. send "&7[&6IslePvPbuildings&7] &6>> &aYou can build &9Ship I &ahere!"
  91. on rightclick on sign:
  92. if "%world of player%" is "islepvp":
  93. if line 1 is "[Ship I]":
  94. if line 3 is "&aCompleted!":
  95. if line 4 is "&7Rightclick me!":
  96. set {loc} to location of event-block
  97. set {loc} to location of block 1 down 1 north event-block
  98. paste schem "ship1.schematic" at {loc}
  99. wait 2 ticks
  100. send "&7[&6IslePvPbuildings&7] &9Ship I &7has been built!"
  101. broadcast "&7[&6IslePvPbuildings&7] &a%player% &7has just built &9Ship &7level &aI"
  102. set {buildTime.%player%} to true
  103. if player has permission "islepvp.vip":
  104. set {vipTime.%player%} to "1"
  105. set {buildOwner.%player%} to false
  106.  
  107. on rightclick on sign:
  108. if "%world of player%" is "islepvp":
  109. if line 2 is "In Progress:":
  110. send "&7[&6IslePvPbuildings&7] &cPlease wait... Structure is still building"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement