Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on 170:
- if name of player's tool is "&aPrinter":
- set {menu.printer%player%} to true
- set {printer} to player's tool
- open chest with 3 rows named "&6Printer" to player
- wait 2 ticks
- format slot 0 of player with white stained glass named " " to be unstealable
- format slot 1 of player with white stained glass named " " to be unstealable
- format slot 2 of player with white stained glass named " " to be unstealable
- format slot 3 of player with white stained glass named " " to be unstealable
- format slot 4 of player with white stained glass named " " to be unstealable
- format slot 5 of player with white stained glass named " " to be unstealable
- format slot 6 of player with white stained glass named " " to be unstealable
- format slot 7 of player with white stained glass named " " to be unstealable
- format slot 8 of player with white stained glass named " " to be unstealable
- format slot 9 of player with white stained glass named " " to be unstealable
- format slot 10 of player with white stained glass named " " to be unstealable
- format slot 11 of player with 286 named "&bentretien" to close then run [make player execute command "/PEntretien"]
- format slot 12 of player with white stained glass named " " to be unstealable
- format slot 13 of player with 371 named "&6Upgrade" with lore "&6%{level}%"
- format slot 14 of player with white stained glass named " " to be unstealable
- format slot 15 of player with 266 named "&aRécolter:" with lore "&6%{money}%"
- format slot 16 of player with white stained glass named " " to be unstealable
- format slot 17 of player with white stained glass named " " to be unstealable
- format slot 18 of player with white stained glass named " " to be unstealable
- format slot 19 of player with white stained glass named " " to be unstealable
- format slot 20 of player with white stained glass named " " to be unstealable
- format slot 21 of player with white stained glass named " " to be unstealable
- format slot 22 of player with white stained glass named " " to be unstealable
- format slot 23 of player with white stained glass named " " to be unstealable
- format slot 24 of player with white stained glass named " " to be unstealable
- format slot 25 of player with white stained glass named " " to be unstealable
- format slot 26 of player with white stained glass named " " to be unstealable
- command /PEntretien:
- trigger:
- if {menu.printer%player%} is true:
- open chest with 1 rows named "&bentretien" to player
- wait 2 ticks
- format slot 0 of player with white stained glass named " " to be unstealable
- format slot 1 of player with white stained glass named " " to be unstealable
- format slot 2 of player with white stained glass named " " to be unstealable
- format slot 3 of player with 351 named "&2Encre:" with lore "%{encre}%" to be unstealable
- format slot 4 of player with white stained glass named " " to be unstealable
- format slot 5 of player with 339 named "&2Papier:" with lore "%{papier}%" to be unstealable
- format slot 6 of player with white stained glass named " " to be unstealable
- format slot 7 of player with white stained glass named " " to be unstealable
- format slot 8 of player with white stained glass named " " to be unstealable
- else:
- set {menu.printer.%player%} to false
- stop
- on right click on 170:
- if player's tool is 351:
- if {encre} = 5:
- send "&4Le printer est déjà plein d'encres tu ne peux plus en rajouter" to event-entity
- else:
- add 1 to {encre}
- wait 120 seconds
- delete 1 to {encre}
- else if {encre} < 0:
- set block at {printer} to air
- send "&cton printer a explosé !! Il fallait mieux l'entretenir" to event-entity
- on right click on 170:
- if player's tool is 359:
- if {papier} = 10:
- send "&4Le printer est déjà plein de papier tu ne peux plus en rajouter" to event-entity
- else:
- add 1 to {papier}
- wait 60 seconds
- delete 1 to {papier}
- else if {papier} < 0:
- set block at {printer} to air
- send "&cton printer a explosé !! Il fallait mieux l'entretenir" to event-entity
- command /printer:
- trigger:
- if player is op:
- give 170 named "&aPrinter" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement