This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
should we have a pet turtle?
Started by mousecracka, 26 September 2012 - 05:15 PMPosted 26 September 2012 - 07:15 PM
We should have a turtle that follow you around and that you can name, this should be a separate turtle and then it can be a pet turtle. what do you guys think?
Posted 26 September 2012 - 07:39 PM
lol, it remembering your name would be easy, it following you however…
Posted 26 September 2012 - 07:53 PM
thanks doyle3694lol, it remembering your name would be easy, it following you however…
Posted 26 September 2012 - 08:19 PM
Following would be nearly impossible, unless in seriously controlled environment (small corridor with only you inside so turtle can find out where you are standing). And it would still be super slow, since only way for turtle to search is by trial and error.
Posted 26 September 2012 - 08:38 PM
Interesting concept, if dan200 would add turtlemob as a mob that you can program that would be really cool!
Like the label name is viewed above the turtle and that you could write code like this:
Like the label name is viewed above the turtle and that you could write code like this:
while true do
playerPosX = inGame.getPlayerXPos("mousecracka")
playerPosZ = inGame.getPlayerZPos("mousecracka")
playerPosY = inGame.getPlayerYPos("mousecracka")
turtleYPos = turtle.getYPos() -- Or if you do it with gps...
turtle.towards(playerPosX, playerPosZ)
if turtleYPos < playerPosY then
while not turtle.up() do
turtle.digUp()
end
elseif turtleYPos > playerPosY then
while not turtle.down() do
turtle.digDown()
end
end
end
Well it would be really cool if you would have to have a gps tracker in your inventory to have the turtle to go to you! Just like if you would be able to use a wireless modem in your hotbar.Posted 26 September 2012 - 08:51 PM
thanks im sure to use it if i canInteresting concept, if dan200 would add turtlemob as a mob that you can program that would be really cool!
Like the label name is viewed above the turtle and that you could write code like this:Well it would be really cool if you would have to have a gps tracker in your inventory to have the turtle to go to you! Just like if you would be able to use a wireless modem in your hotbar.while true do playerPosX = inGame.getPlayerXPos("mousecracka") playerPosZ = inGame.getPlayerZPos("mousecracka") playerPosY = inGame.getPlayerYPos("mousecracka") turtleYPos = turtle.getYPos() -- Or if you do it with gps... turtle.towards(playerPosX, playerPosZ) if turtleYPos < playerPosY then while not turtle.up() do turtle.digUp() end elseif turtleYPos > playerPosY then while not turtle.down() do turtle.digDown() end end end
Posted 26 September 2012 - 08:54 PM
or have the turtle be able to detect mobs within a certain distance (maybe only let the combat ones do so?) and when they do so, the get the mob type, name, direction and distance. Then just set your turtle to keep going within a certain distance of you. This would also allow for more efficient guard turtles, as you could have them automatically go over to anything that moves (and not you) and attack it.
Posted 26 September 2012 - 09:21 PM
This seems more like what a turtle upgrade would be. Something like integration of ccSensors with turtles. Sounds really neat!
Posted 27 September 2012 - 07:54 PM
it is possible with a computer connected to a cc sensor block and a modem and a wireless turtle getting the player Position from the Computer, isn't it?
Posted 27 September 2012 - 07:58 PM
AFAIK ccSensors only give number of players nearby, not their actual position.
Posted 27 September 2012 - 08:49 PM
Posted 27 September 2012 - 08:52 PM
AFAIK not.
Posted 28 September 2012 - 07:40 PM
you can get the player's location, you can get any mod's position, even the position of dropped items, unfortunately there is a bug in the peripheral pack (maybe just my version) that prevents you from getting the health, armour, name etc :P/>/>
Posted 16 October 2012 - 10:40 AM
Can't you stick a wireless tracker (from chickenbone's mod) to someone and figure out the location of the tracker and relay this to the turtle?
Posted 16 October 2012 - 11:59 AM
AFAIK there is no way to retreive information from that mod using CC.