1.17.1 Location Block problem - MINIGAME

Discussion in 'Spigot Plugin Development' started by Maxrisko, Dec 7, 2021.

  1. Dear Spigot - Community,

    I want to make a "muster" rebuild minigame. In these game, the player must rebuild a specific symbol (circle, creeper head...). Now my question is, how can I check in a specific area, that the blocks are placed in the correct position. Should I create a location config for that??? Please help.

    Thank you for answering!
     
  2. Honestly, the best way to do this might be to have a way to select two locations, then save a pattern you build by iterating through all the blocks between the locations and saving the offsets of non-air blocks as locations into the config.

    To check for a correct pattern, if you have a designated spot to build the symbol, you can just check from a set location, adding the offsets to the location and checking the type of block at that location. However, if you don't have a designated spot, it gets quite a bit more complicated.
     
    • Agree Agree x 1
  3. Thank you!!!