0
0
Fork 0

Make flowers being dug immediately

This commit is contained in:
Wuzzy 2017-01-04 07:01:37 +01:00
parent 0dc11b6564
commit c0368c6b59
1 changed files with 12 additions and 12 deletions

View File

@ -26,7 +26,7 @@ local function add_simple_flower(name, desc, image, color)
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,dig_by_water=1,color=1}, 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(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -50,7 +50,7 @@ minetest.register_node("flowers:tulip_pink", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -68,7 +68,7 @@ minetest.register_node("flowers:tulip_red", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -87,7 +87,7 @@ minetest.register_node("flowers:tulip_white", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -108,7 +108,7 @@ minetest.register_node("flowers:allium", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -128,7 +128,7 @@ minetest.register_node("flowers:peony", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -149,7 +149,7 @@ minetest.register_node("flowers:azure_bluet", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -169,7 +169,7 @@ minetest.register_node("flowers:blue_orchid", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=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},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -189,7 +189,7 @@ minetest.register_node("flowers:fern", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
stack_max = 64, stack_max = 64,
groups = {snappy=3,flammable=2,flower=1,attached_node=1}, groups = {dig_immediate=3,flammable=2,flower=1,attached_node=1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -228,7 +228,7 @@ function register_large(name, desc, inv_img, bot_img, colr) --change in function
end, end,
]] ]]
drop = "flowers:"..name, drop = "flowers:"..name,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,colr=1, dig_by_water=1, double_bottom =1}, groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,colr=1, dig_by_water=1, double_bottom =1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -248,7 +248,7 @@ function register_large(name, desc, inv_img, bot_img, colr) --change in function
walkable = false, walkable = false,
buildable_to = true, buildable_to = true,
drop = "flowers:"..name, drop = "flowers:"..name,
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,colr=1, dig_by_water=1, not_in_creative_inventory = 1, double_top =1}, groups = {dig_immediate=3,flammable=2,flower=1,flora=1,attached_node=1,colr=1, dig_by_water=1, not_in_creative_inventory = 1, double_top =1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -324,7 +324,7 @@ minetest.register_node("flowers:pot",{
tiles = {"flowers_pot_top.png", "flowers_pot_bottom.png", "flowers_pot_top.png"}, tiles = {"flowers_pot_top.png", "flowers_pot_bottom.png", "flowers_pot_top.png"},
inventory_image="flowers_pot_inventory.png", inventory_image="flowers_pot_inventory.png",
paramtype = "light", paramtype = "light",
groups = {snappy=3}, groups = {dig_immediate=3},
stack_max = 16, stack_max = 16,
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)