Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on craft:
- if event-item is anvil:
- cancel event
- close player's inventory
- remove 4 iron ingot and 3 iron block from player
- set {_x} to chest with 1 rows named "&9Wybierz kowadlo"
- loop 9 times:
- set slot loop-number - 1 of {_x} to gray glass
- set slot 2 of {_x} to anvil:0 with lore "&7Wybierz to jezeli chcesz aby:||&7 Stworzone kowadlo bylo &fzwykle."
- set slot 6 of {_x} to anvil:0 named "&aNaprawa" with lore "&7Wybierz to jezeli chesz aby:||&7 Stworzone kowadlo bylo &anaprawcze"
- open {_x} to player
- on inventory click:
- if inventory name of player's current inventory is "&9Wybierz kowadlo":
- cancel event
- if clicked slot is 2:
- set {temp.%player%} to true
- close player's inventory
- give anvil:0 to player
- stop
- if clicked slot is 6:
- set {temp.%player%} to true
- close player's inventory
- give anvil:0 named "&aKowadlo Naprawcze" to player
- stop
- stop
- on inventory close:
- if inventory name of player's current inventory is "&9Wybierz kowadlo":
- if {temp.%player%} is set:
- clear {temp.%player%}
- stop
- wait 2 tick
- set {_x} to chest with 1 rows named "&9Wybierz kowadlo"
- loop 9 times:
- set slot loop-number - 1 of {_x} to gray glass
- set slot 2 of {_x} to anvil:0 with lore "&7Wybierz to jak chcesz aby:||&7 Stworzone kowadlo bylo &fzwykle."
- set slot 6 of {_x} to anvil:0 named "&aNaprawa" with lore "&7Wybierz to jak chesz aby:||&7 Stworzone kowadlo bylo &anaprawcze"
- open {_x} to player
- on place:
- if player's tool is anvil:
- if name of player's tool is "&aKowadlo Naprawcze":
- add location of event-block to {anvil::*}
- stop
- on break:
- if event-block is anvil or anvil:1:
- if player cannot build at event-block:
- cancel event
- send "&6&lTeren&8: Nie mozesz tu niszczyc!"
- stop
- loop {anvil::*}:
- if "%location of event-block%" is "%loop-value%":
- remove loop-value from {anvil::*}
- cancel event
- set event-block to air
- drop anvil:0 named "&aKowadlo Naprawcze"
- stop
- on rightclick on a 145, 145:1 or 145:2 or 145:3:
- loop {anvil::*}:
- if "%location of event-block%" is "%loop-value%":
- cancel event
- if player's balance is larger than or equal to 200:
- if player's held item is sword or pickaxe or axe or hoe or fishing_rod or bow or chestplate or boots or helmet or leggings or shovel:
- execute player command "/repair" with permission "essentials.repair"
- execute console command "eco take %player% 200"
- stop
- send "&6Nie trzymasz żadnego przedmiotu"
- stop
- send "&6Nie posiadasz $200!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment