Make flammable: Flowers, grasses and several crafitems

This commit is contained in:
Fernando Carmona Varo 2016-10-24 20:34:00 +02:00 committed by paramat
parent fbac9be51c
commit 3c9d71e6f7
8 changed files with 35 additions and 22 deletions

View file

@ -3,12 +3,13 @@
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
@ -132,14 +133,14 @@ end)
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,
})
@ -176,7 +177,7 @@ end)
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", {

View file

@ -1103,7 +1103,7 @@ minetest.register_node("default:junglegrass", {
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",
@ -1124,7 +1124,7 @@ minetest.register_node("default:grass_1", {
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",
@ -1154,7 +1154,7 @@ for i = 2, 5 do
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",

View file

@ -32,6 +32,7 @@ minetest.register_tool("default:pick_wood", {
},
damage_groups = {fleshy=2},
},
groups = {flammable = 2},
})
minetest.register_tool("default:pick_stone", {
description = "Stone Pickaxe",
@ -110,6 +111,7 @@ minetest.register_tool("default:shovel_wood", {
},
damage_groups = {fleshy=2},
},
groups = {flammable = 2},
})
minetest.register_tool("default:shovel_stone", {
description = "Stone Shovel",
@ -192,6 +194,7 @@ minetest.register_tool("default:axe_wood", {
},
damage_groups = {fleshy=2},
},
groups = {flammable = 2},
})
minetest.register_tool("default:axe_stone", {
description = "Stone Axe",
@ -268,7 +271,8 @@ minetest.register_tool("default:sword_wood", {
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",