1

Unbreakable Spawners

anti-Griefer 5/27/20 9:09 am
662
5/27/2020 7:27 pm
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)
Posted by
anti-Griefer
Level 2 : Apprentice Network
0

  Have something to say?

JoinSign in

2

garlicbreathinator
05/27/2020 7:27 pm
Level 33 : Artisan Loremaster owo
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.
1
icephantom
05/27/2020 7:21 pm
Level 15 : Journeyman Miner
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/
1

Welcome