mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
isPickaxe replaced with getPickaxeLevel, reactor drops correct block now
This commit is contained in:
parent
81d46e71aa
commit
df0db01425
38 changed files with 73 additions and 60 deletions
|
|
@ -48,6 +48,15 @@ class NetherReactorBlock extends SolidBlock{
|
|||
$this->decay($this->x-8, $this->y-3, $this->z-8, 6, 11, 1, 14, 34, 1, 5, 12, 16);
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
if($item->getPickaxeLevel() >= 1){
|
||||
return array(
|
||||
[DIAMOND, 0, 3],
|
||||
[IRON_INGOT, 0, 6],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private function decay($x,$y,$z,$aOne,$aTwo,$aThree,$bOne,$bTwo,$bThree,$cOne,$cTwo,$cThree) {
|
||||
for($a = $aOne; $a < $aTwo; $a += $aThree) { //wth those cycles are?
|
||||
for($b = $bOne; $b < $bTwo; $b += $bThree) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue