diff options
-rw-r--r-- | nibbles/Nibbler_-_1983_-_Rocket_Company.jpg | bin | 0 -> 108804 bytes | |||
-rw-r--r-- | nibbles/init.lua | 30 | ||||
-rw-r--r-- | nibbles/schems/nibbles.mts | bin | 0 -> 189 bytes | |||
-rw-r--r-- | nibbles/textures/nibbles_button.png | bin | 0 -> 166 bytes | |||
-rw-r--r-- | nibbles/textures/nibbles_floor.png | bin | 0 -> 144 bytes | |||
-rw-r--r-- | nibbles/textures/nibbles_wall.png | bin | 0 -> 190 bytes | |||
-rw-r--r-- | nibbles/textures/nibbles_wall_side.png | bin | 0 -> 145 bytes |
7 files changed, 30 insertions, 0 deletions
diff --git a/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg b/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg Binary files differnew file mode 100644 index 0000000..3a9a41e --- /dev/null +++ b/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg 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, +}) diff --git a/nibbles/schems/nibbles.mts b/nibbles/schems/nibbles.mts Binary files differnew file mode 100644 index 0000000..9bf3daf --- /dev/null +++ b/nibbles/schems/nibbles.mts diff --git a/nibbles/textures/nibbles_button.png b/nibbles/textures/nibbles_button.png Binary files differnew file mode 100644 index 0000000..07bfca1 --- /dev/null +++ b/nibbles/textures/nibbles_button.png diff --git a/nibbles/textures/nibbles_floor.png b/nibbles/textures/nibbles_floor.png Binary files differnew file mode 100644 index 0000000..f9ab2ef --- /dev/null +++ b/nibbles/textures/nibbles_floor.png diff --git a/nibbles/textures/nibbles_wall.png b/nibbles/textures/nibbles_wall.png Binary files differnew file mode 100644 index 0000000..c7392e8 --- /dev/null +++ b/nibbles/textures/nibbles_wall.png diff --git a/nibbles/textures/nibbles_wall_side.png b/nibbles/textures/nibbles_wall_side.png Binary files differnew file mode 100644 index 0000000..40b2141 --- /dev/null +++ b/nibbles/textures/nibbles_wall_side.png |