7mm

Skript: y座標の機嫌を取るサバイバル

7mm
Feb 15th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. on load:
  2. if {ykigen.zahyou} is not set:
  3. set {ykigen.zahyou} to 200
  4. set {ykigen.wariai} to 7000
  5.  
  6. every tick:
  7. if {ykigen.zahyou} > 200:
  8. set {ykigen.zahyou} to 200
  9. if {ykigen.zahyou} < 1:
  10. set {ykigen.zahyou} to 200
  11. clear all players' inventory
  12. kill all players
  13. if {ykigen.wariai} > 10000:
  14. set {ykigen.wariai} to 10001
  15. if {ykigen.wariai} > -10000:
  16. remove 4 from {ykigen.wariai}
  17. if {ykigen.wariai} <= -10000:
  18. set {ykigen.wariai} to -10000
  19.  
  20. set {_kigen} to floor({ykigen.wariai})/100
  21. set {_zahyouint} to floor({ykigen.zahyou})
  22.  
  23. loop all players:
  24. if loop-player's y-coord > {ykigen.zahyou}:
  25. show an actionbar from coloured "&c&ly座標様の機嫌を損ねた! %{_zahyouint}%以下まで戻れ!" to loop-player
  26. apply wither 2 to loop-player for 2 tick
  27. remove 0.008 from {ykigen.zahyou}
  28. else:
  29. show an actionbar from coloured "&e&ly座標様の &b機嫌: %{_kigen}% &a許可座標: %{_zahyouint}%" to loop-player
  30.  
  31. every second:
  32. if {ykigen.wariai} > 9900:
  33. add 0.2 to {ykigen.zahyou}
  34. else if {ykigen.wariai} > 8000:
  35. add 0.06 to {ykigen.zahyou}
  36. else if {ykigen.wariai} > 0:
  37. add 0.015 to {ykigen.zahyou}
  38. else if {ykigen.wariai} > -8000:
  39. remove 0.015 from {ykigen.zahyou}
  40. else if {ykigen.wariai} > -9900:
  41. remove 0.6 from {ykigen.zahyou}
  42. else:
  43. remove 0.2 from {ykigen.zahyou}
  44.  
  45. on drop:
  46. set {_x} to floor(player's x-coord)
  47. set {_y} to floor(player's y-coord)
  48. set {_z} to floor(player's z-coord)
  49. if block below player is coal block:
  50. block of location at ({_x}-1, {_y}-1, {_z}+1) is coal_block
  51. block of location at ({_x}-1, {_y}-1, {_z}-1) is coal_block
  52. block of location at ({_x}, {_y}-1, {_z}+1) is coal_block
  53. block of location at ({_x}, {_y}-1, {_z}-1) is coal_block
  54. block of location at ({_x}+1, {_y}-1, {_z}+1) is coal_block
  55. block of location at ({_x}+1, {_y}-1, {_z}-1) is coal_block
  56. block of location at ({_x}-1, {_y}-1, {_z}) is coal_block
  57. block of location at ({_x}+1, {_y}-1, {_z}) is coal_block
  58. set {_t} to 1.0
  59. else if block below player is iron block:
  60. block of location at ({_x}-1, {_y}-1, {_z}+1) is iron_block
  61. block of location at ({_x}-1, {_y}-1, {_z}-1) is iron_block
  62. block of location at ({_x}, {_y}-1, {_z}+1) is iron_block
  63. block of location at ({_x}, {_y}-1, {_z}-1) is iron_block
  64. block of location at ({_x}+1, {_y}-1, {_z}+1) is iron_block
  65. block of location at ({_x}+1, {_y}-1, {_z}-1) is iron_block
  66. block of location at ({_x}-1, {_y}-1, {_z}) is iron_block
  67. block of location at ({_x}+1, {_y}-1, {_z}) is iron_block
  68. set {_t} to 2.0
  69. else if block below player is gold block:
  70. block of location at ({_x}-1, {_y}-1, {_z}+1) is gold_block
  71. block of location at ({_x}-1, {_y}-1, {_z}-1) is gold_block
  72. block of location at ({_x}, {_y}-1, {_z}+1) is gold_block
  73. block of location at ({_x}, {_y}-1, {_z}-1) is gold_block
  74. block of location at ({_x}+1, {_y}-1, {_z}+1) is gold_block
  75. block of location at ({_x}+1, {_y}-1, {_z}-1) is gold_block
  76. block of location at ({_x}-1, {_y}-1, {_z}) is gold_block
  77. block of location at ({_x}+1, {_y}-1, {_z}) is gold_block
  78. set {_t} to 2.5
  79. else if block below player is diamond block:
  80. block of location at ({_x}-1, {_y}-1, {_z}+1) is diamond_block
  81. block of location at ({_x}-1, {_y}-1, {_z}-1) is diamond_block
  82. block of location at ({_x}, {_y}-1, {_z}+1) is diamond_block
  83. block of location at ({_x}, {_y}-1, {_z}-1) is diamond_block
  84. block of location at ({_x}+1, {_y}-1, {_z}+1) is diamond_block
  85. block of location at ({_x}+1, {_y}-1, {_z}-1) is diamond_block
  86. block of location at ({_x}-1, {_y}-1, {_z}) is diamond_block
  87. block of location at ({_x}+1, {_y}-1, {_z}) is diamond_block
  88. set {_t} to 3.5
  89. else if block below player is emerald block:
  90. block of location at ({_x}-1, {_y}-1, {_z}+1) is emerald_block
  91. block of location at ({_x}-1, {_y}-1, {_z}-1) is emerald_block
  92. block of location at ({_x}, {_y}-1, {_z}+1) is emerald_block
  93. block of location at ({_x}, {_y}-1, {_z}-1) is emerald_block
  94. block of location at ({_x}+1, {_y}-1, {_z}+1) is emerald_block
  95. block of location at ({_x}+1, {_y}-1, {_z}-1) is emerald_block
  96. block of location at ({_x}-1, {_y}-1, {_z}) is emerald_block
  97. block of location at ({_x}+1, {_y}-1, {_z}) is emerald_block
  98. set {_t} to 4.0
  99. if {_t} is not set:
  100. stop
  101. if {nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%} > 0:
  102. message "&cクールダウン中です (残り%{nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%}%秒)"
  103. stop
  104. else:
  105. set {nouhinn.ct::%{_x}%,%{_y}-1%,%{_z}%} to 2
  106. add 0.1*{_t} to {ykigen.wariai}
Add Comment
Please, Sign In to add comment