Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

volume:get(x, y, z, COLOR) seems to be broken

volume:set(0,0,0, COLOR, color(255,255,255)) will set the Voxel at 0, 0, 0 to white.

volume:get(0,0,0, COLOR) returns nil.

In the Voxel Editor it seems like block colors are retrieved like this:

    local s = volume:get(self.startCoord, BLOCK_STATE)
    if s then
        local r = (s>>24) & 255
        local g = (s>>16) & 255   
        local b = (s>>8) & 255     
        self.toolColor = color(r,g,b)
Sign In or Register to comment.