man this tutorial level is really screwed up

todo??:

- fix the id system [days since the universe was created is NOT a valid id]
- fix literally everything else although thats probably caused by the discrepancy above
This commit is contained in:
Fireblade
2026-05-02 20:07:41 -04:00
parent d89fadff68
commit 02f1be3bb7
23 changed files with 217 additions and 70 deletions
+26
View File
@@ -14,6 +14,32 @@ DaylightDetectorTile::DaylightDetectorTile(int id, bool inverted) : BaseEntityTi
updateDefaultShape();
}
void DaylightDetectorTile::createBlockStateDefinition()
{
if (!m_blockStateDefinition)
m_blockStateDefinition = new BlockStateDefinition(this);
}
int DaylightDetectorTile::defaultBlockState()
{
return 0;
}
int DaylightDetectorTile::convertBlockStateToLegacyData(BlockState *state)
{
return state ? (state->value & 0xF) : 0;
}
Tile::BlockState DaylightDetectorTile::getBlockState(int data)
{
return Tile::BlockState(data & 0xF);
}
Tile::BlockState DaylightDetectorTile::getBlockState(LevelSource *level, int x, int y, int z)
{
return Tile::BlockState(level->getData(x, y, z) & 0xF);
}
void DaylightDetectorTile::updateDefaultShape()
{
setShape(0, 0, 0, 1, 6.0f / 16.0f, 1);