Redstone: Add wires, redstone torches, levers (incomplete) and repeaters

This commit is contained in:
Er2
2024-04-07 16:51:01 +03:00
parent b8c01e085f
commit 6bdfe250a2
50 changed files with 1687 additions and 114 deletions

View File

@@ -189,6 +189,11 @@ public:
(m_pos.z - z) * (m_pos.z - z);
}
int getDirection()
{
return Mth::floor((((m_yaw + 180.0f) * 4.0f) / 360.0f) - 0.5f) & 3;
}
public:
static int entityCounter;
static Random sharedRandom;