summaryrefslogtreecommitdiff
path: root/mario/blocks.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-26 14:08:55 -0700
committerDonBatman <serfdon@gmail.com>2015-10-26 14:08:55 -0700
commit551b77b9dc7da84299c39f333314eaa36e699981 (patch)
tree38a8fc427e49db51b0e599002f8b9d77f3afb573 /mario/blocks.lua
parenta9b9c4a94d8c4da128284b3de7626b7078680514 (diff)
updated schem and some textures
Diffstat (limited to 'mario/blocks.lua')
-rw-r--r--mario/blocks.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/mario/blocks.lua b/mario/blocks.lua
index a800526..f2afdac 100644
--- a/mario/blocks.lua
+++ b/mario/blocks.lua
@@ -50,3 +50,49 @@ minetest.register_node("mario:coin", {
walkable = false,
groups = {cracky = 2},
})
+
+local nbox = {
+ type = "fixed",
+ fixed = {
+ {-0.25, -0.5, -0.25, 0.25, -0.0625, 0.25},
+ {-0.3125, -0.4375, -0.3125, 0.3125, 0.4375, 0.3125},
+ {-0.375, -0.375, -0.375, 0.375, 0.375, 0.375},
+ {-0.375, -0.1875, -0.4375, 0.375, 0.3125, 0.4375},
+ {-0.4375, -0.1875, -0.5, 0.4375, 0.1875, 0.5},
+ {-0.1875, 0.4375, -0.1875, 0.1875, 0.5, 0.1875},
+ {-0.5, -0.1875, -0.4375, 0.5, 0.1875, 0.4375},
+ {-0.4375, -0.1875, -0.375, 0.4375, 0.3125, 0.375},
+ }
+ }
+
+minetest.register_node("mario:mushroom",{
+ description = "Mushroom",
+ tiles = {
+ "mario_mushroom_top.png",
+ "mario_mushroom_bottom.png",
+ "mario_mushroom.png",
+ "mario_mushroom.png",
+ "mario_mushroom.png",
+ "mario_mushroom.png",
+ },
+ drawtype = "nodebox",
+ paramtype = "light",
+ groups = {cracky = 3},
+ node_box = nbox,
+})
+
+minetest.register_node("mario:mushroom_green",{
+ description = "Green Mushroom",
+ tiles = {
+ "mario_mushroom_top_g.png",
+ "mario_mushroom_bottom.png",
+ "mario_mushroom_g.png",
+ "mario_mushroom_g.png",
+ "mario_mushroom_g.png",
+ "mario_mushroom_g.png",
+ },
+ drawtype = "nodebox",
+ paramtype = "light",
+ groups = {cracky = 3},
+ node_box = nbox,
+})