From 6ef79df3d97e3f483d1d03ef696609d2197629f4 Mon Sep 17 00:00:00 2001 From: Navid Sassan Date: Thu, 23 Nov 2023 01:18:26 +0100 Subject: [PATCH] implement despositRefill --- lava-collector | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lava-collector b/lava-collector index 8c7775b..4b417a6 100644 --- a/lava-collector +++ b/lava-collector @@ -1,5 +1,8 @@ -- vi: ft=lua -- Goal: collect lava using buckets in the nether, deposit the buckets into a fluid transposer that extracts the lava and sends it to a power generator +-- +-- chest above base needs to contain empty buckets +-- the filled buckets will be deposited in a chest below the base local function compareItemName(target) local itemDetail = turtle.getItemDetail() @@ -37,6 +40,12 @@ local function returnToBase() end local function despositRefill() + for i = 1, 16 do + turtle.select(i) + turtle.dropDown() + end + + turtle.suckUp(16) end local function refuel()