added some vanilla block props, some changes for block placement

This commit is contained in:
GameHerobrine 2026-04-28 15:46:03 +03:00
parent cf4dc73a6c
commit 8f9a9debc5
9 changed files with 178 additions and 63 deletions

View file

@ -518,6 +518,16 @@ class Level{
}
return $ret;
}
public function isSolidBlockingTile($x, $y, $z){
$id = $this->level->getBlockID($x, $y, $z);
if($id != 0 && StaticBlock::getMaterial($id)->isSolidBlocking()){
return StaticBlock::getIsCubeShaped($id);
}else{
return false;
}
}
public function fastSetBlockUpdateMeta($x, $y, $z, $meta, $updateBlock = false){
$this->level->setBlockDamage($x, $y, $z, $meta);
$id = $this->level->getBlockID($x, $y, $z);