mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Added conversion between Items <==> Blocks
This commit is contained in:
parent
d5aa898ffe
commit
213cda27aa
6 changed files with 47 additions and 8 deletions
|
|
@ -30,4 +30,10 @@ class SugarcaneBlock extends TransparentBlock{
|
|||
parent::__construct(SUGARCANE_BLOCK, 0, "Sugarcane");
|
||||
}
|
||||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
return array(
|
||||
array(SUGARCANE, 0, 1),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue