Advertisement
Itsyuumello

Untitled

Sep 16th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. options:
  2. kaboom: &c[Admin] &c
  3. lenh1: kaboom
  4. lenh2: launch
  5. permission1: script.admin
  6. permission2: script.admin
  7. permission message: &cNo permission!
  8. tocdo: 5
  9. thoigian: 7
  10. doithoai1: &c&lKABOOM &7%loop-player% &c!
  11. doithoai2: &c&lLAUNCH &7%arg-1% &c!
  12.  
  13.  
  14.  
  15. command /{@lenh1}:
  16. permission: {@permission1}
  17. trigger:
  18. send "{@kaboom} &7"
  19. loop all players in world:
  20. send "{@kaboom} {@doithoai1}"
  21. strike lightning effect at loop-player
  22. strike lightning effect at loop-player
  23. strike lightning effect at loop-player
  24. push loop-player up at speed {@tocdo}
  25. set {nodamage.launch.%loop-player%} to {@thoigian}
  26.  
  27. command /{@lenh2} <player>:
  28. permission: {@permission2}
  29. trigger:
  30. send "{@kaboom} "
  31. send "{@kaboom} {@doithoai2}"
  32. strike lightning effect at arg-1
  33. push arg-1 up at speed {@tocdo}
  34. set {nodamage.launch.%arg-1%} to {@thoigian}
  35.  
  36. every second:
  37. loop all players:
  38. {nodamage.launch.%loop-player%} is set
  39. set {nodamage.launch.%loop-player%} to {nodamage.launch.%loop-player%} - 1
  40. if {nodamage.launch.%loop-player%} is less than 1:
  41. delete {nodamage.launch.%loop-player%}
  42.  
  43. on quit:
  44. {nodamage.launch.%player%} is set
  45. delete {nodamage.launch.%player%}
  46. broadcast: "{%player%} &ehas left the game."
  47. on damage:
  48. {nodamage.launch.%victim%} is set
  49. cancel event
  50. on join:
  51. teleport player to world's spawn point
  52. broadcast: "{%player%} &ehas joined the game!"
  53. strike lightning effect at player
  54. options:
  55. Stone: 10
  56. Stone2: 10
  57.  
  58. command /shop:
  59. trigger:
  60. Shop(player)
  61.  
  62. function Shop(p: player):
  63. open virtual chest inventory with size 3 named "&3&lShop" to {_p}
  64. wait 1 tick
  65. create a gui slot 4 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone}"
  66. create a gui slot 5 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone2} Sticks"
  67.  
  68. on inventory click:
  69. inventory name of player's current inventory is "&3&lShop":
  70. cancel event
  71. clicked slot is 4:
  72. player's balance is more than {@Stone}-1
  73. player can hold 10 stone
  74. remove {@Stone} from player's balance
  75. give player 10 stone
  76. clicked slot is 5:
  77. player has {@Stone2} sticks
  78. player can hold 10 stone
  79. remove {@Stone2} sticks from player
  80. give player 10 stoneoptions:
  81. Stone: 10
  82. Stone2: 10
  83.  
  84. command /shop:
  85. trigger:
  86. Shop(player)
  87.  
  88. function Shop(p: player):
  89. open virtual chest inventory with size 3 named "&3&lShop" to {_p}
  90. wait 1 tick
  91. create a gui slot 4 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone}"
  92. create a gui slot 5 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone2} Sticks"
  93.  
  94. on inventory click:
  95. inventory name of player's current inventory is "&3&lShop":
  96. cancel event
  97. clicked slot is 4:
  98. player's balance is more than {@Stone}-1
  99. player can hold 10 stone
  100. remove {@Stone} from player's balance
  101. give player 10 stone
  102. clicked slot is 5:
  103. player has {@Stone2} sticks
  104. player can hold 10 stone
  105. remove {@Stone2} sticks from player
  106. give player 10 stone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement