-1

I want to be able to detect if someone placed a certain block near my server's spawn point and remove the block while warning them to not do it again.

1
  • Why not just use spawn protection, which does this by default?
    – pppery
    Nov 25 '21 at 18:04
-3

You can use the commands

BlockPlaceEvent true
fill XYZ 0 "the square area you want to remove blocks"

and for deleting and alerts.

tell @p "do not touch my spawn"

use this one for the message for more commands click here -> Minecraft commands

2
  • 1
    Welcome to Arqade! Your commands seems misleading or rather incomplete. Please, improve your answer.
    – pinckerman
    Nov 25 '21 at 18:42
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Nov 25 '21 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.