This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Adjgamer's profile picture

Are Turtles Entities?

Started by Adjgamer, 05 January 2013 - 10:01 AM
Adjgamer #1
Posted 05 January 2013 - 11:01 AM
I am currently using DW20's modpack and I am trying to make a T5 skele soul shard and I hate having to sit at the top of my pit and wait for the mobs to spawn, then go down and kill them and climb back up.
Can I leave a turtle at the top and have it leave the spawner active?
And one other thing, if I have a mele turtle and i just throw in

if turtle.detect() then
turtle.attack()
end

and put a soul shard in its inventory will it fill the shard?
Thanks!
Bogdacutu #2
Posted 08 January 2013 - 12:33 AM
Even if it is an entity (I'm pretty sure it's only an entity while it moves), it won't count as a player when it comes to… basically anything (chunk loading, mob spawning and so on).
Orwell #3
Posted 08 January 2013 - 04:23 AM
A turtle is always a tile entity, also while moving. So it isn't a living entity and doesn't have any of those properties.
Cloudy #4
Posted 08 January 2013 - 04:38 AM
However, when attacking it uses a fake player, with an inventory. So it may very well work, depending on the interaction between mods.
KaoS #5
Posted 08 January 2013 - 10:48 AM
However, when attacking it uses a fake player, with an inventory. So it may very well work, depending on the interaction between mods.

sounds interesting so if we force turtles to keep attacking we can operate spawners ^_^/> who would've guessed
MudkipTheEpic #6
Posted 08 January 2013 - 11:58 AM
turtle.detect doesn't detect entities… At least i dont think.
Orwell #7
Posted 08 January 2013 - 12:02 PM
turtle.detect doesn't detect entities… At least i dont think.
turtle.attack() returns true only when a living entity was in front of the turtle. If you don't plan on attacking the entity, then you have a bit of collateral damage though. :P/>
MudkipTheEpic #8
Posted 08 January 2013 - 12:03 PM
Oh yah. I never use turtles, so I wouldn't know.

Edit: Fast reply :blink:/>
Cloudy #9
Posted 09 January 2013 - 06:00 AM
sounds interesting so if we force turtles to keep attacking we can operate spawners ^_^/> who would've guessed

Uh what? It isn't a real player, and as such does not load chunks.
theoriginalbit #10
Posted 09 January 2013 - 06:03 AM
if memory serves the T5 will always spawn as long as its in a loaded chunk. then if you have a turtle down the bottom constantly attacking then your done……… :blink:/>
Imred Gemu #11
Posted 05 April 2013 - 10:52 AM
sounds interesting so if we force turtles to keep attacking we can operate spawners ^_^/> who would've guessed

Uh what? It isn't a real player, and as such does not load chunks.
I think he misunderstood you, he thought you were saying that when a turtle attacks it becomes a player entity, what he meant KaoS is that when the turtle attacks, it tells the game that the source of the attack is from a sword by a player entity, no player actually exists but the mob being attacked thinks that one does, this means that when it dies since it thinks it was killed by a player entity, it drops xp and rare loot. To answer the topic , I tested and found that unfortunately the turtle cannot charge a soul shard, I think the shards must be in the hotbar and I believe the turtle's inventory mimics the players internal inventory, not the hotbar, so it doesn't look like that would work as the mod is written now.
bbqroast #12
Posted 05 April 2013 - 12:48 PM
Surely D20's mod pack has some mod that has chunk loaders?
Mailmanq! #13
Posted 05 April 2013 - 01:05 PM
Surely D20's mod pack has some mod that has chunk loaders?
Chunkloaders and World Anchorgrjndek9
by
?J5836dfgJHJRwqaz <– Edit: Cats on keyboards!
Edited on 05 April 2013 - 11:06 AM
Lyqyd #14
Posted 05 April 2013 - 07:02 PM
Locked.