Turtles do drop XP, and since it does not move, there is no fuel cost.Ah. I see.
I'm interested in a mob farm, but with the kills registered to the player, so that there is the chance of extra loot drops. XP not such a big deal.
Does the attack command basically just swing the sword into the block directly in front of the turtle? Does this command have a fuel cost?
use turtle.drop() when the turtle faces a chest, turtle.dropUp() / dropDown() when it's above/under a chestCouple of questions, how can I get the turtle to unload it's inventory into a chest?
How can I stop the program when it's running (apart from breaking the turtle and putting it down again)?
Wish the CC wiki had a glossary of commands.
while true do
turtle.attack()
for i=1,16 do
if turtle.getItemCount(i) > 0
turtle.select(i)
turtle.dropDown()
end
end
sleep(1)
end
Hello,
So I have tried to copy paste the code
while true do
turtle.attack()
end
but it only pastes
while true d
and when I try to enter the rest of it after pressing enter is says no such program.
What am I doing wrong.
Please help I really do not feel like hearing things like go play something else or random insults. If you don't have any advise please do not say anything at all. I need help with this.
Thank you
Best way I found to attack and empty inventory is this. This assumes the chest is below the turtle.
Code:while true do turtle.attack() for i=1,16 do if turtle.getItemCount(i) > 0 turtle.select(i) turtle.dropDown() end end sleep(1) end
while true do
for slot = 1,16 do
sleep(0.1)
turtle.attack()
turtle.select(slot)
if turtle.getItemCount() > 0 then
turtle.drop()
end
end
end
And not only have this years old thread been necroed, the people that it is being necroed to "help" have not been online for yearsThe necro thread has been necroed once more!