Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #ustawienia % dropu
- szansa_wegiel: 3
- szansa_zelazo: 1.5
- szansa_redstone: 1
- szansa_lapis: 1
- szansa_zloto: 0.9
- szansa_szmaragd: 0.7
- szansa_diament: 0.6
- #komenda /drop
- command /drop:
- aliases: kamien,stone
- trigger:
- wait 4 ticks
- open chest with 3 rows named "&1&lDROP ZE STONE" to player
- format slot 1 of player with coal named "&8Wegiel" with lore "&eSzansa: &b{@szansa_wegiel} procent" to be unstealable
- format slot 2 of player with iron ingot named "&7Zelazo" with lore "&eSzansa: &b{@szansa_zelazo} procent" to be unstealable
- format slot 3 of player with redstone named "&4Redstone" with lore "&eSzansa: &b{@szansa_redstone} procent" to be unstealable
- format slot 4 of player with lapis lazuli named "&9Lapis" with lore "&eSzansa: &b{@szansa_lapis} procent" to be unstealable
- format slot 5 of player with gold ingot named "&6Zloto" with lore "&eSzansa: &b{@szansa_zloto} procent" to be unstealable
- format slot 6 of player with emerald named "&2Szmaragd" with lore "&eSzansa: &b{@szansa_szmaragd} procent" to be unstealable
- format slot 7 of player with diamond named "&bDiament" with lore "&eSzansa: &b{@szansa_diament} procent" to be unstealable
- #drop ze stone
- on mine of stone:
- if player's gamemode is survival:
- cancel event
- delete block
- chance of {@szansa_wegiel}%:
- send "&eZnalazles &0wegiel"
- give player 1 of coal
- add 2 xp to the player
- stop
- chance of {@szansa_zelazo}%:
- send "&eZnalazles &7zelazo"
- give player 1 of iron ore
- add 2 xp to the player
- stop
- chance of {@szansa_redstone}%:
- send "&eZnalazles &4redstone"
- give player random integer from 4 to 6 of redstone
- add 2 xp to the player
- stop
- chance of {@szansa_lapis}%:
- send "&eZnalazles &9lapis"
- give player random integer from 4 to 6 of lapis lazuli
- add 2 xp to the player
- stop
- chance of {@szansa_zloto}%:
- send "&eZnalazles &6zloto"
- give player 1 of gold ore
- add 2 xp to the player
- stop
- chance of {@szansa_szmaragd}%:
- send "&eZnalazles &2szmaragd"
- give player 1 of emerald
- add 2 xp to the player
- stop
- chance of {@szansa_diament}%:
- send "&eZnalazles &bdiament"
- give player 1 of diamond
- add 2 xp to the player
- stop
- give player 1 of cobblestone
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement