Advertisement
tatsu0123

鍵看板

Jan 14th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. /give @p sign 1 0 {BlockEntityTag:
  2. {
  3. Text1:{
  4. text:"クリックすることで",
  5. clickEvent: {
  6. action: run_command,
  7. value: ( /clone ~ ~ ~ ~ ~ ~ ~ ~1 ~ )
  8. }
  9. },
  10. Text2:{
  11. text:"ロック出来ます",
  12. clickEvent: {
  13. action: run_command,
  14. value: ( /scoreboard players set @p signlock -1 )
  15. }
  16. },
  17. Text3:{
  18. text:"近くに別プレイヤーが居る",
  19. clickEvent: {
  20. action: run_command,
  21. value: ( /blockdata ~ ~1 ~ {
  22. CommandStats:{AffectedBlocksName:@p,
  23. AffectedBlocksObjective:signlock},
  24. Text1:{
  25. bold:true,
  26. color:black,
  27. selector:( @p[score_signlock_min=-1,score_signlock=-1] ),
  28. clickEvent: {
  29. action: run_command,
  30. value: ( /scoreboard players set @p signlock -1 )
  31. }},
  32. Text2:{
  33. text:"ロック中",
  34. clickEvent: {
  35. action: run_command,
  36. value: ( /blockdata ~ ~1 ~ {
  37. Text1:{
  38. bold:true,
  39. color:black,
  40. selector:( @p[score_signlock_min=0,score_signlock=0] ),
  41. clickEvent: {
  42. action: run_command,
  43. value: ( /scoreboard players set @p signlock -1 )
  44. }}
  45. } )
  46. }},
  47. Text3:{
  48. text:"下の看板をクリック",
  49. clickEvent: {
  50. action: run_command,
  51. value: ( /testforblocks ~ ~ ~ ~ ~ ~1 ~ ~1 ~ )
  52. }},
  53. Text4:{
  54. text:"で解除出来ます",
  55. clickEvent: {
  56. action: run_command,
  57. value: ( /execute @p ~ ~ ~
  58. /execute @p[score_signlock_min=2,score_signlock=2,r=0,c=1] ~ ~ ~ /me 本人がクリックしました )
  59. }}
  60. } )
  61. }
  62. },
  63. Text4:{
  64. text:"と解除出来ません",
  65. clickEvent: {
  66. action: run_command,
  67. value: ( /blockdata ~ ~ ~ {
  68. CommandStats:{AffectedBlocksName:@p,
  69. AffectedBlocksObjective:signlock},
  70. Text1:{
  71. bold:true,
  72. color:black,
  73. selector:( @p[score_signlock_min=-1,score_signlock=-1] ),
  74. clickEvent: {
  75. action: run_command,
  76. value: ( /scoreboard players set @p signlock -1 )
  77. }},
  78. Text2:{
  79. text:"ロック中",
  80. clickEvent: {
  81. action: run_command,
  82. value: ( /blockdata ~ ~1 ~ {
  83. Text1:{
  84. bold:true,
  85. color:black,
  86. selector:( @p[score_signlock_min=0,score_signlock=0] ),
  87. clickEvent: {
  88. action: run_command,
  89. value: ( /scoreboard players set @p signlock -1 )
  90. }}
  91. } )
  92. }},
  93. Text3:{
  94. text:"下の看板をクリック",
  95. clickEvent: {
  96. action: run_command,
  97. value: ( /testforblocks ~ ~ ~ ~ ~ ~1 ~ ~1 ~ )
  98. }},
  99. Text4:{
  100. text:"で解除出来ます",
  101. clickEvent: {
  102. action: run_command,
  103. value: ( /execute @p ~ ~ ~
  104. /execute @p[score_signlock_min=2,score_signlock=2,r=0,c=1] ~ ~ ~ /me 本人がクリックしました )
  105. }}
  106. } )
  107. }
  108. }
  109. }
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement