#Brush
1 messages · Page 1 of 1 (latest)
yes but i'm bad on script so i don't know how to have a good painting with stone bottom dirt middle and grass top
Use the script brush preset that does that
you can just modify it if you want
-- Ignore non-solid blocks
if not isSolid(getBlockState(x, y, z)) then
return nil
end
-- Load custom arguments
local top = $blockState(Top, grass_block)$
local mid = $blockState(Middle, dirt)$
local below = $blockState(Bottom, stone)$
-- Calculate depth
local depth = 0
for i=0,6 do
if i == 6 then
return below
end
if not isSolid(getBlockState(x, y+i+1, z)) then
depth = i
break
end
end
-- Grass on top
if depth == 0 then
return top
end
-- Dirt underneath
local noise = getSimplexNoise(x/32, y/32, z/32)
local dirt_depth
if noise < 0.1 then
dirt_depth = 2
elseif noise < 0.5 then
dirt_depth = 3
elseif noise < 0.9 then
dirt_depth = 4
else
dirt_depth = 5
end
if depth < dirt_depth then
return mid
else
return below
end
if i want more stone, how can i do modify ?
wdym by more stone?
I wish there were more layers of stones visible when I apply the brush
I would do it manually with the angle tool mask because I don’t know Lua as well
i gonna try
By manually I mean use the painter with your active block set to stone
and having an angle tool mask at around A30/R20 active while painting
yes but i can't modify angle