From 55ef5e62307bfba8b320fac6f2d60dad526aed3c Mon Sep 17 00:00:00 2001 From: DonBatman Date: Tue, 27 Oct 2015 05:36:41 -0700 Subject: added nibbles map --- nibbles/Nibbler_-_1983_-_Rocket_Company.jpg | Bin 0 -> 108804 bytes nibbles/init.lua | 30 ++++++++++++++++++++++++++++ nibbles/schems/nibbles.mts | Bin 0 -> 189 bytes nibbles/textures/nibbles_button.png | Bin 0 -> 166 bytes nibbles/textures/nibbles_floor.png | Bin 0 -> 144 bytes nibbles/textures/nibbles_wall.png | Bin 0 -> 190 bytes nibbles/textures/nibbles_wall_side.png | Bin 0 -> 145 bytes 7 files changed, 30 insertions(+) create mode 100644 nibbles/Nibbler_-_1983_-_Rocket_Company.jpg create mode 100644 nibbles/init.lua create mode 100644 nibbles/schems/nibbles.mts create mode 100644 nibbles/textures/nibbles_button.png create mode 100644 nibbles/textures/nibbles_floor.png create mode 100644 nibbles/textures/nibbles_wall.png create mode 100644 nibbles/textures/nibbles_wall_side.png (limited to 'nibbles') diff --git a/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg b/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg new file mode 100644 index 0000000..3a9a41e Binary files /dev/null and b/nibbles/Nibbler_-_1983_-_Rocket_Company.jpg 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 Binary files /dev/null and b/nibbles/schems/nibbles.mts differ diff --git a/nibbles/textures/nibbles_button.png b/nibbles/textures/nibbles_button.png new file mode 100644 index 0000000..07bfca1 Binary files /dev/null and b/nibbles/textures/nibbles_button.png differ diff --git a/nibbles/textures/nibbles_floor.png b/nibbles/textures/nibbles_floor.png new file mode 100644 index 0000000..f9ab2ef Binary files /dev/null and b/nibbles/textures/nibbles_floor.png differ diff --git a/nibbles/textures/nibbles_wall.png b/nibbles/textures/nibbles_wall.png new file mode 100644 index 0000000..c7392e8 Binary files /dev/null and b/nibbles/textures/nibbles_wall.png differ diff --git a/nibbles/textures/nibbles_wall_side.png b/nibbles/textures/nibbles_wall_side.png new file mode 100644 index 0000000..40b2141 Binary files /dev/null and b/nibbles/textures/nibbles_wall_side.png differ -- cgit v1.2.3