Skip to content

Instantly share code, notes, and snippets.

@Amaz1

Amaz1/schem.lua Secret

Created May 19, 2014 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amaz1/54ad76374316e98660fa to your computer and use it in GitHub Desktop.
Save Amaz1/54ad76374316e98660fa to your computer and use it in GitHub Desktop.
Schems
minetest.register_decoration({
--This is the schem deco
deco_type = "schematic",
--This defines what node it is placed on.
place_on = "default:snowblock",
sidelen = 16,
--This is the chance it has of spawning on that node.
fill_ratio = 0.004,
--This is where minetest gets the schem from. So create a schems folder in your mod, put the name where the abandoned fort is, and put your mod name wher lottmapgen is.
schematic = minetest.get_modpath("lottmapgen").."/schems/abandoned_fort.mts",
flags = "place_center_x, place_center_z",
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment