Guest User

Entify MPCFORUM

a guest
Mar 19th, 2017
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. #Entify dla MPCFORUM
  2. every 10 second:
  3. loop all players:
  4. set {_koxy} to number of golden apple:1 in the loop-player's inventory
  5. set {_refile} to number of golden apple:0 in the loop-player's inventory
  6. set {_perly} to number of ender pearl in the loop-player's inventory
  7. if {_koxy} is more than 6:
  8. set {_a} to {_koxy}-6
  9. remove {_a} of golden apple:1 from loop-player
  10. add {_a} to {schowek.%loop-player%.koxy}
  11. send "&cPosiadasz przy sobie wiecej niz 6 koxow, %{_a}% koxow zostaje odlozone do twojego schowka" to loop-player
  12. if {_refile} is more than 64:
  13. set {_a} to {_refile}-64
  14. remove {_a} of golden apple:0 from loop-player
  15. add {_a} to {schowek.%loop-player%.refile}
  16. send "&cPosiadasz przy sobie wiecej niz 64 refile, %{_a}% refili zostaje odlozone do twojego schowka" to loop-player
  17. if {_perly} is more than 3:
  18. set {_a} to {_perly}-3
  19. remove {_a} of ender pearl from loop-player
  20. add {_a} to {schowek.%loop-player%.perly}
  21. send "&cPosiadasz przy sobie wiecej niz 3 perly, %{_a}% perel zostaje odlozone do twojego schowka" to loop-player
  22. command /eschowekxdd [<text>]:
  23. trigger:
  24. if argument is not set:
  25. if {schowek.%player%.koxy} is not set:
  26. set {schowek.%player%.koxy} to 0
  27. if {schowek.%player%.refile} is not set:
  28. set {schowek.%player%.refile} to 0
  29. if {schowek.%player%.perly} is not set:
  30. set {schowek.%player%.perly} to 0
  31. send "&2&l=-=-=-= &b&lSCHOWEK &2&l=-=-=-="
  32. send "&7» &6/schowek koxy &8- &7wyplaca koxy(%{schowek.%player%.koxy}%)"
  33. send "&7» &6/schowek refile &8- &7wyplaca refile(%{schowek.%player%.refile}%)"
  34. send "&7» &6/schowek perly &8- &7wyplaca perly(%{schowek.%player%.perly}%)"
  35. send "&2&l=-=-=-= &b&lSCHOWEK &2&l=-=-=-="
  36. if argument is "koxy":
  37. give {schowek.%player%.koxy} of golden apple:1 to player
  38. send "&cWyplasiles ze schowka &6%{schowek.%player%.koxy}% &ckoxow"
  39. set {schowek.%player%.koxy} to 0
  40. if argument is "refile":
  41. give {schowek.%player%.refile} of golden apple:0 to player
  42. send "&cWyplasiles ze schowka &6%{schowek.%player%.refile}% &crefili"
  43. set {schowek.%player%.koxy} to 0
  44. if argument is "perly":
  45. give {schowek.%player%.perly} of ender pearl to player
  46. send "&8 &cWyplasiles ze schowka &6%{schowek.%player%.perly}% &cperel"
  47. set {schowek.%player%.perly} to 0
  48.  
  49. command /schowek [<text>]:
  50. aliases: depozyt
  51. trigger:
  52. if arg-1 is not set:
  53. open chest with 1 rows named "&6&lSCHOWEK" to player
  54. wait 2 ticks
  55. format slot 1 of player with 1 of enchanted golden apple named "&eKOXY" with lore "&7Posiadasz: &b%{schowek.%player%.koxy}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd koxy"]
  56. format slot 4 of player with 1 of golden apple:0 named "&6REFILE" with lore "&7Posiadasz: &b%{schowek.%player%.refile}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd refile"]
  57. format slot 7 of player with 1 of ender pearl named "&9PERLY" with lore "&7Posiadasz: &b%{schowek.%player%.perly}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd perly"]
  58. if arg-1 is set:
  59. open chest with 1 rows named "&6&lSCHOWEK" to player
  60. wait 2 ticks
  61. format slot 1 of player with 1 of enchanted golden apple named "&eKOXY" with lore "&7Posiadasz: &b%{schowek.%player%.koxy}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd koxy"]
  62. format slot 4 of player with 1 of golden apple:0 named "&6REFILE" with lore "&7Posiadasz: &b%{schowek.%player%.refile}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd refile"]
  63. format slot 7 of player with 1 of ender pearl named "&9PERLY" with lore "&7Posiadasz: &b%{schowek.%player%.perly}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd perly"]
Advertisement
Add Comment
Please, Sign In to add comment