Advertisement
herhor67

WereWolf - herhor67

Dec 18th, 2014
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. #-----------{ Wiadomość przy śmierci (oryginalna wygląda jak minecraftowa) }-----------#
  3.     deathmessage: %victim% został zabity przez Werewolf
  4. #-----------{ Napis na bossbarze }-----------#
  5.     bossbar: Król Wilkołaków
  6.  
  7. every second:
  8.     loop all entities:
  9.         loop-entity is wolf:
  10.             loop-entity isn't dog
  11.             {wilkolak.%loop-entity%} is true:
  12.                 if loop-entity isn't riding {cialo.%loop-entity%}:
  13.                     make loop-entity ride {cialo.%loop-entity%}
  14.             {noc} is true:
  15.                 {wilkolak.%loop-entity%} is not set:
  16.                     chance of 99%:
  17.                         set {wilkolak.%loop-entity%} to true
  18.                         set loop-entity's max health to 10
  19.                         heal loop-entity
  20.                         spawn skeleton at location of loop-entity
  21.                         set last spawned entity's tool to stone sword
  22.                         set last spawned entity's max health to 10
  23.                         heal last spawned entity
  24.                         set {cialo.%loop-entity%} to last spawned entity
  25.                         set {glowa.%last spawned entity%} to loop-entity
  26.                         set {wilkolak.%last spawned entity%} to true
  27.                         make loop-entity ride last spawned entity
  28.                     else:
  29.                         {wilkolakboss} is not set:
  30.                             set {wilkolak.%loop-entity%} to true
  31.                             set {wilkolakboss} to loop-entity
  32.                             set loop-entity's max health to 100
  33.                             heal loop-entity
  34.                             set loop-entity's helmet to gold helmet
  35.                             spawn wither skeleton at location of loop-entity
  36.                             set last spawned entity's tool to iron sword
  37.                             set last spawned entity's max health to 100
  38.                             heal last spawned entity
  39.                             set {cialo.%loop-entity%} to last spawned entity
  40.                             set {glowa.%last spawned entity%} to loop-entity
  41.                             set {wilkolak.%last spawned entity%} to true
  42.                             make loop-entity ride last spawned entity
  43.             {noc} is false:
  44.                 {wilkolak.%loop-entity%} is true:
  45.                     light level at loop-entity is greater than 4:
  46.                         vehicle of loop-entity is skeleton:
  47.                             clear {wilkolak.%loop-entity%}
  48.                             set {_mobek} to loop-entity's vehicle
  49.                             delete loop-entity's vehicle
  50.                             clear {wilkolak.%{_mobek}%}
  51.                             set loop-entity's max health to 4
  52.                             heal loop-entity
  53.  
  54. #========||============================||========#
  55. #========||   wilkołak jako 1 ciało    ||========#
  56. #========||============================||========#
  57.  
  58. on damage:
  59.     {wilkolak.%victim%} is true:
  60.         victim is skeleton or wither skeleton:
  61.             attacker is player:
  62.                 cancel event
  63.                 if attacker's tool is gold sword:
  64.                     damage victim by 5
  65.                     damage victim's passenger by 5
  66.                     damage attacker's tool by 1
  67.                 else if attacker's tool is gold axe:
  68.                     damage attacker's tool by 2
  69.                     damage victim by 4
  70.                     damage victim's passenger by 4
  71.                 else if attacker's tool is gold pickaxe:
  72.                     damage attacker's tool by 2
  73.                     damage victim by 3
  74.                     damage victim's passenger by 3
  75.                 else if attacker's tool is gold shovel:
  76.                     damage attacker's tool by 2
  77.                     damage victim by 2
  78.                     damage victim's passenger by 2
  79.                 else:
  80.                     damage victim by 0.5
  81.                     damage victim's passenger by 0.5
  82.             else:
  83.                 set {_dmg} to damage
  84.                 damage victim's passenger by {_dmg}
  85.         victim is wolf:
  86.             attacker is player:
  87.                 cancel event
  88.                 if attacker's tool is gold sword:
  89.                     damage victim by 5
  90.                     damage victim's vehicle by 5
  91.                     damage attacker's tool by 1
  92.                 else if attacker's tool is gold axe:
  93.                     damage attacker's tool by 2
  94.                     damage victim by 4
  95.                     damage victim's vehicle by 4
  96.                 else if attacker's tool is gold pickaxe:
  97.                     damage attacker's tool by 2
  98.                     damage victim by 3
  99.                     damage victim's vehicle by 3
  100.                 else if attacker's tool is gold shovel:
  101.                     damage attacker's tool by 2
  102.                     damage victim by 2
  103.                     damage victim's vehicle by 2
  104.                 else:
  105.                     damage victim by 0.5
  106.                     damage victim's vehicle by 0.5
  107.             else:
  108.                 set {_dmg} to damage
  109.                 damage victim's vehicle by {_dmg}
  110.  
  111. #========||============================||========#
  112. #========||          Bossbar           ||========#
  113. #========||============================||========#
  114. every 5 seconds:
  115.     {wilkolakboss} is set:
  116.         set {_zycie} to {wilkolakboss}'s health
  117.         loop players in radius 50 of {wilkolakboss}:
  118.             display "{@bossbar}" on bossbar with {_zycie} percent by 5 seconds for loop-player
  119.  
  120. #========||============================||========#
  121. #========||    Wiadomość o śmierci     ||========#
  122. #========||============================||========#
  123. on death of player:
  124.     {wilkolak.%attacker%} is true:
  125.         set the death message to "{@deathmessage}"
  126.  
  127. on death of skeleton or wither skeleton:
  128.     kill {glowa.%victim%}
  129.  
  130. on death of wolf:
  131.     kill {cialo.%victim%}
  132.     {wilkolakboss} is victim:
  133.         clear {wilkolakboss}
  134.         delete drops
  135.         drop diamond sword at location of victim
  136.         drop golden sword at location of victim
  137. #       broadcast "Grul Filgołaguf skinął!"
  138.  
  139. #========||============================||========#
  140. #========||   ustawianie nocy i dnia   ||========#
  141. #========||============================||========#
  142. at 20:00:
  143.     set {noc} to true
  144. at 6:00:
  145.     set {noc} to false
  146.  
  147. on death:
  148.     wait 1 second
  149.     clear {glowa.%victim%}
  150.     clear {cialo.%victim%}
  151.     clear {wilkolak.%victim%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement