Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /paint <text> <number> <text> [<boolean=false>]:
- description: インクを塗る
- usage: &e/paint
- permission: skript.admin
- trigger:
- if arg 3 is "purple" or "0":
- set {_paint-color} to 2
- else if arg 3 is "green" or "1":
- set {_paint-color} to 5
- else:
- stop
- if arg 2 is 1:
- loop {PaintBlock-Amount} times:
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~-1 ~ %{PaintBlock-Name.%loop-number%}% setblock ~ ~-1 ~ wool {_paint-color}"
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~1 ~ %{PaintBlock-Name.%loop-number%}% setblock ~ ~1 ~ wool {_paint-color}"
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~-1 ~ ~ %{PaintBlock-Name.%loop-number%}% setblock ~-1 ~ ~ wool {_paint-color}"
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~1 ~ ~ %{PaintBlock-Name.%loop-number%}% setblock ~1 ~ ~ wool {_paint-color}"
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~ ~-1 %{PaintBlock-Name.%loop-number%}% setblock ~ ~ ~-1 wool {_paint-color}"
- execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~ ~1 %{PaintBlock-Name.%loop-number%}% setblock ~ ~ ~1 wool {_paint-color}"
- command /paintblock <text> [<text>]:
- description: インクが塗れるブロックの追加
- usage: &e/pb
- permission: skript.admin
- aliases: /pb
- trigger:
- if arg 1 is "list" or "0":
- message "&9[system] &dペイントブロックリスト(計%{PaintBlock-Amount}%)"
- loop {PaintBlock-Amount} times:
- message "&9[sy] &d・%{PaintBlock-Name.%loop-number%}%"
- if arg 1 is "add" or "1":
- add 1 to {PaintBlock-Amount}
- set {PaintBlock-Name.%{PaintBlock-Amount}%} to arg 2
- message "&9[system] &7%{PaintBlock-Name.%{PaintBlock-Amount}%}%を塗ることのできるブロックに追加しました"
- if arg 1 is "reset" or "2":
- loop {PaintBlock-Amount} times:
- clear {PaintBlock-Name.%{PaintBlock-Amount}%}
- clear {PaintBlock-Amount}
- message "&9[system] &7塗ることのできるブロックをリセットしました"
- command /setpba <number>:
- description: PaintBlock-Amountをいじる
- usage: &e/setpba
- permission: skript.admin
- trigger:
- set {PaintBlock-Amount} to arg 1
- message "&9[system] &7PaintBlock-Amountを%arg 1%にしました"
Advertisement
Add Comment
Please, Sign In to add comment