options: #config starting-needed-xp: 200 max-lvl: 120 needed-xp-multiplier: 1.33 announce-new-level-every-x-levels: 100 #messages get-xp-message: "&a+%{_a}% xp &2%{lvl::xp::%{_p}%}%/%{lvl::wymxp::%{_p}%}% &c%{lvl::pp::%{_p}%}%%%" max-lvl-reached-message-on-xp-get: "&cMasz maksymalny poziom!" new-lvl-message: "&2&lAwansowales na &a&l%{lvl::lvl::%{_p}%}% &2&lpoziom!" announce-new-level-every-x-levels-message: "&aGracz &2%{_p}% &aosiagnal &2&l%{lvl::lvl::%{_p}%}% &apoziom!" function addExp(a: number, p: player): if {lvl::wymxp::%{_p}%} is not set: set {lvl::wymxp::%{_p}%} to {@starting-needed-xp} add {_a} to {lvl::xp::%{_p}%} set {lvl::pp::%{_p}%} to {lvl::xp::%{_p}%} / {lvl::wymxp::%{_p}%} * 100 send action bar {@get-xp-message} to {_p} if {lvl::xp::%{_p}%} is more than {lvl::wymxp::%{_p}%}: if {lvl::lvl::%{_p}%} is {@max-lvl}: send action bar {@max-lvl-reached-message-on-xp-get} to {_p} else: set {lvl::xp::%{_p}%} to 1 add 2 to {lvl::lvl::%{_p}%} send {@new-lvl-message} to {_p} set {lvl::wymxp::%{_p}%} to rounded {lvl::wymxp::%{_p}%} * {@needed-xp-multiplier} clear {lvl::pp::%{_p}%} if {lvl::lvl::%{_p}%} is divisible by {@announce-new-level-every-x-levels}: send {@announce-new-level-every-x-levels-message} to all players command /lvl []: aliases: /poziom, /level trigger: if (arg-1 parsed as player) is online: if {lvl::lvl::%arg-1%} is not set: set {lvl::lvl::%arg-1%} to 1 if {lvl::xp::%arg-1%} is not set: set {lvl::xp::%arg-1%} to 1 if {lvl::pp::%arg-1%} is not set: set {lvl::pp::%arg-1%} to 1 if {lvl::wymxp::%arg-1%} is not set: set {lvl::wymxp::%arg-1%} to {@starting-needed-xp} send "&8[&c*&8]----------[&cPoziom&8]----------[&c*&8]" send "&cPoziom: &7%{lvl::lvl::%arg-1%}%" send "&cPostęp: &7%{lvl::xp::%arg-1%}%&8/&7%{lvl::wymxp::%arg-1%}% &8(&c%{lvl::pp::%arg-1%}%&c%%&8)" send "&8[&c*&8]----------[&c%arg-1%&8]----------[&c*&8]" else: send "&cNie ma takiego gracza na serwerze!" variables: {diamenty::%player%} = 0 {emeraldy::%player%} = 0 {zloto::%player%} = 0 {zelazo::%player%} = 0 {wegiel::%player%} = 0 {redstone::%player%} = 0 {wykopanystone::%player%} = 0 {bruk::%player%} = true #Drop options: szansa_diament: 0.45 szansa_emerald: 0.25 szansa_zloto: 0.8 szansa_zelazo: 2.5 szansa_wegiel: 4 szansa_redstone: 3 szansa_lapis: 1.75 #Wysokosc od jakiej drop ma sie rozpoczynac wysokosc_diament: 100 # 100 mozesz zmienic na dowolna liczbe, pamietaj wysokosc jest liczona od dolu! wysokosc_emerald: 100 wysokosc_zloto: 100 wysokosc_zelazo: 100 wysokosc_wegiel: 100 wysokosc_redstone: 100 wysokosc_lapis: 100 #Jesli w "sprawach skryptow" jestes "zielony"- lepiej nie ruszaj :D on mine of stone: add 1 to {wykopanystone::%player%} chance of {@szansa_diament}%: if player's y-coordinate is smaller than {@wysokosc_diament}: drop 1 diamond send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6diaxa!" #<--- #Jedynie tutaj mozesz zmienic wyglad wysylanej wiadomosci #Gdy gracz zdobedzie dany surowiec, tutaj diament addExp(1, player) add 1 to {diamenty::%player%} chance of {@szansa_emerald}%: if player's y-coordinate is smaller than {@wysokosc_emerald}: drop 1 emerald send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6szmaragda!" addExp(1, player) add 1 to {emeraldy::%player%} chance of {@szansa_zloto}%: if player's y-coordinate is smaller than {@wysokosc_zloto}: drop 1 gold ingot send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6zloto!" addExp(1, player) add 1 to {zloto::%player%} chance of {@szansa_zelazo}%: if player's y-coordinate is smaller than {@wysokosc_zelazo}: drop 1 iron ingot send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6zelazo!" addExp(1, player) add 1 to {zelazo::%player%} chance of {@szansa_wegiel}%: if player's y-coordinate is smaller than {@wysokosc_wegiel}: drop 1 coal send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6wegiel!" addExp(1, player) add 1 to {wegiel::%player%} chance of {@szansa_redstone}%: if player's y-coordinate is smaller than {@wysokosc_redstone}: drop 1 redstone send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6redstone!" addExp(1, player) add 1 to {redstone::%player%} chance of {@szansa_lapis}%: if player's y-coordinate is smaller than {@wysokosc_lapis}: drop 1 lapis ore send "&f[&l&6Drop&f]&6Gratulacje zdobyles &71 &6Lapis!" addExp(1, player) add 1 to {lapis::%player%} chance of 75%: add 1 xp to the player #Komenda /statystyki command /statystyki: aliases: staty trigger: send "&b&l&m-----------&b&l[&a&lStatystyki&b&l]&b&l&m-----------" send "&6Wykopane diaxy: &f%{diamenty::%player%}%" send "&3Wykopane szmaragdy: &f%{emeraldy::%player%}%" send "&6Wykopane sztabki zlota: &f%{zloto::%player%}%" send "&3Wykopane sztabki zelaza: &f%{zelazo::%player%}%" send "&6Wykopany bruk: &f%{wykopanystone::%player%}%" send "&3Wykopany wegiel: &f%{wegiel::%player%}%" send "&6Wykopeny redstone: &f%{redstone::%player%}%" send "&6Wykopeny lapis: &f%{lapis::%player%}%" send "&b&l&m-----------&b&l[&a&lStatystyki&b&l]&b&l&m-----------" on mine of any ore: cancel event set block to stone message "&f[&l&6Drop&f]&7&lWszystkie surowce wypadaja ze stone!" command /drop: trigger: open chest with 1 rows named "&6&lDrop ze &7&lstone!" to player format slot 0 of player with 1 of diamond named "&b&lDiament" with lore "&3» &6Szansa:&7 {@szansa_diament}%%||&3» &aPoziom kopania:&7 {@wysokosc_diament}" to be unstealable format slot 1 of player with 1 of emerald named "&a&lSzmaragd" with lore "&3» &6Szansa:&7 {@szansa_emerald}%%||&3» &aPoziom kopania:&7 {@wysokosc_emerald}" to be unstealable format slot 2 of player with 1 of gold ingot named "&e&lZloto" with lore "&3» &6Szansa:&7 {@szansa_zloto}%%||&3» &aPoziom kopania:&7 {@wysokosc_zloto}" to be unstealable format slot 3 of player with 1 of iron ingot named "&7&lZelazo" with lore "&3» &6Szansa:&7 {@szansa_zelazo}%%||&3» &aPoziom kopania:&7 {@wysokosc_zelazo}" to be unstealable format slot 4 of player with 1 of coal named "&f&lWegiel" with lore "&3» &6Szansa:&7 {@szansa_wegiel}%%||&3» &aPoziom kopania:&7 {@wysokosc_wegiel}" to be unstealable format slot 5 of player with 1 of redstone named "&c&lRedstone" with lore "&3» &6Szansa:&7 {@szansa_redstone}%%||&3» &aPoziom kopania:&7 {@wysokosc_redstone}" to be unstealable format slot 6 of player with 1 of lapis ore named "&c&lLapis" with lore "&3» &6Szansa:&7 {@szansa_lapis}%%||&3» &aPoziom kopania:&7 {@wysokosc_lapis}" to be unstealable command /bruk: trigger: if {bruk::%player%} is true: set {bruk::%player%} to false send "&f[&l&6Drop&f]&cWylaczyles drop cobbleston'a!" stop if {bruk::%player%} is false: set {bruk::%player%} to true send "&f[&l&6Drop&f]&aWlaczyles drop cobbleston'a!" stop on mine of stone: if {bruk::%player%} is false: cancel event set block to air stop if {bruk::%player%} is true: stop