Advertisement
sora200507

Untitled

Jul 29th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. command /recipeadd:
  2. permission:op
  3. trigger:
  4. {recipesettings.%player%} is not set:
  5. open chest with 5 rows named "&cレシピ作成" to player
  6. set {_loop} to 0
  7. loop 45 times:
  8. set slot {_loop} of player's current inventory to barrier named " "
  9. add 1 to {_loop}
  10. set slot 10 of player's current inventory to air
  11. set slot 11 of player's current inventory to air
  12. set slot 12 of player's current inventory to air
  13. set slot 19 of player's current inventory to air
  14. set slot 20 of player's current inventory to air
  15. set slot 21 of player's current inventory to air
  16. set slot 28 of player's current inventory to air
  17. set slot 29 of player's current inventory to air
  18. set slot 30 of player's current inventory to air
  19. set slot 16 of player's current inventory to air
  20. set {recipesettings.%player%} to true
  21. on inventory close:
  22. {recipesettings.%player%} is set
  23. if name of player's current inventory is "&cレシピ作成":
  24. if slot 16 of player's current inventory is air:
  25. message "完成品がセットされていません!"
  26. clear {recipesettings.%player%}
  27. stop
  28. set {recipe.%slot 16 of player's current inventory%::1} to slot 10 of player's current inventory
  29. set {recipe.%slot 16 of player's current inventory%::2} to slot 11 of player's current inventory
  30. set {recipe.%slot 16 of player's current inventory%::3} to slot 12 of player's current inventory
  31. set {recipe.%slot 16 of player's current inventory%::4} to slot 19 of player's current inventory
  32. set {recipe.%slot 16 of player's current inventory%::5} to slot 20 of player's current inventory
  33. set {recipe.%slot 16 of player's current inventory%::6} to slot 21 of player's current inventory
  34. set {recipe.%slot 16 of player's current inventory%::7} to slot 28 of player's current inventory
  35. set {recipe.%slot 16 of player's current inventory%::8} to slot 29 of player's current inventory
  36. set {recipe.%slot 16 of player's current inventory%::9} to slot 30 of player's current inventory
  37. set {recipe.%slot 16 of player's current inventory%::0} to slot 16 of player's current inventory
  38. add slot 16 of player's current inventory to {recipes::*}
  39. on inventory click:
  40. name of player's current inventory is "&cレシピ作成"
  41. if clicked slot is :
  42. cancel event
  43. on script load:
  44. loop {recipes::*}:
  45. evaluate "register new shapeless recipe for %{recipe.%loop-value%::0}% using %{recipe.%loop-value%::1}%, %{recipe.%loop-value%::2}%, %{recipe.%loop-value%::3}%, %{recipe.%loop-value%::4}%, %{recipe.%loop-value%::5}%, %{recipe.%loop-value%::6}%, %{recipe.%loop-value%::7}%, %{recipe.%loop-value%::8}%, %{recipe.%loop-value%::9}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement