summaryrefslogtreecommitdiff
path: root/mario/init.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-26 12:48:12 -0700
committerDonBatman <serfdon@gmail.com>2015-10-26 12:48:12 -0700
commita9b9c4a94d8c4da128284b3de7626b7078680514 (patch)
tree9b41be76f41a843feae53e313688c985b0719513 /mario/init.lua
parenta593cc543219453baee971860072d286f4c2c24c (diff)
new pacmine schems
added mario
Diffstat (limited to 'mario/init.lua')
-rw-r--r--mario/init.lua66
1 files changed, 66 insertions, 0 deletions
diff --git a/mario/init.lua b/mario/init.lua
new file mode 100644
index 0000000..328f346
--- /dev/null
+++ b/mario/init.lua
@@ -0,0 +1,66 @@
+
+dofile(minetest.get_modpath("mario").."/pipes.lua")
+dofile(minetest.get_modpath("mario").."/blocks.lua")
+dofile(minetest.get_modpath("mario").."/portal.lua")
+dofile(minetest.get_modpath("mario").."/turtle.lua")
+
+minetest.register_node("mario:placer",{
+ description = "Reset",
+ tiles = {
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png^mario_m.png",
+ },
+ drawtype = "normal",
+ paramtype = "light",
+ groups = {cracky = 3},
+ on_rightclick = function(pos, node, player, itemstack, pointed_thing)
+ local schem = minetest.get_modpath("mario").."/schems/mario.mts"
+ minetest.place_schematic({x=pos.x-1,y=pos.y-2,z=pos.z-2},schem,0, "air", true)
+ player:setpos({x=pos.x+16,y=pos.y+0.1,z=pos.z+1})
+ print(name)
+ player:set_physics_override(1,1,0.3,true,false)
+ minetest.add_entity({x=pos.x+3,y=pos.y+12,z=pos.z+1}, "mario:1")
+ minetest.add_entity({x=pos.x+30,y=pos.y+12,z=pos.z+1}, "mario:1")
+ end,
+})
+minetest.register_node("mario:placer2",{
+ description = "Mario",
+ tiles = {
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png",
+ "mario_border.png^mario_m.png",
+ },
+ drawtype = "normal",
+ paramtype = "light",
+ groups = {cracky = 3},
+ on_rightclick = function(pos, node, player, itemstack, pointed_thing)
+ local schem = minetest.get_modpath("mario").."/schems/mario.mts"
+ minetest.place_schematic({x=pos.x-1,y=pos.y-1,z=pos.z-2},schem,0, "air", true)
+ end,
+})
+minetest.register_node("mario:exit",{
+ description = "Exit",
+ tiles = {
+ "mario_grey.png",
+ "mario_grey.png",
+ "mario_grey.png",
+ "mario_grey.png",
+ "mario_grey.png",
+ "mario_grey.png^mario_m.png",
+ },
+ drawtype = "normal",
+ paramtype = "light",
+ groups = {cracky = 3},
+ on_rightclick = function(pos, node, player, itemstack, pointed_thing)
+ player:setpos({x=pos.x-5,y=pos.y+0.1,z=pos.z-3})
+ print(name)
+ player:set_physics_override(1,1,1,true,false)
+ end,
+})