Do not place anything in the radius of X blocks Java | Minecraft?

pr
8

I wanted to ask how I can fix a point & that you can't place anything within a 20 block radius from that point.

Hu

That will not do. You can only use CB to specify that blocks in the radius are automatically destroyed again

an

Of course you can… So nonsense.

Incidentally, programming is also involved here (probably from plugins). See question tags.

an

I assume with a plugin?

You do an onBlockPlaced method that is called when someone places a block (i.e. A BlockPlaceEvent), then check whether the coordinate is within the radius (getBlockReplacedState (). GetLocation ()), and if so, you cancel the event with setCancelled (true).

Hu

That is not the question. The main thing is that it works

Hu

And commands are commonly referred to as programming in Minecraft

an

That is not the question.

But in the question tags. They don't exist for fun.

program java
Minecraft programming
eclipse java

pr

Yes

Hu

So what. It works fine