Advertisement
SuzukazeK

Untitled

Dec 21st, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. on script load:
  2. wipe server crafting recipes
  3. register new shaped recipe for storage minecart of Unbreaking 1 named "&6バックパック" with lore "&f<Please click...>" with hidden enchant using leather, leather, leather, leather, iron ingot, leather, leather, chest, leather
  4.  
  5. on right click with storage minecart:
  6. name of player's tool is "&6バックパック"
  7. cancel event
  8. play sound "block.chest.open" with volume 0.5 and pitch 1 at player
  9. if lore of player's tool is "&f<Please click...>":
  10. add 1 to {backpacks}
  11. set lore of player's tool to "&f<ID : %{backpacks}%>"
  12. open chest with 3 row named "&8バックパック <ID : %{backpacks}%>" to player
  13. else:
  14. set {_id} to the 1st line of lore of player's tool
  15. replace "&f<ID : " and ">" with "" in {_id}
  16. open chest with 3 row named "&8バックパック <ID : %{_id}%>" to player
  17. loop 27 times:
  18. set slot loop-number - 1 of player's current inventory to {backpacks.%{_id}%.%loop-number%}
  19.  
  20. on inventory close:
  21. name of player's current inventory contains "&8バックパック <ID : " and ">"
  22. set {_id} to name of player's current inventory
  23. replace "&8バックパック <ID : " and ">" with "" in {_id}
  24. loop 27 times:
  25. set {backpacks.%{_id}%.%loop-number%} to slot loop-number - 1 of player's current inventory
  26. set lore of player's tool to "&f<ID : %{_id}%>", "&7&o%{backpacks.%{_id}%.1}%", "&7&o%{backpacks.%{_id}%.2}%", "&7&o%{backpacks.%{_id}%.3}%" and "&8&o..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement