| | |
| | | if output_name == nil then |
| | | output_name = "dst" |
| | | end |
| | | |
| | | |
| | | local meta = minetest.get_meta(pos) |
| | | local inv = meta:get_inventory() |
| | | local i = 0 |
| | |
| | | if stack then |
| | | local item0 = stack:to_table() |
| | | if item0 then |
| | | item0["count"] = "1" |
| | | item0["count"] = 1 |
| | | technic.tube_inject_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0) |
| | | stack:take_item(1) |
| | | inv:set_stack(output_name, i, stack) |
| | |
| | | end |
| | | end |
| | | end |
| | | |
| | | |
| | | function technic.smelt_item(meta, result, speed) |
| | | local inv = meta:get_inventory() |
| | |
| | | if send_function == nil then |
| | | send_function = technic.send_items |
| | | end |
| | | |
| | | |
| | | local node = minetest.get_node(pos) |
| | | local meta = minetest.get_meta(pos) |
| | | local inv = meta:get_inventory() |
| | | local pos1 = vector.new(pos) |
| | | local x_velocity = 0 |
| | | local z_velocity = 0 |