blocks have slipperiness now, more movement tweaks

This commit is contained in:
GameHerobrine 2023-02-04 21:05:12 +03:00
parent 18dfe4c88f
commit 2277bf4c74
4 changed files with 81 additions and 122 deletions

View file

@ -4,6 +4,7 @@ class IceBlock extends TransparentBlock{
public function __construct(){
parent::__construct(ICE, 0, "Ice");
$this->hardness = 2.5;
$this->slipperiness = 0.98;
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$ret = $this->level->setBlock($this, $this, true, false, true);