Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /recipeadd:
- permission:op
- trigger:
- {recipesettings.%player%} is not set:
- open chest with 5 rows named "&cレシピ作成" to player
- set {_loop} to 0
- loop 45 times:
- set slot {_loop} of player's current inventory to barrier named " "
- add 1 to {_loop}
- set slot 10 of player's current inventory to air
- set slot 11 of player's current inventory to air
- set slot 12 of player's current inventory to air
- set slot 19 of player's current inventory to air
- set slot 20 of player's current inventory to air
- set slot 21 of player's current inventory to air
- set slot 28 of player's current inventory to air
- set slot 29 of player's current inventory to air
- set slot 30 of player's current inventory to air
- set slot 16 of player's current inventory to air
- set {recipesettings.%player%} to true
- on inventory close:
- {recipesettings.%player%} is set
- if name of player's current inventory is "&cレシピ作成":
- if slot 16 of player's current inventory is air:
- message "完成品がセットされていません!"
- clear {recipesettings.%player%}
- stop
- set {recipe.%slot 16 of player's current inventory%::1} to slot 10 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::2} to slot 11 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::3} to slot 12 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::4} to slot 19 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::5} to slot 20 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::6} to slot 21 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::7} to slot 28 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::8} to slot 29 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::9} to slot 30 of player's current inventory
- set {recipe.%slot 16 of player's current inventory%::0} to slot 16 of player's current inventory
- add slot 16 of player's current inventory to {recipes::*}
- on inventory click:
- name of player's current inventory is "&cレシピ作成"
- if clicked slot is :
- cancel event
- on script load:
- loop {recipes::*}:
- 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