Fire... Delay?

Discussion in 'Plugin Development' started by lolboy397, Aug 3, 2014.

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

    lolboy397

    I was wondering if it was possible for the player to place a flint and steel which create fire on the ground.
    So would I be able to make it so the fire would stay lit for about 3 seconds then after that it would be extinguished.
     
  2. Offline

    GameplayJDK

    lolboy397 You could use the scheduler to schedule the removal when the fire is placed.
     
  3. Offline

    lolboy397

    GameplayJDK

    I was thinking of this but I'm not sure of how to get the location of the fire. Lets say they placed it on the side of a block... Or would I be able to check what block is placed. after 3 seconds Get the location of said block. then set it to air?
     
  4. Offline

    habbcraw

    You could check with an interactevent and then theck some blocks around that they're not fire otherwise replace them with air. lolboy397
     
  5. Offline

    lolboy397

    habbcraw

    Hmmm. I think there could be a couple of problems. Such as a player places fire next to someone else's fire then both fires at the same time would be removed. But one of the fires would be placed early and not get there full 3 seconds. So I'm trying to see if there is a more efficient way to do this.
     
  6. Offline

    habbcraw

    lolboy397 Im sry I ca't Think of a method like that fast but i'll try thinking later when im not busy. There is Always a way. Though I Think it would be weird if playerd got their fires that Close..? Would they even mind? Otherwise you might be able to contain the fire within one block if that's the purposr and then just locate the interactevents Place.
     
  7. Offline

    lolboy397

    habbcraw

    I might have to look if the flint and steel placing fire would fire the BlockPlaceEvent then this would be a lot more easy
     
Thread Status:
Not open for further replies.

Share This Page