wield_image = "boats_wield.png",
wield_scale = {x = 2, y = 2, z = 1},
liquids_pointable = true,
+ groups = {flammable = 2},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
- groups = {stick = 1},
+ groups = {stick = 1, flammable = 2},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
+ groups = {flammable = 3},
})
local lpp = 14 -- Lines per book's page
minetest.register_craftitem("default:book", {
description = "Book",
inventory_image = "default_book.png",
- groups = {book = 1},
+ groups = {book = 1, flammable = 3},
on_use = book_on_use,
})
minetest.register_craftitem("default:book_written", {
description = "Book With Text",
inventory_image = "default_book_written.png",
- groups = {book = 1, not_in_creative_inventory = 1},
+ groups = {book = 1, not_in_creative_inventory = 1, flammable = 3},
stack_max = 1,
on_use = book_on_use,
})
minetest.register_craftitem("default:coal_lump", {
description = "Coal Lump",
inventory_image = "default_coal_lump.png",
- groups = {coal = 1}
+ groups = {coal = 1, flammable = 1}
})
minetest.register_craftitem("default:iron_lump", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
+ groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
+ groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
buildable_to = true,
drop = "default:grass_1",
groups = {snappy = 3, flora = 1, attached_node = 1,
- not_in_creative_inventory = 1, grass = 1},
+ not_in_creative_inventory = 1, grass = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
},
damage_groups = {fleshy=2},
},
+ groups = {flammable = 2},
})
minetest.register_tool("default:pick_stone", {
description = "Stone Pickaxe",
},
damage_groups = {fleshy=2},
},
+ groups = {flammable = 2},
})
minetest.register_tool("default:shovel_stone", {
description = "Stone Shovel",
},
damage_groups = {fleshy=2},
},
+ groups = {flammable = 2},
})
minetest.register_tool("default:axe_stone", {
description = "Stone Axe",
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
},
damage_groups = {fleshy=2},
- }
+ },
+ groups = {flammable = 2},
})
minetest.register_tool("default:sword_stone", {
description = "Stone Sword",
inventory_image = def.inventory_image,
on_use = function(itemstack, user, pointed_thing)
return farming.hoe_on_use(itemstack, user, pointed_thing, def.max_uses)
- end
+ end,
+ groups = def.groups,
})
-- Register its recipe
if def.material == nil then
-- Register seed
local lbm_nodes = {mname .. ":seed_" .. pname}
- local g = {seed = 1, snappy = 3, attached_node = 1}
+ local g = {seed = 1, snappy = 3, attached_node = 1, flammable = 2}
for k, v in pairs(def.fertility) do
g[v] = 1
end
minetest.register_craftitem(":" .. mname .. ":" .. pname, {
description = pname:gsub("^%l", string.upper),
inventory_image = mname .. "_" .. pname .. ".png",
+ groups = {flammable = 2},
})
-- Register growing steps
description = "Wooden Hoe",
inventory_image = "farming_tool_woodhoe.png",
max_uses = 30,
- material = "group:wood"
+ material = "group:wood",
+ groups = {flammable = 2},
})
farming.register_hoe(":farming:hoe_stone", {
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
- fertility = {"grassland"}
+ fertility = {"grassland"},
+ groups = {flammable = 4},
})
minetest.register_craftitem("farming:flour", {
description = "Flour",
inventory_image = "farming_flour.png",
+ groups = {flammable = 1},
})
minetest.register_craftitem("farming:bread", {
description = "Bread",
inventory_image = "farming_bread.png",
on_use = minetest.item_eat(5),
+ groups = {flammable = 2},
})
minetest.register_craft({
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
- fertility = {"grassland", "desert"}
+ fertility = {"grassland", "desert"},
+ groups = {flammable = 4},
})
minetest.register_alias("farming:string", "farming:cotton")
end
flowers.datas = {
- {"rose", "Rose", {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_red = 1}},
- {"tulip", "Orange Tulip", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_orange = 1}},
- {"dandelion_yellow", "Yellow Dandelion", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_yellow = 1}},
- {"geranium", "Blue Geranium", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_blue = 1}},
- {"viola", "Viola", {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}, {color_violet = 1}},
- {"dandelion_white", "White dandelion", {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}, {color_white = 1}}
+ {"rose", "Rose", {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_red = 1, flammable = 1}},
+ {"tulip", "Orange Tulip", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_orange = 1, flammable = 1}},
+ {"dandelion_yellow", "Yellow Dandelion", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_yellow = 1, flammable = 1}},
+ {"geranium", "Blue Geranium", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_blue = 1, flammable = 1}},
+ {"viola", "Viola", {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}, {color_violet = 1, flammable = 1}},
+ {"dandelion_white", "White dandelion", {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}, {color_white = 1, flammable = 1}}
}
for _,item in pairs(flowers.datas) do
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {snappy = 3, attached_node = 1},
+ groups = {snappy = 3, attached_node = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(-5),
selection_box = {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- groups = {snappy = 3, attached_node = 1},
+ groups = {snappy = 3, attached_node = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(1),
selection_box = {
buildable_to = true,
sunlight_propagates = true,
floodable = true,
- groups = {snappy = 3, flower = 1},
+ groups = {snappy = 3, flower = 1, flammable = 1},
sounds = default.node_sound_leaves_defaults(),
node_placement_prediction = "",
node_box = {