-
Notifications
You must be signed in to change notification settings - Fork 7
/
default_nodes.lua
47 lines (39 loc) · 1.94 KB
/
default_nodes.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
-- mods/fachwerk/nodes.lua
-- =======================
-- See README.md for licensing and other information.
local S = minetest.get_translator("fachwerk")
-- fachwerk.register_fachwerk(basename, texture, description, craft_from)
fachwerk.register_fachwerk("clay", "default_clay.png", "Clay", "default:clay")
fachwerk.register_fachwerk("brick", "default_brick.png", "Bricks", "default:brick")
fachwerk.register_fachwerk("stone_brick", "default_stone_brick.png", "Stone Brick", "default:stonebrick")
fachwerk.register_fachwerk("cobble", "default_cobble.png", "Cobble", "default:cobble")
fachwerk.register_fachwerk("stone", "default_stone.png", "Stone", "default:stone")
fachwerk.register_fachwerk("desert_stone", "default_desert_stone.png", "Desert Stone", "default:desert_stone")
fachwerk.register_fachwerk("white", "wool_white.png", "White Wool", "wool:white")
fachwerk.register_fachwerk("grey", "wool_grey.png", "Grey Wool", "wool:grey")
fachwerk.register_fachwerk("yellow", "wool_yellow.png", "Yellow Wool", "wool:yellow")
fachwerk.register_fachwerk("wood", "default_wood.png", "Wood", "default:wood")
fachwerk.register_fachwerk("junglewood", "default_junglewood.png", "Junglewood", "default:junglewood")
--
-- Special Nodes (these are not supported by the API)
--
minetest.register_node("fachwerk:framed_glass", {
description = S("Timber-framed Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"fachwerk_blank.png^default_glass_detail.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("fachwerk_blank.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
use_texture_alpha = "blend",
groups = {cracky = 3,oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "fachwerk:framed_glass 8",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:wood", "default:glass", "group:wood"},
{"group:wood", "group:wood", "group:wood"}
}
})