Cropses or lying NPCs

Discussion in 'Plugin Development' started by muCkk, Sep 1, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    muCkk

    Hey,
    is there a way to spawn a dead skeleton which just lies on the ground or something like that? At the moment my plugin uses signs to mark the location where the player died, but it would be great if I could spawn an lying Entity with the players skin at that point.
     
  2. Not really possible yet.
     
  3. Well, as a player is able to lie in a bed it should be possible, but complicated because (I think) there's no function in the bukkit API...
     
  4. You could maybe try overriding the Minecraft class controlling that mob, but besides from that no.
     
  5. Offline

    killgoblen

    Well, I have seen glitched mob corpses lay on the ground for an unusually long amount of time, and everyone on the server could see it, so that leads me to believe that corpses are server-side. I might be wrong, but I think that since they are server-side, they can be controlled. I am pretty inexperienced, though, so don't take my word for it! :p
     
  6. It's all handled by packets so that's normally a cause of lag or packet loss. Maybe you could try to cancel all EntityDeathPacketEvent calls or something similar?
     
Thread Status:
Not open for further replies.

Share This Page