Entity sinks into ground on spawn

Discussion in 'Plugin Development' started by Chinwe, May 1, 2013.

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

    Chinwe

    I am trying to spawn a chicken using loc.getWorld().spawnEntity(loc, EntityType.CHICKEN)

    But every time the chicken sinks into the floor, making it impossible to hit until either the player reconnects or teleports far away and back again. (The fire particles are a temporary way to keep track of the chicken)
    [​IMG]

    Is there anyway to fix this? I've tried several (pretty retarded) ways such as teleporting the chicken far away and back again, as well as calling a CreatureSpawnEvent.
     
  2. You can try to set the location y one more, than it will spawn 1 block above the ground and probably wont sink into the ground.
     
  3. Offline

    Chinwe

    blackwolf12333 I tried that too, he just floats innocently down and through the floor :C
     
  4. Offline

    Chinwe

    Anyone know a way of getting around this really annoying bug?
     
  5. That bug seems funny to play around with..Haha imagine a player his face when his entire cow farm sinks into the ground..
     
  6. Offline

    TheTinySpider

    Its caused by bad connection with the server, it tends to happen with other players too (very funny).
    Also slabs sometimes seem to trigger this too.
     
Thread Status:
Not open for further replies.

Share This Page