Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Poziom za kopanie


Rekomendowane odpowiedzi

Opublikowano
Masz kod skryptu. Działa 100%.

#- - - - - - - - - - - - - - - - - - - - - - -#
#-Autor skryptu: Hakushami                    #
#-Komendy:                                    #
#-/stone drop - Pokazuje szanse na drop.      #
#-/stone autor - Pokazuje autora skryptu.     #
#-/stone f1 - Pokazuje drop z fortune 1       #
#-/stone f2 - Pokazuje drop z fortune 2       #
#-/stone f3 - Pokazuje drop z fortune 3       #
#- - - - - -Licencja skryptu- - - - - - - - - #
#-Zakaz podszywania sie pod autora.           #
#-Zakaz usuwania autora oraz licencji.        #
#-Zabraniam sprzedazy skryptu.                #
#-Zezwalam na edycje skryptu.                 #
#- - - - - - - - - - - - - - - - - - - - - - -#
options:
tag: &b[Drop]
 
zelazo: 4.0%
zloto: 3.0%
diament: 1.0%
szmaragd: 0.8%
wegiel: 4.0%
 
zelazo1: 4.0%
zloto1: 3.0%
diament1: 1.0%
szmaragd1: 0.8%
wegiel1: 4.0%
 
zelazo2: 4.0%
zloto2: 3.0%
diament2: 1.0%
szmaragd2: 0.8%
wegiel2: 4.0%
 
zelazo3: 4%
zloto3: 3%
diament3: 1.0%
szmaragd3: 0.8%
wegiel3: 4.0%
 
on mine of any ore:
cancel event
delete block
send " &c»&a Ten surowiec wypada tylko ze stone." 
on mine of stone: 
if player's tool is pickaxe of fortune 0:
chance of {@zelazo}:
give a random number between 3 and 1 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@zelazo1}:
give a random number between 4 and 2 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@zelazo2}:
give a random number between 5 and 3 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@zelazo3}:
give a random number between 6 and 4 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@zloto}:
give a random number between 3 and 1 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@zloto1}:
give a random number between 4 and 2 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@zloto2}:
give a random number between 5 and 3 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@zloto3}:
give a random number between 6 and 4 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@diament}:
give a random number between 2 and 1 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@diament1}:
give a random number between 3 and 1 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@diament2}:
give a random number between 3 and 2 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@diament3}:
give a random number between 4 and 2 of diamond to the player
send "&c»&a Znalazles diament!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@szmaragd}:
give 1 emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@szmaragd1}:
give a random number between 2 and 1 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@szmaragd2}:
give a random number between 3 and 1 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@szmaragd2}:
give a random number between 3 and 2 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@wegiel}:
give a random number between 4 and 1 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@wegiel1}:
give a random number between 4 and 2 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@wegiel2}:
give a random number between 5 and 2 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@wegiel3}:
give a random number between 6 and 3 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
 
on skript start:
wait 5 seconds
send "&c|| &2========================================== &9||" to console
send "&c|| &cStoneEXP &azostal zaladowany!" to console
send "&9|| &cVersion: &a0.1" to console
send "&9|| &2========================================== &9||" to console
options:
#========== NAZWA SKRYPTU ========#
skname: StoneEXP #Nazwa skryptu.
#=========== ILOSC EXPA ==========#
iloscxp: 3 #Ilosc zdobywanego expa.
#======= SZANSA NA ZDOBYCIE ======#
szansaxp: 100% #Szansa na zdobycie expa (dodaj % na koncu)
 
variables:
{exp.%player%} = 0
on mine of stone:
chance of {@szansaxp}
add {@iloscxp} xp to player
add {@iloscxp} to {exp.%player%}
command /exp:
permission: exp.use
trigger:
send "&b[&c============== &7StoneEXP &c==============&b]"
send "&aWykopany EXP: &7%{exp.%player%}%"
send "&c======================================"
command /seprzeladuj:
permission: se.przeladuj
trigger:
execute console command "sk reload {@skname}"
send "&aPomyslnie przeladowales skrypt!"
 
 
 
 
#- - - - - - - - - - - - - - - - - - - - - - -#
#-Autor skryptu: Hakushami                    #
#-Komendy:                                    #
#-/stone drop - Pokazuje szanse na drop.      #
#-/stone autor - Pokazuje autora skryptu.     #
#-/stone f1 - Pokazuje drop z fortune 1       #
#-/stone f2 - Pokazuje drop z fortune 2       #
#-/stone f3 - Pokazuje drop z fortune 3       #
#- - - - - -Licencja skryptu- - - - - - - - - #
#-Zakaz podszywania sie pod autora.           #
#-Zakaz usuwania autora oraz licencji.        #
#-Zabraniam sprzedazy skryptu.                #
#-Zezwalam na edycje skryptu.                 #
#- - - - - - - - - - - - - - - - - - - - - - -#

A poza tym sądzę że Unia Europejska musi być zniszczona.

Q8eOMob.png

Opublikowano

Jak zrobić żeby za kopanie stone leciał level, który potrzebny jest do enchanowania przedmiotów?

 

 

Robisz listener, który nasłuchuje kopania stone i za kazdym razem dodajesz odpowiednia ilosc expa, cos takiego:

public void onBreak(BlockBreakEvent e) {
    if(e.getBlock().getType() == Material.STONE) {
        Player p = e.getPlayer();
        p.giveExp(1);
        p.sendMessage("otrzymales 1xp za wykopanie stone");
     }
}

 

 

 

 

fKJeAI4.jpg

 

 

 

Opublikowano

 

Masz kod skryptu. Działa 100%.
#- - - - - - - - - - - - - - - - - - - - - - -#
#-Autor skryptu: Hakushami                    #
#-Komendy:                                    #
#-/stone drop - Pokazuje szanse na drop.      #
#-/stone autor - Pokazuje autora skryptu.     #
#-/stone f1 - Pokazuje drop z fortune 1       #
#-/stone f2 - Pokazuje drop z fortune 2       #
#-/stone f3 - Pokazuje drop z fortune 3       #
#- - - - - -Licencja skryptu- - - - - - - - - #
#-Zakaz podszywania sie pod autora.           #
#-Zakaz usuwania autora oraz licencji.        #
#-Zabraniam sprzedazy skryptu.                #
#-Zezwalam na edycje skryptu.                 #
#- - - - - - - - - - - - - - - - - - - - - - -#
options:
tag: &b[Drop]
 
zelazo: 4.0%
zloto: 3.0%
diament: 1.0%
szmaragd: 0.8%
wegiel: 4.0%
 
zelazo1: 4.0%
zloto1: 3.0%
diament1: 1.0%
szmaragd1: 0.8%
wegiel1: 4.0%
 
zelazo2: 4.0%
zloto2: 3.0%
diament2: 1.0%
szmaragd2: 0.8%
wegiel2: 4.0%
 
zelazo3: 4%
zloto3: 3%
diament3: 1.0%
szmaragd3: 0.8%
wegiel3: 4.0%
 
on mine of any ore:
cancel event
delete block
send " &c»&a Ten surowiec wypada tylko ze stone." 
on mine of stone: 
if player's tool is pickaxe of fortune 0:
chance of {@zelazo}:
give a random number between 3 and 1 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@zelazo1}:
give a random number between 4 and 2 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@zelazo2}:
give a random number between 5 and 3 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@zelazo3}:
give a random number between 6 and 4 of iron ore to the player
send "&c»&a Znalazles zelazo!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@zloto}:
give a random number between 3 and 1 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@zloto1}:
give a random number between 4 and 2 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@zloto2}:
give a random number between 5 and 3 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@zloto3}:
give a random number between 6 and 4 of gold ore to the player
send "&c»&a Znalazles zloto!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@diament}:
give a random number between 2 and 1 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@diament1}:
give a random number between 3 and 1 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@diament2}:
give a random number between 3 and 2 of diamond to the player
send "&c»&a Znalazles diament!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@diament3}:
give a random number between 4 and 2 of diamond to the player
send "&c»&a Znalazles diament!"
stop
if player's tool is pickaxe of fortune 0: 
chance of {@szmaragd}:
give 1 emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else:
if player's tool is pickaxe of fortune 1: 
chance of {@szmaragd1}:
give a random number between 2 and 1 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else: 
if player's tool is pickaxe of fortune 2:
chance of {@szmaragd2}:
give a random number between 3 and 1 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@szmaragd2}:
give a random number between 3 and 2 of emerald to the player
send "&c»&a Znalazles szmaragd!"
stop
if player's tool is pickaxe of fortune 0:
chance of {@wegiel}:
give a random number between 4 and 1 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 1:
chance of {@wegiel1}:
give a random number between 4 and 2 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 2:
chance of {@wegiel2}:
give a random number between 5 and 2 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
else:
if player's tool is pickaxe of fortune 3:
chance of {@wegiel3}:
give a random number between 6 and 3 of coal to the player
send "&c»&a Znalazles wegiel!"
stop
 
on skript start:
wait 5 seconds
send "&c|| &2========================================== &9||" to console
send "&c|| &cStoneEXP &azostal zaladowany!" to console
send "&9|| &cVersion: &a0.1" to console
send "&9|| &2========================================== &9||" to console
options:
#========== NAZWA SKRYPTU ========#
skname: StoneEXP #Nazwa skryptu.
#=========== ILOSC EXPA ==========#
iloscxp: 3 #Ilosc zdobywanego expa.
#======= SZANSA NA ZDOBYCIE ======#
szansaxp: 100% #Szansa na zdobycie expa (dodaj % na koncu)
 
variables:
{exp.%player%} = 0
on mine of stone:
chance of {@szansaxp}
add {@iloscxp} xp to player
add {@iloscxp} to {exp.%player%}
command /exp:
permission: exp.use
trigger:
send "&b[&c============== &7StoneEXP &c==============&b]"
send "&aWykopany EXP: &7%{exp.%player%}%"
send "&c======================================"
command /seprzeladuj:
permission: se.przeladuj
trigger:
execute console command "sk reload {@skname}"
send "&aPomyslnie przeladowales skrypt!"
 
 
 
 
#- - - - - - - - - - - - - - - - - - - - - - -#
#-Autor skryptu: Hakushami                    #
#-Komendy:                                    #
#-/stone drop - Pokazuje szanse na drop.      #
#-/stone autor - Pokazuje autora skryptu.     #
#-/stone f1 - Pokazuje drop z fortune 1       #
#-/stone f2 - Pokazuje drop z fortune 2       #
#-/stone f3 - Pokazuje drop z fortune 3       #
#- - - - - -Licencja skryptu- - - - - - - - - #
#-Zakaz podszywania sie pod autora.           #
#-Zakaz usuwania autora oraz licencji.        #
#-Zabraniam sprzedazy skryptu.                #
#-Zezwalam na edycje skryptu.                 #
#- - - - - - - - - - - - - - - - - - - - - - -#
A poza tym sądzę że Unia Europejska musi być zniszczona.

 

 

Wytabowałby ktoś skrypt?

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...