1
Unbreakable Spawners
Is there a way I could make all the spawners in the world unbreakable? But it has to be breakable in gamemode 1. I need this for my survival server (1.15.2)
2
You could do it by interupting mining attempts when looking at a spawner. Basically, you can determine when a survival player is looking at a spawner via raycasting. If they are, you can summon an entity that will interrupt their mining by getting in the way of the pickaxe.The problem with this is that it takes a bit of power to raycast and you'll need to do it on every player every tick. If you were able to find all spawners ahead of time and put an entity there, you would need to raycast only when a player was near one.
On vanilla server, probably not without a permissions mod similar to this :
https://www.curseforge.com/minecraft/mc-mods/thutperms
On bukkit or spigot servers, you could be able to achieve it with a plugin similar to this :
https://www.spigotmc.org/resources/minespawners.30432/
https://www.curseforge.com/minecraft/mc-mods/thutperms
On bukkit or spigot servers, you could be able to achieve it with a plugin similar to this :
https://www.spigotmc.org/resources/minespawners.30432/
