Question Force Creeper Explosion

Discussion in 'Plugin Help/Development/Requests' started by 2008Choco, Jul 27, 2015.

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

    2008Choco

    My main goal is to get the creeper to explode immediately when it's damaged. However I can't seem to find a method that will basically start the creepers fuse. I want to make it as though if a player were to walk up to it, it hisses and is about to blow up. I was assuming the method would be something along the lines of creeper.explode() or creeper.startFuse(), but I just can't find anything. :p

    I'm trying to avoid just removing the creeper and summoning an explosion at it's position due to griefing protected land purposes. I know GriefPrevention protects from plugin-created explosions, but other plugins such as WorldGuard do not. There must be a way to explode the creeper
     
  2. Offline

    BizarrePlatinum

    @2008Choco very possible, just gonna have to do some nms (craftcreeper, one of the a methods with the explosion parameters).
     
  3. Offline

    2008Choco

    @BizarrePlatinum Shoot, I was trying to avoid using NMS ;-;

    So I've looked through the methods of CraftCreeper instead and haven't found a method that causes it to explode either. Perhaps I'm just completely blind and missed the method that does so (It's happened before, I wouldn't be surprised). Perhaps an example?
     
  4. Offline

    BizarrePlatinum

    @2008Choco CraftCreeper.getHandle().a(Explosion, World, BlockPosition, IBlockData)
     
Thread Status:
Not open for further replies.

Share This Page