From af8ce2882ac2e477c1032ee3338e6ceed6c7ef15 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Jan 2017 06:37:07 +0100 Subject: [PATCH] Make all flowers buildable_to and dig_by_water --- mods/flowers/init.lua | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mods/flowers/init.lua b/mods/flowers/init.lua index f0775116c3..32af37024f 100644 --- a/mods/flowers/init.lua +++ b/mods/flowers/init.lua @@ -28,6 +28,7 @@ local function add_simple_flower(name, desc, image, color) stack_max = 64, groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,dig_by_water=1,color=1}, sounds = default.node_sound_leaves_defaults(), + buildable_to = true, selection_box = { type = "fixed", fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }, @@ -50,7 +51,8 @@ minetest.register_node("flowers:tulip_pink", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -68,7 +70,8 @@ minetest.register_node("flowers:tulip_red", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -87,7 +90,8 @@ minetest.register_node("flowers:tulip_white", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -108,7 +112,8 @@ minetest.register_node("flowers:allium", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -128,7 +133,8 @@ minetest.register_node("flowers:peony", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -149,7 +155,8 @@ minetest.register_node("flowers:azure_bluet", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -169,7 +176,8 @@ minetest.register_node("flowers:blue_orchid", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1}, + groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -189,7 +197,8 @@ minetest.register_node("flowers:fern", { paramtype = "light", walkable = false, stack_max = 64, - groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1}, + groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1,dig_by_water=1}, + buildable_to = true, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed",