| | |
| | | gain = 0.4, |
| | | }) |
| | | end |
| | | local pos = user:getpos() |
| | | local pos = user:get_pos() |
| | | local inv = user:get_inventory() |
| | | for _, object in ipairs(minetest.env:get_objects_inside_radius(pos, vacuum_range)) do |
| | | for _, object in ipairs(minetest.get_objects_inside_radius(pos, vacuum_range)) do |
| | | local luaentity = object:get_luaentity() |
| | | if not object:is_player() and luaentity and luaentity.name == "__builtin:item" and luaentity.itemstring ~= "" then |
| | | if inv and inv:room_for_item("main", ItemStack(luaentity.itemstring)) then |
| | |
| | | end |
| | | end |
| | | end |
| | | |
| | | |
| | | technic.set_RE_wear(itemstack, meta.charge, vacuum_max_charge) |
| | | itemstack:set_metadata(minetest.serialize(meta)) |
| | | return itemstack |
| | |
| | | output = 'technic:vacuum', |
| | | recipe = { |
| | | {'pipeworks:tube_1', 'pipeworks:filter', 'technic:battery'}, |
| | | {'pipeworks:tube_1', 'technic:motor', 'technic:battery'}, |
| | | {'pipeworks:tube_1', 'basic_materials:motor', 'technic:battery'}, |
| | | {'technic:stainless_steel_ingot', '', ''}, |
| | | } |
| | | }) |