mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
moved 2 more entities to separate classes, no more 1.0.2
This commit is contained in:
parent
96bb79cdcb
commit
0946e8f3a2
9 changed files with 48 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue