entity damage by blocks was a bit rewritten, fixed packet spam by burning zombies/entities, fire tweaks

This commit is contained in:
GameHerobrine 2024-03-16 00:29:33 +03:00
parent 7ebb5a4a63
commit f078e83528
6 changed files with 87 additions and 93 deletions

View file

@ -6,7 +6,11 @@ class CactusBlock extends TransparentBlock{
$this->isFullBlock = false;
$this->hardness = 2;
}
public static function onEntityCollidedWithBlock(Level $level, $x, $y, $z, Entity $entity){
$entity->harm(1, "cactus");
}
public static function onRandomTick(Level $level, $x, $y, $z){
//$b = $level->level->getBlock($x, $y - 1, $z);
$underID = $level->level->getBlockID($x, $y - 1, $z);