Post your mod requests/ideas here

User avatar
rubenwardy
Moderator
Posts: 6280
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

jojoa1997 wrote:for elevators you could have walkthrough items that change the player gravity to a negative number. also can anyone make a gravity changing mod
Gravity is hard coded.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

rubenwardy wrote:
jojoa1997 wrote:for elevators you could have walkthrough items that change the player gravity to a negative number. also can anyone make a gravity changing mod
Gravity is hard coded.
Nope.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
rubenwardy
Moderator
Posts: 6280
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

jojoa1997 wrote:Not with this commit https://github.com/minetest/minetest/co ... 5d4568a46d
Wow!

User avatar
dj22
Member
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Post

semi automatic elevator





Code: Select all



minetest.register_node("ele:button6", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, -0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, -0.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, -0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, -0.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
minetest.env:add_node(pos, {name="ele:button7"})
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')


minetest.env:add_node(pos, {name="ele:button7"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button7", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, 0.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, 0.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)

    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button8"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button8", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.2, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.2, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main',4*4, 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button9"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})













minetest.register_node("ele:button9", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button10"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})




minetest.register_node("ele:button10", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button11"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})












minetest.register_node("ele:button11", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main',4*4, 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button12"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button12", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.6, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.6, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.6, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.6, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button13"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})










minetest.register_node("ele:button13", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button14"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button14", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.8, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.8, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.8, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.8, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button15"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button15", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button16"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button16", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button17"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button17", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button18"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})











minetest.register_node("ele:button18", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.2, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.2, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button19"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button19", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button20"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button20", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button21"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button21", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
minetest.env:add_node(pos, {name="ele:button22"})
player:get_inventory():add_item('main', 'default:iron_lump 1')

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})





























minetest.register_node("ele:button22", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))

minetest.env:add_node(pos, {name="ele:button23"})
player:get_inventory():add_item('main', 'default:iron_lump 1')

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})













minetest.register_node("ele:button23", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button24"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button24", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button25"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})


minetest.register_node("ele:button25", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button26"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})



minetest.register_node("ele:button26", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button27"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button27", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button28"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button28", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button4"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})












minetest.register_abm(
    {nodenames = {"ele:button8"},
    interval = 1,
    chance = 2,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button9"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button9"},
    interval = 1,
    chance = 4,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button10"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button10"},
    interval = 1,
    chance = 6,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button11"})


    end,


})








minetest.register_abm(
    {nodenames = {"ele:button11"},
    interval = 1,
    chance = 8,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button12"})


    end,


})






minetest.register_abm(
    {nodenames = {"ele:button12"},
    interval = 1,
    chance = 10,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button13"})


    end,


})




minetest.register_abm(
    {nodenames = {"ele:button13"},
    interval = 1,
    chance = 12,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button14"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button14"},
    interval = 1,
    chance = 14,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button15"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button15"},
    interval = 1,
    chance = 16,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button16"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button16"},
    interval = 1,
    chance = 18,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button17"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button17"},
    interval = 1,
    chance = 20,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button18"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button18"},
    interval = 1,
    chance = 22,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button19"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button19"},
    interval = 1,
    chance = 24,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button20"})


    end,


})


minetest.register_abm(
    {nodenames = {"ele:button20"},
    interval = 1,
    chance = 26,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button21"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button22"},
    interval = 1,
    chance = 2,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button23"})


    end,


})







minetest.register_abm(
    {nodenames = {"ele:button23"},
    interval = 1,
    chance = 4,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button24"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button24"},
    interval = 1,
    chance = 6,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button25"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button25"},
    interval = 1,
    chance = 8,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button26"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button26"},
    interval = 1,
    chance = 10,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button27"})


    end,


})

User avatar
dj22
Member
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Post

rubenwardy wrote:
jojoa1997 wrote:for elevators you could have walkthrough items that change the player gravity to a negative number. also can anyone make a gravity changing mod
Gravity is hard coded.
this isn't

Code: Select all

minetest.register_node("ele:button6", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, -0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, -0.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, -0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, -0.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
minetest.env:add_node(pos, {name="ele:button7"})
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')


minetest.env:add_node(pos, {name="ele:button7"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button7", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, 0.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.5, 0.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.5, 0.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)

    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button8"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button8", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.2, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.2, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main',4*4, 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button9"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})













minetest.register_node("ele:button9", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button10"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})




minetest.register_node("ele:button10", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 4*4,'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button11"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})












minetest.register_node("ele:button11", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main',4*4, 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button12"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button12", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.6, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.6, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.6, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.6, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button13"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})










minetest.register_node("ele:button13", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button14"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button14", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.8, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.8, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.8, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.8, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button15"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button15", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button16"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button16", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button17"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})









minetest.register_node("ele:button17", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button18"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})











minetest.register_node("ele:button18", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.2, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.2, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.2, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button19"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button19", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button20"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button20", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button21"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button21", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
minetest.env:add_node(pos, {name="ele:button22"})
player:get_inventory():add_item('main', 'default:iron_lump 1')

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})





























minetest.register_node("ele:button22", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.4, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.4, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))

minetest.env:add_node(pos, {name="ele:button23"})
player:get_inventory():add_item('main', 'default:iron_lump 1')

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})













minetest.register_node("ele:button23", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button24"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button24", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 1.1, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 1.1, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button25"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})


minetest.register_node("ele:button25", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.9, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.9, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button26"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})



minetest.register_node("ele:button26", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.7, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.7, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button27"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})







minetest.register_node("ele:button27", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.5, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.5, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button28"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})








minetest.register_node("ele:button28", {
    drawtype = "nodebox",
    tiles = {"light.png"},
   legacy_facedir_simple = true,

   
    paramtype = "light",
    paramtype2 = "wallmounted",
    walkable = true,
    groups = {cracky=3},
 selection_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}

      }    
    },

    node_box = {
        type = "fixed",
        fixed = {{ -0.5, -0.5, -0.5, 0.6, 0.3, 0.5},
    
                    { -0.5, -0.5, -0.5, 0.6, 0.3, 0.5}



      }    
      },

    

      description="ore miner",
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "size[8,9]"..
                      "list[current_name;main;0,0;3,4;]"..
                "list[current_name;main;4,0;3,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "iron_miner")
        local inv = meta:get_inventory()
        inv:set_size("main", 4*4)
    end,
    on_punch = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff in chest at "..minetest.pos_to_string(pos))
    end,
    on_metadata_inventory_put = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " moves stuff to chest at "..minetest.pos_to_string(pos))
player:get_inventory():add_item('main', 'default:iron_lump 1')

minetest.env:add_node(pos, {name="ele:button4"})

    end,
    on_metadata_inventory_take = function(pos, listname, index, stack, player)
        minetest.log("action", player:get_player_name()..
                " takes stuff from chest at "..minetest.pos_to_string(pos))
    end,


})












minetest.register_abm(
    {nodenames = {"ele:button8"},
    interval = 1,
    chance = 2,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button9"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button9"},
    interval = 1,
    chance = 4,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button10"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button10"},
    interval = 1,
    chance = 6,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button11"})


    end,


})








minetest.register_abm(
    {nodenames = {"ele:button11"},
    interval = 1,
    chance = 8,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button12"})


    end,


})






minetest.register_abm(
    {nodenames = {"ele:button12"},
    interval = 1,
    chance = 10,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button13"})


    end,


})




minetest.register_abm(
    {nodenames = {"ele:button13"},
    interval = 1,
    chance = 12,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button14"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button14"},
    interval = 1,
    chance = 14,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button15"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button15"},
    interval = 1,
    chance = 16,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button16"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button16"},
    interval = 1,
    chance = 18,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button17"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button17"},
    interval = 1,
    chance = 20,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button18"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button18"},
    interval = 1,
    chance = 22,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button19"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button19"},
    interval = 1,
    chance = 24,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button20"})


    end,


})


minetest.register_abm(
    {nodenames = {"ele:button20"},
    interval = 1,
    chance = 26,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button21"})


    end,


})





minetest.register_abm(
    {nodenames = {"ele:button22"},
    interval = 1,
    chance = 2,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button23"})


    end,


})







minetest.register_abm(
    {nodenames = {"ele:button23"},
    interval = 1,
    chance = 4,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button24"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button24"},
    interval = 1,
    chance = 6,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button25"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button25"},
    interval = 1,
    chance = 8,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button26"})


    end,


})

minetest.register_abm(
    {nodenames = {"ele:button26"},
    interval = 1,
    chance = 10,
    action = function(pos)

minetest.env:add_node(pos, {name="ele:button27"})


    end,


})

User avatar
AspireMint
Member
Posts: 362
Joined: Mon Jul 09, 2012 12:59
GitHub: AspireMint
IRC: AspireMint
In-game: AspireMint
Location: Stuck at spawn

by AspireMint » Post

Hello,
i have idea, aquarium with animated fish ^^
"There's 🧁for you, 🧁for me, 🧁for sale, 🧁for free"

"I came here to drink milk and kick ass, and I've just finished my milk!" ― Maurice Moss

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

AspireMint wrote:Hello,
i have idea, aquarium with animated fish ^^
Now that is a cool, idea but if you like have two blocks like this "▄▄" then I think it be in version 2...anyways I will make it one block for now.

so I will make this work.

Edit: And you will not see me, posting the topic until I finish it.
Last edited by Likwid H-Craft on Sun Apr 07, 2013 20:18, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

User avatar
markveidemanis
Member
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Post

Maybe have a mod that makes the player disappear or remove the nameplate.
Also have a mod that allows multiple chatrooms, like admins and players.
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR

User avatar
rubenwardy
Moderator
Posts: 6280
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

Likwid H-Craft wrote:
If like that to happen we need to program it in C++ Since you can't program in .lua I know of to make players eye view level, lower or higher.
You could edit the player entity to make it smaller, but everything would look that same, you would just be a small guy floating around.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

could someone make a battle for wesnoth mod. here is the site http://www.wesnoth.org and look up youtube videos for a general idea
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
danny
New member
Posts: 5
Joined: Tue Apr 09, 2013 16:15

by danny » Post

id like a mod with mobs and staffs wands and potions plz

User avatar
danny
New member
Posts: 5
Joined: Tue Apr 09, 2013 16:15

by danny » Post

if someone helps ill provide a texture...

User avatar
clarksallador
Member
Posts: 57
Joined: Sun Sep 30, 2012 03:18
Location: Philippines

by clarksallador » Post

Idea ^^ :
maybe add sprint to the game
also make piston push ..
sorry for my bad english

User avatar
patrickgarvilles
Member
Posts: 21
Joined: Fri Apr 05, 2013 13:51

by patrickgarvilles » Post

slender man mod :D

User avatar
rubenwardy
Moderator
Posts: 6280
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

clarksallador wrote:Idea ^^ :
maybe add sprint to the game
also make piston push ..
sorry for my bad english
Sprint is in the game.

Press J to enable sprint, and then E when you want to sprint.

NB: you need the "fast" privilege - /grant singleplayer fast if you are on single player

Pistons do push nodes(blocks), but do not push players.
Last edited by rubenwardy on Wed Apr 10, 2013 12:31, edited 1 time in total.

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

In the Git version (not in 0.4.6), you can set per-player speed/gravity/jump height, so we could give per-player "fast move" speeds. :P

User avatar
angelusbarney
New member
Posts: 3
Joined: Thu Apr 11, 2013 00:03

by angelusbarney » Post

I don't know if this has been mentioned earlier, but I couldn't find much in terms of this on the forums, hence I'll probably throw this idea to you folks anyway.

What about a mod that would allow for Energy Generation, Energy Transfer, and using this energy in Machines?
Like in IndustrialCraft2, BuildCraft, Universal Electricity or even RedPower?

If anyone has some suggestions for what would need to be done, and if it is possible with the Lua-based API, I would love to hear it, and begin work on an energy system (I'll probably release it under BSD license, or LGPL if I can't use another license) which can be used by others as well.

User avatar
windmere33
Member
Posts: 100
Joined: Thu Apr 04, 2013 19:21
Location: North Carolina, USA

by windmere33 » Post

is there any mod for items (like shovels and picks) to mine faster? i was just watching some minecraft vids, and saw that their dig time was like 10x faster than ours.
Active Contributor To Thaumtest!

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

In creative mode, you'll dig any block rapidly. Else, you could just edit the "default" mod's code to make digging times shorter.

User avatar
CryAngel
Member
Posts: 68
Joined: Thu Apr 04, 2013 10:56

by CryAngel » Post

angelusbarney wrote:What about a mod that would allow for Energy Generation, Energy Transfer, and using this energy in Machines?
here Technic mod already which introduce some generators and machines and i prefer extend and improve it rather than make some other mod.

User avatar
angelusbarney
New member
Posts: 3
Joined: Thu Apr 11, 2013 00:03

by angelusbarney » Post

CryAngel wrote:
angelusbarney wrote:What about a mod that would allow for Energy Generation, Energy Transfer, and using this energy in Machines?
here Technic mod already which introduce some generators and machines and i prefer extend and improve it rather than make some other mod.
Neat. I should look for that, as that would be splendid.

User avatar
clarksallador
Member
Posts: 57
Joined: Sun Sep 30, 2012 03:18
Location: Philippines

by clarksallador » Post

Another Idea:
1.Make a boss in the neather.
2.Make hunger as a default.
3.Make some animation like making the chest open and close.
Last edited by clarksallador on Thu Apr 11, 2013 14:53, edited 1 time in total.

User avatar
ERIC
New member
Posts: 3
Joined: Thu Apr 11, 2013 22:49

by ERIC » Post

my idea is for a brook stone mod_



brookstone is found deep in the earth and you can mistake it for gold despite gold looking and hiding in gold clusters gold is 3x stronger than gold in evry way

ty.ps:brookstone is not real and was a mod i made for a diff game once

User avatar
clarksallador
Member
Posts: 57
Joined: Sun Sep 30, 2012 03:18
Location: Philippines

by clarksallador » Post

How about a double piston extender ^.^

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests