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

[DL] Paczka z losowymi przedmiotami!


Rekomendowane odpowiedzi

Opublikowano

Witam!

W tym tutorialu przedstawię ci plugin który pozwoli:

Stworzyć  mnóstwo "sakiewek z itemami" wypadających z moobów!

W czym to jest lepsze od na przykład OtherDropsa?

Gracze mogą się handlować sakiewkami nim zostaną one otwarte!

 

 

Download

 

 

Config

Na czerwono wytłumaczenia

 

#
# SurpriseBags config file
# Version ${project.version}
#

#
# General settings:
#

# Will a random bag drop from mobs, set to yes/no
# The drops will be limited to monsters (e.g. Zombies, Creepers, etc.)
drop-from-mobs: yes - czy plugin ma być aktywny (czy paczki mają dropić)

# What is the global drop chance (0.10 is 10%, 0.01 is 1%, etc.)
# Note: This is the chance that a surprise bag, might drop. The
# actual drop chance depends on the surprise bag's drop-chance itself.
# For more info, see the configuration files of bags.
drop-chance: 0.50 - globalna szansa lootu dowolnej paczki, UWAGA NIE DZIAŁA! Używajcie szansy w configu paczek

#
# Looting-Sensitive
# If true, then the global drop chance will increase by 5% for
# every level of the looting enchantment. That is, if players are
# using a looting sword, they have higher chances of getting bags.
#
# Note that this only affects the global drop chance (see above) and
# not the particular bag drop chance (which is set per bag).
#
looting-sensitive: no - jeżeli aktywny, każdy poziom Looting zwiększa drop o 5%

# An area to limit the drops. This refers to a WorldGuard area ID.
# This is useful if you want bags to drop only in spawn, for example.
# You must have WorldGuard installed for this to work.
#drop-limit-to-area: "myspawn" - ograniczenie do regionu z WorldGuard, jeżeli chcesz by dropiły na arenie czy spawnie

#
# Limit drops to particular world
# If this is set, bags will only drop on that world.
#
#drop-limit-to-world: "world" - ograniczenie do danego świata, paczki lootają tylko na określonym świecie



#
# Opening Spy Message
# If true, server ops will get a message whenever a user opens a bag.
#
openingspymessage: yes - jeżeli aktywne, op otrzyma wiadomość gdy ktoś otworzy paczkę

 

 

 

Przykładowa paczka, zedytowana przeze mnie:

 

 

#
# The material of the bag item. This is "CHEST" by default.
#
material: LEATHER

#
# The item's display name.
# You may use color codes with the '&' character.
#
displayname: "&3Zniszczony Tabolek"

#
# A friendly message on the item lore description.
# You may use color codes with the '&' character.
#
openmsg: "&2Zniszczony tabolek znaleziony przy zombie!"


#
# Mob drop-chance.
#
# On top of the global drop-chance, this states the
# chance of this particular bag dropping by a mob.
#
# 0.05 is %5, 0.10 is 10%, 0.5 is 50% and so on.
#
drop-chance: 0.05

#
# The items in the bag.
#
# This bag has 1 enchanted book, 1 ghast tear, 2 diamond blocks and other items.
#
# When players open the bag, they get exactly 1 item from the bag (e.g. 1 Dblock).
# This means that players are more likely to get a diamond block than a ghast tear.
#
items:

- ==: org.bukkit.inventory.ItemStack
type: ENCHANTED_BOOK
amount: 1
meta:
==: ItemMeta
meta-type: ENCHANTED
stored-enchants:
DAMAGE_ALL: 4

- ==: org.bukkit.inventory.ItemStack
type: GHAST_TEAR
amount: 1

- ==: org.bukkit.inventory.ItemStack
type: NETHER_STAR
amount: 1

- ==: org.bukkit.inventory.ItemStack
type: DIAMOND_BLOCK
amount: 2

- ==: org.bukkit.inventory.ItemStack
type: ENDER_PEARL
amount: 2

- ==: org.bukkit.inventory.ItemStack
type: DIAMOND_BOOTS
meta:
==: ItemMeta
meta-type: UNSPECIFIC
enchants:
PROTECTION_FALL: 3

- ==: org.bukkit.inventory.ItemStack
type: DIAMOND_CHESTPLATE
meta:
==: ItemMeta
meta-type: UNSPECIFIC
enchants:
PROTECTION_EXPLOSIONS: 3

- ==: org.bukkit.inventory.ItemStack
type: DIAMOND_LEGGINGS
meta:
==: ItemMeta
meta-type: UNSPECIFIC
enchants:
PROTECTION_ENVIRONMENTAL: 3

- ==: org.bukkit.inventory.ItemStack
type: DIAMOND_HELMET
meta:
==: ItemMeta
meta-type: UNSPECIFIC
enchants:
OXYGEN: 3

 

 

Możecie użyć pluginu z Texture Packiem, który nadaje np. barwnikom wygląd sakiewki, efekt wtedy wygląda po prostu świetnie!

Jako nagrodę możecie dać różne przedmioty, zenchantowane zbroje, miecze, łuki czy książki.

76561198044975849.png

Best Member

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...