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.attached_node = 1
|
||||
|
||||
minetest.register_node("moreflowers:" .. name, {
|
||||
minetest.register_node(
|
||||
"moreflowers:" .. name, {
|
||||
description = desc,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
@ -36,7 +37,8 @@ local function add_tall_flower(name, desc, box, f_groups)
|
||||
f_groups.flora = 1
|
||||
f_groups.attached_node = 1
|
||||
|
||||
minetest.register_node("moreflowers:" .. name, {
|
||||
minetest.register_node(
|
||||
"moreflowers:" .. name, {
|
||||
description = desc,
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
@ -89,12 +91,14 @@ end
|
||||
-- Bunch of flowers
|
||||
if minetest.get_modpath("farming") then
|
||||
|
||||
minetest.register_craftitem("moreflowers:bunch", {
|
||||
minetest.register_craftitem(
|
||||
"moreflowers:bunch", {
|
||||
description = "Bunch of flowers",
|
||||
inventory_image = "moreflowers_bunch.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
minetest.register_craft(
|
||||
{
|
||||
output = "moreflowers:bunch",
|
||||
recipe = {
|
||||
{"group:flower", "group:flower", "group:flower"},
|
||||
@ -106,7 +110,8 @@ if minetest.get_modpath("farming") then
|
||||
if minetest.get_modpath("vessels") then
|
||||
|
||||
-- Bunch in a vase
|
||||
minetest.register_node("moreflowers:bunch_vase", {
|
||||
minetest.register_node(
|
||||
"moreflowers:bunch_vase", {
|
||||
description = "Bunch in a vase",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"moreflowers_bunch_vase.png"},
|
||||
@ -123,7 +128,8 @@ if minetest.get_modpath("farming") then
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
minetest.register_craft(
|
||||
{
|
||||
output = "moreflowers:bunch_vase",
|
||||
type = "shapeless",
|
||||
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_dry_grass_deco)
|
||||
end
|
||||
|
||||
minetest.log("action", "[moreflowers] loaded.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user