Polecam użyć pluginu Citizens cmd. Działa od 1.8 do 1.12
https://www.spigotmc.org/resources/citizens-cmd.30224/
Zaznaczasz citizena /npc select (musisz stać koło niego) potem wpisujesz /npcmd add player (i tutaj komendę. Możesz zrobić w skrypcie komendę po której wyświetla się wiadomość i da rangę graczowi. Potem dodaj ją do npc).
on rightclick with chest:
cancel event
player is holding a chest named "&6Skrzynia Energi":
remove 1 chest named "&6Skrzynia Energi" from the player
set {wylosowanydmg} to "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" or "11" or "12" or "13" or "14" or "15" or "16" or "17" or "18" or "19" or "20" or "21" or "22" or "23" or "24" or "25" or "26" or "27" or "28" or "29" or "30" or "31" or "32" or "33" or "34" or "35" or "36" or "37" or "38" or "39" or "40" or "41" or "42" or "43" or "44" or "45" or "46" or "47" or "48" or "49" or "50" or "51" or "52" or "53" or "54" or "55" or "56" or "57" or "58" or "59" or "60" or "61" or "62" or "63" or "64" or "65" or "66" or "67" or "68" or "69" or "70" or "71" or "72" or "73" or "74" or "75" or "76" or "77" or "78" or "79" or "80" or "81" or "82" or "83" or "84" or "85" or "86" or "87" or "88" or "89" or "90" or "91" or "92" or "93" or "94" or "95" or "96" or "97" or "98" or "99" or "100"
add 1 gold ingot of unbreaking 10 named "&6Energia DMG &c-%{wylosowanydmg}%%%" to player
every 100 second:
clear {moby::australium::spawn}
on death:
if victim is Wither Skeleton:
if name of victim is "&ePotwor Australium":
chance of 25%:
drop 1 263 of unbreaking 10 named "&9Dusza potwora australium" with lore "&aMozesz to wymienic na warp wieza!" at victim
chance of 10%:
drop 1 399 of unbreaking 10 named "&9Serce potwora australium" at victim
command /setspawnaustralium:
trigger:
set {aust} to location of player
send "&aPomyslnie ustawiono spawn &ePotworow Australium"
every 60 second:
chance of 100%:
clear {moby::australium::spawn}
spawn 1 Wither Skeleton at {aust}
set the spawned Wither Skeleton's display name to "&ePotwor Australium"
set the last spawned entity's max health to 50
heal the last spawned entity
set helmet of the spawned entity to a iron helmet of protection 50
set chestplate of the spawned entity to a iron chestplate of protection 50
set leggings of the spawned entity to a iron leggings of protection 50
set boots of the spawned entity to a iron boots of protection 50
set tool of last spawned entity to diamond sword of sharpness 45
command /setspawnaustralium2:
trigger:
set {aust1} to location of player
send "&aPomyslnie ustawiono spawn &ePotworow Australium"
every 60 second:
chance of 100%:
clear {moby::australium::spawn}
spawn 1 Wither Skeleton at {aust1}
set the spawned Wither Skeleton's display name to "&ePotwor Australium"
set the last spawned entity's max health to 50
heal the last spawned entity
set helmet of the spawned entity to a iron helmet of protection 5001
set chestplate of the spawned entity to a iron chestplate of protection 500
set leggings of the spawned entity to a iron leggings of protection 500
set boots of the spawned entity to a iron boots of protection 500
set tool of last spawned entity to diamond sword of sharpness 1000
command /setspawnaustralium3:
trigger:
set {aust2} to location of player
send "&aPomyslnie ustawiono spawn &ePotworow Australium"
every 60 second:
chance of 100%:
clear {moby::australium::spawn}
spawn 1 Wither Skeleton at {aust2}
set the spawned Wither Skeleton's display name to "&ePotwor Australium"
set the last spawned entity's max health to 50
heal the last spawned entity
set helmet of the spawned entity to a iron helmet of protection 500
set chestplate of the spawned entity to a iron chestplate of protection 500
set leggings of the spawned entity to a iron leggings of protection 500
set boots of the spawned entity to a iron boots of protection 500
set tool of last spawned entity to diamond sword of sharpness 1000
command /setspawnaustralium4:
trigger:
set {aust3} to location of player
send "&aPomyslnie ustawiono spawn &ePotworow Australium"
every 60 second:
chance of 100%:
clear {moby::australium::spawn}
spawn 1 Wither Skeleton at {aust3}
set the spawned Wither Skeleton's display name to "&ePotwor Australium"
set the last spawned entity's max health to 50
heal the last spawned entity
set helmet of the spawned entity to a iron helmet of protection 500
set chestplate of the spawned entity to a iron chestplate of protection 500
set leggings of the spawned entity to a iron leggings of protection 500
set boots of the spawned entity to a iron boots of protection 500
set tool of last spawned entity to iron sword of sharpness 1800
Skrypty poprawiony :). Dodałem też, że jest napisane kiedy ustawiasz spawn dla tych potworów oraz naprawiłem błąd z usuwaniem skrzynki, bo jej nie usuwało po kliknięciu. Mam nadzieję, że wszystko działa u mnie wszystko działało.