Advertisement
gecko201577106

Untitled

Mar 23rd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. on sign edit:
  2. if line 1 of event-block is "sign":
  3. if player have permission "Sign.Free":
  4. set line 1 of event-block to "&6&lFreeSign"
  5. set line 2 of event-block to "&7%line 2%"
  6.  
  7. set {_line3} to "%line 3%"
  8. replace all ":" with "&7:&f" in {_line3}
  9.  
  10. set line 3 of event-block to "&c%colored {_line3}%"
  11. if line 4 is not "":
  12. set line 4 of event-block to "&7« &b%colored line 4% &7»"
  13. else:
  14. set line 4 of event-block to ""
  15.  
  16. command /nr [<offlineplayer>] [<item>]:
  17. trigger:
  18. if command sender is console or "ni" or "iTzAntii:
  19. set {%offlineplayer-argument%.Sign-I} to item-argument
  20.  
  21. on rightclick:
  22. if line 1 of clicked block is "&6&lFreeSign":
  23. play "CHEST_OPEN" to player
  24. open chest with 1 rows named "Free" to player
  25. wait a tick
  26. set {%player%.Sign-I} to "%uncolored line 2 of clicked block% %uncolored line 3 of clicked block%"
  27. set {%player%.Sign-N} to "%colored line 4 of clicked block%"
  28. replace all "" with "" in {%player%.Sign-N}
  29. replace all "" with "" in {%player%.Sign-N}
  30. execute server command "nr %player% %{%player%.Sign-I}%"
  31. if line 0 of clicked block is not set:
  32. format slot 0 of player with {%player%.Sign-I} to be unstealable
  33. else:
  34. format slot 0 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
  35. unformat slot 0 of player
  36. wait 0.1 seconds
  37. play "ITEM_PICKUP" to player
  38. if line 2 of clicked block is not set:
  39. format slot 2 of player with {%player%.Sign-I} to be unstealable
  40. else:
  41. format slot 2 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
  42. unformat slot 2 of player
  43. wait 0.1 seconds
  44. play "ITEM_PICKUP" to player
  45. if line 4 of clicked block is not set:
  46. format slot 4 of player with {%player%.Sign-I} to be unstealable
  47. else:
  48. format slot 4 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
  49. unformat slot 4 of player
  50. wait 0.1 seconds
  51. play "ITEM_PICKUP" to player
  52. if line 6 of clicked block is not set:
  53. format slot 6 of player with {%player%.Sign-I} to be unstealable
  54. else:
  55. format slot 6 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
  56. unformat slot 6 of player
  57. wait 0.1 seconds
  58. play "ITEM_PICKUP" to player
  59. if line 8 of clicked block is not set:
  60. format slot 8 of player with {%player%.Sign-I} to be unstealable
  61. else:
  62. format slot 8 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
  63. unformat slot 8 of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement