Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #multiblock structure
- #rename function
- options:
- logo: &6&lBS&8:&7
- function gui(p: Player):
- open chest with 6 rows named "&8Anvil" to {_p}
- wait 2 ticks
- loop 9 times:
- set slot loop-value - 1 of {_p}'s current inventory to gray stained glass pane named "&8"
- set slot 54-loop-value of {_p}'s current inventory to gray stained glass pane named "&8"
- loop 5 times:
- set slot loop-value * 9 of {_p}'s current inventory to gray stained glass pane named "&8"
- set slot loop-value * 9-1 of {_p}'s current inventory to gray stained glass pane named "&8"
- #crafting
- #repair
- #armor stand
- on rightclick on smooth stone:
- if player is not sneaking:
- if {anvil.%location of clicked block%} is true:
- gui(player)
- cancel event
- on rightclick on smooth stone holding stone axe:
- if {anvil.%location of event-block%} is not true:
- set {anvil.%location of event-block%} to true
- play sound "block.anvil.place" with volume 6 and pitch 0 to player
- send "{@logo} Successfully created an anvil tier I."
- on break of smooth stone:
- if {anvil.%location of event-block%} is true:
- play sound "block.anvil.place" with volume 6 and pitch 0 to player
- delete {anvil.%location of event-block%}
- on inventory click:
- if type of clicked inventory is chest inventory:
- if inventory name of player's current inventory is "&8Anvil":
- cancel event
Add Comment
Please, Sign In to add comment