Advertisement
SuzukazeK

Untitled

Dec 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. on script load:
  2. 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
  3.  
  4. on right click with storage minecart:
  5. name of player's tool is "&6バックパック"
  6. cancel event
  7. play sound "block.chest.open" with volume 0.5 and pitch 1 at player
  8. if lore of player's tool is "&f<Please click...>":
  9. add 1 to {backpacks}
  10. set lore of player's tool to "&f<ID : %{backpacks}%>"
  11. open chest with 3 row named "&8バックパック <ID : %{backpacks}%>" to player
  12. else:
  13. set {_id} to the 1st line of lore of player's tool
  14. replace "&f<ID : " and ">" with "" in {_id}
  15. open chest with 3 row named "&8バックパック <ID : %{_id}%>" to player
  16. loop 27 times:
  17. set slot loop-number - 1 of player's current inventory to {backpacks.%{_id}%.%loop-number%}
  18.  
  19. on inventory close:
  20. name of player's current inventory contains "&8バックパック <ID : " and ">"
  21. set {_id} to name of player's current inventory
  22. replace "&8バックパック <ID : " and ">" with "" in {_id}
  23. loop 27 times:
  24. set {backpacks.%{_id}%.%loop-number%} to slot loop-number - 1 of player's current inventory
  25. 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