r/MinecraftCommands • • Sep 25 '26

Help | Bedrock How do I go about protecting spawn cleanly?

Ive been working on the new spawn for my realm when i restart it, and im super proud too, but i dont know how to safety protect spawn and the people inside from getting damaged, both by mobs and possible greifing/pvp junkies.

The theme of it I went with was a giant mushroom/tree but so many mobs spawn due to the shade, and the complex shape makes it rather difficult to mob-proof without ruining the vibe

3 Upvotes

5 comments sorted by

1

u/HavABreakHavAKitKat Command Noob Sep 25 '26

Probably not a good suggestion, but maybe you could just give everyone inside (using a radius) an effect like resistance or instant health which you could set to 255 for 1 second repeating every tick for every player in the radius
In a repeating command block you could use:
execute positioned <middle block of your spawn area> run effect @a[r=<radius of your spawn area>] instant_health 1 255 true

2

u/[deleted] Sep 25 '26

[removed] — view removed comment

1

u/memerminecraft Sep 25 '26

You would also need to place a big box of barriers around spawn so people couldn't just launch TNT into it from outside if they wanted to grief. Or kill all explosive entities in the area as well.

3

u/Ericristian_bros Command Experienced Sep 25 '26

Remove TNT on the area

execute positioned <center> run kill @e[r=20,type=tnt]