#Brush

1 messages · Page 1 of 1 (latest)

livid rampart
#

is there anyone who knows axiom and scripting to make me a program or explain to me how to make a brush to paint correctly please?

livid rampart
#

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

tulip bison
#

Use the script brush preset that does that
you can just modify it if you want

livid rampart
#

-- 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 ?

livid rampart
tulip bison
#

I would do it manually with the angle tool mask because I don’t know Lua as well

livid rampart
#

i gonna try

tulip bison
# livid rampart 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

livid rampart
#

yes but i can't modify angle