Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. command /blocca:
  2. trigger:
  3. if targeted block is archimede:
  4. if {ciao.block::%location of targeted block%} is "%player%":
  5. if {bella.zio::%player%} is not location of targeted block:
  6. if {save.bho::%location of targeted block%} is not set:
  7. set {my.block::%location of targeted block%} to player
  8. set {save.bho::%location of targeted block%} to true
  9. send "Hai bloccato il tuo timone, per sbloccarlo usa /sblocca"
  10. else if {save.bho::%location of targeted block%} is false:
  11. set {my.block::%location of targeted block%} to player
  12. set {save.bho::%location of targeted block%} to true
  13. set {bella.zio::%player%} to location of targeted block
  14. send "Hai bloccato il tuo timone, per sbloccarlo usa /sblocca"
  15. else if {save.bho::%location of targeted block%} is true:
  16. send "E' già bloccato questo timone"
  17. else:
  18. send "Hai già un timone!"
  19. else:
  20. send "Non è il tuo timone!"
  21. else:
  22. send "Mira un timone per eseguire il comando"
  23. stop trigger
  24.  
  25. command /sblocca:
  26. trigger:
  27. if targeted block is archimede:
  28. if {ciao.block::%location of targeted block%} is "%player%":
  29. if {bella.zio::%player%} is set:
  30. if {save.bho::%location of targeted block%} is true:
  31. delete {my.block::%location of targeted block%}
  32. delete {bella.zio::%player%}
  33. set {save.bho::%location of targeted block%} to false
  34. send "Hai sbloccato il tuo timone, per bloccarlo usa /blocca"
  35. else if {save.bho::%location of targeted block%} is not set:
  36. send "Non è bloccato questo timone"
  37. else if {save.bho::%location of targeted block%} is false:
  38. send "Non è bloccato questo timone"
  39. else:
  40. send "Non è il tuo timone!"
  41. else:
  42. send "Hai già un timone!"
  43. else:
  44. send "Mira un timone per eseguire il comando"
  45. stop trigger
  46.  
  47. on place of 165:
  48. set {ciao.block::%location of targeted block%} to event-player
  49. set {bella.zio::%player%} to event-location
  50.  
  51. on right click on 165:
  52. if {my.block::%location of event-block%} is not "%player%":
  53. if {save.bho::%location of targeted block%} is true:
  54. kick player due to "&8[&6ShipCraft&8] &bNon usare i timoni altrui!"
  55.  
  56. on break of 165:
  57. delete {save.bho::%location of targeted block%}
  58. delete {my.block::%location of targeted block%}
  59. delete {ciao.block::%location of targeted block%}
  60. delete {bella.zio::%player%}
  61.  
  62. on explode:
  63. loop blocks in radius 5 of event-location:
  64. if loop-block is archimede:
  65. delete {save.bho::%location of loop-block%}
  66. delete {my.block::%location of loop-block%}
  67. delete {ciao.block::%location of loop-block%}
  68.  
  69. command /vedi:
  70. trigger:
  71. send "%{save.bho::%location of targeted block%}%"
  72. send "%{my.block::%location of targeted block%}%"
  73. send "%{ciao.block::%location of targeted block%}%"
  74. send "%{bella.zio::%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement