creature spawners

Discussion in 'Plugin Development' started by CactusComboPvP, Jul 29, 2015.

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

    CactusComboPvP

    I want to make it so when they mine a spawner, it drops a spawner. I know how to do that but how can I get the exact type, so when they place it, it's not a pig spawner by default.
     
  2. Offline

    SuperSniper

    save the information somewhere?
     
  3. Offline

    caderape

    @CactusComboPvP
    CreatureSpawner spawner = block.getState();
    Save the actual mob spawned then set it back when it's placed. I don't think block have uniqueId so you will have to find a way.
     
Thread Status:
Not open for further replies.

Share This Page