forked from Skandarella/livingdesert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyurts.lua
More file actions
86 lines (75 loc) · 2.69 KB
/
yurts.lua
File metadata and controls
86 lines (75 loc) · 2.69 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
local S = minetest.get_translator("livingdesert")
-- Yurt Building Parts
minetest.register_node("livingdesert:yurt_outside", {
description = S("Yurt lower outside part"),
tiles = {
"livingdesert_yurt_outside.png",
"livingdesert_yurt_outside.png",
"livingdesert_yurt_outside_top.png"
},
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
flammable = 3, wool = 1},
sounds = default.node_sound_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node,
})
minetest.register_node("livingdesert:yurt_outsidesecond", {
description = S("Yurt second lower outside part"),
tiles = {
"livingdesert_yurt_outside_top.png",
"livingdesert_yurt_outside_top.png",
"livingdesert_yurt_outside.png"
},
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
flammable = 3, wool = 1},
sounds = default.node_sound_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node,
})
minetest.register_node("livingdesert:yurt_outside2", {
description = S("Yurt upper outside part"),
tiles = {
"livingdesert_yurt_outside2_top.png",
"livingdesert_yurt_outside2_top.png",
"livingdesert_yurt_outside2.png"
},
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
flammable = 3, wool = 1},
sounds = default.node_sound_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node,
})
minetest.register_node("livingdesert:yurt_inside", {
description = S("Yurt lower inside part"),
tiles = {"livingdesert_yurt_inside.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("livingdesert:yurt_inside2", {
description = S("Yurt upper inside part"),
tiles = {"livingdesert_yurt_inside2.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "livingdesert:yurt_outside 4",
recipe = {{"default:stick", "livingdesert:pine_trunk", "default:stone", "livingdesert:pine_wood"}}
})
minetest.register_craft({
output = "livingdesert:yurt_outside2 4",
recipe = {{"default:stick", "wool:white", "livingdesert:pine_wood", "default:stone"}}
})
minetest.register_craft({
output = "livingdesert:yurt_outsidesecond 4",
recipe = {{"default:stick", "wool:white", "livingdesert:pine_wood"}}
})
minetest.register_craft({
output = "livingdesert:yurt_inside 4",
recipe = {{"default:stick", "livingdesert:pine_wood"}}
})
minetest.register_craft({
output = "livingdesert:yurt_inside2 4",
recipe = {{"default:stick", "wool:white"}}
})