Efficient way to get the list of specific block IDs in a chunk?

Discussion in 'Plugin Development' started by ImSxYN, Jun 26, 2015.

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

    ImSxYN

    I am trying to make something that limits how many of a specific item you can place in a chunk at a time and am trying to find the least server intensive way to do this. Any ideas?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @ImSxYN Loop through thw chunk when it gets created, store all block counts(database is probably the best way here), then when somebody places a block update the database value.
     
  3. Offline

    ImSxYN

    Makes sense. I will try this and get back to everyone! Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page