Forcing TNT explosion / setting detonation timer

Discussion in 'Plugin Development' started by videege, Apr 7, 2011.

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

    videege

    Hey guys,

    Quick question. I'm able to spawn primed TNT (EntityTNTPrimed), but I was wondering if is possible to modify the timer controlling how long it takes the TNT to explode or if it is possible to simply force an explosion. I'm not sure what method to use as most of it is obfuscated names and whatnot.

    Thanks for any assistance!

    (P.S., bukkit should totally support spawning any entity so we don't have to depend on craftbukkit).
     
  2. Offline

    gmfreaky

    Probably theres a data value for that. Not sure, look op data values on the minecraft wiki.
     
  3. Offline

    videege

    After some experimentation, the public integer a is the fuse timer on a TNT entity. This is set to 80 when the TNT object is created (4 seconds). You can just modify this value to achieve what I was looking for in the OP.
     
Thread Status:
Not open for further replies.

Share This Page