Update LapisOre.php
This commit is contained in:
parent
886a758a72
commit
78cd9b3b38
1 changed files with 5 additions and 1 deletions
|
|
@ -52,8 +52,12 @@ class LapisOre extends Solid{
|
|||
[Item::LAPIS_ORE, 0, 1],
|
||||
];
|
||||
}else{
|
||||
$fortunel = $item->getEnchantmentLevel(Enchantment::TYPE_MINING_FORTUNE);
|
||||
$fortunel = $fortunel > 3 ? 3 : $fortunel;
|
||||
$times = [1,1,2,3,4];
|
||||
$time = $times[mt_rand(0, $fortunel + 1)];
|
||||
return [
|
||||
[Item::DYE, 4, mt_rand(4, 8)],
|
||||
[Item::DYE, 4, mt_rand(4, 8) * $time],
|
||||
];
|
||||
}
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue