A JavaScript Minecraft resource calculator