Advertisement
Zeldaboy111

Blacksmith ]|[ Skript #328

Jul 13th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #multiblock structure
  2. #rename function
  3.  
  4. options:
  5. logo: &6&lBS&8: &7
  6.  
  7. function gui(p: Player):
  8. open chest with 6 rows named "&8Anvil" to {_p}
  9. wait 2 ticks
  10. loop 9 times:
  11. set slot loop-value - 1 of {_p}'s current inventory to gray stained glass pane named "&8"
  12. set slot 54-loop-value of {_p}'s current inventory to gray stained glass pane named "&8"
  13.  
  14. loop 5 times:
  15. set slot loop-value * 9 of {_p}'s current inventory to gray stained glass pane named "&8"
  16. set slot loop-value * 9-1 of {_p}'s current inventory to gray stained glass pane named "&8"
  17.  
  18. #rename, chat type je de naam van het item
  19. #crafting??
  20. #repair
  21.  
  22.  
  23. on rightclick on anvil:
  24. gui(player)
  25. cancel event
  26.  
  27. on inventory click:
  28. if inventory name of player's current inventory is "&8Anvil":
  29. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement