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
|
minetest.register_node("nibbles:floor",{
description = "Nibbles Floor",
tiles = {"nibbles_floor.png"},
paramtype = "light",
groups = {cracky = 3, disable_jump = 1, not_in_creative_inventory = 0},
})
minetest.register_node("nibbles:wall",{
description = "Nibbles Wall",
tiles = {
"nibbles_wall.png",
"nibbles_wall.png",
"nibbles_wall_side.png",
"nibbles_wall_side.png",
"nibbles_wall_side.png",
"nibbles_wall_side.png",
},
paramtype = "light",
groups = {cracky = 3, not_in_creative_inventory = 0},
})
minetest.register_node("nibbles:placer",{
description = "Nibbles",
tiles = {"nibbles_wall_side.png^nibbles_button.png"},
paramtype = "light",
groups = {cracky = 3, not_in_creative_inventory = 0},
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local schem = minetest.get_modpath("nibbles").."/schems/nibbles_level_1.mts"
minetest.place_schematic({x=pos.x,y=pos.y-1,z=pos.z},schem,0, "air", true)
end,
})
|