View difference between Paste ID: fBbrKjAA and 5Sam3DeR
SHOW: | | - or go back to the newest paste.
1
function x(value)
2
	 return (value - (160/2)) / 160
3
end
4
5
function z(value)
6
	 return (value - (160/2)) / 160
7
end
8
9
function y(value)
10
	 return (value + (160/2)) / 160
11
end
12
13
local nodebox_c4 = {
14
	--c4
15
	{ x(240.000),y(32.000),z(400.000),
16
		x(320.000),y(0.000),z(240.000) },
17-
}
17+
}
18
minetest.register_node("c4:c4" {
19
	description = "C4 Explosive",
20
	inventory_image = "c4_c4.png",
21
	type = "fixed",
22
	nodebox = {type="fixed",fixed=nodebox_c4}
23
})