maple-cd2025/crafts.lua

43 lines
1.4 KiB
Lua
Raw Normal View History

2020-08-23 23:24:17 -04:00
local S = maple.get_translator;
default.register_fence("maple:fence_maple_wood", {
description = S("Maple Fence"),
texture = "maple_fence.png",
inventory_image = "default_fence_overlay.png^maple_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^maple_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "maple:maple_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
})
2020-08-24 00:44:10 -04:00
default.register_fence_rail("default:fence_rail_maple_wood", {
description = S("Maple Fence Rail"),
texture = "maple_fence.png",
inventory_image = "default_fence_rail_overlay.png^maple_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_rail_overlay.png^maple_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126",
material = "maple:maple_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
})
minetest.register_craft({
output = 'maple:maple_wood 4',
recipe = {
{'maple:maple_tree'},
}
})
minetest.register_craft({
type = "fuel",
recipe = "maple:maple_sapling",
burntime = 12,
})
minetest.register_craft({
type = "fuel",
recipe = "maple:fence_maple_wood",
burntime = 8,
})