scaffold: add railscaffold
This commit is contained in:
parent
f5fb3289bf
commit
307a416912
17
clientmods/scaffold/railscaffold.lua
Normal file
17
clientmods/scaffold/railscaffold.lua
Normal file
@ -0,0 +1,17 @@
|
||||
-- CC0/Unlicense Emilia 2020
|
||||
|
||||
local dirt = {
|
||||
"mesecons_torch:redstoneblock"
|
||||
}
|
||||
|
||||
local saplings = {
|
||||
"mcl_minecarts:golden_rail"
|
||||
}
|
||||
|
||||
scaffold.register_template_scaffold("RailScaffold", "scaffold_rails", function(below)
|
||||
local lp = vector.round(minetest.localplayer:get_pos())
|
||||
|
||||
if scaffold.place_if_needed(dirt, below) then
|
||||
scaffold.place_if_needed(saplings, lp)
|
||||
end
|
||||
end)
|
Loading…
x
Reference in New Issue
Block a user