SHOW:
|
|
- or go back to the newest paste.
| 1 | command /paint <text> <number> <text> [<boolean=false>]: | |
| 2 | description: インクを塗る | |
| 3 | usage: &e/paint | |
| 4 | permission: skript.admin | |
| 5 | trigger: | |
| 6 | if arg 3 is "purple" or "0": | |
| 7 | set {_paint-color} to 2
| |
| 8 | else if arg 3 is "green" or "1": | |
| 9 | - | message "&9[sy] &d・%{PaintBlock-Name.%{PaintBlock-Amount}%}%"
|
| 9 | + | set {_paint-color} to 5
|
| 10 | else: | |
| 11 | stop | |
| 12 | if arg 2 is 1: | |
| 13 | - | message "&9[system] &7{PaintBlock-Name.%{PaintBlock-Amount}%}を塗ることのできるブロックに追加しました"
|
| 13 | + | |
| 14 | - | if arg 1 is "clear" or "2": |
| 14 | + | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~-1 ~ %{PaintBlock-Name.%loop-number%}% setblock ~ ~-1 ~ wool {_paint-color}"
|
| 15 | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~1 ~ %{PaintBlock-Name.%loop-number%}% setblock ~ ~1 ~ wool {_paint-color}"
| |
| 16 | - | reset {PaintBlock-Name.%{PaintBlock-Amount}%}
|
| 16 | + | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~-1 ~ ~ %{PaintBlock-Name.%loop-number%}% setblock ~-1 ~ ~ wool {_paint-color}"
|
| 17 | - | reset {PaintBlock-Amount}
|
| 17 | + | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~1 ~ ~ %{PaintBlock-Name.%loop-number%}% setblock ~1 ~ ~ wool {_paint-color}"
|
| 18 | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~ ~-1 %{PaintBlock-Name.%loop-number%}% setblock ~ ~ ~-1 wool {_paint-color}"
| |
| 19 | - | if arg 1 is "setpba" or "3": |
| 19 | + | execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~ ~1 %{PaintBlock-Name.%loop-number%}% setblock ~ ~ ~1 wool {_paint-color}"
|
| 20 | - | set {PaintBlock-Amount} to arg 2
|
| 20 | + | |
| 21 | - | message "&9[system] &7PaintBlock-Amountを%arg 2%にセットしました" |
| 21 | + | |
| 22 | description: インクが塗れるブロックの追加 | |
| 23 | usage: &e/pb | |
| 24 | permission: skript.admin | |
| 25 | aliases: /pb | |
| 26 | trigger: | |
| 27 | if arg 1 is "list" or "0": | |
| 28 | message "&9[system] &dペイントブロックリスト(計%{PaintBlock-Amount}%)"
| |
| 29 | loop {PaintBlock-Amount} times:
| |
| 30 | message "&9[sy] &d・%{PaintBlock-Name.%loop-number%}%"
| |
| 31 | if arg 1 is "add" or "1": | |
| 32 | add 1 to {PaintBlock-Amount}
| |
| 33 | set {PaintBlock-Name.%{PaintBlock-Amount}%} to arg 2
| |
| 34 | message "&9[system] &7%{PaintBlock-Name.%{PaintBlock-Amount}%}%を塗ることのできるブロックに追加しました"
| |
| 35 | if arg 1 is "reset" or "2": | |
| 36 | loop {PaintBlock-Amount} times:
| |
| 37 | clear {PaintBlock-Name.%{PaintBlock-Amount}%}
| |
| 38 | clear {PaintBlock-Amount}
| |
| 39 | message "&9[system] &7塗ることのできるブロックをリセットしました" | |
| 40 | ||
| 41 | command /setpba <number>: | |
| 42 | description: PaintBlock-Amountをいじる | |
| 43 | usage: &e/setpba | |
| 44 | permission: skript.admin | |
| 45 | trigger: | |
| 46 | set {PaintBlock-Amount} to arg 1
| |
| 47 | message "&9[system] &7PaintBlock-Amountを%arg 1%にしました" |