nfell2009

Stuff

May 6th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.68 KB | None | 0 0
  1. on mine of oak log:12:
  2.  if player's game mode is survival:
  3.   if player is holding axe:
  4.   cancel event
  5.    tool of the player isn't enchanted with unbreaking:
  6.    damage tool by 1
  7.    tool of the player is enchanted with unbreaking 1:
  8.    chance of 50%:
  9.      damage tool by 1
  10.    tool of the player is enchanted with unbreaking 2:
  11.    chance of 33%:
  12.      damage tool by 1
  13.    tool of the player is enchanted with unbreaking 3:
  14.    chance of 25%:
  15.      damage tool by 1
  16.    give 1 oak log to the player
  17.    set block to air
  18.    add "%location of block%" to {woodrespawning12::*}
  19.    wait 120 seconds
  20.    set block to oak log:12
  21.    remove "%location of block%" from {woodrespawning12::*}
  22.   else if player isn't holding an axe:
  23.   cancel event
  24.    chance of 5%:
  25.     message "&cyou need an &7Axe &cto break this!"
  26.  
  27. on mine of oak log:8:
  28.  if player's game mode is survival:
  29.   if player is holding axe:
  30.   cancel event
  31.    tool of the player isn't enchanted with unbreaking:
  32.    damage tool by 1
  33.    tool of the player is enchanted with unbreaking 1:
  34.    chance of 50%:
  35.      damage tool by 1
  36.    tool of the player is enchanted with unbreaking 2:
  37.    chance of 33%:
  38.      damage tool by 1
  39.    tool of the player is enchanted with unbreaking 3:
  40.    chance of 25%:
  41.      damage tool by 1
  42.    give 1 oak log to the player
  43.    set block to air
  44.    add "%location of block%" to {woodrespawning8::*}
  45.    wait 120 seconds
  46.    set block to oak log:8
  47.    remove "%location of block%" from {woodrespawning8::*}
  48.   else if player isn't holding an axe:
  49.   cancel event
  50.    chance of 5%:
  51.     message "&cyou need an &7Axe &cto break this!"
  52.  
  53. on mine of oak log:4:
  54.  if player's game mode is survival:
  55.   if player is holding axe:
  56.   cancel event
  57.    tool of the player isn't enchanted with unbreaking:
  58.    damage tool by 1
  59.    tool of the player is enchanted with unbreaking 1:
  60.    chance of 50%:
  61.      damage tool by 1
  62.    tool of the player is enchanted with unbreaking 2:
  63.    chance of 33%:
  64.      damage tool by 1
  65.    tool of the player is enchanted with unbreaking 3:
  66.    chance of 25%:
  67.      damage tool by 1
  68.    give 1 oak log to the player
  69.    set block to air
  70.    add "%location of block%" to {woodrespawning4::*}
  71.    wait 120 seconds
  72.    set block to oak log:4
  73.    remove "%location of block%" from {woodrespawning4::*}
  74.   else if player isn't holding an axe:
  75.   cancel event
  76.    chance of 5%:
  77.     message "&cyou need an &7Axe &cto break this!"
  78.  
  79. on mine of oak log:0:
  80.  if player's game mode is survival:
  81.   if player is holding axe:
  82.   cancel event
  83.    tool of the player isn't enchanted with unbreaking:
  84.    damage tool by 1
  85.    tool of the player is enchanted with unbreaking 1:
  86.    chance of 50%:
  87.      damage tool by 1
  88.    tool of the player is enchanted with unbreaking 2:
  89.    chance of 33%:
  90.      damage tool by 1
  91.    tool of the player is enchanted with unbreaking 3:
  92.    chance of 25%:
  93.      damage tool by 1
  94.    give 1 oak log to the player
  95.    set block to air
  96.    add "%location of block%" to {woodrespawning0::*}
  97.    wait 120 seconds
  98.    set block to oak log
  99.    remove "%location of block%" from {woodrespawning0::*}
  100.   else if player isn't holding an axe:
  101.   cancel event
  102.    chance of 5%:
  103.     message "&cyou need an &7Axe &cto break this!"
  104.  
  105. on skript load:
  106.  loop {woodrespawning0::*}:
  107.     set block at loop-value to oak log:0
  108.     remove loop-value from {woodrespawning0::*}
  109.  loop {woodrespawning4::*}:
  110.     set block at loop-value to oak log:4
  111.     remove loop-value from {woodrespawning4::*}
  112.  loop {woodrespawning8::*}:
  113.     set block at loop-value to oak log:8
  114.     remove loop-value from {woodrespawning8::*}
  115.  loop {woodrespawning12::*}:
  116.     set block at loop-value to oak log:12
  117.     remove loop-value from {woodrespawning12::*}
Advertisement
Add Comment
Please, Sign In to add comment