Facebook
From Torrid Ibis, 7 Years ago, written in Plain Text.
This paste is a reply to Młot Thora from xN0MANDx - view diff
Embed
Download Paste or View Raw
Hits: 411
  1. ########################
  2. # Opcje Do Młotu Thora #
  3. #      Od xN0MANDx     #
  4. ########################
  5.  
  6. #######################################################################################################
  7. # standardowo czy ma działać bez wchodzienia na regiony z worldguard True = Odrazu False = Po wejściu #
  8. #######################################################################################################
  9.  
  10. variables:
  11.     {Thor.%player%} = True
  12.    
  13. # Dodatkowe opcje do worldguard jeżeli masz usuń # i w miejsce "spawn" wpisz swoja nazwe cuboida na spawnie by tam nie bralo obrazen
  14.  
  15. # Te Kratki Blokuja Opcje itp
  16.  
  17. #on region exit:
  18. #    if event-region is "spawn" parsed as region:
  19. #        set {Thor.%player%} to true
  20.        
  21. #on region enter:
  22. #    if event-region is "spawn" parsed as region:
  23. #        set {Thor.%player%} to false
  24.        
  25. #on death:
  26. #    set {Thor.%player%} to false
  27.    
  28. #command /InfoMlot:
  29. #    trigger:
  30. #        send "True - Damage Działa A False - Damage nie działa Stan: %{Thor.%player%}%"
  31. #        stop
  32.  
  33. # Broń (Tutaj możesz ruszyć tylko 3 linijke od leftclick i rightclick (czas) i damage (damage loop-player by ? heart) (Ignoruje zbroje) (1 heart to 1 serce)
  34.  
  35. On leftclick:
  36.     if player is holding Diamond Pickaxe named "&a&lMłot Thora":
  37.         if difference between {MlotThora::%player%::lastuse} and now is smaller than 15 seconds:
  38.             send "&a[Server] &c&lCo 15 sekund strzał &a&lMłotem Thora! &c&lZaczekaj"
  39.             stop
  40.         set {MlotThora::%player%::lastuse} to now
  41.         if {Thor.%player%} is true:
  42.             spawn 9000 of particle Magic Crit:1 offset by 10, 256, 10 at player
  43.             wait 0.2 second
  44.             spawn 9000 of particle Magic Crit:1 offset by 10, 256, 10 at player
  45.             wait 0.2 second
  46.             spawn 9000 of particle Magic Crit:1 offset by 10, 256, 10 at player
  47.             wait 0.2 second
  48.             spawn 9000 of particle Magic Crit:1 offset by 10, 256, 10 at player
  49.             strike lightning at targeted block
  50.             loop all players within 10 meters of the player:
  51.                 damage loop-player by 7 heart
  52.                 stop
  53.         else:
  54.             send "&c&lNie możesz używać &a&lMłotu Thora &c&lw tym regionie!"
  55.            
  56. On leftclick::
  57.     if player is holding Diamond Pickaxe named "&a&lMłot Thora":
  58.         if difference between {MlotThora::%player%::lastuse} and now is smaller than 15 seconds:
  59.             wait 0.6 second
  60.                 execute console command "god enable"
  61.             wait 1.5 second
  62.             execute console command "god disable"
  63.            
  64. On rightclick with Diamond Pickaxe:
  65.     if name of player's tool is "&a&lMłot Thora":
  66.         if difference between {MlotThoraLot::%player%::lastuse} and now is smaller than 15 seconds:
  67.             send "&a[Server] &c&lLot pioruna co 15 sekund! Zaczekaj!"
  68.             stop
  69.         set {MlotThoraLot::%player%::lastuse} to now
  70.         push the player upwards at velocity 3
  71.         push the player horizontally forward at speed 40
  72.         set {falldmg.%player%} to true
  73.  
  74. on damage:
  75.     if damage is caused by fall:
  76.         if {falldmg.%victim%} is set:
  77.             cancel event
  78.             clear {falldmg.%victim%}
  79.            
  80. command /AdminMlot:
  81.     trigger:
  82.         execute console command "give %player% DiamondPickaxe 1 name:&a&lMłot_Thora"
  83.         send "&a[Server] &6&lDostales Mlot Thora"
  84.         stop