Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {cobblexcrafting} to "&8&lCobble&2&lX"
- new Recipe {cobblexcrafting};
- {cobblexcrafting}.Recipe.registerIngredient{1, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{2, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{3, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{4, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{5, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{6, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{7, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{8, 64 cobble};
- {cobblexcrafting}.Recipe.registerIngredient{9, 64 cobble};
- {cobblexcrafting}.Recipe.registerResult{2 lapis ore of thorns 10 named "&8&lCobble&2&lX"};
- {cobblexcrafting}.Recipe.register{};
- on place of lapis ore:
- if name of player's tool is "&8&lCobble&2&lX":
- if player's tool is enchanted with thorns 10:
- set {cobblex::%event-block%} to true
- send "&aPostawiles &8&lCobble&2&lX&r&a!"
- stop
- on break of lapis ore:
- if {cobblex::%event-block%} is true:
- cancel event
- set event-block to air
- set {cobblex::%event-block%} to false
- run player command "/cobblex losuj" as op
- stop
- command /cobblex [<text>]:
- trigger:
- if arg 1 is not set:
- if player has permission "cobblex.admin":
- send "&3Komendy Admina Cobblex:"
- send "&8/cobblex daj - dostajesz 1 CobbleX"
- send "&8/cobblex losuj - dostajesz losowy item, ktory dropi z cobblex"
- send "&8/cobblex crafting - crafting CobbleX'a"
- else:
- wait 1 tick
- open chest with 3 rows named "&9&lCrafting &8&lCobble&2&lX" to player
- wait 2 ticks
- format slot 2 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 3 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 4 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 11 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 12 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 13 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 20 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 21 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 22 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 15 of player with 2 of lapis ore of thorns 10 named "&8&lCobble&2&lX" to be unstealable
- if arg 1 is "crafting":
- wait 1 tick
- open chest with 3 rows named "&9&lCrafting &8&lCobble&2&lX" to player
- wait 2 ticks
- format slot 2 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 3 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 4 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 11 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 12 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 13 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 20 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 21 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 22 of player with 64 of cobble named "&764 Bruku" to be unstealable
- format slot 15 of player with 2 of lapis ore of thorns 10 named "&8&lCobble&2&lX" to be unstealable
- if arg 1 is "give" or "daj" or "wez":
- if player doesn't have permission "cobblex.admin":
- send "&4Blad: &cNie masz uprawnien!"
- stop
- if player has permission "cobblex.daj":
- give 1 lapis ore of thorns 10 named "&8&lCobble&2&lX" to player
- stop
- if arg 1 is "losuj":
- if player is not an op:
- send "&4Blad: &cNie masz uprawnien!"
- stop
- chance of 5%:
- drop 1 beacon at player
- send "&9Gratulacje! Trafiles na &7beacon&9!"
- stop
- chance of 10%:
- drop 2 enchanted golden apple at player
- send "&9Gratulacje! Trafiles na &72 koxy&9!"
- stop
- chance of 10%:
- drop 2 bookshelf at player
- send "&9Gratulacje! Trafiles na &72 polki z ksiazkami&9!"
- stop
- chance of 10%:
- drop 2 golden apple at player
- send "&9Gratulacje! Trafiles na &72 refile&9!"
- stop
- chance of 10%:
- drop 20 diamond at player
- send "&9Gratulacje! Trafiles na &720 diaxow&9!"
- stop
- chance of 10%:
- drop 20 emerald at player
- send "&9Gratulacje! Trafiles na &720 szmaragdow&9!"
- stop
- chance of 20%:
- drop 3 ender pearl at player
- send "&9Gratulacje! Trafiles na &73 perly&9!"
- stop
- chance of 20%:
- drop 15 tnt at player
- send "&9Gratulacje! Trafiles na &715 tnt&9!"
- stop
- chance of 20%:
- drop 20 glowstone at player
- send "&9Gratulacje! Trafiles na &720 glowstone'a&9!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment