Solved (Contains fragile list)Detecting or a existing list of blocks that require a "support" block.

Discussion in 'Spigot Plugin Development' started by Lightspeed360, May 26, 2016.

  1. I need to get a list of blocks that will break if the block doesn't have a block under it or to the side.

    ex: Torches, Saplings, or Grass

    Wondering is there is a pre made list in the code(or site having these types of blocks) before I have to go grab every id and put it into an array. :L

    Just wondering if there is any shortcut. . . :)
     
    #1 Lightspeed360, May 26, 2016
    Last edited: May 26, 2016
  2. Not that I can see. There isn't that many, so it won't take you that long to make a list of them.
     
  3. Ok thanks. :)

    Code (Text):
    int[] frag = {6, 8, 9, 10, 11, 12, 13, 27, 28, 31, 32, 37, 39, 40, 50
                    , 51, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77,
                    78, 81, 83, 92, 93, 94, 96, 104, 105, 106, 111, 115, 122,
                    127, 131, 132, 141, 142, 143, 145, 147, 148, 149, 150,
                    157, 167, 171, 175, 176, 177,193, 194, 195, 196, 197,
                    199, 200, 207};
    Took me a while, but this is what I got!
     
    #3 Lightspeed360, May 26, 2016
    Last edited: May 26, 2016