-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
75 lines (75 loc) · 2.21 KB
/
init.lua
File metadata and controls
75 lines (75 loc) · 2.21 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
minetest.register_node("xspikes:steel_spike", {
description = "Steel Spikes",
damage_per_second = 4,
drawtype = "firelike",
paramtype = "light",
groups = {cracky=2},
liquid_viscosity = 1,
liquidtype = "source",
liquid_alternative_flowing = "xspikes:steel_spike",
liquid_alternative_source = "xspikes:steel_spike",
liquid_renewable = false,
liquid_range = 0,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
tiles = {"xspikes_steel_spike.png"},
})
minetest.register_node("xspikes:wood_spike", {
description = "Wood Spikes",
damage_per_second = 2,
drawtype = "firelike",
paramtype = "light",
groups = {choppy=3,flammable=3},
liquid_viscosity = 1,
liquidtype = "source",
liquid_alternative_flowing = "xspikes:wood_spike",
liquid_alternative_source = "xspikes:wood_spike",
liquid_renewable = false,
liquid_range = 0,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
tiles = {"xspikes_wood_spike.png"},
})
minetest.register_node("xspikes:punji", {
description = "Punji",
damage_per_second = 3,
drawtype = "firelike",
paramtype = "light",
groups = {oddly_breakable_by_hand = 1,snappy = 3,flammable=3},
liquid_viscosity = 6,
liquidtype = "source",
liquid_alternative_flowing = "xspikes:punji",
liquid_alternative_source = "xspikes:punji",
liquid_renewable = false,
liquid_range = 0,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
tiles = {"xspikes_punji.png"},
})
minetest.register_craft({
output = '"xspikes:steel_spike" 3',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot', },
{'default:steel_ingot', '', 'default:steel_ingot', },
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot', },
}
})
minetest.register_craft({
output = '"xspikes:wood_spike" 3',
recipe = {
{'group:wood', '', 'group:wood', },
{'group:wood', '', 'group:wood', },
{'group:wood', 'group:wood', 'group:wood', },
}
})
minetest.register_craft({
output = '"xspikes:punji" 2',
recipe = {
{'default:papyrus', '', 'default:papyrus', },
{'default:papyrus', '', 'default:papyrus', },
{'default:papyrus', 'default:papyrus', 'default:papyrus', },
}
})