Reindent code
- Add load message into "action" log
This commit is contained in:
parent
a08d5f21a3
commit
fdc371d8ea
20
init.lua
20
init.lua
@ -9,7 +9,8 @@ local function add_simple_flower(name, desc, box, f_groups)
|
|||||||
f_groups.flora = 1
|
f_groups.flora = 1
|
||||||
f_groups.attached_node = 1
|
f_groups.attached_node = 1
|
||||||
|
|
||||||
minetest.register_node("moreflowers:" .. name, {
|
minetest.register_node(
|
||||||
|
"moreflowers:" .. name, {
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -36,7 +37,8 @@ local function add_tall_flower(name, desc, box, f_groups)
|
|||||||
f_groups.flora = 1
|
f_groups.flora = 1
|
||||||
f_groups.attached_node = 1
|
f_groups.attached_node = 1
|
||||||
|
|
||||||
minetest.register_node("moreflowers:" .. name, {
|
minetest.register_node(
|
||||||
|
"moreflowers:" .. name, {
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -89,12 +91,14 @@ end
|
|||||||
-- Bunch of flowers
|
-- Bunch of flowers
|
||||||
if minetest.get_modpath("farming") then
|
if minetest.get_modpath("farming") then
|
||||||
|
|
||||||
minetest.register_craftitem("moreflowers:bunch", {
|
minetest.register_craftitem(
|
||||||
|
"moreflowers:bunch", {
|
||||||
description = "Bunch of flowers",
|
description = "Bunch of flowers",
|
||||||
inventory_image = "moreflowers_bunch.png",
|
inventory_image = "moreflowers_bunch.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
|
{
|
||||||
output = "moreflowers:bunch",
|
output = "moreflowers:bunch",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:flower", "group:flower", "group:flower"},
|
{"group:flower", "group:flower", "group:flower"},
|
||||||
@ -106,7 +110,8 @@ if minetest.get_modpath("farming") then
|
|||||||
if minetest.get_modpath("vessels") then
|
if minetest.get_modpath("vessels") then
|
||||||
|
|
||||||
-- Bunch in a vase
|
-- Bunch in a vase
|
||||||
minetest.register_node("moreflowers:bunch_vase", {
|
minetest.register_node(
|
||||||
|
"moreflowers:bunch_vase", {
|
||||||
description = "Bunch in a vase",
|
description = "Bunch in a vase",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"moreflowers_bunch_vase.png"},
|
tiles = {"moreflowers_bunch_vase.png"},
|
||||||
@ -123,7 +128,8 @@ if minetest.get_modpath("farming") then
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft(
|
||||||
|
{
|
||||||
output = "moreflowers:bunch_vase",
|
output = "moreflowers:bunch_vase",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"moreflowers:bunch", "group:vessel"},
|
recipe = {"moreflowers:bunch", "group:vessel"},
|
||||||
@ -167,3 +173,5 @@ if minetest.get_modpath("bonemeal") and bonemeal then
|
|||||||
bonemeal:add_deco(dirt_with_grass_deco)
|
bonemeal:add_deco(dirt_with_grass_deco)
|
||||||
bonemeal:add_deco(dirt_with_dry_grass_deco)
|
bonemeal:add_deco(dirt_with_dry_grass_deco)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[moreflowers] loaded.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user