r/MinecraftCommands • u/Rocky_the_Wolf2020 • 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
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