Jump to content




Are Turtles Entities?


  • This topic is locked This topic is locked
13 replies to this topic

#1 Adjgamer

  • Members
  • 19 posts

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!

#2 Bogdacutu

  • Members
  • 23 posts

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).

#3 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

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.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

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.

#5 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 08 January 2013 - 10:48 AM

View PostCloudy, on 08 January 2013 - 04:38 AM, said:

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

#6 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 08 January 2013 - 11:58 AM

turtle.detect doesn't detect entities... At least i dont think.

#7 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 08 January 2013 - 12:02 PM

View PostMudkipTheEpic, on 08 January 2013 - 11:58 AM, said:

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

#8 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 08 January 2013 - 12:03 PM

Oh yah. I never use turtles, so I wouldn't know.

Edit: Fast reply :blink:

#9 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 09 January 2013 - 06:00 AM

View PostKaoS, on 08 January 2013 - 10:48 AM, said:

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.

#10 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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:

#11 Imred Gemu

  • Members
  • 47 posts

Posted 05 April 2013 - 09:52 AM

View PostCloudy, on 09 January 2013 - 06:00 AM, said:

View PostKaoS, on 08 January 2013 - 10:48 AM, said:

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.

#12 bbqroast

  • Members
  • 124 posts

Posted 05 April 2013 - 11:48 AM

Surely D20's mod pack has some mod that has chunk loaders?

#13 Mailmanq!

  • Members
  • 123 posts
  • LocationI am omnipresent... DUH

Posted 05 April 2013 - 12:05 PM

View Postbbqroast, on 05 April 2013 - 11:48 AM, said:

Surely D20's mod pack has some mod that has chunk loaders?
Chunkloaders and World Anchorgrjndek9
by
?J5836dfgJHJRwqaz <-- Edit: Cats on keyboards!

Edited by mailmanq, 05 April 2013 - 12:06 PM.


#14 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 05 April 2013 - 06:02 PM

Locked.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users