7mm

Untitled

7mm
Mar 1st, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. set {_paint-color} to 5
  10. else:
  11. stop
  12. if arg 2 is 1:
  13. loop {PaintBlock-Amount} times:
  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. execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~-1 ~ ~ %{PaintBlock-Name.%loop-number%}% setblock ~-1 ~ ~ wool {_paint-color}"
  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. execute console command "/execute @e[tag=%arg 1%] ~ ~ ~ detect ~ ~ ~1 %{PaintBlock-Name.%loop-number%}% setblock ~ ~ ~1 wool {_paint-color}"
  20.  
  21. command /paintblock <text> [<text>]:
  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%にしました"
Advertisement
Add Comment
Please, Sign In to add comment