Advertisement
Guest User

Thanos Script Error

a guest
Jul 1st, 2018
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  1. # Start Of Config #
  2. options:
  3. ItemSpawnCoords: 0 80 0
  4. Item: cactus
  5. GamePrefix: &8[&6Thanos&4Game&8]&r
  6. ChatName: &8[&6Thanos&8]&r
  7. ItemName: <purple>Infinity <gold>Gauntlet<reset>
  8. ItemPickUpMessage: <red>The end is near...
  9.  
  10. on load:
  11. send "&7&m---------------------------------------------" to console
  12. send "&7ThanosSkript &7has been &a&lENABLED&7." to console
  13. send "&7Skript Made By &9MightyKey" to console
  14. send "&7Feel free to join my discord guild" to console
  15. send "&7My discord guild: &9https://discord.gg/cFFg4Sm" to console
  16. send "&7&m---------------------------------------------" to console
  17.  
  18. file "plugins\Thanos\config.yml" doesn't exist:
  19. create file "plugins\Thanos\config.yml"
  20. set {_Info::*} to skutil yaml list "Nachrichten.Kits" from file "plugins/Skript/scripts/Tutorial.yml"
  21. on unload:
  22. send "&7&m---------------------------------------------" to console
  23. send "&7ThanosSkript &7has been &c&lDISABLED&7." to console
  24. send "&7Skript Made By &9MightyKey" to console
  25. send "&7Feel free to join my discord guild" to console
  26. send "&7My discord guild: &9https://discord.gg/cFFg4Sm" to console
  27. send "&7&m---------------------------------------------" to console
  28.  
  29. command /fist :
  30. permission: thanos.admin
  31. trigger:
  32. send "{@GamePrefix} Please try /thanos help"
  33.  
  34. command /thanos [<text>]:
  35. permission: thanos.admin
  36. trigger:
  37. if argument 1 is "menu":
  38. open chest with 4 rows named "&4Thanos <gold>Menu" to player
  39. wait 1 tick
  40. format slot 0 of player with light blue glass pane named " " to be unstealable
  41. format slot 1 of player with light blue glass pane named " " to be unstealable
  42. format slot 2 of player with light blue glass pane named " " to be unstealable
  43. format slot 3 of player with light blue glass pane named " " to be unstealable
  44. format slot 4 of player with light blue glass pane named " " to be unstealable
  45. format slot 5 of player with light blue glass pane named " " to be unstealable
  46. format slot 6 of player with light blue glass pane named " " to be unstealable
  47. format slot 7 of player with light blue glass pane named " " to be unstealable
  48. format slot 8 of player with light blue glass pane named " " to be unstealable
  49. format slot 9 of player with light blue glass pane named " " to be unstealable
  50. format slot 10 of player with light blue glass pane named " " to be unstealable
  51. format slot 16 of player with light blue glass pane named " " to be unstealable
  52. format slot 17 of player with light blue glass pane named " " to be unstealable
  53. format slot 18 of player with light blue glass pane named " " to be unstealable
  54. format slot 13 of player with cactus named "Spawn: {@ItemName}" with lore "<red><bold>Info:||<white>Item Name: {@ItemName}||<white>Coords: <gold>{@ItemSpawnCoords}" to close then run [make console execute command "/summon item {@ItemSpawnCoords} {CustomName:""<purple>Infinity <gold>Gauntlet"",CustomNameVisible:1,Item:{id:""minecraft:cactus"",Count:1b,tag:{display:{Name:""<purple>Infinity <gold>Gauntlet"",Lore:[""Rightclick: Leap Attack, Leftclick: Power Jump""]},ench:[{id:16,lvl:10}]}}}"]
  55. format slot 26 of player with light blue glass pane named " " to be unstealable
  56. format slot 27 of player with light blue glass pane named " " to be unstealable
  57. format slot 28 of player with light blue glass pane named " " to be unstealable
  58. format slot 29 of player with light blue glass pane named " " to be unstealable
  59. format slot 30 of player with light blue glass pane named " " to be unstealable
  60. format slot 31 of player with red glass pane named "&cClose." to close
  61. format slot 32 of player with light blue glass pane named " " to be unstealable
  62. format slot 33 of player with light blue glass pane named " " to be unstealable
  63. format slot 34 of player with light blue glass pane named " " to be unstealable
  64. format slot 35 of player with light blue glass pane named " " to be unstealable
  65. if argument 1 is "help":
  66. send "-=-=-=-= Thanos Game =-=-=-=-" to player
  67. send "/thanos menu - Show a gui with all thanos settings" to player
  68. send "/thanos help - Show this menu" to player
  69. send "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" to player
  70. if argument 1 is not set:
  71. send "{@GamePrefix} try /thanos help for all the command" to player
  72. #give player 1 cactus of sharpness 1 named "{@ItemName}"
  73. # execute console command "/summon item {@ItemSpawnCoords} {CustomName:""<purple>Infinity <gold>Gauntlet"",CustomNameVisible:1,Item:{id:""minecraft:cactus"",Count:1b,tag:{display:{Name:""<purple>Infinity <gold>Gauntlet"",Lore:[""Rightclick: Leap Attack, Leftclick: Power Jump""]},ench:[{id:16,lvl:10}]}}}"
  74. #console command "summon minecraft:item 0 82 0 {item:{id:81,Count:1,tag:{display:{name:""<purple>Infinity <gold>Gauntlet"",lore:[Something]}}}}"
  75.  
  76.  
  77. on pick up of cactus:
  78. name of item is "{@ItemName}":
  79. send "%player% picked up the {@ItemName}" to console
  80. broadcast "{@ChatName} {@ItemPickUpMessage}"
  81. wait 5 tick
  82. push player upwards at speed 5
  83. #send bossbar "Hello" with color "RED" with barflag "PLAY_BOSS_MUSIC" with barstyle "SEGMENTED_10" with percent 100 to players
  84.  
  85. on leftclick:
  86. player is holding item named "{@ItemName}"
  87. if {cooldown1.%player%} is true:
  88. message "{@GamePrefix} <pink>Your jump is on cooldown"
  89. stop
  90. if {cooldown1.%player%} isn't set:
  91. set {cooldown1.%player%} to false
  92. if {cooldown1.%player%} is false:
  93. set {cooldown1.%player%} to true
  94. send "%player% used thanos jump" to console
  95. wait 5 tick
  96. push player upwards at speed 5
  97. wait 10 seconds
  98. set {cooldown1.%player%} to false
  99. message "{@GamePrefix} <pink>You can use jump again"
  100.  
  101. on rightclick:
  102. player is holding item named "{@ItemName}"
  103. if {cooldown2.%player%} is true:
  104. message "{@GamePrefix} <pink>Your leap is on cooldown"
  105. stop
  106. if {cooldown2.%player%} isn't set:
  107. set {cooldown2.%player%} to false
  108. if {cooldown2.%player%} is false:
  109. set {cooldown2.%player%} to true
  110. send "%player% used thanos leap" to console
  111. wait 5 tick
  112. push player forward at speed 10
  113. while ground state of player is false:
  114. wait 1 tick
  115. create explosion of force 3 at player
  116. wait 10 seconds
  117. set {cooldown2.%player%} to false
  118. message "{@GamePrefix} <pink>You can use leap again"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement