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

Problem z zablokowaniem dropu z rud [Java]


kondi001125

Rekomendowane odpowiedzi

Opublikowano

Witam. mam problem z zablokowaniem dropu z rud.

Ucinek z mojego dropu:

	      @EventHandler
              public void onBreak(BlockBreakEvent e){
	        Player p = e.getPlayer();
	        Block b = e.getBlock();
	          if(b.getType() == Material.IRON_ORE || b.getType() == Material.DIAMOND_ORE || b.getType() == Material.GOLD_ORE || b.getType() == Material.EMERALD_ORE || b.getType() == Material.COAL_ORE || b.getType() == Material.LAPIS_ORE || b.getType() == Material.REDSTONE_ORE){
	                  b.setType(Material.AIR);
	                  p.sendMessage(ChatUtil.setHEX("&3Ten blok wypada tylko ze stone. Aby sie dowiedziec wiecej wpisz &6/stone"));
	}
}

Proszę o pomoc - poprawienie tego. z góry dzięki!

Opublikowano

a wiadomosc sie wyswietla?

Nie. nic sie nie wyswietla, Wypada normalny item z rudy. a w klasie Main mam zarejestrowany Event i komende Drop. A drop z stone dziala normalnie.

Opublikowano

Nie. nic sie nie wyswietla, Wypada normalny item z rudy. a w klasie Main mam zarejestrowany Event i komende Drop. A drop z stone dziala normalnie.

dodam jakiś System.out.println("test") w pierwszej linicje listenera i zobacz czy sie wyswietli w konsoli.

I wklej caly kod razem z widoczną rejestracją itd.

 

Oraz wklej logi

1438614356923701010629.png

 

Opublikowano

 

@GotoFinal

Kod:

Main.java:
http://pastebin.com/fpsd4Yff
Drop.java:
http://pastebin.com/GFtsH2jH

//Edit: Prosze o nie hejtowanie tego kodu! Jest on tylko i wylacznie NA MOJ SERWER! Chcialem tak napisac i napisalem!

 

Logi:

http://pastebin.com/fm2rZ3a2

PS: wiesz ze random.nextInt(1) ZAWSZE zwraca 0?

 

i poprawilbys te formatowanie kodu, każde IDE (to w czym piszesz, np eclipse) ma opcje automatycznego formatowania kodu.

Bo to jest trudno czytać

 

I jak poprawisz formatowanie to moze cos pomoge, bo tak to sam nie widze co jest w tym kodzie.

Dla eclipse: Ctrl + Shift + F

1438614356923701010629.png

 

Opublikowano

@GotoFinal

Poprawione formatowanie:

http://pastebin.com/Y6KLuKxh

To jak zrobic zeby random'owa ilosc itemkow (ustalona) wypadala?

po prsotu chodzi o to, że nextInt(1) losuje liczbe od 0 do 0 :P bo nextInt(N) losuje liczbe od 0 do N, ale bez N, czyli samo N nigdy sie nie wylosuje.

+ robisz zmienne na poczatku, wiec one zawsze będą już takie same, zamiast tego lepiej juz bezpośrednio podczas dropu robic np: int amount = rand.nextInt(3) + 1; (od 1 do 3),  i potem new ItemStack(Material.GOLD_INGOT, amount)

 

i z formatowaniem od razu widac co jest źle.

Zobacz w jakim miejscu masz te sprawdzanie czy to ruda i anulowanie.

Masz to w kodzie od sprawdzania fortuny, musisz to dac na samym dole eventu, lub na samej gorze

1438614356923701010629.png

 

Opublikowano

­A nie lepiej używać OtherDropsa? Na przykład config z mojego serwera (oparty na jakimś configu z internetu, jednak mocno przeze mnie zmodyfikowany)

include-files:
aliases:
defaults:
otherdrops:
########################
#                      #
#        GRACZE        #
#                      #
########################
######################
#                    #
#        RUDY        #
#                    #
######################
    DIAMOND_ORE:
        - drop: 384
          quantity: 1
        - tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&aDiamenty dropią tylko ze stona!'
    GOLD_ORE:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cZłoto dropi tylko ze stona!'
    IRON_ORE:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cŻelazo dropi tylko ze stonea!'
    EMERALD_ORE:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cEmeraldy dropią tylko ze stona!'
    COAL_ORE:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cWęgiel dropi tylko ze stona!'
    73:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cRedstone dropi tylko ze stona!'
    74:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cRedstone dropi tylko ze stona!'
    21:
        - drop: 384
          quantity: 1
          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]
          message: '&cLapis dropi tylko ze stona!'
################
# BEZ ENCHANTU #
################
    STONE:
        - drop: DIAMOND
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 0.5
          quantity: 1
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
        - drop: 331
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 1.25
          quantity: 4-8
          message: '&3Znalazles &c&lRedstone&3!'
        - drop: GOLD_ORE
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 0.75
          quantity: 1
          message: '&3Znalazles &6&lzloto&3!'
        - drop: IRON_ORE
          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 1
          quantity: 1
          message: '&3Znalazles &7&lzelazo&3!'
        - drop: EMERALD
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 0.5
          quantity: 1
          height: "<30"
          message: '&3Znazlazles &2&lszmaragd&3!'
        - drop: COAL
          tool: [ANY_PICKAXE]
          chance: 50
          quantity: 1
          message: '&3Znalazles &8&lwęgiel&3A!'
        - drop: 351:4
          quantity: 4-8
          chance: 1.5
          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
          message: '&3Znalazłeś &9&llapis&3!'
###########
# FORTUNA #
###########
#
#  DIAXY
#
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 0.5
          quantity: 2
          message: '&3Znalazles &3&lDiament&3!'
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 0.5
          quantity: 2
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 0.5
          quantity: 3
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
#
#  EMERALDY
#
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 0.5
          quantity: 2
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 0.5
          quantity: 2
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 0.5
          quantity: 3-4
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
#
#  WEGIEL
#
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.5
          quantity: 2
          message: '&3Znalazles &3&lWęgiel&3!'
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.5
          quantity: 2
          message: '&3Znalazles &3&lWęgiel&3!'
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.5
          quantity: 3
          message: '&3Znalazles &3&lWęgiel&3!'
#
#  REDSTONE
#
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.25
          quantity: 8-16
          message: '&3Znalazles &3&lRedstone&3!'
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.25
          quantity: 8-16
          message: '&3Znalazles &3&lRedstone&3!'
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.25
          quantity: 16-24
          message: '&3Znalazles &3&lRedstone&3!'
#
#  LAPIS
#
        - drop: 351:4
          quantity: 8-16
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.5
          message: '&3Znalazłeś &9llapis&3!'
        - drop: 351:4
          quantity: 8-16
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.5
          message: '&3Znalazłeś &9llapis&3!'
        - drop: 351:4
          quantity: 16-24
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.5
          message: '&3Znalazłeś &9llapis&3!'
#
#  GOLD
#
        - drop: GOLD_ORE
          quantity: 2
          chance: 0.75
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          message: '&3Znalazłeś &l&człoto&3!'
        - drop: GOLD_ORE
          quantity: 2
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 0.75
          message: '&3Znalazłeś &l&człoto&3!'
        - drop: GOLD_ORE
          quantity: 3
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 0.75
          message: '&3Znalazłeś &l&człoto&3!'
#
#  IRON
#
        - drop: IRON_ORE
          quantity: 2
          chance: 1
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          message: '&3Znalazłeś &7&żelazo&3!'
        - drop: IRON_ORE
          quantity: 2
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1
          message: '&3Znalazłeś &7&cżelazo&3!'
        - drop: IRON_ORE
          quantity: 3
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1
          message: '&3Znalazłeś &7&cżelazo&3!'
######################
#                    #
#        VIPY        #
#                    #
######################
#
################
# BEZ ENCHANTU #
################
    STONE:
        - drop: DIAMOND
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 0.75
          quantity: 1
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
          permission: vip
        - drop: 331
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 1.5
          quantity: 4-8
          message: '&3Znalazles &c&lRedstone&3!'
          permission: vip
        - drop: GOLD_ORE
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 1
          quantity: 1
          message: '&3Znalazles &6&lzloto&3!'
          permission: vip
        - drop: IRON_ORE
          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 1.25
          quantity: 1
          message: '&3Znalazles &7&lzelazo&3!'
          permission: vip
        - drop: EMERALD
          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]
          chance: 0.75
          quantity: 1
          height: "<30"
          message: '&3Znazlazles &2&lszmaragd&3!'
          permission: vip
        - drop: COAL
          tool: [ANY_PICKAXE]
          chance: 1.75
          quantity: 1
          message: '&3Znalazles &8&lwęgiel&3!'
          permission: vip
        - drop: 351:4
          quantity: 4-8
          chance: 1.75
          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
          message: '&3Znalazłeś &9&llapis&3!'
          permission: vip
###########
# FORTUNA #
###########
#
#  DIAXY
#
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 0.75
          quantity: 2
          message: '&3Znalazles &3&lDiament&3!'
          permission: vip
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 0.75
          quantity: 2
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
          permission: vip
        - drop: DIAMOND
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 0.75
          quantity: 3
          height: "<20"
          message: '&3Znalazles &3&lDiament&3!'
          permission: vip
#
#  EMERALDY
#
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 0.75
          quantity: 2
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
          permission: vip
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 0.75
          quantity: 2
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
          permission: vip
        - drop: EMERALD
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 0.75
          quantity: 3-4
          height: "<30"
          message: '&3Znalazles &3&lSzmaragd&3!'
          permission: vip
#
#  WEGIEL
#
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.75
          quantity: 2
          message: '&3Znalazles &3&lWęgiel&3!'
          permission: vip
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.75
          quantity: 2
          message: '&3Znalazles &3&lWęgiel&3!'
          permission: vip
        - drop: COAL
          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.75
          quantity: 3
          message: '&3Znalazles &3&lWęgiel&3!'
          permission: vip
#
#  REDSTONE
#
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.5
          quantity: 8-16
          message: '&3Znalazles &3&lRedstone&3!'
          permission: vip
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.5
          quantity: 8-16
          message: '&3Znalazles &3&lRedstone&3!'
          permission: vip
        - drop: 331
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.5
          quantity: 16-24
          message: '&3Znalazles &3&lRedstone&3!'
          permission: vip
#
#  LAPIS
#
        - drop: 351:4
          quantity: 8-16
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          chance: 1.75
          message: '&3Znalazłeś &9llapis&3!'
          permission: vip
        - drop: 351:4
          quantity: 8-16
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.75
          message: '&3Znalazłeś &9llapis&3!'
          permission: vip
        - drop: 351:4
          quantity: 16-24
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.75
          message: '&3Znalazłeś &9llapis&3!'
          permission: vip
#
#  GOLD
#
        - drop: GOLD_ORE
          quantity: 2
          chance: 1
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          message: '&3Znalazłeś &l&człoto&3!'
          permission: vip
        - drop: GOLD_ORE
          quantity: 2
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1
          message: '&3Znalazłeś &l&człoto&3!'
          permission: vip
        - drop: GOLD_ORE
          quantity: 3
          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1
          message: '&3Znalazłeś &l&człoto&3!'
          permission: vip
#
#  IRON
#
        - drop: IRON_ORE
          quantity: 2
          chance: 1.25
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]
          message: '&3Znalazłeś &7&żelazo&3!'
          permission: vip
        - drop: IRON_ORE
          quantity: 2
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]
          chance: 1.25
          message: '&3Znalazłeś &7&cżelazo&3!'
          permission: vip
        - drop: IRON_ORE
          quantity: 3
          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]
          chance: 1.25
          message: '&3Znalazłeś &7&cżelazo&3!'
          permission: vip

Opublikowano

­A nie lepiej używać OtherDropsa? Na przykład config z mojego serwera (oparty na jakimś configu z internetu, jednak mocno przeze mnie zmodyfikowany)

include-files:

aliases:

defaults:

otherdrops:

########################

#                      #

#        GRACZE        #

#                      #

########################

######################

#                    #

#        RUDY        #

#                    #

######################

    DIAMOND_ORE:

        - drop: 384

          quantity: 1

        - tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&aDiamenty dropią tylko ze stona!'

    GOLD_ORE:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cZłoto dropi tylko ze stona!'

    IRON_ORE:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cŻelazo dropi tylko ze stonea!'

    EMERALD_ORE:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cEmeraldy dropią tylko ze stona!'

    COAL_ORE:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cWęgiel dropi tylko ze stona!'

    73:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cRedstone dropi tylko ze stona!'

    74:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cRedstone dropi tylko ze stona!'

    21:

        - drop: 384

          quantity: 1

          tool: [ANY, EXPLOSION_TNT, EXPLOSION_CREEPER]

          message: '&cLapis dropi tylko ze stona!'

################

# BEZ ENCHANTU #

################

    STONE:

        - drop: DIAMOND

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 0.5

          quantity: 1

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

        - drop: 331

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 1.25

          quantity: 4-8

          message: '&3Znalazles &c&lRedstone&3!'

        - drop: GOLD_ORE

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 0.75

          quantity: 1

          message: '&3Znalazles &6&lzloto&3!'

        - drop: IRON_ORE

          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 1

          quantity: 1

          message: '&3Znalazles &7&lzelazo&3!'

        - drop: EMERALD

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 0.5

          quantity: 1

          height: "<30"

          message: '&3Znazlazles &2&lszmaragd&3!'

        - drop: COAL

          tool: [ANY_PICKAXE]

          chance: 50

          quantity: 1

          message: '&3Znalazles &8&lwęgiel&3A!'

        - drop: 351:4

          quantity: 4-8

          chance: 1.5

          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]

          message: '&3Znalazłeś &9&llapis&3!'

###########

# FORTUNA #

###########

#

#  DIAXY

#

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 0.5

          quantity: 2

          message: '&3Znalazles &3&lDiament&3!'

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 0.5

          quantity: 2

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 0.5

          quantity: 3

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

#

#  EMERALDY

#

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 0.5

          quantity: 2

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 0.5

          quantity: 2

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 0.5

          quantity: 3-4

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

#

#  WEGIEL

#

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.5

          quantity: 2

          message: '&3Znalazles &3&lWęgiel&3!'

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.5

          quantity: 2

          message: '&3Znalazles &3&lWęgiel&3!'

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.5

          quantity: 3

          message: '&3Znalazles &3&lWęgiel&3!'

#

#  REDSTONE

#

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.25

          quantity: 8-16

          message: '&3Znalazles &3&lRedstone&3!'

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.25

          quantity: 8-16

          message: '&3Znalazles &3&lRedstone&3!'

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.25

          quantity: 16-24

          message: '&3Znalazles &3&lRedstone&3!'

#

#  LAPIS

#

        - drop: 351:4

          quantity: 8-16

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.5

          message: '&3Znalazłeś &9llapis&3!'

        - drop: 351:4

          quantity: 8-16

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.5

          message: '&3Znalazłeś &9llapis&3!'

        - drop: 351:4

          quantity: 16-24

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.5

          message: '&3Znalazłeś &9llapis&3!'

#

#  GOLD

#

        - drop: GOLD_ORE

          quantity: 2

          chance: 0.75

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          message: '&3Znalazłeś &l&człoto&3!'

        - drop: GOLD_ORE

          quantity: 2

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 0.75

          message: '&3Znalazłeś &l&człoto&3!'

        - drop: GOLD_ORE

          quantity: 3

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 0.75

          message: '&3Znalazłeś &l&człoto&3!'

#

#  IRON

#

        - drop: IRON_ORE

          quantity: 2

          chance: 1

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          message: '&3Znalazłeś &7&żelazo&3!'

        - drop: IRON_ORE

          quantity: 2

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1

          message: '&3Znalazłeś &7&cżelazo&3!'

        - drop: IRON_ORE

          quantity: 3

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1

          message: '&3Znalazłeś &7&cżelazo&3!'

######################

#                    #

#        VIPY        #

#                    #

######################

#

################

# BEZ ENCHANTU #

################

    STONE:

        - drop: DIAMOND

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 0.75

          quantity: 1

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

          permission: vip

        - drop: 331

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 1.5

          quantity: 4-8

          message: '&3Znalazles &c&lRedstone&3!'

          permission: vip

        - drop: GOLD_ORE

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 1

          quantity: 1

          message: '&3Znalazles &6&lzloto&3!'

          permission: vip

        - drop: IRON_ORE

          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 1.25

          quantity: 1

          message: '&3Znalazles &7&lzelazo&3!'

          permission: vip

        - drop: EMERALD

          tool: [iRON_PICKAXE, DIAMOND_PICKAXE]

          chance: 0.75

          quantity: 1

          height: "<30"

          message: '&3Znazlazles &2&lszmaragd&3!'

          permission: vip

        - drop: COAL

          tool: [ANY_PICKAXE]

          chance: 1.75

          quantity: 1

          message: '&3Znalazles &8&lwęgiel&3!'

          permission: vip

        - drop: 351:4

          quantity: 4-8

          chance: 1.75

          tool: [sTONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]

          message: '&3Znalazłeś &9&llapis&3!'

          permission: vip

###########

# FORTUNA #

###########

#

#  DIAXY

#

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 0.75

          quantity: 2

          message: '&3Znalazles &3&lDiament&3!'

          permission: vip

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 0.75

          quantity: 2

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

          permission: vip

        - drop: DIAMOND

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 0.75

          quantity: 3

          height: "<20"

          message: '&3Znalazles &3&lDiament&3!'

          permission: vip

#

#  EMERALDY

#

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 0.75

          quantity: 2

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

          permission: vip

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 0.75

          quantity: 2

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

          permission: vip

        - drop: EMERALD

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 0.75

          quantity: 3-4

          height: "<30"

          message: '&3Znalazles &3&lSzmaragd&3!'

          permission: vip

#

#  WEGIEL

#

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.75

          quantity: 2

          message: '&3Znalazles &3&lWęgiel&3!'

          permission: vip

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.75

          quantity: 2

          message: '&3Znalazles &3&lWęgiel&3!'

          permission: vip

        - drop: COAL

          tool: [ANY_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.75

          quantity: 3

          message: '&3Znalazles &3&lWęgiel&3!'

          permission: vip

#

#  REDSTONE

#

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.5

          quantity: 8-16

          message: '&3Znalazles &3&lRedstone&3!'

          permission: vip

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.5

          quantity: 8-16

          message: '&3Znalazles &3&lRedstone&3!'

          permission: vip

        - drop: 331

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.5

          quantity: 16-24

          message: '&3Znalazles &3&lRedstone&3!'

          permission: vip

#

#  LAPIS

#

        - drop: 351:4

          quantity: 8-16

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          chance: 1.75

          message: '&3Znalazłeś &9llapis&3!'

          permission: vip

        - drop: 351:4

          quantity: 8-16

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.75

          message: '&3Znalazłeś &9llapis&3!'

          permission: vip

        - drop: 351:4

          quantity: 16-24

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.75

          message: '&3Znalazłeś &9llapis&3!'

          permission: vip

#

#  GOLD

#

        - drop: GOLD_ORE

          quantity: 2

          chance: 1

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          message: '&3Znalazłeś &l&człoto&3!'

          permission: vip

        - drop: GOLD_ORE

          quantity: 2

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1

          message: '&3Znalazłeś &l&człoto&3!'

          permission: vip

        - drop: GOLD_ORE

          quantity: 3

          tool: [iRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1

          message: '&3Znalazłeś &l&człoto&3!'

          permission: vip

#

#  IRON

#

        - drop: IRON_ORE

          quantity: 2

          chance: 1.25

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1]

          message: '&3Znalazłeś &7&żelazo&3!'

          permission: vip

        - drop: IRON_ORE

          quantity: 2

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#2, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#2, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#2]

          chance: 1.25

          message: '&3Znalazłeś &7&cżelazo&3!'

          permission: vip

        - drop: IRON_ORE

          quantity: 3

          tool: [sTONE_PICKAXE@!LOOT_BONUS_BLOCKS#3, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#3, DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#3]

          chance: 1.25

          message: '&3Znalazłeś &7&cżelazo&3!'

          permission: vip

lepiej, ale noby z mpc muszą mieć mieć swoje autorskie pluginy, 10x wolniejsze, 10x gorzej napsane, 10x wiecej bugow, ale ważne że własne.

Nic na to nie poradzisz :P

 

 

@thepietrek787 A prosilem o OtherDropsa ? -.-

@GotoFinal Wiesz moze jak zablokowac drop z rudy Redstone? wszystkie inne zablokowane.

...

jak dotykasz rudy redstone to sie zaczyna świecieć, i wtedy ma inne ID, jest tam normalnie w Material

1438614356923701010629.png

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...