Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {diamenty.%player%} = 0
- {emeraldy.%player%} = 0
- {zelazo.%player%} = 0
- {zloto.%player%} = 0
- {gunpowder.%player%} = 0
- {enderpearl.%player%} = 0
- {apple.%player%} = 0
- {redstone.%player%} = 0
- {lapis.%player%} = 0
- {wegiel.%player%} = 0
- {piasek.%player%} = 0
- {wykopanystone.%player%} = 0
- {cobblestone.%player%} = true
- options:
- szansa_diament: 0.75
- szansa_emerald: 0.50
- szansa_zelazo: 1.50
- szansa_zloto: 0.25
- szansa_gunpowder: 2.50
- szansa_apple: 0.75
- szansa_enderpearl: 0.50
- szansa_redstone: 2.75
- szansa_lapis: 2.75
- szansa_wegiel: 3
- szansa_piasek: 50
- kox: 5
- zlotejablko: 10
- enderpearl: 10
- diamond: 25
- emerald: 20
- tnt: 15
- apple: 15
- stone: 80
- #NIE ZMIENIAJ SZANSY MAGICZNEJ SKRZYNKI!
- szansa_magicznaskrzynka: 0.001
- wysokosc_diament: 25
- wysokosc_emerald: 25
- wysokosc_zelazo: 65
- wysokosc_zloto: 25
- wysokosc_gunpowder: 45
- wysokosc_apple: 45
- wysokosc_enderpearl: 25
- wysokosc_redstone: 50
- wysokosc_lapis: 50
- wysokosc_wegiel: 60
- wysokosc_piasek: 60
- wysokosc_magicznaskrzynka: 65
- on break of stone or cobblestone:
- if {cobblestone.%player%} is false:
- cancel event
- set event-block to air
- on mine of stone:
- chance of 100%
- add 1 xp to the player
- on mine of stone:
- chance of {@szansa_magicznaskrzynka}%
- if player's y-coordinate is smaller than {@wysokosc_magicznaskrzynka}:
- drop 1 chest named "&3&lMagiczna Skrzynka"
- send "&a&lUdalo ci sie wykopac magiczna skrzynke! Gratulacje!"
- broadcast "&4&lGraczowi %player% udalo sie wykopac &3&lMAGICZNA SKRZYNKE!"
- on place of chest:
- if name of the player's tool is "&3&lMagiczna Skrzynka":
- send "&7Postawiles: &3&lMagiczna skrzynke"
- wait 2 seconds
- chance of {@kox}%:
- drop a random number between 5 and 2 of 322:2
- send "&3&lTwoj Drop to: &6&lKOXY!!"
- chance of {@zlotejablko}%:
- drop a random number between 5 and 2 of 322
- send "&3&lTwoj Drop to: &6&lZlote Jablka!"
- chance of {@enderpearl}%:
- drop a random number between 5 and 2 of ender pearl
- send "&3&lTwoj Drop to: &a&lEnderperly!!"
- chance of {@diamond}%:
- drop a random number between 64 and 20 of diamond
- send "&3&lTwoj Drop to: &b&lDiamenty!!"
- chance of {@emerald}%:
- drop a random number between 32 and 10 of emerald
- send "&3&lTwoj Drop to: &2&lEmeraldy!"
- chance of {@tnt}%:
- drop a random number between 64 and 32 of tnt
- send "&3&lTwoj Drop to: &4&lTNT!"
- chance of {@apple}%:
- drop a random number between 32 and 10 of apple
- send "&3&lTwoj Drop to: &4&lJablka!"
- chance of {@stone}%:
- drop stone
- send "&3&lTwoj Drop to: &7&lStone ;("
- set block to air
- else:
- send "&4&lNic nie udalo ci sie wydropic! Sproboj jeszcze raz ;("
- on mine of stone:
- if player's gamemode is survival:
- add 1 to {wykopanystone.%player%}
- chance of {@szansa_diament}%
- if player's y-coordinate is smaller than {@wysokosc_diament}:
- drop 1 diamond
- add 1 to {diamenty.%player%}
- send "&7&lZnalazles: &b&lDiament!"
- chance of {@szansa_emerald}%
- if player's y-coordinate is smaller than {@wysokosc_emerald}:
- drop 1 emerald
- add 1 to {emeraldy.%player%}
- send "&7&lZnalazles: &2&lEmerald!"
- chance of {@szansa_zelazo}%
- if player's y-coordinate is smaller than {@wysokosc_zelazo}:
- drop 1 iron ore
- add 1 to {zelazo.%player%}
- send "&7&lZnalazles: &1&8Zelazo"
- chance of {@szansa_zloto}%
- if player's y-coordinate is smaller than {@wysokosc_zloto}:
- drop 1 gold ore
- add 1 to {zloto.%player%}
- send "&7&lZnalazles: &6&lZloto"
- chance of {@szansa_gunpowder}%
- if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
- drop 1 gunpowder
- add 1 to {gunpowder.%player%}
- send "&7&lZnalazles: &9&lProch"
- chance of {@szansa_enderpearl}%
- if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
- drop 1 ender pearl
- add 1 to {enderpearl.%player%}
- send "&7&lZnalazles: &1&2Enderperle!"
- chance of {@szansa_apple}%
- if player's y-coordinate is smaller than {@wysokosc_apple}:
- drop 1 apple
- add 1 to {apple.%player%}
- send "&7&lZnalazles: &4&lJablko!"
- chance of {@szansa_redstone}%
- if player's y-coordinate is smaller than {@wysokosc_redstone}:
- drop a random number between 4 and 1 of redstone
- add 1 to {redstone.%player%}
- send "&7&lZnalazles: &4&lRedstone'a!"
- chance of {@szansa_lapis}%
- if player's y-coordinate is smaller than {@wysokosc_lapis}:
- drop a random number between 4 and 1 of lapis lazuli
- add 1 to {lapis.%player%}
- send "&7&lZnalazles: &1&lLapis!"
- chance of {@szansa_wegiel}%
- if player's y-coordinate is smaller than {@wysokosc_wegiel}:
- drop 1 coal
- add 1 to {wegiel.%player%}
- send "&7&lZnalazles: &0&lWegiel!"
- if player's tool is a diamond pickaxe of fortune 1:
- chance of {@szansa_diament}%
- if player's y-coordinate is smaller than {@wysokosc_diament}:
- drop a random number between 3 and 2 of diamond
- add 1 to {diamenty.%player%}
- send "&7&lZnalazles: &b&lDiamenty!"
- chance of {@szansa_emerald}%
- if player's y-coordinate is smaller than {@wysokosc_emerald}:
- drop a random number between 3 and 2 of emerald
- add 1 to {emeraldy.%player%}
- send "&7&lZnalazles: &2&lEmeraldy!"
- chance of {@szansa_zelazo}%
- if player's y-coordinate is smaller than {@wysokosc_zelazo}:
- drop a random number between 3 and 2 of iron ore
- add 1 to {zelazo.%player%}
- send "&7&lZnalazles: &8&lZelazo!"
- chance of {@szansa_zloto}%
- if player's y-coordinate is smaller than {@wysokosc_zloto}:
- drop a random number between 3 and 2 of emerald
- add 1 to {zloto.%player%}
- send "&7&lZnalazles: &6&lZloto!"
- chance of {@szansa_gunpowder}%
- if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
- drop a random number between 3 and 2 of gunpowder
- add 1 to {gunpowder.%player%}
- send "&7&lZnalazles: &8&lProch!"
- chance of {@szansa_apple}%
- if player's y-coordinate is smaller than {@wysokosc_apple}:
- drop a random number between 3 and 2 of apple
- add 1 to {apple.%player%}
- send "&7&lZnalazles: &4&lJablka!"
- chance of {@szansa_enderpearl}%
- if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
- drop a random number between 3 and 2 of ender pearl
- add 1 to {enderpearl.%player%}
- send "&7&lZnalazles: &a&lEnderperly!"
- chance of {@szansa_redstone}%
- if player's y-coordinate is smaller than {@wysokosc_redstone}:
- drop a random number between 5 and 4 of redstone
- add 1 to {redstone.%player%}
- send "&7&lZnalazles: &4&lRedstone'a!"
- chance of {@szansa_lapis}%
- if player's y-coordinate is smaller than {@wysokosc_lapis}:
- drop a random number between 5 and 4 of lapis lazuli
- add 1 to {lapis.%player%}
- send "&7&lZnalazles: &1&lLapis!"
- chance of {@szansa_wegiel}%
- if player's y-coordinate is smaller than {@wysokosc_wegiel}:
- drop a random number between 3 and 2 of coal
- add 1 to {wegiel.%player%}
- send "&7&lZnalazles: &0&lWegiel!"
- if player's tool is a diamond pickaxe of fortune 2:
- chance of {@szansa_diament}%
- if player's y-coordinate is smaller than {@wysokosc_diament}:
- drop a random number between 4 and 3 of diamond
- add 1 to {diamenty.%player%}
- send "&7&lZnalazles: &b&lDiamenty!"
- chance of {@szansa_emerald}%
- if player's y-coordinate is smaller than {@wysokosc_emerald}:
- drop a random number between 4 and 3 of emerald
- add 1 to {emeraldy.%player%}
- send "&7&lZnalazles: &2&lEmeraldy!"
- chance of {@szansa_zelazo}%
- if player's y-coordinate is smaller than {@wysokosc_zelazo}:
- drop a random number between 4 and 3 of iron ore
- add 1 to {zelazo.%player%}
- send "&7&lZnalazles: &8&lZelazo!"
- chance of {@szansa_zloto}%
- if player's y-coordinate is smaller than {@wysokosc_zloto}:
- drop a random number between 4 and 3 of emerald
- add 1 to {zloto.%player%}
- send "&7&lZnalazles: &6&lZloto!"
- chance of {@szansa_gunpowder}%
- if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
- drop a random number between 4 and 3 of gunpowder
- add 1 to {gunpowder.%player%}
- send "&7&lZnalazles: &8&lProch!"
- chance of {@szansa_apple}%
- if player's y-coordinate is smaller than {@wysokosc_apple}:
- drop a random number between 4 and 3 of apple
- add 1 to {apple.%player%}
- send "&7&lZnalazles: &4&lJablka!"
- chance of {@szansa_enderpearl}%
- if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
- drop a random number between 4 and 3 of ender pearl
- add 1 to {enderpearl.%player%}
- send "&7&lZnalazles: &a&lEnderperly!"
- chance of {@szansa_redstone}%
- if player's y-coordinate is smaller than {@wysokosc_redstone}:
- drop a random number between 6 and 5 of redstone
- add 1 to {redstone.%player%}
- send "&7&lZnalazles: &4&lRedstone'a!"
- chance of {@szansa_redstone}%
- if player's y-coordinate is smaller than {@wysokosc_redstone}:
- drop a random number between 6 and 5 of redstone
- add 1 to {redstone.%player%}
- send "&7&lZnalazles: &4&lRedstone'a!"
- chance of {@szansa_lapis}%
- if player's y-coordinate is smaller than {@wysokosc_lapis}:
- drop a random number between 6 and 5 of lapis lazuli
- add 1 to {lapis.%player%}
- send "&7&lZnalazles: &1&lLapis!"
- if player's tool is a diamond pickaxe of fortune 3:
- chance of {@szansa_diament}%
- if player's y-coordinate is smaller than {@wysokosc_diament}:
- drop a random number between 5 and 4 of diamond
- add 1 to {diamenty.%player%}
- send "&7&lZnalazles: &b&lDiamenty!"
- chance of {@szansa_piasek}%
- if player's y-coordinate is smaller than {@wysokosc_piasek}:
- drop a random number between 5 and 4 of sand
- add 1 to {piasek.%player%}
- send "&7&lZnalazles: &6&lPiasek!"
- chance of {@szansa_emerald}%
- if player's y-coordinate is smaller than {@wysokosc_emerald}:
- drop a random number between 5 and 4 of emerald
- add 1 to {emeraldy.%player%}
- send "&7&lZnalazles: &2&lEmeraldy!"
- chance of {@szansa_zelazo}%
- if player's y-coordinate is smaller than {@wysokosc_zelazo}:
- drop a random number between 5 and 4 of iron ore
- add 1 to {zelazo.%player%}
- send "&7&lZnalazles: &8&lZelazo!"
- chance of {@szansa_zloto}%
- if player's y-coordinate is smaller than {@wysokosc_zloto}:
- drop a random number between 5 and 4 of emerald
- add 1 to {zloto.%player%}
- send "&7&lZnalazles: &6&lZloto!"
- chance of {@szansa_gunpowder}%
- if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
- drop a random number between 5 and 4 of gunpowder
- add 1 to {gunpowder.%player%}
- send "&7&lZnalazles: &8&lProch!"
- chance of {@szansa_apple}%
- if player's y-coordinate is smaller than {@wysokosc_apple}:
- drop a random number between 5 and 4 of apple
- add 1 to {apple.%player%}
- send "&7&lZnalazles: &4&lJablka!"
- chance of {@szansa_enderpearl}%
- if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
- drop a random number between 5 and 4 of ender pearl
- add 1 to {enderpearl.%player%}
- send "&7&lZnalazles: &a&lEnderperly!"
- chance of {@szansa_redstone}%
- if player's y-coordinate is smaller than {@wysokosc_redstone}:
- drop a random number between 6 and 5 of redstone
- add 1 to {redstone.%player%}
- send "&7&lZnalazles: &4&lRedstone'a!"
- chance of {@szansa_lapis}%
- if player's y-coordinate is smaller than {@wysokosc_lapis}:
- drop a random number between 6 and 5 of lapis lazuli
- add 1 to {lapis.%player%}
- send "&7&lZnalazles: &1&lLapis!"
- chance of {@szansa_wegiel}%
- if player's y-coordinate is smaller than {@wysokosc_wegiel}:
- drop a random number between 5 and 4 of coal
- add 1 to {wegiel.%player%}
- send "&7&lZnalazles: &0&lWegiel!"
- on mine of any ore:
- cancel event
- drop 1 cobblestone
- set block to air
- send "&a&lTen surowiec dropi tylko ze stone! Wiecej Informacji: /stone"
- on mine of emerald ore:
- cancel event
- drop 1 cobblestone
- set block to air
- send "&a&lTen surowiec dropi tylko ze stone! Wiecej Informacji: /stone"
- command /stone [<player>]:
- trigger:
- open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
- wait 1 tick
- format SLOT 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@szansa_diament} &a&lProcent" to be unstealable
- format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@szansa_emerald} &a&lProcent" to be unstealable
- format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@szansa_zloto} &a&lProcent" to be unstealable
- format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@szansa_zelazo} &a&lProcent" to be unstealable
- format slot 4 of player with 1 of stone named "&4>>&3<<" to be unstealable
- format slot 5 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@szansa_wegiel} &a&lProcent" to be unstealable
- format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8» &3{@szansa_wegiel} &a&lProcent" to be unstealable
- format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@szansa_enderpearl} &a&lProcent" to be unstealable
- format slot 8 of player with 1 of gunpowder named "&8» &7&lProch" with lore "&8» &3{@szansa_gunpowder} &a&lProcent" to be unstealable
- command /cobble:
- trigger:
- if {cobblestone.%player%} is true:
- set {cobblestone.%player%} to false
- send "&cWylaczono wypadanie cobblestone!"
- else if {cobblestone.%player%} is false:
- set {cobblestone.%player%} to true
- send "&aWlaczono wypadanie cobblestone!"
- command /statystyki [<text>]:
- aliases: staty
- trigger:
- if arg 1 is not set:
- send "&7Wykopane &bDiamenty: &7%{diamenty.%player%}%"
- send "&7Wykopane &eZloto: &7%{zloto.%player%}%"
- send "&7Wykopane &8Zelazo: &7%{zelazo.%player%}%"
- send "&7Wykopany &0Wegiel: &7%{wegiel.%player%}%"
- send "&7Wykopane &aEmeraldy: &7%{emeraldy.%player%}%"
- send "&7Wykopane &7Proch: &7%{gunpowder.%player%}%"
- send "&7Wykopane &cRedstone: &7%{redstone.%player%}%"
- send "&7Wykopane &9Lapis: &7%{lapis.%player%}%"
- send "&7Wykopany &6STONE: &7%{wykopanystone.%player%}%"
- if arg 1 is set:
- if arg 1 is player:
- send "&8====================="
- send "&7Gracz: &6&o%arg 1%"
- send "&7Wykopane &bDiamenty: &7%{diamenty.%arg 1%}%"
- send "&7Wykopane &eZloto: &7%{zloto.%arg 1%}%"
- send "&7Wykopane &8Zelazo: &7%{zelazo.%arg 1%}%"
- send "&7Wykopany &0Wegiel: &7%{wegiel.%arg 1%}%"
- send "&7Wykopane &aEmeraldy: &7%{emeraldy.%arg 1%}%"
- send "&7Wykopane &7Proch: &7%{gunpowder.%arg 1%}%"
- send "&7Wykopane &cRedstone: &7%{redstone.%arg 1%}%"
- send "&7Wykopane &9Lapis: &7%{lapis.%arg 1%}%"
- send "&7Wykopany &6STONE: &7%{wykopanystone.%arg 1%}%"
- else:
- send "&cTakiego gracza nie ma na serwerze!"
- command /autor:
- trigger:
- send " "
- send "&3&lAutorem Skryptu jest PatyczaQ1337"
- send "&4&lKontakt:"
- send " "
- send "&3&lSkype: PatyczaQGamingPL"
- send " "
Advertisement
Add Comment
Please, Sign In to add comment