Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- - - - - - - - - - - - - - - - - - - - - - -#
- #-Autor skryptu: xBetter #
- #-WERSJA: 2.0 #
- #-Komendy: #
- #-/obsydian - Informacje o Obsydianarce #
- #- - - - - -Licencja skryptu- - - - - - - - - #
- #-Zakaz podszywania sie pod autora. #
- #-Zakaz usuwania autora oraz licencji. #
- #-Zabraniam sprzedazy skryptu. #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- # Opcje
- #- - - - - - - - - - - - - - - - - - - - - - -#
- options:
- obsydian: 80.0% # Szansa Na Wypadniecie Obsydianu
- czas: 30 # Czas Regeneracj Obsydianarki
- exp: 5% # Drop Expa Z Obsydianu
- crafting_1: obsidian
- crafting_2: obsidian
- crafting_3: obsidian
- crafting_4: obsidian
- crafting_5: obsidian
- crafting_6: obsidian
- crafting_7: obsidian
- crafting_8: obsidian
- crafting_9: obsidian
- on script load:
- register new shaped recipe for sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########" using {@crafting_1}, {@crafting_2}, {@crafting_3}, {@crafting_4}, {@crafting_5}, {@crafting_6}, {@crafting_7}, {@crafting_8}, {@crafting_9}
- stop
- variables:
- {moss.wlaczone} = true
- on place a mossy cobblestone:
- {moss.wlaczone} is true:
- cancel event
- on mine of mossy cobblestone:
- chance of {@exp}
- add 300 xp to the player
- on mine of mossy cobblestone:
- if player is holding diamond pickaxe of fortune 0:
- chance of {@obsydian}:
- give a random number between 5 and 5 of obsidian to the player
- stop
- on mine of mossy cobblestone:
- if player is holding diamond pickaxe of fortune 1:
- chance of {@obsydian}:
- give a random number between 10 and 5 of obsidian to the player
- stop
- on mine of mossy cobblestone:
- if player is holding diamond pickaxe of fortune 2:
- chance of {@obsydian}:
- give a random number between 13 and 5 of obsidian to the player
- stop
- on mine of mossy cobblestone:
- if player is holding diamond pickaxe of fortune 3:
- chance of {@obsydian}:
- give a random number between 15 and 5 of obsidian to the player
- stop
- on place of sponge:
- if name of the player's tool is "&8######## &c&LGENERATOR OBSYDIANU &8########":
- set {s.%event-block%} to true
- wait 1 second
- set event-block to mossy cobblestone
- stop
- on break of mossy cobblestone:
- if {s.%event-block%} is true:
- if player is holding gold pickaxe:
- cancel event
- set block to air
- if player can hold 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########":
- give 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########" to the player
- stop
- else:
- drop 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########"
- stop
- else:
- set {s.%event-block%} to true
- if player is pickaxe:
- cancel event
- set block to air
- wait {@czas} second
- set event-block to mossy cobblestone
- stop
- command /obsydian [<text>]:
- trigger:
- if arg 1 is not set:
- send "&7-----------------------------------"
- send "&9Crafting obsydianarki pod komenda /crafting"
- send "&9Obsydianarka regenruje sie co 30 sek"
- send "&9Obsydian z obsydianarki dropi tylko diamentowym kilofem!"
- send "&7-----------------------------------"
- stop
Advertisement
Add Comment
Please, Sign In to add comment