Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- register new shaped recipe for emerald ore named "&aStoniarka" using stone, stone, stone, stone, emerald, stone, stone, stone, stone
- command /craft:
- trigger:
- execute console command "zcraft %player% 1"
- command /acraft [<player>] [<text>]:
- executable by: console
- trigger:
- if arg 2 is "stone":
- if player-arg has 8 stone and 1 emerald:
- wait 2 tick
- send "&6AutoCrafting: &aZaakceptowano!"
- remove 8 stone and 1 emerald from player-arg's inventory
- if player-arg can hold 1 emerald ore named "&aStoniarka":
- wait 2 tick
- give 1 emerald ore named "&aStoniarka" to the player-arg
- send "&6AutoCrafting: &aOtrzymales Stoniarke!"
- stop
- else:
- send "&6AutoCrafting: &aNie masz miejsca w ekwipunku!"
- else:
- send "&6AutoCrafting: &cOdrzucono"
- send "&6AutoCrafting: &cNie posiadasz odpowiednich itemow!"
- command /zcraft [<player>] [<text>]:
- executable by: console
- trigger:
- if arg 2 is "1":
- wait 2 tick
- open chest with 1 rows named "&cCraftingi" to player-arg
- wait 2 tick
- format slot 0 of player-arg with 1 of emerald ore named "&aStoniarka" to run "zcraft %player-arg% 2"
- if arg 2 is "2":
- wait 2 tick
- open chest with 3 rows named "&aStoniarka" to player-arg
- wait 2 tick
- format slot 0 of player-arg with 1 of stone to be unstealable
- format slot 1 of player-arg with 1 of stone to be unstealable
- format slot 2 of player-arg with 1 of stone to be unstealable
- format slot 9 of player-arg with 1 of stone to be unstealable
- format slot 10 of player-arg with 1 of emerald to be unstealable
- format slot 11 of player-arg with 1 of stone to be unstealable
- format slot 12 of player-arg with 1 of emerald ore named "&aStoniarka" to be unstealable
- format slot 18 of player-arg with 1 of stone to be unstealable
- format slot 19 of player-arg with 1 of stone to be unstealable
- format slot 20 of player-arg with 1 of stone to be unstealable
- format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "acraft %player-arg% stone"
Advertisement
Add Comment
Please, Sign In to add comment