add wallTool
[df_scaffold.git] / sapscaffold.lua
blob65d2a9c83ee508acdf6ce9bc6cf1dd5153dae834
1 -- CC0/Unlicense Emilia 2020
3 local dirt = {
4 "mcl_core:dirt",
5 "mcl_core:dirt_with_grass",
6 "mcl_core:dirt_with_grass_snow",
7 "mcl_core:podzol"
10 local saplings = {
11 "mcl_core:sapling",
12 "mcl_core:darksapling",
13 "mcl_core:junglesapling",
14 "mcl_core:sprucesapling",
15 "mcl_core:birchsapling",
16 "mcl_core:acaciasapling"
19 scaffold.register_template_scaffold("SapScaffold", "scaffold_saplings", function(below)
20 local lp = vector.round(minetest.localplayer:get_pos())
22 if scaffold.place_if_needed(dirt, below) then
23 scaffold.place_if_needed(saplings, lp)
24 end
25 end)