mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
TU43 Release 2
+ Added Magma Block, Nether Wart Block, Bone Block, End Stone Block + All Beetroot Items + Polar Bear (excluding audio) + / now opens chat for commands
This commit is contained in:
1 parent
47e5cba310
commit
558173cfd0
38 files changed
+561
-15
No files matched your search
@@ -208,6 +208,15 @@ void LivingEntity::baseTick()
|
||||
hurt(DamageSource::inWall, 1);
|
||||
}
|
||||
|
||||
if (!level->isClientSide && isAlive() && onGround && !isSneaking() && tickCount % 10 == 0)
|
||||
{
|
||||
int tileBelow = level->getTile(Mth::floor(x), Mth::floor(bb->y0) - 1, Mth::floor(z));
|
||||
if (tileBelow == Tile::magma_Id)
|
||||
{
|
||||
hurt(DamageSource::inFire, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (isFireImmune() || level->isClientSide) clearFire();
|
||||
shared_ptr<Player> thisPlayer = dynamic_pointer_cast<Player>(shared_from_this());
|
||||
bool isInvulnerable = (thisPlayer != nullptr && thisPlayer->abilities.invulnerable);
|
||||
|
||||
Reference in new issue
Block a user