SHARE
TWEET

Untitled

a guest Nov 19th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Animation(p: player):
  2.     if {Crate.Mining::%{_p}%} is true:
  3.         add white stained glass pane named "&f" to {_animation::*}
  4.         add light gray stained glass pane named "&f" to {_animation::*}
  5.         add gray stained glass pane named "&f" to {_animation::*}
  6.     if {Crate.Flame::%{_p}%} is true:
  7.         add yellow stained glass pane named "&f" to {_animation::*}
  8.         add orange stained glass pane named "&f" to {_animation::*}
  9.         add red stained glass pane named "&f" to {_animation::*}
  10.     loop 36 times:
  11.         if {Crate.Mining::%{_p}%} or {Crate.Flame::%{_p}%} is true:
  12.             loop-value is not 13
  13.             set {_slot} to loop-value -1
  14.             set {_glass::1} to random element out of {_animation::*}
  15.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value%}
  16.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-2%}
  17.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-3%}
  18.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-4%}
  19.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-5%}
  20.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-6%}
  21.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-7%}
  22.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-8%}
  23.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-9%}
  24.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-10%}
  25.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-11%}
  26.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-12%}
  27.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-13%}
  28.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-14%}
  29.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-15%}
  30.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-16%}
  31.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-17%}
  32.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-18%}
  33.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-19%}
  34.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-20%}
  35.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-21%}
  36.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-22%}
  37.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-23%}
  38.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-24%}
  39.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-25%}
  40.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-26%}
  41.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-27%}
  42.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-28%}
  43.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-29%}
  44.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-30%}
  45.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-31%}
  46.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-32%}
  47.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-33%}
  48.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-34%}
  49.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-35%}
  50.             set slot {_slot} of {_p}'s current inventory to {_glass::%loop-value-36%}
  51.        
  52. function Reset(p: player):
  53.     loop 36 times:
  54.         if {Crate.Mining::%{_p}%} is true:
  55.             set {_slot} to loop-value -1
  56.             {_slot} is not 4, 13 or 22
  57.             set slot {_slot} of {_p}'s current inventory to white stained glass pane named "&f"
  58.         if {Crate.Flame::%{_p}%} is true:
  59.             set {_slot} to loop-value -1
  60.             {_slot} is not 4, 13 or 22
  61.             set slot {_slot} of {_p}'s current inventory to yellow stained glass pane named "&f"
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