Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function x(value)
- return (value - (160/2)) / 160
- end
- function z(value)
- return (value - (160/2)) / 160
- end
- function y(value)
- return (value + (160/2)) / 160
- end
- local nodebox_c4 = {
- --c4
- { x(240.000),y(32.000),z(400.000),
- x(320.000),y(0.000),z(240.000) },
- }
- minetest.register_node("c4:c4" {
- description = "C4 Explosive",
- inventory_image = "c4_c4.png",
- type = "fixed",
- nodebox = {type="fixed",fixed=nodebox_c4}
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement