You are on page 1of 1

itemid=(5666) --sesuaikan id block yang mau di break--

speed=(200) --sesuaikan kecepatan break--


range=(2) --sesuaikan jarak collect--
hit=(4) --jumlah hit block--
punchX=(0)
punchY=(2) --ubah ke -2 untuk break ke atas--

collectSet(true,range)

function AmountBlock(id)
count = 0
for _, tile in pairs(getTiles()) do
if tile.fg == id or tile.bg == id then
count = count + 1
end
end
return count
end

while true do
place(itemid,punchX,punchY)
sleep(50)
for i=0,hit,1 do
punch(punchX,punchY)
sleep(speed)
end
end

You might also like