Make all iron shovels in a world explode

Discussion in 'Plugin Development' started by CraterHater, Jul 24, 2015.

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

    CraterHater

    I want to make all iron shovels In the world "Pvp" to explode using a creeper, no tnt only creepers. How do I do that?
     
  2. Offline

    teej107

    @CraterHater Please elaborate! Are you talking about the shovels in the inventory or item entities on the ground?
     
  3. Offline

    CraterHater

    @teej107 I mean entities, items in the inventory cannot explode :)
     
  4. Offline

    teej107

  5. Offline

    Nic2555

    You could loop through the entities of the world, then if the entity type equals iron shovel, retrieve the coords and create an explosion at the location.
     
Thread Status:
Not open for further replies.

Share This Page