tropereks

Skrypt qYokunjoNp

Jul 12th, 2014
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. variables:
  2. {fr.chest.x} = 1000000
  3. {fr.chest.y} = 200
  4. {fr.chest.z} = 1000000
  5. command /chest [<text>]:
  6. permission: fr.chest.open
  7. permission message: &6You don't have required permission to do this.
  8. trigger:
  9. if arg 1 is not set:
  10. if {fr.%player%.chest} is not set:
  11. set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
  12. set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
  13. set {fr.%player%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
  14. if {fr.chest.x} is less than 1000300:
  15. add 3 to {fr.chest.x}
  16. else:
  17. set {fr.chest.x} to 1000300
  18. if {fr.chest.z} is less than 1000300:
  19. add 2 to {fr.chest.z}
  20. else:
  21. set {fr.chest.z} to 1000000
  22. add 1 to {fr.chest.y}
  23. open the inventory of the block at {fr.%player%.chest} to the player
  24. else:
  25. open the inventory of the block at {fr.%player%.chest} to the player
  26. else:
  27. if player has permission "fr.chest.admin":
  28. if {fr.%arg 1%.chest} is set:
  29. open the inventory of the block at {fr.%arg 1%.chest} to the player
  30. else:
  31. set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
  32. set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
  33. set {fr.%arg 1%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
  34. if {fr.chest.x} is less than 1000300:
  35. add 3 to {fr.chest.x}
  36. else:
  37. set {fr.chest.x} to 1000300
  38. if {fr.chest.z} is less than 1000300:
  39. add 2 to {fr.chest.z}
  40. else:
  41. set {fr.chest.z} to 1000000
  42. add 1 to {fr.chest.y}
  43. open the inventory of the block at {fr.%arg 1%.chest} to the player
  44. else:
  45. send "&6You don't have required permission to do this."
Advertisement
Add Comment
Please, Sign In to add comment