Zeldaboy111

Anvil Tiers ]|[ Skript #329

Jul 17th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 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. #crafting
  19. #repair
  20. #armor stand
  21.  
  22.  
  23. on rightclick on smooth stone:
  24. if player is not sneaking:
  25. if {anvil.%location of clicked block%} is true:
  26. gui(player)
  27. cancel event
  28.  
  29. on rightclick on smooth stone holding stone axe:
  30. if {anvil.%location of event-block%} is not true:
  31. set {anvil.%location of event-block%} to true
  32. play sound "block.anvil.place" with volume 6 and pitch 0 to player
  33. send "{@logo} Successfully created an anvil tier I."
  34.  
  35. on break of smooth stone:
  36. if {anvil.%location of event-block%} is true:
  37. play sound "block.anvil.place" with volume 6 and pitch 0 to player
  38. delete {anvil.%location of event-block%}
  39.  
  40.  
  41. on inventory click:
  42. if type of clicked inventory is chest inventory:
  43. if inventory name of player's current inventory is "&8Anvil":
  44. cancel event
Add Comment
Please, Sign In to add comment