nasuhahahafff

Untitled

May 23rd, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. on rightclick on sign:
  2. wait 1 tick
  3. #======================================スポーンポイント================================================================#
  4. if line 1 of clicked block contains "Spawn":
  5. if line 4 of clicked block contains "1":
  6. execute console command "/spawnpoint %player% -253 60 -11"
  7. else if line 4 of clicked block contains "Lien":
  8. execute console command "/spawnpoint %player% 0 74 0"
  9. else if line 4 of clicked block contains "Fault":
  10. execute console command "/spawnpoint %player% -521.0 72 147.5"
  11. message "&b&lSystem &7&l≫ &a&lスポーンポイントを&6&l《%line 3 of clicked block%&6&l》&a&lにセットしました"
  12. #==========================================ユルド両替==================================================================#
  13. if line 1 of clicked block contains "Yuld":
  14. if name of held item contains "ユルド":
  15. set {_item} to held item
  16. set {_yurd} to name of player's tool
  17. set {_name} to player's tool
  18. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_yurd}
  19. replace " ユルド &6&l|]]&m=====" with "" in {_yurd}
  20. set {_yurd} to {_yurd} parsed as number
  21. else:
  22. message "&b&lSystem &7&l≫ &e&lユルド&a&lを持った状態で&6&l右クリック&a&lしてください"
  23. stop
  24. if player is sneaking:
  25. if {_yurd} is 1:
  26. message "&b&lSystem &7&l≫ &e&l1ユルド&a&lは両替できません"
  27. stop
  28. remove 1 of {_item} from player
  29. set {_yurd} to {_yurd} / 10
  30. give player 10 emerald named "&6&l&m=====&6&l[[| &e&l%{_yurd}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
  31. else if player have 10 of {_name}:
  32. remove 10 of {_item} from player
  33. set {_yurd} to {_yurd} * 10
  34. give player emerald named "&6&l&m=====&6&l[[| &e&l%{_yurd}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
  35. else:
  36. message "&b&lSystem &7&l≫ &e&lユルド&a&lが足りません"
  37. #========================================回復ポイント================================================================#
  38. if line 1 of clicked block contains "Heal":
  39. if health of player is max health of player:
  40. message "&b&lSystem &7&l≫ &c&lHealth&a&lが減っていません"
  41. stop
  42. if name of held item contains "10 ユルド":
  43. remove 1 of held item from player
  44. heal the player
  45. command "class mana %player% 99999"
  46. message "&b&lSystem &7&l≫ &c&lHealth&a&lと&b&lMana&a&lを&e&l全回復&a&lしました"
  47. else:
  48. message "&b&lSystem &7&l≫ &e&l10 ユルド&a&lを持った状態で&6&l右クリック&a&lしてください"
  49. #==========================================アイテム買取口============================================================#
  50. if line 1 of clicked block contains "sell":
  51. set {_line} to 1
  52. if held item is none:
  53. message "&b&lSystem &7&l≫ &a&l売りたい&e&lアイテム&a&lを持って&6&l右クリック&a&lしてください"
  54. while {_line} is less than or equal to 30:
  55. if line {_line} of lore of held item contains "売却値段":
  56. set {_money} to line {_line} of lore of held item
  57. stop loop
  58. add 1 to {_line}
  59. if {_money} contains "売却値段":
  60. replace "&6&l売却値段&7: &a&l" with "" in {_money}
  61. replace " ユルド" with "" in {_money}
  62. set {_money} to {_money} parsed as number
  63. set {_item} to held item
  64. if player is sneaking:
  65. set {_v} to 64
  66. loop 64 times:
  67. if player have {_v} of held item:
  68. remove {_v} of held item from player
  69. set {_money} to {_money} * {_v}
  70. stop loop
  71. remove 1 from {_v}
  72. if player is not sneaking:
  73. remove 1 of {_item} from player
  74. loop {_money} times:
  75. add 1 to {_1}
  76. if {_1} is 10:
  77. clear {_1}
  78. add 1 to {_10}
  79. if {_10} is 10:
  80. clear {_10}
  81. add 1 to {_100}
  82. if {_100} is 10:
  83. clear {_100}
  84. add 1 to {_1000}
  85. set {_n} to 1
  86. loop 4 times:
  87. loop {_%{_n}%} times:
  88. give player 1 emerald named "&6&l&m=====&6&l[[| &e&l%{_n}% ユルド &6&l|]]&m=====" with lore "&a&l人間が使っている通貨||&a&l基本どこでも使うことができる||&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--||&9&lカテゴリ&7: &a&l通貨"
  89. set {_n} to {_n} * 10
Advertisement
Add Comment
Please, Sign In to add comment