There is a function `ma::spawn_item` that can spawn multiple items (of the same type) at once: `g->m.spawn_item(x, y, "2x4", count)`