Advertisement
kama6012

co-i

Aug 22nd, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. on place:
  2. set {_a} to 1
  3. loop {coi.player.%location of block%::*}:
  4. set {_a} to {_a} + 1
  5. set {coi.player.%location of block%::%{_a}%} to player's name
  6. set {coi.block.%location of block%::%{_a}%} to the block
  7. set {coi.time.%location of block%::%{_a}%} to now
  8.  
  9. on break:
  10. set {_a} to 1
  11. loop {coi.player.%location of block%::*}:
  12. set {_a} to {_a} + 1
  13. set {coi.player.%location of block%::%{_a}%} to player's name
  14. set {coi.block.%location of block%::%{_a}%} to air
  15. set {coi.time.%location of block%::%{_a}%} to now
  16.  
  17. command /co i:
  18. permission: skript.co.i
  19. trigger:
  20. if {coi.active::%player%} is true:
  21. set {coi.active::%player%} to false
  22. message "&7[co-i]インスパイアモードがオフになりました"
  23. else:
  24. set {coi.active::%player%} to true
  25. message "&7[co-i]インスパイアモードがオンになりました ブロックをクリックしてください"
  26.  
  27. on click:
  28. {coi.active::%player%} is true
  29. player's targeted block isn't air
  30. cancel event
  31. message "&7[co-i]%location of player's targeted block%の編集状況:"
  32. loop 30 times:
  33. set {_a} to {_a} + 1
  34. if {coi.player.%location of player's targeted block%::%{_a}%} isn't set:
  35. exit this loop
  36. message "&7%{_a}% %{coi.time.%location of player's targeted block%::%{_a}%}%に%{coi.player.%location of player's targeted block%::%{_a}%}%が%{coi.block.%location of player's targeted block%::%{_a}%}%に編集"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement