Mods in den Spieleordner reingeschoben. So richtig tief.
This commit is contained in:
parent
b4b6c08f4f
commit
f7bc25a670
1674 changed files with 56056 additions and 530 deletions
42
mods/cucina_vegana/sunflower.lua
Normal file
42
mods/cucina_vegana/sunflower.lua
Normal file
|
@ -0,0 +1,42 @@
|
|||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
if(minetest.registered_nodes["flowers:sunflower"] ~= nil) then
|
||||
print("[MOD] " .. minetest.get_current_modname() .. " Sunflowers available.")
|
||||
print("[MOD] " .. minetest.get_current_modname() .. " using \"flowers:sunflower\".")
|
||||
|
||||
else
|
||||
|
||||
print("[MOD] " .. minetest.get_current_modname() .. " no Sunflowers available.")
|
||||
print("[MOD] " .. minetest.get_current_modname() .. " use own Sunflowers.")
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = cucina_vegana.plant_settings.sunflower_scale,
|
||||
spread = {x = 10, y = 10, z = 10},
|
||||
seed = 8756,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
y_min = 0,
|
||||
y_max = 150,
|
||||
decoration = "cucina_vegana:wild_sunflower",
|
||||
})
|
||||
|
||||
minetest.register_alias("flowers:sunflower", "cucina_vegana:sunflower")
|
||||
|
||||
if (cucina_vegana.farming_default) then
|
||||
|
||||
dofile(modpath .. "/sunflower_default.lua")
|
||||
|
||||
else
|
||||
|
||||
dofile(modpath .. "/sunflower_redo.lua")
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue