diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-27 05:36:41 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-27 05:36:41 -0700 |
commit | 55ef5e62307bfba8b320fac6f2d60dad526aed3c (patch) | |
tree | df371860c06d0776b3e89c748b4584fa71f793da /nibbles/init.lua | |
parent | 3837307e5b81743dc6421193ab00f9c15e64aa83 (diff) |
added nibbles map
Diffstat (limited to 'nibbles/init.lua')
-rw-r--r-- | nibbles/init.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nibbles/init.lua b/nibbles/init.lua new file mode 100644 index 0000000..ae1ca16 --- /dev/null +++ b/nibbles/init.lua @@ -0,0 +1,30 @@ +minetest.register_node("nibbles:floor",{ + description = "Floor", + tiles = {"nibbles_floor.png"}, + paramtype = "light", + groups = {cracky = 3, disable_jump = 1, not_in_creative_inventory = 0}, +}) + +minetest.register_node("nibbles:wall",{ + description = "Floor", + 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.mts" + minetest.place_schematic({x=pos.x,y=pos.y-1,z=pos.z},schem,0, "air", true) + end, +}) |