42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
allores = {}
|
|
|
|
if minetest.get_modpath("allores") ~= nil then
|
|
-------------------------------------------------
|
|
-- node --
|
|
minetest.register_node("allores:101noob", {
|
|
description = ("101noob") .. "\n" .. ("(101noob is the lua I wrote and tested the mods. not minerals )"),
|
|
tiles = {"allores.png"},
|
|
groups = {cracky=3},
|
|
})
|
|
|
|
-------------------------------------------------
|
|
-- craft --
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "allores:allores2 1",
|
|
recipe = "allores:101noob",
|
|
cooktime = 1
|
|
})
|
|
-------------------------------------------------
|
|
--mapgen--
|
|
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "allores:101noob",
|
|
wherein = {"default:sand","default:sandstone","default:silver_sand","default:silver_sandstone","default:lava_source","default:lava_flowing","default:dirt_with_snow","default:snow","default:stone"},
|
|
clust_scarcity = 32 * 32 * 32,
|
|
clust_size = 5,
|
|
y_max = -10,
|
|
y_min = -31000,
|
|
noise_threshold = 0.0,
|
|
noise_params = {
|
|
offset = 0.5,
|
|
scale = 0.2,
|
|
spread = {x = 5, y = 5, z = 5},
|
|
seed = -316,
|
|
octaves = 1,
|
|
persist = 0.0
|
|
},
|
|
})
|
|
|
|
end |