mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Spawning blocks/items using its name
This commit is contained in:
parent
cdb05f0695
commit
65280d85d1
4 changed files with 18 additions and 8 deletions
|
|
@ -41,7 +41,7 @@ class SugarcaneBlock extends TransparentBlock{
|
|||
$down = $level->getBlockFace($block, 0);
|
||||
if($down->getID() === SUGARCANE_BLOCK){
|
||||
$level->setBlock($block, $this->id, 0);
|
||||
return true;
|
||||
return true;
|
||||
}elseif($down->getID() === 2 or $down->getID() === 3 or $down->getID() === 12){
|
||||
$block0 = $level->getBlockFace($down, 2);
|
||||
$block1 = $level->getBlockFace($down, 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue