How is it done? Gradual building process

Discussion in 'Plugin Development' started by Caedus, Sep 13, 2016.

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

    Caedus

    Hi,

    I was recently watching a video and I saw the plugin on the server was gradually building buildings. It looks really cool imo and so I was wondering if anyone knew the best of going about recreating this? Including the armor stand functionality too, ideally

    You can see it at:

    Cheers
     
  2. Online

    timtower Administrator Administrator Moderator

    @Caedus BukkitRunnable where each step builds a couple blocks.
     
  3. Offline

    Caedus

    @timtower I figured one could do it that way, but wouldn't that be mega tedious? To write out each BukkitRunnable and write out code to replace every single block manually? Or is there a better way to do it, with WorldEdit perhaps?

    EDIT: Also look at the building exploding here:

    How on earth did he do that?
     
    Last edited: Sep 13, 2016
  4. Online

    timtower Administrator Administrator Moderator

    @Caedus It is probably just 1 runnable, one that takes a couple blocks from the list and set those.
    WorldEdit won't improve anything here
     
  5. Offline

    Caedus

    @timtower Any idea how he did the building explosion where the blocks fall like TNT and become solid blocks where they land to mimic debris? At 19 minutes in the video there is an example, can't link to the exact moment for some reason. What sort of list would you store those blocks in then? A HashMap?
     
  6. Online

    timtower Administrator Administrator Moderator

    @Caedus Change the blocks in falling sand, give a velocity, let them land.
    HashMap would do, <location, new block type>
     
Thread Status:
Not open for further replies.

Share This Page