mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Adding new blocks
This commit is contained in:
parent
37bbfe2d81
commit
4a861c0f5d
11 changed files with 135 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ class LadderBlock extends TransparentBlock{
|
|||
$this->isFullBlock = false;
|
||||
$this->hardness = 2;
|
||||
}
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
if($face === 0 || $face === 1){
|
||||
return false; //fix of placing invalid ids without array
|
||||
|
|
@ -20,7 +21,6 @@ class LadderBlock extends TransparentBlock{
|
|||
}
|
||||
|
||||
public function onUpdate($type){
|
||||
|
||||
if($type === BLOCK_UPDATE_NORMAL){
|
||||
$side = $this->getMetadata();
|
||||
$faces = array( //magical tranformation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue