Check if block is spawned in nature or not

Discussion in 'Plugin Development' started by MrFrozen, Jun 19, 2015.

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

    MrFrozen

    Hey,

    I had a some struggle and that is how can I check if the mined blocked from the player is spawned or has ben placed by a player. It all goes about the ores.
     
  2. The only thing I can think of, is to save all the blocks that players placed in a list of database. and when they mine, check if the block is in the database or list. And remove it from the list
     
  3. Offline

    NathanWolf

    Another option which may be less efficient but possibly easier to implement- have a secondary world with the same seed as the first.

    When the player breaks a block, check that location in the other world and see if the block is the same type.

    This won't catch a player breaking and re-placing a block, but I suppose to catch that you could also break the block in the secondary world.
     
Thread Status:
Not open for further replies.

Share This Page