Wither creator

Discussion in 'Plugin Development' started by brord, May 7, 2015.

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

    brord

    Hii!

    I must be missing something but i cant seem to get the creator of a wither.

    Im looking for something like wither.getCreator() or something (the spawn way with soul sand and skulls, not the egg)

    Im currently checking for soul sand and skull placement but thats not really nice :/

    Thanks in advance
    Brord
     
  2. Offline

    Zombie_Striker

    look under placeBlock and see if the item is a Skull, then check a second later to see if a wither is in that location.
     
  3. Offline

    brord

    Cant, the last skull you place gets instantly changed to air. so i cannot check what was placed :/
    (e.getBlock().getType() == Material.AIR)
     
  4. Offline

    Zombie_Striker

    BlockPlaceEvent should be triggered if ANY block is placed, no matter what. If this is not the case for you, you can always look for onCreatureSpawnEvent or EntitySpawnEvent and get the SpawnReason/Person closest to the Wither.
     
  5. Offline

    Signatured

    With BlockPlaceEvent, any block placed (regardless of what happens to it afterward) will call it.
     
Thread Status:
Not open for further replies.

Share This Page