namablocknya = "chandelier" -- Nama block yang ingin ditanam
delay = 10 -- Delay super cepat! Boleh 0~10, jangan terlalu tinggi
blockid = FindItemID(namablocknya)
seedid = blockid + 1
function inv(itemid)
for _, item in pairs(GetInventory()) do
if [Link] == itemid then return [Link] end
end
return 0
end
function placeSeed(x, y)
local pkt = {
type = 3,
px = x,
py = y,
x = x * 32,
y = y * 32,
value = seedid
}
SendPacketRaw(false, pkt)
end
function fastPlant()
for _, tile in pairs(GetTiles()) do
if [Link] == 0 then
local below = GetTile(tile.x, tile.y + 1)
if below and [Link] ~= 0 and [Link] % 2 == 0 then
if inv(seedid) > 0 then
placeSeed(tile.x, tile.y)
Sleep(delay)
else
break
end
end
end
end
end
function main()
while true do
if inv(seedid) > 0 then
fastPlant()
else
LogToConsole("`4Habis seed.")
break
end
end
end
-- Tampilkan info saat script dieksekusi
LogToConsole("`2SCRIPT AUTO PLANT BY `4@DirganR")
LogToConsole("`2[AutoPlant] Mulai menanam " .. namablocknya .. " (ID: " ..
seedid .. ")")
main()