summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nibbles/Nibbler_-_1983_-_Rocket_Company.jpgbin0 -> 108804 bytes
-rw-r--r--nibbles/init.lua30
-rw-r--r--nibbles/schems/nibbles.mtsbin0 -> 189 bytes
-rw-r--r--nibbles/textures/nibbles_button.pngbin0 -> 166 bytes
-rw-r--r--nibbles/textures/nibbles_floor.pngbin0 -> 144 bytes
-rw-r--r--nibbles/textures/nibbles_wall.pngbin0 -> 190 bytes
-rw-r--r--nibbles/textures/nibbles_wall_side.pngbin0 -> 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
new file mode 100644
index 0000000..3a9a41e
--- /dev/null
+++ b/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg
Binary files differ
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
new file mode 100644
index 0000000..9bf3daf
--- /dev/null
+++ b/nibbles/schems/nibbles.mts
Binary files differ
diff --git a/nibbles/textures/nibbles_button.png b/nibbles/textures/nibbles_button.png
new file mode 100644
index 0000000..07bfca1
--- /dev/null
+++ b/nibbles/textures/nibbles_button.png
Binary files differ
diff --git a/nibbles/textures/nibbles_floor.png b/nibbles/textures/nibbles_floor.png
new file mode 100644
index 0000000..f9ab2ef
--- /dev/null
+++ b/nibbles/textures/nibbles_floor.png
Binary files differ
diff --git a/nibbles/textures/nibbles_wall.png b/nibbles/textures/nibbles_wall.png
new file mode 100644
index 0000000..c7392e8
--- /dev/null
+++ b/nibbles/textures/nibbles_wall.png
Binary files differ
diff --git a/nibbles/textures/nibbles_wall_side.png b/nibbles/textures/nibbles_wall_side.png
new file mode 100644
index 0000000..40b2141
--- /dev/null
+++ b/nibbles/textures/nibbles_wall_side.png
Binary files differ