Hmm, z przypisywaniem rzadkości do konkretnych itemów będzie dużo zabawy - trzeba uwzględnić każdy item. Łatwiejszym rozwiązaniem byłoby losowanie rzadkości i np. stałe ustalenie kilku itemów legendarnych pokroju beacona.
on pick up:
lore of event-item doesn't contains "Rzadkosc"
set {_} to 1 or 2 or 3 or 4
if event-item is beacon:
set {_} to 4
else if event-item is dirt:
set {_} to 1
else if event-item is diamond block:
set {_} to 3
#else if event-item is XXX: # ZAMIAST XXX PODAJ NAZWE ITEMU
#set {_} to X # ZAMIAST X PODAJ RZADKOSC
if {_} is 1:
set lore of event-item to "&eRzadkosc &0Zwyczajna"
else if {_} is 2:
set lore of event-item to "&eRzadkosc &7Pospolita"
else if {_} is 3:
set lore of event-item to "&eRzadkosc &aEpicka"
else if {_} is 4:
set lore of event-item to "&eRzadkosc &6&lLegendarna"
Skrypt działa na zasadzie, że gdy podnosisz item to sprawdza czy nie ma dodanej rzadkości i jeśli nie ma to losuje i dodaje ją. Bloki beacon, dirt i diament block mają ustawioną stałą wartość rzadkości