SHARE
TWEET

Untitled

a guest May 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2.     set {_stone} to "stoniarka"
  3.     new Recipe {_stone};
  4.     {_stone}.Recipe.setIngredient{1, 1 stone};
  5.     {_stone}.Recipe.setIngredient{2, 1 stone};
  6.     {_stone}.Recipe.setIngredient{3, 1 stone};
  7.     {_stone}.Recipe.setIngredient{4, 1 diamond};
  8.     {_stone}.Recipe.setIngredient{5, 1 stone};
  9.     {_stone}.Recipe.setIngredient{6, 1 diamond};
  10.     {_stone}.Recipe.setIngredient{7, 1 redstone};
  11.     {_stone}.Recipe.setIngredient{8, 1 piston};
  12.     {_stone}.Recipe.setIngredient{9, 1 redstone};
  13.     {_stone}.Recipe.setResult{1 sponge named "&bStoniarka"};
  14.     {_stone}.Recipe.register{};
  15. on place sponge block:
  16.     if name of player's tool is "&bStoniarka":
  17.         add location of block to {stoniarka::*}
  18.         add location of block above block to {stone::*}
  19.         set block above block to stone
  20.  
  21. on break sponge:
  22.     loop {stoniarka::*}:
  23.         if loop-value is location of block:
  24.             remove location of block from {stoniarka::*}
  25.             remove location of block above from {stone::*}
  26.             cancel event
  27.             set block to air
  28.             drop sponge named "&bStoniarka"
  29. on break stone:
  30.     loop {stone::*}:
  31.         if loop-value is location of target block:
  32.             player has permission "stoniarka.svip":
  33.                 wait 1 second
  34.                 set block to stone
  35.             else:
  36.                 player has permission "stoniarka.vip":
  37.                     wait 1 second
  38.                     set block to stone
  39.                 else:
  40.                     wait 1 second
  41.                     set block to stone
  42.            
  43. command /stoniarka:
  44.     trigger:
  45.         player has permission "stoniarka.daj":
  46.             give sponge named "&bStoniarka" to player
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top