mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
parent
a353872327
commit
1da6aa40f8
@ -148,6 +148,9 @@ class Leaves extends Transparent{
|
|||||||
if(($this->treeType->equals(TreeType::OAK()) || $this->treeType->equals(TreeType::DARK_OAK())) && mt_rand(1, 200) === 1){ //Apples
|
if(($this->treeType->equals(TreeType::OAK()) || $this->treeType->equals(TreeType::DARK_OAK())) && mt_rand(1, 200) === 1){ //Apples
|
||||||
$drops[] = VanillaItems::APPLE();
|
$drops[] = VanillaItems::APPLE();
|
||||||
}
|
}
|
||||||
|
if(mt_rand(1, 50) === 1){
|
||||||
|
$drops[] = VanillaItems::STICK()->setCount(mt_rand(1, 2));
|
||||||
|
}
|
||||||
|
|
||||||
return $drops;
|
return $drops;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user