Block2Stack

Easily convert a large block count to a stack count

This is useful for making farms where a tutorial gives a block count and you prefer a stack count.

Stacks

Remaining blocks

Algorithm

function getStackCount() {
    var blockCount = document.getElementById("countInput").value
    remainder = blockCount % 64
    console.log("remaining blocks: " + remainder)
    document.getElementById("remainder").textContent = remainder
    document.getElementById("remainderContainer").style.visibility = "visible"
    stacks = (blockCount - remainder)/64
    document.getElementById("stackCount").textContent = stacks
    console.log("stacks: " + stacks)
    document.getElementById("stackCountContainer").style.visibility = "visible"
    }