Minecraft logic.

Minecraft logic.