moved 2 more entities to separate classes, no more 1.0.2

This commit is contained in:
GameHerobrine 2023-02-24 11:22:14 +03:00
parent 96bb79cdcb
commit 0946e8f3a2
9 changed files with 48 additions and 21 deletions

View file

@ -0,0 +1,14 @@
<?php
class FallingSand extends Entity{
const TYPE = FALLING_SAND;
const CLASS_TYPE = ENTITY_FALLING;
public function __construct($level, $eid, $class, $type = 0, $data = []){
parent::__construct($level, $eid, $class, $type, $data);
$this->setHealth(PHP_INT_MAX, "generic");
$this->height = 0.98;
$this->width = 0.98;
$this->hasGravity = true;
$this->gravity = 0.04;
}
}