-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
80 lines (73 loc) · 2.02 KB
/
init.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
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
-- By farfadet46
-- https://github.com/farfadet46
-- https://twitter.com/farfadet46
local mod_name = minetest.get_current_modname()
--[[
minetest.register_node( mod_name .. ":sac_sable",{
description = "sac de sable",
drawtype="node",
tiles ={"sac_sable.png"},
inventory_image = "inv_sac_sable.png",
wield_image = "inv_sac_sable.png",
paramtype="light",
groups = {crumbly=2},
sounds = default.node_sound_sand_defaults(),
})
]]--
minetest.register_node( mod_name .. ":sac_sable",{
description = "sac de sable",
drawtype="mesh",
mesh="sac.obj",
tiles ={"sac.png"},
inventory_image = "inv_sac_sable.png",
wield_image = "inv_sac_sable.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly=2},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node( mod_name .. ":boue",{
description = "Boue",
drawtype="node",
tiles ={"boue.png"},
paramtype="light",
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node( mod_name .. ":boue1",{
description = "Boue1",
drawtype="node",
tiles ={"boue1.png"},
paramtype="light",
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_snow_footstep", gain=0.25},
}),
})
minetest.register_node( mod_name .. ":mitraillette",{
description = "Mitraillette fixe",
drawtype = "mesh",
mesh = "mitraillette.b3d",
paramtype = "light",
paramtype2 = "facedir",
tiles = {"mitrailette.png"},
inventory_image = "img_mitraillette.png",
groups = {cracky=1},
on_rightclick = function(pos, node, player, pointed_thing)
minetest.sound_play("tir")
end,
})
minetest.register_node( mod_name .. ":barbele",{
description = "barbelé",
drawtype = "mesh",
mesh = "barbele.b3d",
damage_per_second = 1, -- supprimer cette ligne pour ne pas faire de dégat aux joueurs.
paramtype = "light",
paramtype2 = "facedir",
tiles = {"barbele.png"},
inventory_image = "img_barbele.png",
groups = {cracky=1},
--on_rightclick = function(pos, node, player, pointed_thing)
-- minetest.sound_play("tir")
--end,
})