im trying to make it so that everytime a certain spot is clicked it adds the block there (still new to kaboom), but this does absoutely jack
function block(xyz) {add([
rect(48, 64),
area(),
outline(4),
pos(width(), height() - 48),
origin(xyz),
color(255, 180, 255),
"tree",
]);
};
on mouse click
onClick(() => {
block(mousePos())
});