Advertisement
Guest User

printer

a guest
Jul 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. on right click on 170:
  2. if name of player's tool is "&aPrinter":
  3. set {menu.printer%player%} to true
  4. set {printer} to player's tool
  5. open chest with 3 rows named "&6Printer" to player
  6. wait 2 ticks
  7. format slot 0 of player with white stained glass named " " to be unstealable
  8. format slot 1 of player with white stained glass named " " to be unstealable
  9. format slot 2 of player with white stained glass named " " to be unstealable
  10. format slot 3 of player with white stained glass named " " to be unstealable
  11. format slot 4 of player with white stained glass named " " to be unstealable
  12. format slot 5 of player with white stained glass named " " to be unstealable
  13. format slot 6 of player with white stained glass named " " to be unstealable
  14. format slot 7 of player with white stained glass named " " to be unstealable
  15. format slot 8 of player with white stained glass named " " to be unstealable
  16. format slot 9 of player with white stained glass named " " to be unstealable
  17. format slot 10 of player with white stained glass named " " to be unstealable
  18. format slot 11 of player with 286 named "&bentretien" to close then run [make player execute command "/PEntretien"]
  19. format slot 12 of player with white stained glass named " " to be unstealable
  20. format slot 13 of player with 371 named "&6Upgrade" with lore "&6%{level}%"
  21. format slot 14 of player with white stained glass named " " to be unstealable
  22. format slot 15 of player with 266 named "&aRécolter:" with lore "&6%{money}%"
  23. format slot 16 of player with white stained glass named " " to be unstealable
  24. format slot 17 of player with white stained glass named " " to be unstealable
  25. format slot 18 of player with white stained glass named " " to be unstealable
  26. format slot 19 of player with white stained glass named " " to be unstealable
  27. format slot 20 of player with white stained glass named " " to be unstealable
  28. format slot 21 of player with white stained glass named " " to be unstealable
  29. format slot 22 of player with white stained glass named " " to be unstealable
  30. format slot 23 of player with white stained glass named " " to be unstealable
  31. format slot 24 of player with white stained glass named " " to be unstealable
  32. format slot 25 of player with white stained glass named " " to be unstealable
  33. format slot 26 of player with white stained glass named " " to be unstealable
  34.  
  35. command /PEntretien:
  36. trigger:
  37. if {menu.printer%player%} is true:
  38. open chest with 1 rows named "&bentretien" to player
  39. wait 2 ticks
  40. format slot 0 of player with white stained glass named " " to be unstealable
  41. format slot 1 of player with white stained glass named " " to be unstealable
  42. format slot 2 of player with white stained glass named " " to be unstealable
  43. format slot 3 of player with 351 named "&2Encre:" with lore "%{encre}%" to be unstealable
  44. format slot 4 of player with white stained glass named " " to be unstealable
  45. format slot 5 of player with 339 named "&2Papier:" with lore "%{papier}%" to be unstealable
  46. format slot 6 of player with white stained glass named " " to be unstealable
  47. format slot 7 of player with white stained glass named " " to be unstealable
  48. format slot 8 of player with white stained glass named " " to be unstealable
  49.  
  50.  
  51.  
  52. else:
  53. set {menu.printer.%player%} to false
  54. stop
  55.  
  56. on right click on 170:
  57. if player's tool is 351:
  58. if {encre} = 5:
  59. send "&4Le printer est déjà plein d'encres tu ne peux plus en rajouter" to event-entity
  60. else:
  61. add 1 to {encre}
  62. wait 120 seconds
  63. delete 1 to {encre}
  64. else if {encre} < 0:
  65. set block at {printer} to air
  66. send "&cton printer a explosé !! Il fallait mieux l'entretenir" to event-entity
  67.  
  68. on right click on 170:
  69. if player's tool is 359:
  70. if {papier} = 10:
  71. send "&4Le printer est déjà plein de papier tu ne peux plus en rajouter" to event-entity
  72. else:
  73. add 1 to {papier}
  74. wait 60 seconds
  75. delete 1 to {papier}
  76. else if {papier} < 0:
  77. set block at {printer} to air
  78. send "&cton printer a explosé !! Il fallait mieux l'entretenir" to event-entity
  79.  
  80.  
  81. command /printer:
  82. trigger:
  83. if player is op:
  84. give 170 named "&aPrinter" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement