scaffold: improve melon pattern, remove dead settings
This commit is contained in:
parent
1cc7f25afd
commit
ba170c5193
@ -54,17 +54,17 @@ end)
|
|||||||
scaffold.register_template_scaffold("AutoMelon", "scaffold_melon", function(below)
|
scaffold.register_template_scaffold("AutoMelon", "scaffold_melon", function(below)
|
||||||
local lp = vector.round(minetest.localplayer:get_pos())
|
local lp = vector.round(minetest.localplayer:get_pos())
|
||||||
|
|
||||||
local x = below.x % 3
|
local x = below.x % 5
|
||||||
local z = below.z % 3
|
local z = below.z % 5
|
||||||
|
|
||||||
-- water
|
-- water
|
||||||
if x == 0 and z == 0 then
|
if x == 0 and z == 0 then
|
||||||
scaffold.place_if_needed(water, below)
|
scaffold.place_if_needed(water, below)
|
||||||
-- dirt
|
-- dirt
|
||||||
elseif z == 2 or (x == 2 and z == 0) then
|
elseif z == 2 or z == 4 or ((x == 2 or x == 4) and z == 0) then
|
||||||
scaffold.place_if_needed(tillable, below)
|
scaffold.place_if_needed(tillable, below)
|
||||||
-- farmland
|
-- farmland
|
||||||
elseif x == 1 or z == 1 then
|
elseif (x == 1 or z == 1) or (x == 3 or z == 3) then
|
||||||
if scaffold.place_if_needed(tillable, below) then
|
if scaffold.place_if_needed(tillable, below) then
|
||||||
if scaffold.can_place_at(lp) then
|
if scaffold.can_place_at(lp) then
|
||||||
if scaffold.find_any_swap(hoes) then
|
if scaffold.find_any_swap(hoes) then
|
||||||
|
@ -1,3 +1 @@
|
|||||||
sapling_scaffold (Scaffold with saplings and dirt) bool false
|
|
||||||
slow_blocks_per_second (Blocks placed per second) int 8
|
slow_blocks_per_second (Blocks placed per second) int 8
|
||||||
slow_scaffold (Slow scaffold) bool false
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user