mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
entity damage by blocks was a bit rewritten, fixed packet spam by burning zombies/entities, fire tweaks
This commit is contained in:
parent
7ebb5a4a63
commit
f078e83528
6 changed files with 87 additions and 93 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue