2011-12-03 19:25:21 +01:00
|
|
|
-- legacy (Minetest 0.4 mod)
|
|
|
|
-- Provides as much backwards-compatibility as feasible
|
|
|
|
|
2011-12-03 22:50:31 +01:00
|
|
|
minetest.alias_node("stone", "default:stone")
|
|
|
|
minetest.alias_node("dirt_with_grass", "default:dirt_with_grass")
|
|
|
|
minetest.alias_node("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps")
|
|
|
|
minetest.alias_node("dirt", "default:dirt")
|
|
|
|
minetest.alias_node("sand", "default:sand")
|
|
|
|
minetest.alias_node("gravel", "default:gravel")
|
|
|
|
minetest.alias_node("sandstone", "default:sandstone")
|
|
|
|
minetest.alias_node("clay", "default:clay")
|
|
|
|
minetest.alias_node("brick", "default:brick")
|
|
|
|
minetest.alias_node("tree", "default:tree")
|
|
|
|
minetest.alias_node("jungletree", "default:jungletree")
|
|
|
|
minetest.alias_node("junglegrass", "default:junglegrass")
|
|
|
|
minetest.alias_node("leaves", "default:leaves")
|
|
|
|
minetest.alias_node("cactus", "default:cactus")
|
|
|
|
minetest.alias_node("papyrus", "default:papyrus")
|
|
|
|
minetest.alias_node("bookshelf", "default:bookshelf")
|
|
|
|
minetest.alias_node("glass", "default:glass")
|
|
|
|
minetest.alias_node("wooden_fence", "default:fence_wood")
|
|
|
|
minetest.alias_node("rail", "default:rail")
|
|
|
|
minetest.alias_node("ladder", "default:ladder")
|
|
|
|
minetest.alias_node("wood", "default:wood")
|
|
|
|
minetest.alias_node("mese", "default:mese")
|
|
|
|
minetest.alias_node("cloud", "default:cloud")
|
|
|
|
minetest.alias_node("water_flowing", "default:water_flowing")
|
|
|
|
minetest.alias_node("water_source", "default:water_source")
|
|
|
|
minetest.alias_node("lava_flowing", "default:lava_flowing")
|
|
|
|
minetest.alias_node("lava_source", "default:lava_source")
|
|
|
|
minetest.alias_node("torch", "default:torch")
|
|
|
|
minetest.alias_node("sign_wall", "default:sign_wall")
|
|
|
|
minetest.alias_node("chest", "default:chest")
|
|
|
|
minetest.alias_node("locked_chest", "default:chest_locked")
|
|
|
|
minetest.alias_node("cobble", "default:cobble")
|
|
|
|
minetest.alias_node("mossycobble", "default:mossycobble")
|
|
|
|
minetest.alias_node("steelblock", "default:steelblock")
|
|
|
|
minetest.alias_node("nyancat", "default:nyancat")
|
|
|
|
minetest.alias_node("nyancat_rainbow", "default:nyancat_rainbow")
|
|
|
|
minetest.alias_node("sapling", "default:sapling")
|
|
|
|
minetest.alias_node("apple", "default:apple")
|
|
|
|
|
|
|
|
--[[
|
2011-12-03 19:25:21 +01:00
|
|
|
WATER_ALPHA = 160
|
|
|
|
WATER_VISC = 1
|
|
|
|
LAVA_VISC = 7
|
|
|
|
LIGHT_MAX = 14
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Tool definition
|
|
|
|
-- Compatibility to 0.3 and old 0.4
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_tool(":WPick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_woodpick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 2.0,
|
|
|
|
dt_weight = 0,
|
|
|
|
dt_crackiness = -0.5,
|
|
|
|
dt_crumbliness = 2,
|
|
|
|
dt_cuttability = 0,
|
|
|
|
basedurability = 30,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":STPick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_stonepick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.5,
|
|
|
|
dt_weight = 0,
|
|
|
|
dt_crackiness = -0.5,
|
|
|
|
dt_crumbliness = 2,
|
|
|
|
dt_cuttability = 0,
|
|
|
|
basedurability = 100,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":SteelPick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_steelpick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.0,
|
|
|
|
dt_weight = 0,
|
|
|
|
dt_crackiness = -0.5,
|
|
|
|
dt_crumbliness = 2,
|
|
|
|
dt_cuttability = 0,
|
|
|
|
basedurability = 333,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":MesePick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_mesepick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 0,
|
|
|
|
dt_weight = 0,
|
|
|
|
dt_crackiness = 0,
|
|
|
|
dt_crumbliness = 0,
|
|
|
|
dt_cuttability = 0,
|
|
|
|
basedurability = 1337,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":WShovel", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_woodshovel.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 2.0,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = 2,
|
|
|
|
dt_crumbliness = -1.5,
|
|
|
|
dt_cuttability = 0.3,
|
|
|
|
basedurability = 30,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":STShovel", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_stoneshovel.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.5,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = 2,
|
|
|
|
dt_crumbliness = -1.5,
|
|
|
|
dt_cuttability = 0.1,
|
|
|
|
basedurability = 100,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":SteelShovel", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_steelshovel.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.0,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = 2,
|
|
|
|
dt_crumbliness = -1.5,
|
|
|
|
dt_cuttability = 0.0,
|
|
|
|
basedurability = 330,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":WAxe", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_woodaxe.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 2.0,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = -0.2,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -0.5,
|
|
|
|
basedurability = 30,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":STAxe", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_stoneaxe.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.5,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = -0.2,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -0.5,
|
|
|
|
basedurability = 100,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":SteelAxe", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_steelaxe.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 1.0,
|
|
|
|
dt_weight = 0.5,
|
|
|
|
dt_crackiness = -0.2,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -0.5,
|
|
|
|
basedurability = 330,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":WSword", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_woodsword.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 3.0,
|
|
|
|
dt_weight = 3,
|
|
|
|
dt_crackiness = 0,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -1,
|
|
|
|
basedurability = 30,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":STSword", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_stonesword.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 2.5,
|
|
|
|
dt_weight = 3,
|
|
|
|
dt_crackiness = 0,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -1,
|
|
|
|
basedurability = 100,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
minetest.register_tool(":SteelSword", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_tool_steelsword.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
basetime = 2.0,
|
|
|
|
dt_weight = 3,
|
|
|
|
dt_crackiness = 0,
|
|
|
|
dt_crumbliness = 1,
|
|
|
|
dt_cuttability = -1,
|
|
|
|
basedurability = 330,
|
|
|
|
dd_weight = 0,
|
|
|
|
dd_crackiness = 0,
|
|
|
|
dd_crumbliness = 0,
|
|
|
|
dd_cuttability = 0,
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Crafting definition (recipe = legacy, output = default)
|
|
|
|
-- Makes current compatible with 0.3 and old 0.4
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:wood" 4',
|
|
|
|
recipe = {
|
|
|
|
{'node "tree"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'craft "default:stick" 4',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:fence_wooden" 2',
|
|
|
|
recipe = {
|
|
|
|
{'craft "Stick"', 'craft "Stick"', 'craft "Stick"'},
|
|
|
|
{'craft "Stick"', 'craft "Stick"', 'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:sign_wall" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:torch" 4',
|
|
|
|
recipe = {
|
|
|
|
{'craft "lump_of_coal"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:pick_wooden"',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:pick_stone"',
|
|
|
|
recipe = {
|
|
|
|
{'node "cobble"', 'node "cobble"', 'node "cobble"'},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:pick_steel"',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"', 'craft "steel_ingot"', 'craft "steel_ingot"'},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:pick_mese"',
|
|
|
|
recipe = {
|
|
|
|
{'node "mese"', 'node "mese"', 'node "mese"'},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
{'', 'craft "Stick"', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:shovel_wood"',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:shovel_stone"',
|
|
|
|
recipe = {
|
|
|
|
{'node "cobble"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:shovel_steel"',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:axe_wooden"',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"'},
|
|
|
|
{'node "wood"', 'craft "Stick"'},
|
|
|
|
{'', 'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:axe_stone"',
|
|
|
|
recipe = {
|
|
|
|
{'node "cobble"', 'node "cobble"'},
|
|
|
|
{'node "cobble"', 'craft "Stick"'},
|
|
|
|
{'', 'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:axe_steel"',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"', 'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"', 'craft "Stick"'},
|
|
|
|
{'', 'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:sword_wood"',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"'},
|
|
|
|
{'node "wood"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:sword_stone"',
|
|
|
|
recipe = {
|
|
|
|
{'node "cobble"'},
|
|
|
|
{'node "cobble"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'tool "default:sword_steel"',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"'},
|
|
|
|
{'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:rail" 15',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"', '', 'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"', 'craft "Stick"', 'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"', '', 'craft "steel_ingot"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:chest" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'node "wood"', '', 'node "wood"'},
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:chest_locked" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'node "wood"', 'craft "steel_ingot"', 'node "wood"'},
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:furnace" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "cobble"', 'node "cobble"', 'node "cobble"'},
|
|
|
|
{'node "cobble"', '', 'node "cobble"'},
|
|
|
|
{'node "cobble"', 'node "cobble"', 'node "cobble"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:steelblock" 1',
|
|
|
|
recipe = {
|
|
|
|
{'craft "steel_ingot"', 'craft "steel_ingot"', 'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"', 'craft "steel_ingot"', 'craft "steel_ingot"'},
|
|
|
|
{'craft "steel_ingot"', 'craft "steel_ingot"', 'craft "steel_ingot"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:sandstone" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "sand"', 'node "sand"'},
|
|
|
|
{'node "sand"', 'node "sand"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:clay" 1',
|
|
|
|
recipe = {
|
|
|
|
{'craft "lump_of_clay"', 'craft "lump_of_clay"'},
|
|
|
|
{'craft "lump_of_clay"', 'craft "lump_of_clay"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:brick" 1',
|
|
|
|
recipe = {
|
|
|
|
{'craft "clay_brick"', 'craft "clay_brick"'},
|
|
|
|
{'craft "clay_brick"', 'craft "clay_brick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'craft "default:paper" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "papyrus"', 'node "papyrus"', 'node "papyrus"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'craft "default:book" 1',
|
|
|
|
recipe = {
|
|
|
|
{'craft "paper"'},
|
|
|
|
{'craft "paper"'},
|
|
|
|
{'craft "paper"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:bookshelf" 1',
|
|
|
|
recipe = {
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
{'craft "book"', 'craft "book"', 'craft "book"'},
|
|
|
|
{'node "wood"', 'node "wood"', 'node "wood"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'node "default:ladder" 1',
|
|
|
|
recipe = {
|
|
|
|
{'craft "Stick"', '', 'craft "Stick"'},
|
|
|
|
{'craft "Stick"', 'craft "Stick"', 'craft "Stick"'},
|
|
|
|
{'craft "Stick"', '', 'craft "Stick"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Node compatibility with old 0.4
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_node(":stone", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_stone.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_stone.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "mineral",
|
|
|
|
is_ground_content = true,
|
|
|
|
often_contains_mineral = true, -- Texture atlas hint
|
|
|
|
material = minetest.digprop_stonelike(1.0),
|
|
|
|
dug_item = 'node "cobble" 1',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":dirt_with_grass", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_dirt.png^default_grass_side.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
|
|
|
dug_item = 'node "dirt" 1',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":dirt_with_grass_footsteps", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
|
|
|
inventory_image = "default_grass_footsteps.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
|
|
|
dug_item = 'node "dirt" 1',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":dirt", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_dirt.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_dirt.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":sand", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_sand.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_sand.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
2011-12-03 20:10:02 +01:00
|
|
|
cookresult_itemstring = 'node "default:glass" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":gravel", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_gravel.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_gravel.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_gravellike(1.0),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":sandstone", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_sandstone.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_sandstone.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
|
|
|
dug_item = 'node "sand" 1',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":clay", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_clay.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_clay.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_dirtlike(1.0),
|
|
|
|
dug_item = 'craft "lump_of_clay" 4',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":brick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_brick.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_brick.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_stonelike(1.0),
|
|
|
|
dug_item = 'craft "clay_brick" 4',
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":tree", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_tree_top.png", "default_tree.png", "default_tree.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_woodlike(1.0),
|
2011-12-03 21:31:12 +01:00
|
|
|
cookresult_itemstring = 'craft "default:coal_lump" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
furnace_burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":jungletree", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_jungletree_top.png", "default_jungletree.png", "default_jungletree.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_woodlike(1.0),
|
2011-12-03 21:31:12 +01:00
|
|
|
cookresult_itemstring = 'craft "default:coal_lump" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
furnace_burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":junglegrass", {
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.3,
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_junglegrass.png"},
|
|
|
|
inventory_image = "default_junglegrass.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
material = minetest.digprop_leaveslike(1.0),
|
|
|
|
furnace_burntime = 2,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":leaves", {
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_leaves.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_leaves.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
material = minetest.digprop_leaveslike(1.0),
|
2011-12-03 20:10:02 +01:00
|
|
|
extra_dug_item = 'node "default:sapling" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
extra_dug_item_rarity = 20,
|
|
|
|
furnace_burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":cactus", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_cactus_top.png", "default_cactus_side.png", "default_cactus_side.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_woodlike(0.75),
|
|
|
|
furnace_burntime = 15,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":papyrus", {
|
|
|
|
drawtype = "plantlike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_papyrus.png"},
|
|
|
|
inventory_image = "default_papyrus.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
walkable = false,
|
|
|
|
material = minetest.digprop_leaveslike(0.5),
|
|
|
|
furnace_burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":bookshelf", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_wood.png", "default_bookshelf.png", "default_bookshelf.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_woodlike(0.75),
|
|
|
|
furnace_burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":glass", {
|
|
|
|
drawtype = "glasslike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_glass.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_glass.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_glasslike(1.0),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":wooden_fence", {
|
|
|
|
drawtype = "fencelike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_wood.png"},
|
|
|
|
inventory_image = "default_fence.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
|
|
},
|
|
|
|
furnace_burntime = 15,
|
|
|
|
material = minetest.digprop_woodlike(0.75),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":rail", {
|
|
|
|
drawtype = "raillike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"},
|
|
|
|
inventory_image = "default_rail.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
--fixed = <default>
|
|
|
|
},
|
|
|
|
material = minetest.digprop_dirtlike(0.75),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":ladder", {
|
|
|
|
drawtype = "signlike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_ladder.png"},
|
|
|
|
inventory_image = "default_ladder.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
light_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
wall_mounted = true,
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
--wall_top = = <default>
|
|
|
|
--wall_bottom = = <default>
|
|
|
|
--wall_side = = <default>
|
|
|
|
},
|
|
|
|
furnace_burntime = 5,
|
|
|
|
material = minetest.digprop_woodlike(0.5),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":coalstone", {
|
2011-12-03 20:22:29 +01:00
|
|
|
tile_images = {"default_stone.png^mineral_coal.png"},
|
|
|
|
inventory_image = "default_stone.png^mineral_coal.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_stonelike(1.5),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":wood", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_wood.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_wood.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
furnace_burntime = 7,
|
|
|
|
material = minetest.digprop_woodlike(0.75),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":mese", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_mese.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_mese.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
furnace_burntime = 30,
|
|
|
|
material = minetest.digprop_stonelike(0.5),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":cloud", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_cloud.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_cloud.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":water_flowing", {
|
|
|
|
drawtype = "flowingliquid",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_water.png"},
|
2011-12-03 19:25:21 +01:00
|
|
|
alpha = WATER_ALPHA,
|
2011-12-03 20:10:02 +01:00
|
|
|
inventory_image = minetest.inventorycube("default_water.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "water_flowing",
|
|
|
|
liquid_alternative_source = "water_source",
|
|
|
|
liquid_viscosity = WATER_VISC,
|
|
|
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
|
|
|
special_materials = {
|
2011-12-03 20:10:02 +01:00
|
|
|
{image="default_water.png", backface_culling=false},
|
|
|
|
{image="default_water.png", backface_culling=true},
|
2011-12-03 19:25:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":water_source", {
|
|
|
|
drawtype = "liquid",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_water.png"},
|
2011-12-03 19:25:21 +01:00
|
|
|
alpha = WATER_ALPHA,
|
2011-12-03 20:10:02 +01:00
|
|
|
inventory_image = minetest.inventorycube("default_water.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "water_flowing",
|
|
|
|
liquid_alternative_source = "water_source",
|
|
|
|
liquid_viscosity = WATER_VISC,
|
|
|
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
|
|
|
special_materials = {
|
|
|
|
-- New-style water source material (mostly unused)
|
2011-12-03 20:10:02 +01:00
|
|
|
{image="default_water.png", backface_culling=false},
|
2011-12-03 19:25:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":lava_flowing", {
|
|
|
|
drawtype = "flowingliquid",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_lava.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_lava.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = false,
|
|
|
|
light_source = LIGHT_MAX - 1,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "lava_flowing",
|
|
|
|
liquid_alternative_source = "lava_source",
|
|
|
|
liquid_viscosity = LAVA_VISC,
|
|
|
|
damage_per_second = 4*2,
|
|
|
|
post_effect_color = {a=192, r=255, g=64, b=0},
|
|
|
|
special_materials = {
|
2011-12-03 20:10:02 +01:00
|
|
|
{image="default_lava.png", backface_culling=false},
|
|
|
|
{image="default_lava.png", backface_culling=true},
|
2011-12-03 19:25:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":lava_source", {
|
|
|
|
drawtype = "liquid",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_lava.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_lava.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = false,
|
|
|
|
light_source = LIGHT_MAX - 1,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "lava_flowing",
|
|
|
|
liquid_alternative_source = "lava_source",
|
|
|
|
liquid_viscosity = LAVA_VISC,
|
|
|
|
damage_per_second = 4*2,
|
|
|
|
post_effect_color = {a=192, r=255, g=64, b=0},
|
|
|
|
special_materials = {
|
|
|
|
-- New-style lava source material (mostly unused)
|
2011-12-03 20:10:02 +01:00
|
|
|
{image="default_lava.png", backface_culling=false},
|
2011-12-03 19:25:21 +01:00
|
|
|
},
|
|
|
|
furnace_burntime = 60,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":torch", {
|
|
|
|
drawtype = "torchlike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
|
|
|
|
inventory_image = "default_torch_on_floor.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
wall_mounted = true,
|
|
|
|
light_source = LIGHT_MAX-1,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
|
|
|
|
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
|
|
|
|
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
|
|
|
|
},
|
|
|
|
material = minetest.digprop_constanttime(0.0),
|
|
|
|
furnace_burntime = 4,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":sign_wall", {
|
|
|
|
drawtype = "signlike",
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_sign_wall.png"},
|
|
|
|
inventory_image = "default_sign_wall.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
wall_mounted = true,
|
|
|
|
metadata_name = "sign",
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
--wall_top = <default>
|
|
|
|
--wall_bottom = <default>
|
|
|
|
--wall_side = <default>
|
|
|
|
},
|
|
|
|
material = minetest.digprop_constanttime(0.5),
|
|
|
|
furnace_burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":chest", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
|
|
|
|
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_front.png", "default_chest_side.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "facedir_simple",
|
|
|
|
metadata_name = "chest",
|
|
|
|
material = minetest.digprop_woodlike(1.0),
|
|
|
|
furnace_burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":locked_chest", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
|
|
|
|
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_chest_top.png", "default_chest_lock.png", "default_chest_side.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "facedir_simple",
|
|
|
|
metadata_name = "locked_chest",
|
|
|
|
material = minetest.digprop_woodlike(1.0),
|
|
|
|
furnace_burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":furnace", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_furnace_side.png", "default_furnace_side.png", "default_furnace_side.png",
|
|
|
|
"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_furnace_side.png", "default_furnace_front.png", "default_furnace_side.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "facedir_simple",
|
|
|
|
metadata_name = "furnace",
|
|
|
|
material = minetest.digprop_stonelike(3.0),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":cobble", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_cobble.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_cobble.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
2011-12-03 20:10:02 +01:00
|
|
|
cookresult_itemstring = 'node "default:stone" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
material = minetest.digprop_stonelike(0.9),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":mossycobble", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_mossycobble.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_mossycobble.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_stonelike(0.8),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":steelblock", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_steel_block.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_steel_block.png"),
|
2011-12-03 19:25:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
material = minetest.digprop_stonelike(5.0),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":nyancat", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
|
|
|
|
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
|
|
|
|
inventory_image = "default_nc_front.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "facedir_simple",
|
|
|
|
material = minetest.digprop_stonelike(3.0),
|
|
|
|
furnace_burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":nyancat_rainbow", {
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_nc_rb.png"},
|
|
|
|
inventory_image = "default_nc_rb.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
material = minetest.digprop_stonelike(3.0),
|
|
|
|
furnace_burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":sapling", {
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_sapling.png"},
|
|
|
|
inventory_image = "default_sapling.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
material = minetest.digprop_constanttime(0.0),
|
|
|
|
furnace_burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":apple", {
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
2011-12-03 20:10:02 +01:00
|
|
|
tile_images = {"default_apple.png"},
|
|
|
|
inventory_image = "default_apple.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
light_propagates = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
dug_item = 'craft "apple" 1',
|
|
|
|
material = minetest.digprop_constanttime(0.0),
|
|
|
|
furnace_burntime = 3,
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Crafting items
|
|
|
|
-- Compatibility to 0.3 and old 0.4
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_craftitem(":Stick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_stick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
--furnace_burntime = ...,
|
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":paper", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_paper.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":book", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_book.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":lump_of_coal", {
|
2011-12-03 21:31:12 +01:00
|
|
|
image = "default_coal_lump.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
furnace_burntime = 40;
|
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":lump_of_iron", {
|
2011-12-03 21:31:12 +01:00
|
|
|
image = "default_iron_lump.png",
|
2011-12-03 20:10:02 +01:00
|
|
|
cookresult_itemstring = 'craft "default:steel_ingot" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":lump_of_clay", {
|
2011-12-03 21:31:12 +01:00
|
|
|
image = "default_clay_lump.png",
|
2011-12-03 20:10:02 +01:00
|
|
|
cookresult_itemstring = 'craft "default:clay_brick" 1',
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":steel_ingot", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_steel_ingot.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":clay_brick", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_clay_brick.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":rat", {
|
|
|
|
image = "rat.png",
|
|
|
|
cookresult_itemstring = 'craft "cooked_rat" 1',
|
|
|
|
on_drop = function(item, dropper, pos)
|
|
|
|
minetest.env:add_rat(pos)
|
|
|
|
return true
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":cooked_rat", {
|
|
|
|
image = "cooked_rat.png",
|
|
|
|
cookresult_itemstring = 'craft "scorched_stuff" 1',
|
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
on_use = minetest.craftitem_eat(6),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":scorched_stuff", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_scorched_stuff.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":firefly", {
|
|
|
|
image = "firefly.png",
|
|
|
|
on_drop = function(item, dropper, pos)
|
|
|
|
minetest.env:add_firefly(pos)
|
|
|
|
return true
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":apple", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_apple.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
on_use = minetest.craftitem_eat(4),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(":apple_iron", {
|
2011-12-03 20:10:02 +01:00
|
|
|
image = "default_apple_iron.png",
|
2011-12-03 19:25:21 +01:00
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
on_use = minetest.craftitem_eat(8),
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Falling stuff
|
|
|
|
--
|
|
|
|
|
2011-12-03 20:10:02 +01:00
|
|
|
default.register_falling_node("sand", "default_sand.png")
|
|
|
|
default.register_falling_node("gravel", "default_gravel.png")
|
2011-12-03 19:25:21 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Global callbacks
|
|
|
|
--
|
|
|
|
|
|
|
|
function on_placenode(p, node)
|
|
|
|
nodeupdate(p)
|
|
|
|
end
|
|
|
|
minetest.register_on_placenode(on_placenode)
|
|
|
|
|
|
|
|
function on_dignode(p, node)
|
|
|
|
nodeupdate(p)
|
|
|
|
end
|
|
|
|
minetest.register_on_dignode(on_dignode)
|
2011-12-03 22:50:31 +01:00
|
|
|
--]]
|
2011-12-03 19:25:21 +01:00
|
|
|
-- END
|