Hi, i want to make my castle walls indestructible, is there a way to use a command block to bestow that in a area?
or can i do this in the server console? I Just want that area to be indestructible. I still want to players to be able to destroy blocks outside that area.
The Meaning of Life, the Universe, and Everything.
Join Date:
1/7/2019
Posts:
56
Minecraft:
JohnTempest
Member Details
You can set up a repeating command block which switches people into adventure mode when they get within range of the castle, and puts them back into survival when they leave. Example:
You could also constantly clone a copy of the castle walls into place, or, if you are running this on a server, you can use a plugin like worldguard to do this.
You could also constantly clone a copy of the castle walls into place, or, if you are running this on a server, you can use a plugin like worldguard to do this.
That said, the clone command is incredibly laggy and should typically be avoided, especially since it would have to be run on a clock.
You can set up a repeating command block which switches people into adventure mode when they get within range of the castle, and puts them back into survival when they leave. Example:
gamemode adventure @a[distance=..100]
gamemode survival @a[distance=101..]
Adding on to this (assuming you want the walls to be immune to tnt cannons or such) you can also run a similar command to kill tnt blocks:
/kill @a[type=minecraft:tnt,distance=..100]
You could also set the mobGriefing rule to false to stop creepers or endermen from affecting your building as well.
Hi, i want to make my castle walls indestructible, is there a way to use a command block to bestow that in a area?
or can i do this in the server console? I Just want that area to be indestructible. I still want to players to be able to destroy blocks outside that area.
You can set up a repeating command block which switches people into adventure mode when they get within range of the castle, and puts them back into survival when they leave. Example:
gamemode adventure @a[distance=..100]
gamemode survival @a[distance=101..]
You could also constantly clone a copy of the castle walls into place, or, if you are running this on a server, you can use a plugin like worldguard to do this.
That said, the clone command is incredibly laggy and should typically be avoided, especially since it would have to be run on a clock.
Adding on to this (assuming you want the walls to be immune to tnt cannons or such) you can also run a similar command to kill tnt blocks:
You could also set the mobGriefing rule to false to stop creepers or endermen from affecting your building as well.