Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /set [<number>]:
- permission: skript.admin
- trigger:
- if arg-1 >= 1:
- if arg-1 <= 25:
- set {%arg-1%.location} to location of target block
- send "&a%{%arg-1%.location}% のチェストを %arg-1% 番に設定しました"
- else:
- send "&c1~25にしてください"
- else:
- send "&c1~25にしてください"
- command /reset [<offline player>]:
- permission: skript.admin
- trigger:
- if arg-1 is set:
- delete {1.%arg-1%}
- delete {2.%arg-1%}
- delete {3.%arg-1%}
- delete {4.%arg-1%}
- delete {5.%arg-1%}
- delete {6.%arg-1%}
- delete {7.%arg-1%}
- delete {8.%arg-1%}
- delete {9.%arg-1%}
- delete {10.%arg-1%}
- delete {11.%arg-1%}
- delete {12.%arg-1%}
- delete {13.%arg-1%}
- delete {14.%arg-1%}
- delete {15.%arg-1%}
- delete {16.%arg-1%}
- delete {17.%arg-1%}
- delete {18.%arg-1%}
- delete {19.%arg-1%}
- delete {20.%arg-1%}
- delete {21.%arg-1%}
- delete {22.%arg-1%}
- delete {23.%arg-1%}
- delete {24.%arg-1%}
- delete {25.%arg-1%}
- set {brokeamount.%arg-1%} to 0
- send "&a%arg-1% の壊した記録を削除しました" to player
- if arg-1 is not set:
- set block at {1.location} to chest
- set block at {2.location} to chest
- set block at {3.location} to chest
- set block at {4.location} to chest
- set block at {5.location} to chest
- set block at {6.location} to chest
- set block at {7.location} to chest
- set block at {8.location} to chest
- set block at {9.location} to chest
- set block at {10.location} to chest
- set block at {11.location} to chest
- set block at {12.location} to chest
- set block at {13.location} to chest
- set block at {14.location} to chest
- set block at {15.location} to chest
- set block at {16.location} to chest
- set block at {17.location} to chest
- set block at {18.location} to chest
- set block at {19.location} to chest
- set block at {20.location} to chest
- set block at {21.location} to chest
- set block at {22.location} to chest
- set block at {23.location} to chest
- set block at {24.location} to chest
- set block at {25.location} to chest
- send "&aチェストを復元しました" to player
- on first join:
- set {brokeamount.%player%} to 0
- command /present:
- trigger:
- send "&eプレゼントの入手数 &6%{brokeamount.%player%}%&e/25"
- on break of chest:
- if event-location == {1.location}:
- if {1.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {1.%player%} to true
- else if {1.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {2.location}:
- if {2.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {2.%player%} to true
- else if {2.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {3.location}:
- if {3.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {3.%player%} to true
- else if {3.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {4.location}:
- if {4.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {4.%player%} to true
- else if {4.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {5.location}:
- if {5.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {5.%player%} to true
- else if {5.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {6.location}:
- if {6.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {6.%player%} to true
- else if {6.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {7.location}:
- if {7.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {7.%player%} to true
- else if {7.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {8.location}:
- if {8.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {8.%player%} to true
- else if {8.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {9.location}:
- if {9.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {9.%player%} to true
- else if {9.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {10.location}:
- if {10.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {10.%player%} to true
- else if {10.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {11.location}:
- if {11.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {11.%player%} to true
- else if {11.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {12.location}:
- if {12.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {12.%player%} to true
- else if {12.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {13.location}:
- if {13.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {13.%player%} to true
- else if {13.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {14.location}:
- if {14.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {14.%player%} to true
- else if {14.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {15.location}:
- if {15.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {15.%player%} to true
- else if {15.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {16.location}:
- if {16.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {16.%player%} to true
- else if {16.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {17.location}:
- if {17.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {17.%player%} to true
- else if {17.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {18.location}:
- if {18.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {18.%player%} to true
- else if {18.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {19.location}:
- if {19.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {19.%player%} to true
- else if {19.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {20.location}:
- if {20.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {20.%player%} to true
- else if {20.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {21.location}:
- if {21.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {21.%player%} to true
- else if {21.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {22.location}:
- if {22.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {22.%player%} to true
- else if {22.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {23.location}:
- if {23.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {23.%player%} to true
- else if {23.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {24.location}:
- if {24.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {24.%player%} to true
- else if {24.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if event-location == {25.location}:
- if {25.%player%} is not set:
- add 1 to {brokeamount.%player%}
- set {25.%player%} to true
- else if {25.%player%} is true:
- cancel event
- send "&cすでに破壊済みです。"
- if {brokeamount.%player%} == 25:
- give paper named "&aプレゼントを25集めきりました!" to player
Advertisement
Add Comment
Please, Sign In to add comment