Posted January 3, 20232 yr Is there a way to protect a specific generated structure from getting destroyed by a player until the player meets certain conditions?
January 3, 20232 yr You can get whether a structure is at a given position StructureManager#getStructureWithPieceAt and check if its valid and then cancel the BreakEvent if that's true and it doesn't meet whatever conditions you set up.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.